| Server IP : 192.241.186.36 / Your IP : 216.73.216.199 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/adsonicdigital/wp-content/themes/xstore/framework/compatibility/ |
Upload File : |
<?php
/**
* Description
*
* @package wpseo.php
* @since 1.0.0
* @author stas
* @link http://xstore.8theme.com
* @license Themeforest Split Licence
*/
defined( 'ABSPATH' ) || exit( 'Direct script access denied.' );
add_filter('wpseo_breadcrumb_output', function ($output){
$return_back = '';
$return_to_previous = etheme_get_option('return_to_previous', 1);
$return_to_previous = apply_filters('return_to_previous', $return_to_previous);
if ( $return_to_previous ) {
ob_start();
etheme_back_to_page();
$return_back = ob_get_clean();
}
if ( get_query_var( 'etheme_single_product_builder', false ) && get_query_var('is_single_product', false) ) {
return str_replace('page-heading"><span>', 'page-heading"><span class="container block a-center pos-relative">' . $return_back, $output);
}
return str_replace('page-heading"><div>', 'page-heading"><div class="container a-center pos-relative">'.$return_back, $output);
}, 10, 1);
add_filter('wpseo_breadcrumb_output_class', function ($class){
return 'bc-type-'.get_query_var('et_breadcrumbs-type', 'left2').
' bc-effect-'.get_query_var('et_breadcrumbs-effect', 'mouse').
' bc-color-'.get_query_var('et_breadcrumbs-color', 'dark').
' page-heading';
}, 10);
add_filter('wpseo_breadcrumb_output_wrapper', function ($wrapper){
return 'div';
}, 10);
add_filter('wpseo_breadcrumb_single_link_wrapper', function ($link_wrapper){
if ( get_query_var( 'etheme_single_product_builder', false ) && get_query_var('is_single_product', false) ) {
return $link_wrapper;
}
return 'div';
}, 10);
add_filter('wpseo_breadcrumb_single_link', function ($link_html){
if ( get_query_var( 'etheme_single_product_builder', false ) && get_query_var('is_single_product', false) ) {
return $link_html;
}
return str_replace('breadcrumb_last', 'breadcrumb_last title', $link_html);
}, 10);