| Server IP : 60.247.133.247 / Your IP : 216.73.217.108 Web Server : Apache System : Linux ebs-119054 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 User : goodwill ( 65985) PHP Version : 8.2.20 Disable Function : link,symlink,passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server,pcntl_fork,pcntl_rfork MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/wwwroot/goodwill/wwwroot/wp-content/themes/GoodWill/inc/helpers/ |
Upload File : |
<?php
if ( ! function_exists( 'presscore_list_container_data_atts' ) ) :
/**
* [presscore_list_container_data_atts description]
*
* @since 2.1.0
*
* @return string [description]
*/
function presscore_list_container_data_atts( $custom_atts = array() ) {
$data_atts = array(
'data-cur-page="' . the7_get_paged_var() . '"'
);
$data_atts = array_merge( $data_atts, $custom_atts );
return ' ' . implode( ' ', $data_atts );
}
endif;
if ( ! function_exists( 'presscore_list_container_html_class' ) ) :
/**
* @since 1.0.0
*
* @param array $class
* @return string
*/
function presscore_list_container_html_class( $custom_class = array() ) {
$config = presscore_config();
$html_class = array();
if ( 'dark' == $config->get( 'post.preview.hover.color' ) ) {
$html_class[] = 'hover-color-static';
}
$html_class[] = presscore_tpl_get_load_effect_class( $config->get( 'post.preview.load.effect' ) );
// ajax class
if ( !in_array( $config->get( 'load_style' ), array( 'default', false ) ) ) {
$html_class[] = 'with-ajax';
}
// lazy loading
if ( 'lazy_loading' == $config->get( 'load_style' ) ) {
$html_class[] = 'lazy-loading-mode';
}
//////////////
// Output //
//////////////
if ( $custom_class && ! is_array( $custom_class ) ) {
$custom_class = explode( ' ', $custom_class );
}
$html_class = apply_filters( 'presscore_masonry_container_class', array_merge( $custom_class, $html_class ) );
return $html_class ? sprintf( 'class="%s"', presscore_esc_implode( ' ', array_unique( $html_class ) ) ) : '';
}
endif;