Changeset 1311817
- Timestamp:
- 12/18/2015 05:37:46 PM (10 years ago)
- Location:
- fb-recommend/trunk
- Files:
-
- 7 edited
-
FB-recommend.php (modified) (6 diffs)
-
like-fb.css (modified) (2 diffs)
-
options.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
-
screenshot-1.png (modified) (previous)
-
screenshot-2.png (modified) (previous)
-
support.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fb-recommend/trunk/FB-recommend.php
r1310915 r1311817 1 1 <?php 2 2 /* 3 Plugin Name: Like FB & Google+ button3 Plugin Name: Facebook Like and Google+ buttons 4 4 Plugin URI: https://wordpress.org/plugins/fb-recommend/ 5 5 Description: A simple plugin wich integrate FB like button or/and google+ button on every post you desire. 6 Version: 3.0. 06 Version: 3.0.1 7 7 Author: Daniel Havrince 8 8 Author URI: http://www.danielisah.com … … 29 29 $popup_fb_page = "popup_fb_page"; 30 30 $popup_delay = "popup_delay"; 31 $fb_popup_box = "fb_popup_box";32 31 $page_not_like_box = "page_not_like_box"; 33 32 session_start(); … … 95 94 96 95 function 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' ); 98 97 } 99 98 … … 118 117 function fb_like_meta_box_add() 119 118 { 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' ); 122 121 123 122 } … … 134 133 <p> 135 134 <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> 138 137 </p> 139 138 <?php … … 161 160 add_action( 'save_post', 'fb_like_meta_box_save' ); 162 161 add_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 168 162 add_action( 'admin_menu', 'like_fb_menu' ); 169 163 add_filter( "plugin_action_links_$plugin", 'inline_settings_link' ); -
fb-recommend/trunk/like-fb.css
r1310915 r1311817 3 3 Created on : Dec 16, 2015, 13:10:28 PM 4 4 Author : Daniel 5 Description: 6 Purpose of the stylesheet follows. 5 Description: Facebook like and google+ button style css 7 6 */ 8 7 … … 12 11 13 12 fieldset{ 14 border: 1px solid blue;13 border: 1px solid red; 15 14 padding:5px; 15 background: rgb(238,238,238); 16 background: -moz-linear-gradient(top, rgba(238,238,238,1) 26%, rgba(204,204,204,1) 100%); 17 background: -webkit-linear-gradient(top, rgba(238,238,238,1) 26%,rgba(204,204,204,1) 100%); 18 background: linear-gradient(to bottom, rgba(238,238,238,1) 26%,rgba(204,204,204,1) 100%); 19 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); 20 16 21 } 17 22 .like-fb-left{ 18 width: 60%;23 width:59%; 19 24 float:left; 20 25 } 21 26 .like-fb-right{ 22 width: 30%;27 width:40%; 23 28 float:right; 24 29 } 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 1 1 <?php 2 global $fb_opt_name,$gp_opt_name,$popup_fb_page,$popup_delay,$ fb_popup_box,$page_not_like_box;2 global $fb_opt_name,$gp_opt_name,$popup_fb_page,$popup_delay,$page_not_like_box; 3 3 4 4 if(isset($_POST["submit"])){ … … 7 7 $gplus_show = $_POST[$gp_opt_name]; 8 8 $popup_fb_page_show = $_POST[$popup_fb_page]; 9 $fb_popup_box_show = $_POST[$fb_popup_box];10 9 $popup_delay_show = $_POST[$popup_delay]; 11 10 $page_not_like_box_show = $_POST[$page_not_like_box]; … … 14 13 if (is_numeric ($popup_delay_show)){ 15 14 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); 17 16 } 18 17 else{ … … 21 20 } 22 21 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); 24 23 } 25 24 … … 31 30 $popup_fb_page_show = get_option($popup_fb_page); 32 31 $popup_delay_show = get_option($popup_delay); 33 $fb_popup_box_show = get_option($fb_popup_box);34 32 $page_not_like_box_show = get_option($page_not_like_box); 35 33 } 36 34 37 function updateField($fb_show,$gplus_show,$popup_fb_page_show,$popup_delay_show,$ fb_popup_box_show,$page_not_like_box_show=NULL){35 function updateField($fb_show,$gplus_show,$popup_fb_page_show,$popup_delay_show,$page_not_like_box_show=NULL){ 38 36 39 37 global $fb_opt_name,$gp_opt_name,$popup_fb_page,$popup_delay,$fb_popup_box,$page_not_like_box; … … 43 41 update_option($popup_fb_page, $popup_fb_page_show); 44 42 update_option($popup_delay, $popup_delay_show); 45 update_option($fb_popup_box, $fb_popup_box_show);46 43 update_option($page_not_like_box, $page_not_like_box_show); 47 44 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>'; 49 46 } 50 47 … … 52 49 <div class="wrap"> 53 50 <?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 ♦ This plugin adds facebook like and google plus buttons to your website.<br></br> 56 ♦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 ♦You can add here the posts you don't want social buttons(one on each row).</span> 58 58 59 60 </div> 59 61 <div class="like-fb-left"> 60 62 <fieldset> 61 63 <legend>Settings</legend> 62 64 <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'":""; ?> /> <span> ShowFacebook Like Button </span>65 <br /> <br />66 <input type="checkbox" name="<?php echo $gp_opt_name; ?>" <?php echo $gplus_show?"checked='checked'":""; ?> /> <span> ShowGoogle+ 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'":""; ?> /> <span>Enable Facebook Like Button </span> 67 <br /> 68 <input type="checkbox" name="<?php echo $gp_opt_name; ?>" <?php echo $gplus_show?"checked='checked'":""; ?> /> <span>Enable Google+ Button </span> 69 <br /> 68 70 <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> 72 74 73 75 </div> -
fb-recommend/trunk/readme.txt
r1310915 r1311817 2 2 Contributors: dannielph 3 3 Donate 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.04 Tags: facebook, facebook like, light like buttons, social share, FB-recommend, recommend button, like buton, google+, google plus button, simple share. 5 Requires at least: 3.5 6 6 Tested up to: 4.4 7 7 Stable tag: trunk 8 8 9 A simple plugin wich integrate FACEBOOK like button or google+ button on every post you desire.9 A simple plugin wich integrate FACEBOOK like button or/and google+ button on every post you want on your blog 10 10 11 11 == Description == 12 12 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. 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 usual share buttons at the end of every article.<br>,/br> 14 Facebook 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. 15 Also when you add an blog post you can select if you want share buttons or not in that post. 16 </br> 15 17 You cand find the plugin working on <a href="http://www.danielisah.com" target="_blank">danielisah.com blog</a> 16 18 As simple as possible. … … 23 25 1. Upload `FB-recommend` folder to the `/wp-content/plugins/` directory. 24 26 2. Activate the plugin through the 'Plugins' menu in WordPress 25 3. Go to Wp-admin/Settings/F B-recommendand set it up.27 3. Go to Wp-admin/Settings/Facebook Like and Google+ buttons and set it up. 26 28 4. Start blogging and make useful content. 27 29 28 30 == Screenshots == 29 31 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. 32 1. Share buttons in action. 33 2. Options for Facebook Like and Google+. 34 3. In article post settings. 32 35 33 36 == Changelog == 37 = 3.0.0 = 38 * Bug fixes and new admin panel. 39 34 40 = 3.0.0 = 35 41 * After 5years a new plugin arrives. Facebook and Google+ buttons. Working options menu. -
fb-recommend/trunk/support.php
r1310915 r1311817 10 10 </form> 11 11 <br /> 12 <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwordpress.org%2Fplugins%2Ffb-recommend%2F&width&layout=standard&action=like&show_faces=true&share=true&height=80&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&width&layout=standard&action=like&show_faces=false&share=true&height=33&appId=422117524663089" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:33px;" allowTransparency="true"></iframe> 15 13 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 24 17 </fieldset> 25 18 <fieldset>
Note: See TracChangeset
for help on using the changeset viewer.