;
if(is_product_category()){
if($categorytemplate && array_search(get_queried_object()->term_id, array_column($categorytemplate, 'category_id')) !== false){
foreach($categorytemplate as $c){
if($c['category_id'] == get_queried_object()->term_id){
do_action( $hook, $c[$hook.'_elementor_template_category']);
}
}
} else {
do_action( $hook, get_theme_mod($hook.'_elementor_template'));
}
} else {
do_action( $hook, get_theme_mod($hook.'_elementor_template'));
}
}
/*************************************************
## Partdo Get Image
*************************************************/
function partdo_get_image($image){
$app_image = ! wp_attachment_is_image($image) ? $image : wp_get_attachment_url($image);
return esc_html($app_image);
}
/*************************************************
## Partdo Get options
*************************************************/
function partdo_get_option(){
$getopt = isset( $_GET['opt'] ) ? $_GET['opt'] : '';
return esc_html($getopt);
}
/*************************************************
## Partdo Theme options
*************************************************/
require_once get_template_directory() . '/includes/metaboxes.php';
require_once get_template_directory() . '/includes/woocommerce.php';
require_once get_template_directory() . '/includes/woocommerce-filter.php';
require_once get_template_directory() . '/includes/pjax/filter-functions.php';
require_once get_template_directory() . '/includes/sanitize.php';
require_once get_template_directory() . '/includes/header/main-header.php';
require_once get_template_directory() . '/includes/footer/main_footer.php';
require_once get_template_directory() . '/includes/woocommerce/tab-ajax.php';
require_once get_template_directory() . '/includes/merlin/theme-register.php';
require_once get_template_directory() . '/includes/merlin/setup-wizard.php';