Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The7 theme.
- * @package The7
- * @since 1.0.0
- */
- // File Security Check
- if ( ! defined( 'ABSPATH' ) ) {
- exit;
- }
- /**
- * Set the content width based on the theme's design and stylesheet.
- * @since 1.0.0
- */
- if ( ! isset( $content_width ) ) {
- $content_width = 1200; /* pixels */
- }
- /**
- * Initialize theme.
- * @since 1.0.0
- */
- require( trailingslashit( get_template_directory() ) . 'inc/init.php' );
- function isMobile() {
- return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
- }
- add_action( 'get_header', 'laranz_change_header_layout', 10 );
- function laranz_change_header_layout() {
- $config = presscore_get_config();
- if(!isMobile()) {
- if( is_page( '17330' ) or is_page('17346') or is_page('17353') or is_page('17293')){
- $config->set('header.layout', 'side');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement