fbcomments_options

The Facebook Comments fbcomments options function.

Description

fbcomments_options(); 

Usage

  1. if ( !function_exists( 'fbcomments_options' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'facebook-comments/class-admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = fbcomments_options(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/class-admin.php  
  1. function fbcomments_options() { 
  2. $domain = get_option('siteurl'); 
  3. $domain = str_replace('http://', '', $domain); 
  4. $domain = str_replace('www.', '', $domain); 
  5. ?> 
  6. <link href="<?php echo plugins_url( 'admin.css' , __FILE__ ); ?>" rel="stylesheet" type="text/css"> 
  7. <div class="pea_admin_wrap"> 
  8. <div class="pea_admin_top"> 
  9. <h1><?php echo FBC_NAME?> <small> - <?php echo FBC_TAGLINE?></small></h1> 
  10. </div> 
  11.  
  12. <div class="pea_admin_main_wrap"> 
  13. <div class="pea_admin_main_left"> 
  14. <div class="pea_admin_signup"> 
  15. Want to know about updates to this plugin without having to log into your site every time? Want to know about other cool plugins we've made? Add your email and we'll add you to our very rare mail outs. 
  16.  
  17. <!-- Begin MailChimp Signup Form --> 
  18. <div id="mc_embed_signup"> 
  19. <form action="http://peadig.us5.list-manage2.com/subscribe/post?u=e16b7a214b2d8a69e134e5b70&id=eb50326bdf" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> 
  20. <div class="mc-field-group"> 
  21. <label for="mce-EMAIL">Email Address 
  22. </label> 
  23. <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"><button type="submit" name="subscribe" id="mc-embedded-subscribe" class="pea_admin_green">Sign Up!</button> 
  24. </div> 
  25. <div id="mce-responses" class="clear"> 
  26. <div class="response" id="mce-error-response" style="display:none"></div> 
  27. <div class="response" id="mce-success-response" style="display:none"></div> 
  28. </div> <div class="clear"></div> 
  29. </form> 
  30. </div> 
  31.  
  32. <!--End mc_embed_signup--> 
  33. </div> 
  34.  
  35. <form method="post" action="options.php" id="options"> 
  36. <?php settings_fields('fbcomments_options'); ?> 
  37. <?php $options = get_option('fbcomments');  
  38. if (!isset($options['fbml'])) {$options['fbml'] = "";} 
  39. if (!isset($options['fbns'])) {$options['fbns'] = "";} 
  40. if (!isset($options['opengraph'])) {$options['opengraph'] = "";} 
  41. if (!isset($options['html5'])) {$options['html5'] = "";} 
  42. if (!isset($options['linklove'])) {$options['linklove'] = "";} 
  43. if (!isset($options['posts'])) {$options['posts'] = "";} 
  44. if (!isset($options['pages'])) {$options['pages'] = "";} 
  45. if (!isset($options['homepage'])) {$options['homepage'] = "";} 
  46. if (!isset($options['count'])) {$options['count'] = "";} 
  47. if (!isset($options['jquery'])) {$options['jquery'] = "";} 
  48. ?> 
  49. <?php if ($options['appID']=="") { ?> 
  50. <div class="error"> 
  51. <h3 class="title">You Need to Set Up your Facebook App ID!</h3> 
  52. <table class="form-table"> 
  53. <tr valign="top"><th scope="row"><a href="https://developers.facebook.com/apps" style="text-decoration:none" target="_blank">Create an App to handle your comments</a></th> 
  54. <td><small>click <strong>+ Create New App</strong> to the top right of the page. Name the App something memorable e.g. "Comments" and give it an app namespace. Once you have it enter it here:</small><br><strong>APP ID: </strong><input id="appID" type="text" name="fbcomments[appID]" value="<?php echo $options['appID']; ?>" /><br><br> 
  55. </td> 
  56. </tr> 
  57. </table> 
  58. </div> 
  59. <?php } else { ?> 
  60. <h3 class="title">Facebook Setup</h3> 
  61. <table class="form-table"> 
  62. <tr valign="top"><th scope="row"><a href="https://developers.facebook.com/apps<?php if ($options['appID'] != "") { echo "/".$options['appID']."/summary"; } ?>" style="text-decoration:none" target="_blank">App Setup</a></th> 
  63. <td><small>to set up, choose your App and click <strong>Edit Settings</strong>. Ensure you enter <strong><?php echo $domain; ?></strong> in both "App Domains" and as the "Website with Facebook Login" URL</small></td> 
  64. </tr> 
  65. <tr valign="top"><th scope="row"><a href="https://developers.facebook.com/apps" style="text-decoration:none" target="_blank">Create a New App</a></th> 
  66. <td><small>you have already entered your App ID, but if you want to set up a new one click <strong>+ Create New App</strong> to the top right of the page. Name the App something memorable e.g. "Comments" and give it an app namespace.</small></td> 
  67. </tr> 
  68. </table> 
  69. <?php } ?> 
  70.  
  71. <h3 class="title">Moderation</h3> 
  72. <table class="form-table"> 
  73. <tr valign="top"><th scope="row"><a href="https://developers.facebook.com/tools/comments<?php if ($options['appID'] != "") { echo "?id=".$options['appID']."&view=queue"; } ?>" style="text-decoration:none" target="_blank">Comment Moderation Area</a></th> 
  74. <td><small>when you're a moderator you will see notifications within facebook.com. If you don't want to have moderator status or want to see all comments in one area, use the link to the left.</small></td> 
  75. </tr> 
  76. <tr valign="top"><th scope="row"><label for="appID">Moderators</label></th> 
  77. <td><input id="mods" type="text" name="fbcomments[mods]" value="<?php echo $options['mods']; ?>" size="50" /><br><small>By default, all admins to the App ID can moderate comments. To add moderators, enter each Facebook Profile ID by a comma <strong>without spaces</strong>. To find your Facebook User ID, click <a href="https://developers.facebook.com/tools/explorer/?method=GET&path=me" target="blank">here</a> where you will see your own. To view someone else's, replace "me" with their username in the input provided</small></td> 
  78. </tr> 
  79. </table> 
  80.  
  81.  
  82. <h3 class="title">Main Settings</h3> 
  83. <table class="form-table"> 
  84. <?php if ($options['appID']!="") { ?> 
  85. <tr valign="top"><th scope="row"><label for="appID">Facebook App ID</label></th> 
  86. <td><input id="appID" type="text" name="fbcomments[appID]" value="<?php echo $options['appID']; ?>" /></td> 
  87. </tr> 
  88. <?php } ?> 
  89. <tr valign="top"><th scope="row"><label for="fbml">Enable FBML</label></th> 
  90. <td><input id="fbml" name="fbcomments[fbml]" type="checkbox" value="on" <?php checked('on', $options['fbml']); ?> /> <small>only disable this if you already have XFBML enabled elsewhere</small></td> 
  91. </tr> 
  92. <tr valign="top"><th scope="row"><label for="fbns">Use Facebook NameServer</label></th> 
  93. <td><input id="fbns" name="fbcomments[fbns]" type="checkbox" value="on" <?php checked('on', $options['fbml']); ?> /> <small>only enable this if Facebook Comments do not appear</small></td> 
  94. </tr> 
  95. <tr valign="top"><th scope="row"><label for="opengraph">Use Open Graph NameServer</label></th> 
  96. <td><input id="opengraph" name="fbcomments[opengraph]" type="checkbox" value="on" <?php checked('on', $options['opengraph']); ?> /> <small>only enable this if Facebook comments are not appearing, not all information is being passed to Facebook or if you have not enabled Open Graph elsewhere within WordPress</small></td> 
  97. </tr> 
  98. <tr valign="top"><th scope="row"><label for="html5">Use HTML5</label></th> 
  99. <td><input id="html5" name="fbcomments[html5]" type="checkbox" value="on" <?php checked('on', $options['html5']); ?> /></td> 
  100. </tr> 
  101. <tr valign="top"><th scope="row"><label for="linklove">Credit</label></th> 
  102. <td><input id="credit" name="fbcomments[linklove]" type="checkbox" value="on" <?php checked('on', $options['linklove']); ?> /></td> 
  103. </tr> 
  104. </table> 
  105.  
  106. <h3 class="title">Display Settings</h3> 
  107. <table class="form-table"> 
  108. <tr valign="top"><th scope="row"><label for="posts">Singular Posts</label></th> 
  109. <td><input id="posts" name="fbcomments[posts]" type="checkbox" value="on" <?php checked('on', $options['posts']); ?> /> <small>This includes all posts, custom post types and attacments. Note that you can disable comments by post using the Facebook Comments META box whilst editing.</small></td> 
  110. </tr> 
  111. <tr valign="top"><th scope="row"><label for="pages">Pages</label></th> 
  112. <td><input id="pages" name="fbcomments[pages]" type="checkbox" value="on" <?php checked('on', $options['pages']); ?> /> <small>Note that you can disable comments by page using the Facebook Comments META box whilst editing.</small></td> 
  113. </tr> 
  114. <tr valign="top"><th scope="row"><label for="homepage">Homepage</label></th> 
  115. <td><input id="home" name="fbcomments[homepage]" type="checkbox" value="on" <?php checked('on', $options['homepage']); ?> /></td> 
  116. </tr> 
  117. <tr valign="top"><th scope="row"><label for="language">Language</label></th> 
  118. <td> 
  119. <select name="fbcomments[language]"> 
  120. <option value="af_ZA" <?php selected( $options['language'], 'af_ZA' ); ?>>Afrikaans</option> 
  121. <option value="ar_AR" <?php selected( $options['language'], 'ar_AR' ); ?>>Arabic</option> 
  122. <option value="az_AZ" <?php selected( $options['language'], 'az_AZ' ); ?>>Azerbaijani</option> 
  123. <option value="be_BY" <?php selected( $options['language'], 'be_BY' ); ?>>Belarusian</option> 
  124. <option value="bg_BG" <?php selected( $options['language'], 'bg_BG' ); ?>>Bulgarian</option> 
  125. <option value="bn_IN" <?php selected( $options['language'], 'bn_IN' ); ?>>Bengali</option> 
  126. <option value="bs_BA" <?php selected( $options['language'], 'bs_BA' ); ?>>Bosnian</option> 
  127. <option value="ca_ES" <?php selected( $options['language'], 'ca_ES' ); ?>>Catalan</option> 
  128. <option value="cs_CZ" <?php selected( $options['language'], 'cs_CZ' ); ?>>Czech</option> 
  129. <option value="cy_GB" <?php selected( $options['language'], 'cy_GB' ); ?>>Welsh</option> 
  130. <option value="da_DK" <?php selected( $options['language'], 'da_DK' ); ?>>Danish</option> 
  131. <option value="de_DE" <?php selected( $options['language'], 'de_DE' ); ?>>German</option> 
  132. <option value="el_GR" <?php selected( $options['language'], 'el_GR' ); ?>>Greek</option> 
  133. <option value="en_GB" <?php selected( $options['language'], 'en_GB' ); ?>>English (UK)</option> 
  134. <option value="en_PI" <?php selected( $options['language'], 'en_PI' ); ?>>English (Pirate)</option> 
  135. <option value="en_UD" <?php selected( $options['language'], 'en_UD' ); ?>>English (Upside Down)</option> 
  136. <option value="en_US" <?php selected( $options['language'], 'en_US' ); ?>>English (US)</option> 
  137. <option value="eo_EO" <?php selected( $options['language'], 'eo_EO' ); ?>>Esperanto</option> 
  138. <option value="es_ES" <?php selected( $options['language'], 'es_ES' ); ?>>Spanish (Spain)</option> 
  139. <option value="es_LA" <?php selected( $options['language'], 'es_LA' ); ?>>Spanish</option> 
  140. <option value="et_EE" <?php selected( $options['language'], 'et_EE' ); ?>>Estonian</option> 
  141. <option value="eu_ES" <?php selected( $options['language'], 'eu_ES' ); ?>>Basque</option> 
  142. <option value="fa_IR" <?php selected( $options['language'], 'fa_IR' ); ?>>Persian</option> 
  143. <option value="fb_LT" <?php selected( $options['language'], 'fb_LT' ); ?>>Leet Speak</option> 
  144. <option value="fi_FI" <?php selected( $options['language'], 'fi_FI' ); ?>>Finnish</option> 
  145. <option value="fo_FO" <?php selected( $options['language'], 'fo_FO' ); ?>>Faroese</option> 
  146. <option value="fr_CA" <?php selected( $options['language'], 'fr_CA' ); ?>>French (Canada)</option> 
  147. <option value="fr_FR" <?php selected( $options['language'], 'fr_FR' ); ?>>French (France)</option> 
  148. <option value="fy_NL" <?php selected( $options['language'], 'fy_NL' ); ?>>Frisian</option> 
  149. <option value="ga_IE" <?php selected( $options['language'], 'ga_IE' ); ?>>Irish</option> 
  150. <option value="gl_ES" <?php selected( $options['language'], 'gl_ES' ); ?>>Galician</option> 
  151. <option value="he_IL" <?php selected( $options['language'], 'he_IL' ); ?>>Hebrew</option> 
  152. <option value="hi_IN" <?php selected( $options['language'], 'hi_IN' ); ?>>Hindi</option> 
  153. <option value="hr_HR" <?php selected( $options['language'], 'hr_HR' ); ?>>Croatian</option> 
  154. <option value="hu_HU" <?php selected( $options['language'], 'hu_HU' ); ?>>Hungarian</option> 
  155. <option value="hy_AM" <?php selected( $options['language'], 'hy_AM' ); ?>>Armenian</option> 
  156. <option value="id_ID" <?php selected( $options['language'], 'id_ID' ); ?>>Indonesian</option> 
  157. <option value="is_IS" <?php selected( $options['language'], 'is_IS' ); ?>>Icelandic</option> 
  158. <option value="it_IT" <?php selected( $options['language'], 'it_IT' ); ?>>Italian</option> 
  159. <option value="ja_JP" <?php selected( $options['language'], 'ja_JP' ); ?>>Japanese</option> 
  160. <option value="ka_GE" <?php selected( $options['language'], 'ka_GE' ); ?>>Georgian</option> 
  161. <option value="km_KH" <?php selected( $options['language'], 'km_KH' ); ?>>Khmer</option> 
  162. <option value="ko_KR" <?php selected( $options['language'], 'ko_KR' ); ?>>Korean</option> 
  163. <option value="ku_TR" <?php selected( $options['language'], 'ku_TR' ); ?>>Kurdish</option> 
  164. <option value="la_VA" <?php selected( $options['language'], 'la_VA' ); ?>>Latin</option> 
  165. <option value="lt_LT" <?php selected( $options['language'], 'lt_LT' ); ?>>Lithuanian</option> 
  166. <option value="lv_LV" <?php selected( $options['language'], 'lv_LV' ); ?>>Latvian</option> 
  167. <option value="mk_MK" <?php selected( $options['language'], 'mk_MK' ); ?>>Macedonian</option> 
  168. <option value="ml_IN" <?php selected( $options['language'], 'ml_IN' ); ?>>Malayalam</option> 
  169. <option value="ms_MY" <?php selected( $options['language'], 'ms_MY' ); ?>>Malay</option> 
  170. <option value="nb_NO" <?php selected( $options['language'], 'nb_NO' ); ?>>Norwegian (bokmal)</option> 
  171. <option value="ne_NP" <?php selected( $options['language'], 'ne_NP' ); ?>>Nepali</option> 
  172. <option value="nl_NL" <?php selected( $options['language'], 'nl_NL' ); ?>>Dutch</option> 
  173. <option value="nn_NO" <?php selected( $options['language'], 'nn_NO' ); ?>>Norwegian (nynorsk)</option> 
  174. <option value="pa_IN" <?php selected( $options['language'], 'pa_IN' ); ?>>Punjabi</option> 
  175. <option value="pl_PL" <?php selected( $options['language'], 'pl_PL' ); ?>>Polish</option> 
  176. <option value="ps_AF" <?php selected( $options['language'], 'ps_AF' ); ?>>Pashto</option> 
  177. <option value="pt_BR" <?php selected( $options['language'], 'pt_BR' ); ?>>Portuguese (Brazil)</option> 
  178. <option value="pt_PT" <?php selected( $options['language'], 'pt_PT' ); ?>>Portuguese (Portugal)</option> 
  179. <option value="ro_RO" <?php selected( $options['language'], 'ro_RO' ); ?>>Romanian</option> 
  180. <option value="ru_RU" <?php selected( $options['language'], 'ru_RU' ); ?>>Russian</option> 
  181. <option value="sk_SK" <?php selected( $options['language'], 'sk_SK' ); ?>>Slovak</option> 
  182. <option value="sl_SI" <?php selected( $options['language'], 'sl_SI' ); ?>>Slovenian</option> 
  183. <option value="sq_AL" <?php selected( $options['language'], 'sq_AL' ); ?>>Albanian</option> 
  184. <option value="sr_RS" <?php selected( $options['language'], 'sr_RS' ); ?>>Serbian</option> 
  185. <option value="sv_SE" <?php selected( $options['language'], 'sv_SE' ); ?>>Swedish</option> 
  186. <option value="sw_KE" <?php selected( $options['language'], 'sw_KE' ); ?>>Swahili</option> 
  187. <option value="ta_IN" <?php selected( $options['language'], 'ta_IN' ); ?>>Tamil</option> 
  188. <option value="te_IN" <?php selected( $options['language'], 'te_IN' ); ?>>Telugu</option> 
  189. <option value="th_TH" <?php selected( $options['language'], 'th_TH' ); ?>>Thai</option> 
  190. <option value="tl_PH" <?php selected( $options['language'], 'tl_PH' ); ?>>Filipino</option> 
  191. <option value="tr_TR" <?php selected( $options['language'], 'tr_TR' ); ?>>Turkish</option> 
  192. <option value="uk_UA" <?php selected( $options['language'], 'uk_UA' ); ?>>Ukrainian</option> 
  193. <option value="vi_VN" <?php selected( $options['language'], 'vi_VN' ); ?>>Vietnamese</option> 
  194. <option value="zh_CN" <?php selected( $options['language'], 'zh_CN' ); ?>>Simplified Chinese (China)</option> 
  195. <option value="zh_HK" <?php selected( $options['language'], 'zh_HK' ); ?>>Traditional Chinese (Hong Kong)</option> 
  196. <option value="zh_TW" <?php selected( $options['language'], 'zh_TW' ); ?>>Traditional Chinese (Taiwan)</option> 
  197. </select> 
  198. </td> 
  199. </tr> 
  200. <tr valign="top"><th scope="row"><label for="scheme">Colour Scheme</label></th> 
  201. <td> 
  202. <select name="fbcomments[scheme]"> 
  203. <option value="light"<?php if ($options['scheme'] == 'light') { echo ' selected="selected"'; } ?>>Light</option> 
  204. <option value="dark"<?php if ($options['scheme'] == 'dark') { echo ' selected="selected"'; } ?>>Dark</option> 
  205. </select> 
  206. </td> 
  207. </tr> 
  208. <tr valign="top"><th scope="row"><label for="num">Number of Comments</label></th> 
  209. <td><input id="num" type="text" name="fbcomments[num]" value="<?php echo $options['num']; ?>" /> <small>default is <strong>5</strong></small></td> 
  210. </tr> 
  211. <tr valign="top"><th scope="row"><label for="width">Width</label></th> 
  212. <td><input id="width" type="text" name="fbcomments[width]" value="<?php echo $options['width']; ?>" /> <small>default is <strong>100%</strong>. Keep at this to ensure the comment box is responsive</small></td> 
  213. </tr> 
  214. <tr valign="top"><th scope="row"><label for="title">Title</label></th> 
  215. <td><input id="title" type="text" name="fbcomments[title]" value="<?php echo $options['title']; ?>" /> with a CSS class of <input type="text" name="fbcomments[titleclass]" value="<?php echo $options['titleclass']; ?>" /></td> 
  216. </tr> 
  217. <tr valign="top"><th scope="row"><label for="count">Show Comment Count</label></th> 
  218. <td><input id="count" name="fbcomments[count]" type="checkbox" value="on" <?php checked('on', $options['count']); ?> /></td> 
  219. </tr> 
  220. <tr valign="top"><th scope="row"><label for="countmsg">Comment text</label></th> 
  221. <td><input id="countmsg" type="text" name="fbcomments[countmsg]" value="<?php echo $options['countmsg']; ?>" /> with a CSS class of <input type="text" name="fbcomments[countstyle]" value="<?php echo $options['countstyle']; ?>" /></td> 
  222. </tr> 
  223. </table> 
  224.  
  225. <p class="submit"> 
  226. <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> 
  227. </p> 
  228. </form> 
  229.  
  230. <div class="pea_admin_box"> 
  231. <h3 class="title">Using the Shortcode</h3> 
  232. <table class="form-table"> 
  233. <tr valign="top"><td> 
  234. <p>The settings above are for automatic insertion of the Facebook Comment box.</p> 
  235. <p>You can insert the comment box manually in any page or post or template by simply using the shortcode <strong>[fbcomments]</strong>. To enter the shortcode directly into templates using PHP, enter <strong>echo do_shortcode('[fbcomments]');</strong></p> 
  236. <p>You can also use the options below to override the the settings above.</p> 
  237. <ul> 
  238. <li><strong>url</strong> - leave blank for current URL</li> 
  239. <li><strong>width</strong> - minimum must be <strong>350</strong></li> 
  240. <li><strong>title</strong> with a CSS class of <strong>titleclass</strong></li> 
  241. <li><strong>num</strong> - number of comments</li> 
  242. <li><strong>count</strong> - comment count on/off</li> 
  243. <li><strong>countmsg</strong> with a CSS class of <strong>countstyle</strong></li> 
  244. <li><strong>scheme</strong> - colour scheme: light/dark</li> 
  245. <li><strong>linklove</strong> - enter "1" to link to the plugin</li> 
  246. </ul> 
  247. <p>Here's an example of using the shortcode:<br><code>[fbcomments url="http://peadig.com/wordpress-plugins/facebook-comments/" width="375" count="off" num="3" countmsg="wonderful comments!"]</code></p> 
  248. <p>You can also insert the shortcode directly into your theme with PHP:<br><code><?php echo do_shortcode('[fbcomments][fbcomments url="http://peadig.com/wordpress-plugins/facebook-comments/" width="375" count="off" num="3" countmsg="wonderful comments!"]'); ?></code> 
  249.  
  250. </td> 
  251. </tr> 
  252. </table> 
  253. </div> 
  254.  
  255. </div> 
  256. <div class="pea_admin_main_right"> 
  257. <div class="pea_admin_box"> 
  258.  
  259. <center><a href="http://peadig.com/?utm_source=<?php echo $domain; ?>&utm_medium=referral&utm_campaign=Facebook%2BComments%2BAdmin" target="_blank"><img src="<?php echo plugins_url( 'images/peadig-landscape-300.png' , __FILE__ ); ?>" width="220" height="69" title="Peadig"> 
  260. <strong>Peadig: the WordPress framework that Integrates Bootstrap</strong></a><br /><br /> 
  261. <a href="https://twitter.com/peadig" class="twitter-follow-button">Follow @peadig</a> 
  262. <div class="fb-like" data-href="http://www.facebook.com/peadig" data-layout="button_count" data-action="like" data-show-faces="false"></div> 
  263. <div class="g-follow" data-annotation="bubble" data-height="20" data-href="//plus.google.com/116387945649998056474" data-rel="publisher"></div> 
  264. <br /><br /><br /> 
  265.  
  266.  
  267. </div> 
  268.  
  269.  
  270. <center> <h2>Share the plugin love!</h2> 
  271. <div id="fb-root"></div> 
  272. <script>(function(d, s, id) { 
  273. var js, fjs = d.getElementsByTagName(s)[0]; 
  274. if (d.getElementById(id)) return; 
  275. js = d.createElement(s); js.id = id; 
  276. js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; 
  277. fjs.parentNode.insertBefore(js, fjs); 
  278. }(document, 'script', 'facebook-jssdk'));</script> 
  279. <div class="fb-like" data-href="<?php echo FBC_URL; ?>" data-layout="button_count" data-show-faces="true"></div> 
  280.  
  281. <a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php echo FBC_URL; ?>" data-text="Just been using <?php echo FBC_NAME; ?> #WordPress plugin" data-via="<?php echo FBC_AUTHOR_TWITTER; ?>" data-related="WPBrewers">Tweet</a> 
  282. <script>!function(d, s, id) {var js, fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)) {js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js, fjs);}}(document, "script", "twitter-wjs");</script> 
  283.  
  284. <a href="http://bufferapp.com/add" class="buffer-add-button" data-text="Just been using <?php echo FBC_NAME; ?> #WordPress plugin" data-url="<?php echo FBC_URL; ?>" data-count="horizontal" data-via="<?php echo FBC_AUTHOR_TWITTER; ?>">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script> 
  285. <div class="g-plusone" data-size="medium" data-href="<?php echo FBC_URL; ?>"></div> 
  286. <script type="text/javascript"> 
  287. window.___gcfg = {lang: 'en-GB'}; 
  288.  
  289. (function() { 
  290. varpo= document.createElement('script'); po.type = 'text/javascript'; po.async = true; 
  291. po.src = 'https://apis.google.com/js/plusone.js'; 
  292. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); 
  293. })(); 
  294. </script> 
  295. <su:badge layout="3" location="<?php echo FBC_URL?>"></su:badge> 
  296. <script type="text/javascript"> 
  297. (function() { 
  298. var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true; 
  299. li.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//platform.stumbleupon.com/1/widgets.js'; 
  300. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s); 
  301. })(); 
  302. </script> 
  303. <br /><br /> 
  304. <a href="<?php echo FBC_DONATE_LINK; ?>" target="_blank"><img class="paypal" src="<?php echo plugins_url( 'images/paypal.gif' , __FILE__ ); ?>" width="147" height="47" title="Please Donate - it helps support this plugin!"></a></center> 
  305.  
  306. <div class="pea_admin_box"> 
  307. <h2>About the Author</h2> 
  308.  
  309. <?php 
  310. $default = "http://reviews.evanscycles.com/static/0924-en_gb/noAvatar.gif"; 
  311. $size = 70; 
  312. $alex_url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( "alex@peadig.com" ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size; 
  313. ?> 
  314.  
  315. <p class="pea_admin_clear"><img class="pea_admin_fl" src="<?php echo $alex_url; ?>" alt="Alex Moss" /> <h3>Alex Moss</h3><br />Alex Moss is the Co-Founder of <a href="http://peadig.com/" target="_blank">Peadig</a>, a WordPress framework built with Bootstrap. He has also developed several WordPress plugins (which you can <a href="http://peadig.com/wordpress-plugins/?utm_source=<?php echo $domain; ?>&utm_medium=referral&utm_campaign=Facebook%2BComments%2BPro%2BAdmin" target="_blank">view here</a>) totalling over 500, 000 downloads.</p> 
  316. <center><br><a href="https://twitter.com/alexmoss" class="twitter-follow-button">Follow @alexmoss</a> 
  317. <div class="fb-subscribe" data-href="https://www.facebook.com/alexmoss1" data-layout="button_count" data-show-faces="false" data-width="220"></div> 
  318. <div class="g-follow" data-annotation="bubble" data-height="20" data-href="//plus.google.com/116608702739714446873" data-rel="author"></div> 
  319. </div> 
  320.  
  321. <h2>More from Peadig</h2> 
  322. <p class="pea_admin_clear"> 
  323. <?php 
  324. $FBC_feed = fbcomments_fetch_rss_feed(); 
  325. echo '<ul>'; 
  326. foreach ( $FBC_feed as $item ) { 
  327. $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls=null, 'display' ) ); 
  328. echo '<li>'; 
  329. echo '<a href="'.$url.'?utm_source='.$domain.'&utm_medium=RSS&utm_campaign=Facebook%2BComments%2BPro%2BAdmin" target="_blank">'. esc_html( $item->get_title() ) .'</a> '; 
  330. echo '</li>'; 
  331. echo '</ul>'; 
  332. ?></p> 
  333.  
  334.  
  335. </div> 
  336. </div> 
  337. </div> 
  338.  
  339.  
  340.  
  341. <?php