Plugin Directory

Changeset 912244


Ignore:
Timestamp:
05/11/2014 07:12:59 PM (12 years ago)
Author:
sebstein
Message:
  • adapted to latest Google+ API changes
  • updated documentation how to get Google+ API key
Location:
g-crossposting/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • g-crossposting/trunk/g-crossposting.php

    r847165 r912244  
    44    Plugin URI: http://wordpress.org/extend/plugins/g-crossposting/
    55    Description: Imports your public Google+ activities in your Wordpress blog.
    6     Version: 1.3.1
     6    Version: 1.4.0
    77    Author: Sebastian Stein
    88    Author URI: http://sebstein.hpfsc.de/
     
    6262}
    6363
     64// load CSS
     65// add_action('wp_enqueue_scripts', 'g_crossposting_load_css');
    6466
    6567// bind _update function to update action triggered as a scheduled event
    6668add_action('g_crossposting_update_action', 'g_crossposting_update');
     69
     70/**
     71 * load CSS file for this plugin
     72 */
     73// function g_crossposting_load_css() {
     74//  wp_register_style('g_crossposting', plugins_url('g-crossposting/style.css'));
     75//  wp_enqueue_style('g_crossposting');
     76//}
    6777
    6878/**
     
    331341            }
    332342            $post_content .= '<div class="g-crossposting-att">';
    333             $post_content .= "<div class=\"g-crossposting-att-title\"><a href=\"{$att_url}\" target=\"_blank\">{$att_title}</a></div>";
     343            $post_content .= "<div class=\"g-crossposting-att-title\"><p><a href=\"{$att_url}\" target=\"_blank\">{$att_title}</a></p></div>";
     344
    334345            if ($att_photo) {
    335                 $post_content .= '<div class="g-crossposting-att-img" style="float:left;">';
    336                 $post_content .= "<a href=\"{$att_url}\" target=\"_blank\">";
     346                $post_content .= '<div class="g-crossposting-att-img">';
     347                $post_content .= "<p><a href=\"{$att_url}\" target=\"_blank\">";
    337348                $post_content .= "<img src=\"{$att_photo}\" />";
    338                 $post_content .= '</a></div>';
     349                $post_content .= '</a></p></div>';
    339350            }
    340             $post_content .= '<div class="g-crossposting-att-txt">'.$att_article.'</div>';
    341             $post_content .= '</div>';
    342         }
    343         $post_content .= '<div class="g-crossposting-backlink"><a href="'.$activity->url.'" target="_blank">'.__('This was posted on Google+', 'g-crossposting').'</a></div>';
     351
     352            if ($att_article) {
     353                $post_content .= '<div class="g-crossposting-att-txt"><p>'.$att_article.'</p></div>';
     354                $post_content .= '</div>';
     355            }
     356        }
     357        $post_content .= '<div class="g-crossposting-backlink"><p><a href="'.$activity->url.'" target="_blank">'.__('This was posted on Google+', 'g-crossposting').'</a></p></div>';
    344358
    345359
     
    352366            $post_title = __('Google+ post: No title available&hellip;', 'g-crossposting');
    353367        }
     368
    354369        // shorten post title if required
    355370        if ($options['titlelen'] > 0 && strlen($post_title) > $options['titlelen']) {
  • g-crossposting/trunk/readme.txt

    r847165 r912244  
    44Tags: google, googleplus, posts, g+
    55Requires at least: 3.0.0
    6 Tested up to: 3.8.1
    7 Stable tag: 1.3.1
     6Tested up to: 3.9.1
     7Stable tag: 1.4.0
    88
    99Imports your public Google+ activities in your Wordpress blog.
     
    101101== Changelog ==
    102102
     103= 1.4.0 =
     104
     105* insert linebreak after images so that link to G+ post is shown below
     106* all output like post content now encapsulated in <p> tags for better formatting
     107
    103108= 1.3.1 =
    104109
Note: See TracChangeset for help on using the changeset viewer.