Plugin Directory

Changeset 727733


Ignore:
Timestamp:
06/18/2013 04:26:29 AM (13 years ago)
Author:
bholtsclaw
Message:

trim tabname whitespace

Location:
gplus-comments/trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gplus-comments/trunk/includes/lib/hooks.php

    r725556 r727733  
    3939    if (!(is_singular() && (have_comments() || 'open' == $post->comment_status))) { return; }
    4040
    41     /*
    42     if (file_exists(TEMPLATEPATH . '/container.php'))
    43     {
    44       return TEMPLATEPATH . '/container.php';
    45     }
    46     else
    47     {
    48     */
    4941      return GPLUS_COMMENTS_TEMPLATES . '/container.php';
    50     /*
    5142    }
    5243    */
     
    8374{
    8475  print "\n<script>jQuery('#comment-tabs').tabs();</script>\n";
    85 /*
    86 <script type="text/javascript">
    87   (function() {
    88    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    89    po.src = 'https://apis.google.com/js/client:plusone.js';
    90    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    91   })();
    92 </script>
    93 */
    9476}
    9577add_action('wp_footer', 'gplus_comments_enqueue_scripts', 4269);
     
    135117
    136118
     119// [bartag foo="foo-value"]
     120function bartag_func( $atts ) {
     121  extract( shortcode_atts( array(
     122    'foo' => 'something',
     123    'bar' => 'something else',
     124  ), $atts ) );
     125
     126  return "foo = {$foo}";
     127}
     128add_shortcode( 'bartag', 'bartag_func' );
    137129
    138130
    139131
     132
  • gplus-comments/trunk/includes/templates/container.php

    r727315 r727733  
    4949      }
    5050      $active = ' class="active"';
    51       foreach ($tab_order as $tab)
     51      foreach ($tab_order as &$tab)
    5252      {
     53        $tab = trim($tab);
    5354        echo "<li ".$active."><a href='#".$tab."-tab'>";
    5455        if(!$options['hide_icons'])
Note: See TracChangeset for help on using the changeset viewer.