Changeset 500551
- Timestamp:
- 02/05/2012 06:51:07 AM (14 years ago)
- Location:
- sharing-is-caring/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
sharing-is-caring.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sharing-is-caring/trunk/readme.txt
r500095 r500551 60 60 * Updated screenshots 61 61 62 = 1.1.2 = 63 * Fixed: Fatal Error on conflict with duplicate funtion name in another plugin 64 62 65 == Upgrade Notice == 63 66 … … 70 73 = 1.1.1 = 71 74 * bugfix for pinterest button only showing horizontal count 75 76 = 1.1.2 = 77 * fix for conflict with another plugin with duplicate function name -
sharing-is-caring/trunk/sharing-is-caring.php
r499941 r500551 4 4 Plugin URI: http://michaelbea.com/sharing-is-caring/ 5 5 Description: Displays the social widgets from Facebook, Twitter, Google+ and Pinterest with your posts. Most options for the buttons are customizable in the admin panel. Also adds some meta tags for opengraph and schema.org. 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author: Michael Beacom 8 8 Author URI: http://michaelbea.com … … 26 26 27 27 //Deactives the plugin if wordpress version is less than 3.3 28 function requires_wordpress_version() {28 function sic_wordpress_version() { 29 29 global $wp_version; 30 30 $plugin = plugin_basename( __FILE__ ); … … 38 38 } 39 39 } 40 add_action( 'admin_init', ' requires_wordpress_version' );40 add_action( 'admin_init', 'sic_wordpress_version' ); 41 41 42 42 // Set-up Action and Filter Hooks … … 375 375 "\n\t<meta property='og:url' content='",get_permalink(),"' />", 376 376 "\n\t<meta property='og:site_name' content='",get_option('blogname'),"' />", 377 "\n\t<meta property='og:description' content='", the_excerpt_max_charlength(300),"' />",377 "\n\t<meta property='og:description' content='",sic_excerpt_max_charlength(300),"' />", 378 378 "\n\t<meta property='og:type' content='article' />", 379 379 "\n\t<meta itemprop='name' content='",get_the_title($post->post_title),"' />", 380 "\n\t<meta itemprop='description' content='", the_excerpt_max_charlength(300),"' />";381 $images_array = get_the_images();380 "\n\t<meta itemprop='description' content='",sic_excerpt_max_charlength(300),"' />"; 381 $images_array = sic_get_images(); 382 382 foreach ($images_array as $image) { 383 383 if ($image != '') { … … 417 417 418 418 //returns an array of attachments from the post 419 function get_the_images() {419 function sic_get_images() { 420 420 // Including global WP Enviroment. 421 421 global $post, $posts; … … 458 458 459 459 /* Extracts the content, removes tags, replaces single and double quotes, cuts it, removes the caption shortcode */ 460 function the_excerpt_max_charlength($charlength) {460 function sic_excerpt_max_charlength($charlength) { 461 461 $content = get_the_content(); //get the content 462 462 $content = strip_tags($content); // strip all html tags … … 659 659 660 660 if ($options["pinterest_position"] != 0) { 661 $image_array = get_the_images();661 $image_array = sic_get_images(); 662 662 $widgets[$options["pinterest_position"]] = 663 663 sprintf(
Note: See TracChangeset
for help on using the changeset viewer.