Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
hiroshi-core
/
inc
/
header
/
layouts
/
vertical
/
File Content:
class-hiroshicore-vertical-header.php
<?php class HiroshiCore_Vertical_Header extends HiroshiCore_Header { private static $instance; public function __construct() { $this->set_layout( 'vertical' ); $this->set_overriding_whole_header( true ); add_filter( 'hiroshi_filter_add_inline_style', array( $this, 'set_vertical_header_inline_header_styles' ) ); parent::__construct(); } /** * @return HiroshiCore_Vertical_Header */ public static function get_instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } public function enqueue_additional_assets() { wp_enqueue_style( 'perfect-scrollbar', HIROSHI_CORE_URL_PATH . 'assets/plugins/perfect-scrollbar/perfect-scrollbar.css', array() ); wp_enqueue_script( 'perfect-scrollbar', HIROSHI_CORE_URL_PATH . 'assets/plugins/perfect-scrollbar/perfect-scrollbar.jquery.min.js', array( 'jquery' ), false, true ); } public function set_nav_menu_header_selector( $selector ) { return '.qodef-header--vertical .qodef-header-vertical-navigation'; } public function set_nav_menu_narrow_header_selector( $selector ) { return ''; } public function set_vertical_header_inline_header_styles( $style ) { $styles = array(); $outer_styles = array(); $width = hiroshi_core_get_post_value_through_levels( 'qodef_vertical_header_width' ); $background_image = hiroshi_core_get_post_value_through_levels( 'qodef_vertical_header_background_image' ); $background_repeat = hiroshi_core_get_post_value_through_levels( 'qodef_vertical_header_background_repeat' ); $background_size = hiroshi_core_get_post_value_through_levels( 'qodef_vertical_header_background_size' ); if ( ! empty( $width ) ) { $styles['width'] = intval( $width ) . 'px'; $outer_styles['padding-left'] = intval( $width ) . 'px'; } if ( ! empty( $background_image ) ) { $styles['background-image'] = 'url(' . esc_url( wp_get_attachment_image_url( $background_image, 'full' ) ) . ')'; $styles['background-position'] = 'bottom center'; } if ( ! empty( $background_repeat ) ) { $styles['background-repeat'] = $background_repeat; } if ( ! empty( $background_size ) ) { $styles['background-size'] = $background_size; } if ( ! empty( $styles ) ) { $style .= qode_framework_dynamic_style( '.qodef-header--vertical #qodef-page-header', $styles ); } if ( ! empty( $outer_styles ) ) { $style .= qode_framework_dynamic_style( '.qodef-header--vertical #qodef-page-outer', $outer_styles ); $style .= qode_framework_dynamic_style( '.qodef-header--vertical #qodef-page-footer', $outer_styles ); } return $style; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
dashboard
---
0755
templates
---
0755
class-hiroshicore-vertical-header.php
2668 bytes
0644
helper.php
3017 bytes
0644
include.php
408 bytes
0644
N4ST4R_ID | Naxtarrr