@ 2014-05-29T14:54:34Z <?php
class td_module_mega_menu extends td_module {
function __construct($post) {
//run the parrent constructor
parent::__construct($post);
}
function render() {
ob_start();
?>
<div class="td_mod_mega_menu">
<?php echo $this->get_image('art-big-1col');?>
<div class="item-details">
<?php echo $this->get_title(td_util::get_option('tds_mod3_title_excerpt'));?>
</div>
</div>
<?php return ob_get_clean();
}
function get_title($excerpt_lenght = '') {
$buffy = '';
$buffy .= '<h4 itemprop="name" class="entry-title">';
$buffy .='<a itemprop="url" href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">';
if (!empty($excerpt_lenght)) {
$buffy .= td_util::excerpt($this->title, $excerpt_lenght, 'show_shortcodes');
} else {
$buffy .= $this->title;
}
$buffy .='</a>';
$buffy .= '</h4>';
return $buffy;
}
}
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught Error: Class "td_module" not found in /in/SQhKl:3
Stack trace:
#0 {main}
thrown in /in/SQhKl on line 3
Process exited with code 255 . Output for 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 Fatal error: Uncaught Error: Class 'td_module' not found in /in/SQhKl:3
Stack trace:
#0 {main}
thrown in /in/SQhKl on line 3
Process exited with code 255 . Output for 5.0.0 - 5.0.5 , 5.1.0 - 5.1.6 , 5.2.0 - 5.2.17 , 5.3.0 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.40 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 Fatal error: Class 'td_module' not found in /in/SQhKl on line 3
Process exited with code 255 . Output for 4.3.2 - 4.3.11 , 4.4.0 - 4.4.9 Fatal error: Class td_module_mega_menu: Cannot inherit from undefined class td_module in /in/SQhKl on line 3
Process exited with code 255 . Output for 4.3.0 - 4.3.1 Fatal error: Class td_module_mega_menu: Cannot inherit from undefined class td_module in /in/SQhKl on line 3
preferences:dark mode live preview
323.15 ms | 401 KiB | 460 Q