Plugin Directory

Changeset 1252320


Ignore:
Timestamp:
09/23/2015 09:15:27 PM (11 years ago)
Author:
thumbar
Message:

excerpt support rolled back

Location:
thumbar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • thumbar/trunk/readme.txt

    r1251968 r1252320  
    55Requires at least: 2.6
    66Tested up to: 4.3
    7 Stable tag: 1.042
     7Stable tag: 1.043
    88License: GPLv2 or later
    99
     
    168168= 1.042 =
    169169* excerpt support added
     170
     171= 1.043 =
     172* excerpt support rolled back
  • thumbar/trunk/thumbar-wp.php

    r1251968 r1252320  
    22/*
    33Plugin Name: Thumbar
    4 Plugin URI: https://www.thumbar.com/plugin/thumbar-wp.zip
     4Plugin URI: https://www.thumbar.com
    55Description: Rates your posts and mirrors them and their ratings in real time for free at Thumbar.com to maximize their exposure. Replaces search engines and SEO for generating traffic.
    66Version: 1.0
     
    99*/
    1010
    11 add_filter('the_excerpt', 'thumbar');
    1211add_filter('the_content', 'thumbar');
    1312add_action('init', 'register_tb_script');
     
    1514
    1615function thumbar($content) {
    17     global $add_tb_script;
     16  global $add_tb_script;
    1817
    19     $thumbar_add_on = '<style type="text/css"> .thumbar {margin:0px;border:0px;padding:0px;width:150px;height:25px;}</style><div class="thumbar" uid="x"></div><br>';
    20     $theContent = $content.$thumbar_add_on;
    21     $add_tb_script = true;
     18  $thumbar_add_on = '<style type="text/css"> .thumbar {margin:0px;border:0px;padding:0px;width:150px;height:25px;}</style><div class="thumbar" uid="1"></div><br>';
     19  $theContent = $content.$thumbar_add_on;
     20  $add_tb_script = true;
    2221
    23     return ($theContent);
     22  return ($theContent);
    2423}
    2524
    2625function register_tb_script() {
    27     wp_register_script('tb-script', 'https://www.thumbar.com/js/wp_link.js', array('jquery'), '1.0', true);
     26  wp_register_script('tb-script', 'https://www.thumbar.com/js/wp_link.js', array('jquery'), '1.0', true);
    2827}
    2928
    3029function print_tb_script() {
    31     global $add_tb_script;
     30  global $add_tb_script;
    3231
    33     while (!$add_tb_script)
     32  while (!$add_tb_script)
    3433        return;
    3534
    36     wp_print_scripts('tb-script');
     35  wp_print_scripts('tb-script');
    3736}
    3837?>
Note: See TracChangeset for help on using the changeset viewer.