HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/themes/colormag/inc/colormag-dynamic-classes.php
<?php
/**
 * Dynamic classes for this theme.
 *
 * @package    ThemeGrill
 * @subpackage ColorMag
 * @since      ColorMag 2.0.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! function_exists( 'colormag_header_layout_class' ) ) :

	/**
	 * Function to return the classname for header option layout class.
	 *
	 * @return string CSS classname.
	 */
	function colormag_header_layout_class() {

		// Add the header area display type dynamic class.
		$colormag_header_layout_class = get_theme_mod( 'colormag_main_total_header_area_display_type', 'type_one' );
		$class_name                   = '';

		if ( 'type_two' === $colormag_header_layout_class ) {
			$class_name = 'colormag-header-clean';
		} elseif ( 'type_three' === $colormag_header_layout_class ) {
			$class_name = 'colormag-header-classic';
		}

		return $class_name;

	}

endif;


if ( ! function_exists( 'colormag_footer_layout_class' ) ) :

	/**
	 * Function to return the classname for footer option layout class.
	 *
	 * @return string CSS classname.
	 */
	function colormag_footer_layout_class() {

		$colormag_footer_layout_class = get_theme_mod( 'colormag_main_footer_layout_display_type', 'type_one' );
		$class_name                   = '';

		if ( 'type_two' === $colormag_footer_layout_class ) {
			$class_name = 'colormag-footer--classic';
		}

		return $class_name;

	}

endif;