…and did I just find a coding error in …/core/functions-ccat.php ???
core/functions-ccat.php: return apply_filters( 'czr_article_container_class' , array( czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) );
shouldn’t it be: return apply_filters( ‘czr_fn_article_container_class’ …???
…or ‘tc_article_container_class’ rather than ‘czr_article_container_class’ ???
This change in Customizr-3.4.31 only to methods/functions and classes is giving me fits! Why not just have done a global search and replace for every tc_ and TC_ and do the actions and filters too ??? So confusing!
-
This reply was modified 5 years, 7 months ago by ronherren.
-
This reply was modified 5 years, 7 months ago by ronherren.
-
This reply was modified 5 years, 7 months ago by ronherren.
p.s. I found that issue in Customizr-4.1.13 with this recursive grep:
@Ron-Laptop MINGW64 ~/Downloads/CUSTOMIZR/customizr.4.1.13/customizr
$ grep -R '_article_container_class'
core/class-fire-plugins_compat.php: <div id="content" class="<?php czr_fn_article_container_class() ?>">
core/functions-ccat.php:if ( ! function_exists( 'czr_fn_article_container_class' ) ) {
core/functions-ccat.php: function czr_fn_article_container_class() {
core/functions-ccat.php: echo czr_fn_stringify_array( czr_fn_get_article_container_class() );
core/functions-ccat.php:function czr_fn_get_article_container_class() {
core/functions-ccat.php: return apply_filters( 'czr_article_container_class' , array( czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) );
custom-page.php: <div id="content" class="<?php czr_fn_article_container_class() ?>">
custom-page.php: <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( CZR_utils::czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) ) ) ?>">
inc/czr-front-ccat.php: add_filter ( 'tc_article_container_class' , array( $this, 'czr_fn_add_gallery_class' ), 20 );
inc/czr-front-ccat.php: add_filter( 'tc_article_container_class' , array( $this, 'czr_fn_article_container_set_classes' ) );
inc/czr-front-ccat.php: * hook : tc_article_container_class
inc/czr-front-ccat.php: add_filter( 'tc_article_container_class' , array( $this, 'czr_fn_grid_container_set_classes' ) );
inc/czr-front-ccat.php: * hook : tc_article_container_class
inc/czr-init-ccat.php: <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( CZR_utils::czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) ) ) ?>">
index.php: <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( CZR_utils::czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) ) ) ?>">
readme.txt:* added : css classes filter in index : tc_article_container_class
templates/index-no-model.php: <div id="content" class="<?php czr_fn_article_container_class() ?>">
@Ron-Laptop MINGW64 ~/Downloads/CUSTOMIZR/customizr.4.1.13/customizr
$
This is the difficulty I’m having. I created a custom page template, affiliate-page.php, and within the file is this line:
<div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( TC_utils::tc_get_layout( TC_utils::tc_id() , 'class' ) , 'article-container' ) ) ) ?>">
So, as of Customizr-3.4.30, should it be changed to this?
<div id="content" class="<?php echo implode(' ', apply_filters( 'czr_fn_article_container_class' , array( CZR_utils::czr_fn_get_layout( CZR_utils::czr_fn_id() , 'class' ) , 'article-container' ) ) ) ?>">
OR THIS?
<div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( CZR_utils::czr_fn_get_layout( CZR_utils::czr_fn_id() , 'class' ) , 'article-container' ) ) ) ?>">
I’m thinking the last one, correct? Because ‘tc_article_container_class’ is referring to filter; not a function, correct?
-
This reply was modified 5 years, 7 months ago by ronherren.