whoami7 - Manager
:
/
home
/
dataiclx
/
vielorbe.com
/
wp-content
/
themes
/
glowing
/
inc
/
Upload File:
files >> //home/dataiclx/vielorbe.com/wp-content/themes/glowing/inc/template-functions.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Header template */ function glowing_template_header() { glowing_get_template('header'); } add_action('glowing_before_page_wrapper_content', 'glowing_template_header', 10); /** * Footer template */ function glowing_template_footer() { glowing_get_template('footer'); } add_action('glowing_after_page_wrapper_content', 'glowing_template_footer', 10); /** * Content Wrapper Start */ function glowing_template_wrapper_start() { glowing_get_template('global/wrapper-start'); } add_action('glowing_main_wrapper_content_start', 'glowing_template_wrapper_start', 10); /** * Content Wrapper End */ function glowing_template_wrapper_end() { glowing_get_template('global/wrapper-end'); } add_action('glowing_main_wrapper_content_end', 'glowing_template_wrapper_end', 10); /** * Archive content layout */ function glowing_template_archive_content() { glowing_get_template('archive/layout'); } add_action('glowing_archive_content', 'glowing_template_archive_content', 10); /** * Single content layout */ function glowing_template_single_content() { glowing_get_template('single/layout'); } add_action('glowing_single_content', 'glowing_template_single_content', 10); /** * Single content layout */ function glowing_template_page_content() { glowing_get_template('page/layout'); } add_action('glowing_page_content', 'glowing_template_page_content', 10); /** * Search content layout */ function glowing_template_search_content() { glowing_get_template('search/layout'); } add_action('glowing_search_content', 'glowing_template_search_content', 10); /** * 404 content layout */ function glowing_template_404_content() { glowing_get_template('404/layout'); } add_action('glowing_404_content', 'glowing_template_404_content', 10); function glowing_template_page_title() { glowing_get_template( 'page-title' ); } add_action('glowing_before_main_content', 'glowing_template_page_title', 10); function glowing_get_primary_cat() { if ( class_exists( 'WPSEO_Primary_Term' ) ) { $primary_cat = get_post_meta( get_the_ID(), '_yoast_wpseo_primary_category', true ); if ($primary_cat) { $primary_cat = get_category($primary_cat); if (!is_wp_error($primary_cat)) { return $primary_cat; } } } return current(get_the_category()); }
Copyright ©2021 || Defacer Indonesia