NOX-ROOT-MARAZ Manager v2
PHP 8+ Secure
/
home
/
xiedrke
/
malino
/
wp-content
/
plugins
/
trendz-pro
/
modules
/
blog
/
Name
Size
Perms
Actions
📁 assets
-
0755
Chmod
|
Delete
📁 templates
-
0755
Chmod
|
Delete
📁 widget
-
0755
Chmod
|
Delete
📄 index.php
3,042 B
0644
Edit
|
Chmod
|
Delete
Editing: index.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if( !class_exists( 'TrendzProSiteBlog' ) ) { class TrendzProSiteBlog extends TrendzPlusSiteBlog { private static $_instance = null; public $element_position = array(); public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { $this->load_widgets(); add_action( 'trendz_after_main_css', array( $this, 'enqueue_css_assets' ), 20 ); add_filter('blog_post_grid_list_style_update', array( $this, 'blog_post_grid_list_style_update' )); add_filter('blog_post_cover_style_update', array( $this, 'blog_post_cover_style_update' )); } function enqueue_css_assets() { wp_enqueue_style( 'trendz-pro-blog', TRENDZ_PRO_DIR_URL . 'modules/blog/assets/css/blog.css', false, TRENDZ_PRO_VERSION, 'all'); $post_style = trendz_get_archive_post_style(); $file_path = TRENDZ_PRO_DIR_PATH . 'modules/blog/templates/'.esc_attr($post_style).'/assets/css/blog-archive-'.esc_attr($post_style).'.css'; if ( file_exists( $file_path ) ) { wp_enqueue_style( 'wdt-blog-archive-'.esc_attr($post_style), TRENDZ_PRO_DIR_URL . 'modules/blog/templates/'.esc_attr($post_style).'/assets/css/blog-archive-'.esc_attr($post_style).'.css', false, TRENDZ_PRO_VERSION, 'all'); } } function load_widgets() { add_action( 'widgets_init', array( $this, 'register_widgets_init' ) ); } function register_widgets_init() { include_once TRENDZ_PRO_DIR_PATH.'modules/blog/widget/widget-recent-posts.php'; register_widget('Trendz_Widget_Recent_Posts'); } function blog_post_grid_list_style_update($list) { $pro_list = array ( 'wdt-simple' => esc_html__('Simple', 'trendz-pro'), 'wdt-overlap' => esc_html__('Overlap', 'trendz-pro'), 'wdt-thumb-overlap' => esc_html__('Thumb Overlap', 'trendz-pro'), 'wdt-minimal' => esc_html__('Minimal', 'trendz-pro'), 'wdt-fancy-box' => esc_html__('Fancy Box', 'trendz-pro'), 'wdt-bordered' => esc_html__('Bordered', 'trendz-pro'), 'wdt-magnificent' => esc_html__('Magnificent', 'trendz-pro') ); return array_merge( $list, $pro_list ); } function blog_post_cover_style_update($list) { $pro_list = array (); return array_merge( $list, $pro_list ); } } } TrendzProSiteBlog::instance(); if( !class_exists( 'TrendzProSiteRelatedBlog' ) ) { class TrendzProSiteRelatedBlog extends TrendzProSiteBlog { function __construct() {} } }
Cancel