Newsmag 4.8 Update & Custom TD_Modules

Posted in: Newsmag
Post count: 2

Hi guys,

So we had a modified child theme for Newsmag which was working great before Newsmag 4.8. We updated to the latest version and while everything works, various changes we had made to TD_Module are missing. The modules are all gone from Newsmag/includes/modules directory and only 3 remain.

How would we go about changing let’s say td_module_3 in the new system? For instance, we had set up our theme to show GIFs as featured image. Under the new system, they are automatically converted to a still image.

Here is our code:

<?php

class td_module_3 extends td_module {

function __construct($post, $module_atts = array()) {
//run the parrent constructor
parent::__construct($post, $module_atts);
}

function render() {
ob_start();

$title_length = $this->get_shortcode_att('m3_tl');
?>

<div class="<?php echo $this->get_module_classes();?>">
<div class="td-module-image">
<?php
$post = get_post();
$imgtype = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'thumbnail' );
$filetype = wp_check_filetype($imgtype);

if ($filetype ['ext'] == 'gif') {
echo get_the_post_thumbnail();
}
else

echo $this->get_image('td_300x194');

?>

Now there is no place to use this code since Module_3 file is gone. Any idea how to solve this?

Thanks

Panah

Post count: 2

Nevermind. I found and modifed the files in td-Composer Legacy folder. Is there any easy way to allow GIFs as featured image? Just curious

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.