WordPress.org

Plugin Directory

Changeset 1080717


Ignore:
Timestamp:
02/02/15 09:05:28 (3 years ago)
Author:
Simivar
Message:

1.0.5 version

Location:
gl-facebook-likebox
Files:
27 added
11 edited

Legend:

Unmodified
Added
Removed
  • gl-facebook-likebox/trunk/css/admin.css

    r1080664 r1080717  
    55Author: Krystian 'Simivar' Marcisz 
    66Author URI: http://www.simivar.net/ 
    7 Version: 1.0.4 
     7Version: 1.0.5 
    88Text Domain: glfl 
    99Domain Path: /lang/ 
  • gl-facebook-likebox/trunk/css/style.css

    r1080664 r1080717  
    55Author: Krystian 'Simivar' Marcisz 
    66Author URI: http://www.simivar.net/ 
    7 Version: 1.0.4 
     7Version: 1.0.5 
    88Text Domain: glfl 
    99Domain Path: /lang/ 
  • gl-facebook-likebox/trunk/gl-facebook-likebox.php

    r1080664 r1080717  
    66Author: Krystian 'Simivar' Marcisz 
    77Author URI: http://www.simivar.net/ 
    8 Version: 1.0.4 
     8Version: 1.0.5 
    99Text Domain: glfl 
    1010Domain Path: /lang/ 
     
    1212 
    1313## Define author and plugin version 
    14 define('GLFL_VERSION', '1.0.3'); 
     14define('GLFL_VERSION', '1.0.5'); 
    1515define('GLFL_AUTHOR', 'Krystian "Simivar" Marcisz'); 
    1616 
     
    2626    $position = $options['position']; 
    2727    $icon = $options['icon']; 
     28    $fromtop = $options['fromtop']; 
    2829     
    2930    if (!is_array( $options )) 
     
    3536            'header' => 'false', 
    3637            'position' => 'right', 
    37             'icon' => '0' 
     38            'icon' => '0', 
     39            'fromtop' => '10%', 
    3840        ); 
    3941         
    4042    ## Our 'widget' content 
    41     echo '<div id="facebook-'.$position.'">'; 
     43    echo '<div id="facebook-'.$position.'" style="top: '.$fromtop.';">'; 
    4244    echo '<div id="facebook-icon" class="icon_'.$icon.'"></div>'; 
    4345    echo '<div id="facebook-app">'; 
     
    5254## Take a URL to plugin dir 
    5355$pluginurl = WP_PLUGIN_URL . '/' . $plugin_directory . '/'; 
     56 
     57if ( !function_exists( 'glfl_add_settings_link' ) ) :  
     58## Add settings URL to plugins page 
     59function glfl_add_settings_link( $links ) { 
     60    $settings_link = '<a href="options-general.php?page=glfl">' . __( 'Settings' ) . '</a>'; 
     61    array_push( $links, $settings_link ); 
     62    return $links; 
     63} 
     64$plugin = plugin_basename( __FILE__ ); 
     65add_filter( "plugin_action_links_" . plugin_basename(__FILE__), 'glfl_add_settings_link' ); 
     66endif; 
    5467 
    5568if ( !function_exists( 'glfl_jqueryinit' ) ) : 
     
    6780function glfl_AdminStyles(){ 
    6881    global $pluginurl; 
    69     wp_register_style( "glfl-adminstyle",  $pluginurl . 'css/admin.css', null, '1.0.3');  
     82    wp_register_style( "glfl-adminstyle",  $pluginurl . 'css/admin.css', null, '1.0.5');  
    7083    wp_enqueue_style( 'glfl-adminstyle' ); 
    7184} 
     
    7689function glfl_styles(){ 
    7790    global $pluginurl; 
    78     wp_register_style( "glfl-styles",  $pluginurl . 'css/style.css', null, '1.0.3');  
     91    wp_register_style( "glfl-styles",  $pluginurl . 'css/style.css', null, '1.0.5');  
    7992    wp_enqueue_style( 'glfl-styles' ); 
    8093} 
     
    102115            'header' => 'false', 
    103116            'position' => 'right', 
    104             'icon' => '0' 
     117            'icon' => '0', 
     118            'fromtop' => '10%', 
    105119        ); 
    106120         
     
    114128        $options['header'] = strip_tags(stripslashes($_POST['header'])); 
    115129        $options['position'] = strip_tags(stripslashes($_POST['position'])); 
     130        $options['fromtop'] = strip_tags(stripcslashes($_POST['fromtop'])); 
    116131        update_option("glfl_show", $options); 
    117132    } 
     
    130145    $position = $options['position']; 
    131146    $icon = $options['icon']; 
     147    $fromtop = htmlspecialchars($options['fromtop'], ENT_QUOTES); 
    132148?> 
    133149<div class="wrap glfl"> 
  • gl-facebook-likebox/trunk/js/script.js

    r1080664 r1080717  
    55Author: Krystian 'Simivar' Marcisz 
    66Author URI: http://www.simivar.net/ 
    7 Version: 1.0.4 
     7Version: 1.0.5 
    88Text Domain: glfl 
    99Domain Path: /lang/ 
  • gl-facebook-likebox/trunk/lang/glfl-en_EN.po

    r1079642 r1080717  
    44"Report-Msgid-Bugs-To: \n" 
    55"POT-Creation-Date: 2011-01-16 21:55+0100\n" 
    6 "PO-Revision-Date: 2015-01-31 17:08+0100\n" 
     6"PO-Revision-Date: 2015-02-02 09:26+0100\n" 
    77"Last-Translator: Krystian Marcisz <simivar@gmail.com>\n" 
    88"Language-Team: Krystian 'simivar' Marcisz <simivar@gmail.com>\n" 
     
    1313"X-Poedit-Basepath: ..\n" 
    1414"Language: en_PL\n" 
    15 "X-Generator: Poedit 1.6.9\n" 
     15"X-Generator: Poedit 1.7.4\n" 
    1616"X-Poedit-SearchPath-0: ..\n" 
    1717 
     
    100100msgstr "" 
    101101 
     102#: ../gl-facebook-likebox/php/main.php:51 
     103msgid "Distance from the top" 
     104msgstr "" 
     105 
     106#: ../gl-facebook-likebox/php/main.php:53 
     107msgid "In pixels, percents: see <a href=\"%d\">CSS top property</a>" 
     108msgstr "" 
     109 
    102110#: ../gl-facebook-likebox/php/main.php:40 
    103111msgid "Update settings" 
  • gl-facebook-likebox/trunk/lang/glfl-pl_PL.po

    r1079642 r1080717  
    44"Report-Msgid-Bugs-To: \n" 
    55"POT-Creation-Date: 2011-01-16 21:55+0100\n" 
    6 "PO-Revision-Date: 2015-01-31 17:08+0100\n" 
     6"PO-Revision-Date: 2015-02-02 09:26+0100\n" 
    77"Last-Translator: Krystian Marcisz <simivar@gmail.com>\n" 
    88"Language-Team: Krystian 'simivar' Marcisz <simivar@gmail.com>\n" 
     
    1313"X-Poedit-Basepath: ..\n" 
    1414"Language: en_PL\n" 
    15 "X-Generator: Poedit 1.6.9\n" 
     15"X-Generator: Poedit 1.7.4\n" 
    1616"X-Poedit-SearchPath-0: ..\n" 
    1717 
     
    100100msgstr "Wyświetlić facebook'owy header Likeboxa?" 
    101101 
     102#: ../gl-facebook-likebox/php/main.php:51 
     103msgid "Distance from the top" 
     104msgstr "Odległość od góry strony" 
     105 
     106#: ../gl-facebook-likebox/php/main.php:53 
     107msgid "In pixels, percents: see <a href=\"%d\">CSS top property</a>" 
     108msgstr "W pikselach, procentach itp. - zobacz <a href=\"%d\">właściwość CSS <i>top</i></a>" 
     109 
    102110#: ../gl-facebook-likebox/php/main.php:40 
    103111msgid "Update settings" 
  • gl-facebook-likebox/trunk/php/main.php

    r1080664 r1080717  
    55Author: Krystian 'Simivar' Marcisz 
    66Author URI: http://www.simivar.net/ 
    7 Version: 1.0.4 
     7Version: 1.0.5 
    88Text Domain: glfl 
    99Domain Path: /lang/ 
     
    4747                    &nbsp;<input type="radio" id="header" <?php if($header == 'false') echo 'checked="checked"'; ?> name="header" value="false" /><?php _e('no', 'glfl'); ?></td> 
    4848          <td class="extra small"><?php _e('Show the facebook header of Likebox?', 'glfl'); ?></td> 
     49        </tr> 
     50        <tr> 
     51          <td><label for="fromtop"><?php _e('Distance from the top', 'glfl');?></label></td> 
     52          <td><input type="text" id="fromtop" name="fromtop" value="<?php echo $fromtop ?>" /></td> 
     53          <td class="extra small"><?php printf( __('In pixels, percents: see <a href=\"%d\">CSS top property</a>', 'glfl'), 'http://www.w3schools.com/cssref/pr_pos_top.asp' ); ?></td> 
    4954        </tr> 
    5055        <tr> 
  • gl-facebook-likebox/trunk/php/side.php

    r1080664 r1080717  
    55Author: Krystian 'Simivar' Marcisz 
    66Author URI: http://www.simivar.net/ 
    7 Version: 1.0.4 
     7Version: 1.0.5 
    88Text Domain: glfl 
    99Domain Path: /lang/ 
     
    2424        <li><a href="http://facebookicon.net/"><?php _e('FacebookIcon.net for facebook icons', 'glfl'); ?></a></li> 
    2525        <li><a href="http://developers.facebook.com/docs/reference/plugins/like-box/"><?php _e('Facebook for LikeBox code', 'glfl'); ?></a></li> 
    26         <li><a href="http://jquery.com/"><?php _e('jQuery team for jQuery 1.4.4', 'glfl'); ?></a></li> 
     26        <li><a href="http://jquery.com/"><?php _e('jQuery team for jQuery', 'glfl'); ?></a></li> 
    2727    </ul> 
    2828</div> 
  • gl-facebook-likebox/trunk/readme.txt

    r1080664 r1080717  
    55Requires at least: 2.5 
    66Tested up to: 4.1 
    7 Stable tag: 1.0.4 
     7Stable tag: 1.0.5 
    88License: GPLv2 
    99 
     
    2828 2. *Show faces/stream/header*: Plugin have to display faces/stream/header? 
    2929 2. *Choose icon*: Choose one of six avaible icons. 
     30 2. *Distance from the top*: in pixels or in percents 
    3031 
    3132== Screenshots == 
     
    4243If widget is not showing, when you have mouse over it, open gl-facebook-likebox.php and find `if ( version_compare( get_bloginfo( 'version' ) , '3.1' , '<' ) ){` and `}` near lines 59-64. Do not remove lines between these. 
    4344 
    44 = From which country is author comes? = 
    45 Simivar is from beatiful Poland.  
     45== Changelog == 
    4646 
    47 == Changelog == 
     47= 1.0.5 = 
     48* New option (distance from the top) 
    4849 
    4950= 1.0.4 = 
     
    6566== Upgrade Notice ==  
    6667 
     68= 1.0.5 = 
     69* New option (distance from the top) 
     70 
    6771= 1.0.4 = 
    6872* It works now like it used to work, fixed bug with jQuery 
Note: See TracChangeset for help on using the changeset viewer.