public function testLinks() { //test internal links foreach ($this->test_tweets as $index => $test_tweet) { $linked_tweet = smarty_modifier_link_usernames($test_tweet, "me", "twitter"); $this->assertEqual($this->internally_linked_tweets[$index], $linked_tweet); } //test Twitter.com links foreach ($this->test_tweets as $index => $test_tweet) { $linked_tweet = smarty_modifier_link_usernames_to_twitter($test_tweet, "me", "twitter"); $this->assertEqual($this->externally_linked_tweets[$index], $linked_tweet); } }
?> "><?php echo $this->_tpl_vars['i']->prefix; ?> </a></span> <i class="icon-<?php echo $this->_tpl_vars['i']->instance->network; if ($this->_tpl_vars['i']->instance->network == 'google+') { ?> icon-google-plus<?php } ?> icon-muted"></i> <?php echo is_array($_tmp = $this->_tpl_vars['i']->text) ? $this->_run_mod_handler('link_usernames_to_twitter', true, $_tmp) : smarty_modifier_link_usernames_to_twitter($_tmp); ?> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => is_array($_tmp = $this->_tpl_vars['tpl_path']) ? $this->_run_mod_handler('cat', true, $_tmp, '_counthistorychart.tpl') : smarty_modifier_cat($_tmp, '_counthistorychart.tpl'), 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => is_array($_tmp = $this->_tpl_vars['tpl_path']) ? $this->_run_mod_handler('cat', true, $_tmp, '_footer.tpl') : smarty_modifier_cat($_tmp, '_footer.tpl'), 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars);