Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31604

sgeray on "[Plugin: Google+ Comments for WordPress] Notice: Use of undefined constant tab - assumed 'tab' in..."

$
0
0

Hello,

I am getting the following notices no matter what the I tried with.

Notice: Use of undefined constant tab - assumed 'tab' in \wp-content\plugins\gplus-comments\templates\container.php on line 53

then I have replaced the following lines in container.php

<ul class="controls inline clearfix">
    <?php
      $tab_order = explode(',',$options['tab_order']);
      $active = ' class="active"';
      foreach ($tab_order as $tab) {
        echo "<li${active}><a href='#${tab}-tab'>";
        if(!$options['hide_icons'])
        {
          echo "<img src='".GPLUS_COMMENTS_URL."/images/icons/default/${tab}.png'>";
        }
        echo $options[${tab}.'_label']."</a></li>\n";
        $active = '';
      }
    ?>
  </ul>

to this,

<ul class="controls inline clearfix">
    <?php
      $tab_order = explode(',',$options['tab_order']);
      $active = ' class="active"';
      foreach ($tab_order as $tab) {
        echo "<li" . $active . "><a href='#". $tab . "-tab'>";
        if(!$options['hide_icons'])
        {
          echo "<img src='".GPLUS_COMMENTS_URL."/images/icons/default/" . $tab . ".png'>";
        }
        echo $options[$tab . '_label']."</a></li>\n";
        $active = '';
      }
    ?>
  </ul>

and it works as expected. Do you have any suggestion?

Kind regards.

http://wordpress.org/extend/plugins/gplus-comments/


Viewing all articles
Browse latest Browse all 31604

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>