Plugin Directory

Changeset 1311817


Ignore:
Timestamp:
12/18/2015 05:37:46 PM (10 years ago)
Author:
dannielph
Message:

3.0.1 update

Location:
fb-recommend/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • fb-recommend/trunk/FB-recommend.php

    r1310915 r1311817  
    11<?php
    22/*
    3 Plugin Name: Like FB & Google+ button
     3Plugin Name: Facebook Like and Google+ buttons
    44Plugin URI: https://wordpress.org/plugins/fb-recommend/
    55Description: A simple plugin wich integrate FB like button or/and google+ button on every post you desire.
    6 Version: 3.0.0
     6Version: 3.0.1
    77Author: Daniel Havrince
    88Author URI: http://www.danielisah.com
     
    2929$popup_fb_page     = "popup_fb_page";
    3030$popup_delay       = "popup_delay";
    31 $fb_popup_box      = "fb_popup_box";
    3231$page_not_like_box    = "page_not_like_box";
    3332session_start();
     
    9594
    9695function like_fb_menu() {
    97     add_options_page( 'Like FB Plugin Options', 'Like FB & G+ Options ', 'manage_options', 'like-fb-option', 'like_fb_plugin_options' );
     96    add_options_page( 'Like FB Plugin Options', 'Facebook Like and Google+ buttons', 'manage_options', 'like-fb-option', 'like_fb_plugin_options' );
    9897}
    9998
     
    118117function fb_like_meta_box_add()
    119118{
    120     add_meta_box( 'my-meta-box-id', 'Like-FB', 'meta_box_fb_like', 'post', 'normal', 'high' );
    121     add_meta_box( 'my-meta-box-id', 'Like-FB', 'meta_box_fb_like', 'page', 'normal', 'high' );
     119    add_meta_box( 'my-meta-box-id', 'Facebook Like and Google+ buttonss', 'meta_box_fb_like', 'post', 'normal', 'high' );
     120    add_meta_box( 'my-meta-box-id', 'Facebook Like and Google+ buttons', 'meta_box_fb_like', 'page', 'normal', 'high' );
    122121
    123122}
     
    134133    <p>
    135134        <input type="checkbox" id="meta_box_fb_like_check" name="meta_box_fb_like_check" <?php checked( $check, 'on' ); ?> />
    136         <label for="meta_box_fb_like_check">Show Facebook & Goggle+ like button </label>
    137         <a href="options-general.php?page=like-fb-option" style="float:right">Advance Settings</a>
     135        <label for="meta_box_fb_like_check">Enable Social buttons on this post</label>
     136        <a href="options-general.php?page=like-fb-option" style="float:right">More settings</a>
    138137    </p>
    139138    <?php
     
    161160add_action( 'save_post', 'fb_like_meta_box_save' );
    162161add_filter('the_content', 'like_fb');
    163 if(get_option($fb_popup_box) && !isset($_COOKIE['show_fb_popup_box'])){
    164     add_action('wp_enqueue_scripts', 'fancybox_scripts');
    165 }
    166 add_action('wp_footer', 'popup_box');
    167 
    168162add_action( 'admin_menu', 'like_fb_menu' );
    169163add_filter( "plugin_action_links_$plugin", 'inline_settings_link' );
  • fb-recommend/trunk/like-fb.css

    r1310915 r1311817  
    33    Created on : Dec 16, 2015, 13:10:28 PM
    44    Author     : Daniel
    5     Description:
    6         Purpose of the stylesheet follows.
     5    Description: Facebook like and google+ button style css
    76*/
    87
     
    1211
    1312fieldset{
    14        border: 1px solid blue;
     13       border: 1px solid red;
    1514       padding:5px;
     15background: rgb(238,238,238);
     16background: -moz-linear-gradient(top,  rgba(238,238,238,1) 26%, rgba(204,204,204,1) 100%);
     17background: -webkit-linear-gradient(top,  rgba(238,238,238,1) 26%,rgba(204,204,204,1) 100%);
     18background: linear-gradient(to bottom,  rgba(238,238,238,1) 26%,rgba(204,204,204,1) 100%);
     19filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 );
     20
    1621    }
    1722.like-fb-left{
    18     width:60%;
     23    width:59%;
    1924    float:left;
    2025}
    2126.like-fb-right{
    22     width:30%;
     27    width:40%;
    2328    float:right;
    2429}
     30.like-fb-center{
     31    width:99%;
     32    float:center;
     33    border: 1px solid blue;
     34    padding:5px;
     35    background-image: url("color-bg.jpg");
     36    background-size: cover;
     37    background-position: center;
     38}
  • fb-recommend/trunk/options.php

    r1310915 r1311817  
    11<?php
    2 global $fb_opt_name,$gp_opt_name,$popup_fb_page,$popup_delay,$fb_popup_box,$page_not_like_box;
     2global $fb_opt_name,$gp_opt_name,$popup_fb_page,$popup_delay,$page_not_like_box;
    33
    44if(isset($_POST["submit"])){
     
    77    $gplus_show             =  $_POST[$gp_opt_name];
    88    $popup_fb_page_show     =  $_POST[$popup_fb_page];
    9     $fb_popup_box_show      =  $_POST[$fb_popup_box];
    109    $popup_delay_show       =  $_POST[$popup_delay];
    1110    $page_not_like_box_show    =  $_POST[$page_not_like_box];
     
    1413        if (is_numeric ($popup_delay_show)){
    1514           
    16             updateField($fb_show,$gplus_show,$popup_fb_page_show,$popup_delay_show,$fb_popup_box_show,$page_not_like_box_show);
     15            updateField($fb_show,$gplus_show,$popup_fb_page_show,$popup_delay_show,$page_not_like_box_show);
    1716        }
    1817        else{
     
    2120    }
    2221    else{
    23         updateField($fb_show,$gplus_show,$popup_fb_page_show,$popup_delay_show,$fb_popup_box_show,$page_not_like_box_show);
     22        updateField($fb_show,$gplus_show,$popup_fb_page_show,$popup_delay_show,$page_not_like_box_show);
    2423    }
    2524   
     
    3130    $popup_fb_page_show  = get_option($popup_fb_page);
    3231    $popup_delay_show    = get_option($popup_delay);
    33     $fb_popup_box_show   = get_option($fb_popup_box);
    3432    $page_not_like_box_show = get_option($page_not_like_box);
    3533}
    3634
    37 function updateField($fb_show,$gplus_show,$popup_fb_page_show,$popup_delay_show,$fb_popup_box_show,$page_not_like_box_show=NULL){
     35function updateField($fb_show,$gplus_show,$popup_fb_page_show,$popup_delay_show,$page_not_like_box_show=NULL){
    3836   
    3937    global $fb_opt_name,$gp_opt_name,$popup_fb_page,$popup_delay,$fb_popup_box,$page_not_like_box;
     
    4341    update_option($popup_fb_page, $popup_fb_page_show);
    4442    update_option($popup_delay, $popup_delay_show);
    45     update_option($fb_popup_box, $fb_popup_box_show);
    4643    update_option($page_not_like_box, $page_not_like_box_show);
    4744
    48     echo '<div id="message" class="updated fade"><p>Options Updates</p></div>';
     45    echo '<div id="message" class="updated fade"><p>Settings updated</p></div>';
    4946}
    5047
     
    5249<div class="wrap">
    5350    <?php screen_icon(); ?>
    54     <h2>Like FB & Google+ button Settings</h2>
    55     <br />
    56     <br />
    57 <img src="<?php echo site_url() ?>/wp-content/plugins/fb-recommend/logo-gb.png" alt="Like FB & Google+ button " title="Like FB & Google+ button" />
     51    <h2>Facebook Like and Google+ buttons</h2>
     52 <div class="like-fb-center">
     53</br>
     54<span style="background-color: #FFFFFF">
     55&diams; This plugin adds facebook like and google plus buttons to your website.<br></br>
     56&diams;When you write a post on your blog you can select if you want the social buttons to appear on that page.<br></br>
     57&diams;You can add here the posts you don't want social buttons(one on each row).</span>
    5858
     59
     60</div>
    5961    <div class="like-fb-left">
    6062        <fieldset>
    6163            <legend>Settings</legend>
    6264            <form id="like_fb" method="post" action="">
    63                 <h3>Setting Like FB & Google+ button Button</h3> 
    64                 <input type="checkbox" name="<?php echo $fb_opt_name; ?>" <?php echo $fb_show?"checked='checked'":""; ?> /> &nbsp; <span> Show Facebook Like Button </span>
    65                 <br /><br />
    66                 <input type="checkbox" name="<?php echo $gp_opt_name; ?>" <?php echo $gplus_show?"checked='checked'":""; ?> /> &nbsp; <span> Show Google+ Button </span>
    67                 <br /><br />
     65                <h3>Facebook Like and Google+ buttons Settings</h3> 
     66                <input type="checkbox" name="<?php echo $fb_opt_name; ?>" <?php echo $fb_show?"checked='checked'":""; ?> /> &nbsp; <span>Enable Facebook Like Button </span>
     67                <br />
     68                <input type="checkbox" name="<?php echo $gp_opt_name; ?>" <?php echo $gplus_show?"checked='checked'":""; ?> /> &nbsp; <span>Enable Google+ Button </span>
     69                <br />
    6870                <div id="page_not_like_box">
    69                     Add page url in which page you don't want to show the Facebook & Google+ button<br/>
    70 <p>*add one url on each row</p>
    71                     <textarea rows="5" cols="50" name='<?php echo $page_not_like_box;?>'><?php echo $page_not_like_box_show;?></textarea>
     71<p>Add URL to skip showing social buttons</p>
     72
     73                    <textarea rows="5" cols="70" name='<?php echo $page_not_like_box;?>'><?php echo $page_not_like_box_show;?></textarea>
    7274
    7375                </div>
  • fb-recommend/trunk/readme.txt

    r1310915 r1311817  
    22Contributors: dannielph
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7PN3TMCN5TWR6
    4 Tags: facebook, recommend, FB-recommend, recommend button, like buton, google+, google plus button, simple share,
    5 Requires at least: 4.0
     4Tags: facebook, facebook like, light like buttons, social share, FB-recommend, recommend button, like buton, google+, google plus button, simple share.
     5Requires at least: 3.5
    66Tested up to: 4.4
    77Stable tag: trunk
    88
    9 A simple plugin wich integrate FACEBOOK like button or google+ button on every post you desire.
     9A simple plugin wich integrate FACEBOOK like button or/and google+ button on every post you want on your blog
    1010
    1111== Description ==
    1212
    13 This plugin will add a facebook LIKE button and google+ button at the top of every post/page of your wordpress blog. A light weight share plugin, with clean code, option menu to set it up easily. They are styled float on the left side, just before your content. Being so close to the content, and 1 click activation, it makes more conversion like share buttons at the end of every article.<br>
    14 This plugin has a simple options page, where you can select wich button you desire to show and you can select witch page to ignore.
     13This plugin will add a facebook LIKE button and google+ button at the top of every post/page of your wordpress blog. A light weight share plugin, with clean code, option menu to set it up easily. They are styled float on the left side, just before your content. Being so close to the content, and 1 click activation, it makes more conversion like usual share buttons at the end of every article.<br>,/br>
     14Facebook Like and Google+ has a simple options page, where you can select wich button you desire to show and you can select witch page to ignore.
     15Also when you add an blog post you can select if you want share buttons or not in that post.
     16</br>
    1517You cand find the plugin working on <a href="http://www.danielisah.com" target="_blank">danielisah.com blog</a>
    1618As simple as possible.
     
    23251. Upload `FB-recommend` folder to the `/wp-content/plugins/` directory.
    24262. Activate the plugin through the 'Plugins' menu in WordPress
    25 3. Go to Wp-admin/Settings/FB-recommend and set it up.
     273. Go to Wp-admin/Settings/Facebook Like and Google+ buttons and set it up.
    26284. Start blogging and make useful content.
    2729
    2830== Screenshots ==
    2931
    30 1. Administration area and use settings option to customize the popup delay, facebook page and other option.
    31 2. Like Fb and google+ button in a post.
     321. Share buttons in action.
     332. Options for Facebook Like and Google+.
     343. In article post settings.
    3235
    3336== Changelog ==
     37= 3.0.0 =
     38* Bug fixes and new admin panel.
     39
    3440= 3.0.0 =
    3541* After 5years a new plugin arrives. Facebook and Google+ buttons. Working options menu.
  • fb-recommend/trunk/support.php

    r1310915 r1311817  
    1010</form>
    1111        <br />
    12         <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwordpress.org%2Fplugins%2Ffb-recommend%2F&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=80&amp;appId=1451944361708609" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:80px;" allowTransparency="true"></iframe>
    13         <!-- Place this tag where you want the +1 button to render. -->
    14         <div class="g-plusone" data-size="small" data-href="https://wordpress.org/plugins/fb-recommend/"></div>
     12        <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwordpress.org%2Fplugins%2Ffb-recommend%2F&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=false&amp;share=true&amp;height=33&amp;appId=422117524663089" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:33px;" allowTransparency="true"></iframe>
    1513
    16         <!-- Place this tag after the last +1 button tag. -->
    17         <script type="text/javascript">
    18           (function() {
    19             var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    20             po.src = 'https://apis.google.com/js/plusone.js';
    21             var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    22           })();
    23         </script>
     14<p>Please support this plugin with a backlink, like or anything else that will help others find it and use it. Thank you and happy blogging</p>   
     15
     16     
    2417    </fieldset>
    2518    <fieldset>
Note: See TracChangeset for help on using the changeset viewer.