';
}
}
if ( ! function_exists('themeoo_commentfields_rowtag_end') ) {
/**
* Adds the Proper closing markup for comment filed.
*
* @return void
*/
function themeoo_commentfields_rowtag_end() {
echo '';
}
}
/**
----------------------------------------------------------------------
* Page Option related Function
*----------------------------------------------------------------------*/
// Single Page Style Site Layout.
if ( ! function_exists('themeoo_single_site_layout') ) :
/**
* Function Name : themeoo_page_site_layout
* Description : This function will apply body class if page setting not define by default
* Function Hooked : themeoo_single_option
* Parameter : page or post id
* Function return Type : class
* Function Since : 1.0.0
*
* @return void
*/
function themeoo_single_site_layout() {
add_filter('body_class', 'themeoo_single_site_layout_body_class' );
}
endif;
if ( ! function_exists( 'themeoo_single_site_layout_body_class' ) ) {
/**
* Single page body tag class filter.
*
* @param array $classes Html classes.
*
* @return array
*/
function themeoo_single_site_layout_body_class( $classes ) {
$site_layout = themeoo_get_post_layout_options( 'site_layout' );
if ( 'default' != $site_layout ) {
if ( 'boxed' == $site_layout ) {
$key = array_search( 'wide', $classes );
if ( ! empty( $key ) ) {
unset( $classes[ $key ] );
}
$classes = array_merge( $classes, array( 'boxed' ) );
} else {
$key = array_search( 'boxed', $classes );
if ( ! empty( $key ) ) {
unset( $classes[ $key ] );
}
$classes = array_merge( $classes, array( 'wide' ) );
}
}
return $classes;
}
}
// Secondary Header Enable Disable.
if ( ! function_exists('themeoo_single_secondary_header') ) {
/**
* Function Name : themeoo_single_secondary_header
* Description : Remove secondary header for single page or post
* Function Hooked : themeoo_single_option
* Function return Type : markup for secondary head or remove action
* Function Since : 1.0.0
*
* @return void
*/
function themeoo_single_secondary_header() {
$secondary_header = themeoo_get_post_layout_options( 'secondary_header' );
if ( 'default' != $secondary_header ) {
if ( 'enable' == $secondary_header ) {
add_action( 'themeoo_header_secondary_header', 'themeoo_secondary_head' );
} else {
remove_action( 'themeoo_header_secondary_header', 'themeoo_secondary_head' );
}
}
}
}
// Master header Enable Disable.
if ( ! function_exists('themeoo_single_master_header') ) {
/**
* Function Name : themeoo_single_master_header
* Description : Enable / Disable master head for single page
* Function Hooked : themeoo_single_option
* Function return Type : html header markup
* Parameter : post or page id
* Function Since : 1.0.0
*
* @return void
*/
function themeoo_single_master_header() {
$header_option = themeoo_get_post_layout_options( 'display_header' );
if ( 'disable' == $header_option ) {
remove_action('themeoo_header_master_header', 'themeoo_master_head');
}
}
}
/**
----------------------------------------------------------------------
* End Of Page Option Related Function
*----------------------------------------------------------------------*/
/**
----------------------------------------------------------------------
* Footer Related Function which mainly generate footer related output
*----------------------------------------------------------------------*/
if ( ! function_exists('themeoo_render_top_footer') ) {
/**
* Function Name : themeoo_render_top_footer
* Function Hooked : themeoo_footer_top_widget
* Function return Type : html
* Function Since : 1.0.0
*
* @return void
*/
function themeoo_render_top_footer() {
?>