WordPress.org

Plugin Directory

Changeset 223014


Ignore:
Timestamp:
03/29/10 15:31:59 (4 years ago)
Author:
KopiPejst
Message:

version 1.4

Location:
google-buzz-er/trunk
Files:
5 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • google-buzz-er/trunk/README.txt

    r206851 r223014  
    66Stable tag: trunk 
    77 
    8 Google Buzz posts on your Wordpress site. Sidebar widget, custom header title, showing images from posts... 
     8Google Buzz posts on your Wordpress site. Sidebar widget, custom header title, showing images from posts, custom color scheme... 
    99 
    1010== Description == 
     
    1616* Showing images from post 
    1717* Sidebar widget 
     18* Custom color scheme 
    1819 
    1920You can find more information about this plugin on <a href="http://workshop.rs/2010/02/google-buzz-er-google-buzz-for-wordpress/">workshop.rs</a> 
     
    31321. Google Buzz ER in action 
    32332. Options for Google Buzz Er 
    33 3. Sidebar widget 
    34 4. Custom header and images from posts 
     343. Appereance options 
     354. Sidebar widget 
     365. Custom header and images from posts 
    3537 
    3638== Frequently Asked Questions == 
     
    4547== Changelog == 
    4648 
    47 = 1.1 = 
    48  
    49 * Sorting posts by publishing time 
    50  
    51 = 1.2 = 
    52  
    53 * Added sidebar widget feature 
    54 * Removed include for header section 
     49= 1.4 = 
     50* Using curl for getting Google Buzz data 
     51* Check if there are posts 
     52* Set box, posts, links color from admin page 
     53* Choose if Google Buzz logos will be displayed  
    5554 
    5655= 1.3 = 
     
    6059* Width for images from posts 
    6160 
     61= 1.2 = 
     62 
     63* Added sidebar widget feature 
     64* Removed include for header section 
     65 
     66= 1.1 = 
     67 
     68* Sorting posts by publishing time 
     69 
     70 
  • google-buzz-er/trunk/css/google-buzz-er.css.php

    r206731 r223014  
    33include("../../../../wp-load.php"); 
    44 
     5    $boxColor = get_option('gber_box_bg_color') ?  get_option('gber_box_bg_color')  : '#FFFFFF'; 
     6    $postColor = get_option('gber_post_bg_color') ?  get_option('gber_post_bg_color')  : '#F3F3F3'; 
     7    $textColor = get_option('gber_text_color') ?  get_option('gber_text_color')  : '#333333'; 
     8    $linkColor = get_option('gber_link_color') ?  get_option('gber_link_color')  : '#0AB9E5';    
     9    $linkHoverColor = get_option('gber_link_hover_color') ?  get_option('gber_link_hover_color')  : '#0AB9E5';           
     10    $timeColor = get_option('gber_time_color') ?  get_option('gber_time_color')  : '#999999';    
     11    $logoImages = get_option('gber_logo_images') ?  0  : 1;  
     12 
    513?> 
    614 
    7 #gber_wrapper { padding: 5px; background-color: #FFFFFF; } 
    8 #gber_title { background: url(../img/gber_logo.png) no-repeat right; font-size: 20px; line-height: 40px; } 
    9 .gber_post { padding: 5px; background-color: #F3F3F3; color: #333333; margin-bottom: 1px; } 
    10 .gber_time { font-style: italic; color: #999999; } 
     15#gber_wrapper { padding: 5px; background-color: <?= $boxColor ?>; } 
     16#gber_title { <? if($logoImages) { ?>background: url(../img/gber_logo.png) no-repeat right; <? } ?>font-size: 20px; line-height: 40px; } 
     17.gber_post { padding: 5px; background-color: <?= $postColor ?>; color: <?= $textColor ?>; margin-bottom: 1px; } 
     18.gber_time { font-style: italic; color: <?= $timeColor ?>; } 
    1119.gber_image { display: block; } 
    12 #gber_small { background: url(../img/gber_small.png) no-repeat right; height: 25px; display: block; } 
     20<? if($logoImages) { ?> 
     21    #gber_small { background: url(../img/gber_small.png) no-repeat right; height: 25px; display: block; } 
     22<? } ?> 
     23 
     24#gber_wrapper a { color: <?= $linkColor ?>; font-family: verdana,arial,tahoma,sans-serif } 
     25#gber_wrapper a:hover { color: <?= $linkHoverColor ?>; } 
     26 
     27 
     28.gber_post div { font-size: 12px; } 
  • google-buzz-er/trunk/google-buzz-er-content.php

    r206731 r223014  
    44Plugin URI: http://workshop.rs/2010/02/google-buzz-er-google-buzz-for-wordpress/ 
    55Description: Displaying posts from Google Buzz. 
    6 Version: 1.3 
     6Version: 1.4 
    77Author: Ivan Lazarevic 
    88Author URI: http://www.workshop.rs 
     
    6767         
    6868        $xml = @simplexml_load_file($this->T_URL.$user."/public/posted"); 
     69         
     70        // solution by huangda1982 [ http://huangda1982.xtreemhost.com/ ] 
    6971        if(!$xml) { 
     72            $url = $this->T_URL.$user."/public/posted"; 
     73            $curl = curl_init( $url ); 
     74            ob_start(); // use output buffering so the contents donÕt get sent directly to the browser 
     75            curl_exec( $curl ); // get the file 
     76            curl_close( $curl ); 
     77            $data = @ob_get_contents(); // save the contents of the file into $file 
     78            ob_end_clean(); // turn output buffering back off 
     79            $xml = @simplexml_load_string($data);            
     80        } 
     81         
     82        if(!$xml){ 
    7083            echo "Error loading Google Buzz data!"; 
    7184            return false; 
    7285        } 
    73  
     86             
    7487        $imgWidth   = is_numeric(get_option('gber_post_image_width')) ? get_option('gber_post_image_width') : 150;   
    7588        $imgShow    = get_option('gber_post_image') ? get_option('gber_post_image') : false; 
     
    106119 
    107120        /* sort statuses array by timestamp */ 
     121        if(count($sts) > 0){ 
    108122            $tmp = $sts; 
    109123            foreach ($tmp as $key=>$row) { 
     
    114128         
    115129            $sts = $tmp; 
     130        } 
    116131        /* end sorting */    
    117132         
  • google-buzz-er/trunk/options.php

    r206731 r223014  
    4343         
    4444        <div class="formrow">        
    45             <label for="number">Header Title:</label> 
     45            <label for="title">Header Title:</label> 
    4646            <input type="text" id="title" name="gber_title" class="gber_input" size=25 value="<?php echo get_option('gber_title'); ?>" /> 
    4747            <span class="desc">Your name by default</span>                               
     
    5656 
    5757        <div class="formrow">        
    58             <label for="number">Posts Images Width:</label> 
     58            <label for="images_width">Posts Images Width:</label> 
    5959            <input type="text" id="images_width" name="gber_post_image_width" class="gber_input" size=5 value="<?php echo get_option('gber_post_image_width'); ?>" /> 
    6060            <span class="desc">without px (150 by default)</span>                                
    6161        </div>   
     62         
     63        <div class="formrow">        
     64            <label for="box_bg_color">Box bg color:</label> 
     65            <input type="text" id="box_bg_color" name="gber_box_bg_color" class="gber_input" size=7 value="<?php echo get_option('gber_box_bg_color'); ?>" /> 
     66            <span class="desc">Background color of Google Buzz ER box (#FFFFFF by default)</span>                                
     67        </div>           
     68         
     69        <div class="formrow">        
     70            <label for="post_bg_color">Post bg color:</label> 
     71            <input type="text" id="post_bg_color" name="gber_post_bg_color" class="gber_input" size=7 value="<?php echo get_option('gber_post_bg_color'); ?>" /> 
     72            <span class="desc">Background color of Google Buzz ER post (#F3F3F3 by default)</span>                               
     73        </div>   
     74         
     75        <div class="formrow">        
     76            <label for="text_color">Text color:</label> 
     77            <input type="text" id="text_color" name="gber_text_color" class="gber_input" size=7 value="<?php echo get_option('gber_text_color'); ?>" /> 
     78            <span class="desc">Color of Google Buzz ER post text (#333333 by default)</span>                                 
     79        </div>       
     80         
     81        <div class="formrow">        
     82            <label for="link_color">Links color:</label> 
     83            <input type="text" id="link_color" name="gber_link_color" class="gber_input" size=7 value="<?php echo get_option('gber_link_color'); ?>" /> 
     84            <span class="desc">Color of Google Buzz ER post links (#0AB9E5 by default)</span>                                
     85        </div>   
     86         
     87        <div class="formrow">        
     88            <label for="link_color">Links hover color:</label> 
     89            <input type="text" id="link_hover_color" name="gber_link_hover_color" class="gber_input" size=7 value="<?php echo get_option('gber_link_hover_color'); ?>" /> 
     90            <span class="desc">Color of Google Buzz ER post links hover (#0AB9E5 by default)</span>                              
     91        </div>       
     92         
     93        <div class="formrow">        
     94            <label for="time_color">Time color:</label> 
     95            <input type="text" id="time_color" name="gber_time_color" class="gber_input" size=7 value="<?php echo get_option('gber_time_color'); ?>" /> 
     96            <span class="desc">Color of Google Buzz ER post time (#999999 by default)</span>                                 
     97        </div>           
     98         
     99        <div class="formrow">        
     100            <label>Hide GB logos:</label> 
     101            <?php if(get_option('gber_logo_images') != ""){ $ch = "checked=''"; } else { $ch = ''; }?> 
     102            <input type="checkbox" id="images" name="gber_logo_images" <?php echo $ch ?> /> 
     103            <span class="desc">Check to hide Google Buzz logo images from Google Buzz Er box</span>                  
     104        </div>               
    62105                 
    63106        <input type="hidden" name="action" value="update" /> 
    64         <input type="hidden" name="page_options" value="gber_username,gber_number,gber_title,gber_post_image,gber_post_image_width" /> 
     107        <input type="hidden" name="page_options" value="gber_username,gber_number,gber_title,gber_post_image,gber_post_image_width,gber_box_bg_color,gber_post_bg_color,gber_text_color,gber_link_color,gber_link_hover_color,gber_time_color,gber_logo_images" /> 
    65108         
    66109        <input type="submit" class="button-primary" value="Save Settings" /> 
Note: See TracChangeset for help on using the changeset viewer.