Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
themes
/
halstein
/
inc
/
sidebar
/
File Content:
helper.php
<?php if ( ! function_exists( 'halstein_get_sidebar_name' ) ) { /** * Function that return sidebar name * * @return string */ function halstein_get_sidebar_name() { return apply_filters( 'halstein_filter_sidebar_name', 'qodef-main-sidebar' ); } } if ( ! function_exists( 'halstein_get_sidebar_layout' ) ) { /** * Function that return sidebar layout * * @return string */ function halstein_get_sidebar_layout() { $sidebar_layout = apply_filters( 'halstein_filter_sidebar_layout', 'no-sidebar' ); if ( 'no-sidebar' !== $sidebar_layout && ! is_active_sidebar( halstein_get_sidebar_name() ) ) { $sidebar_layout = 'no-sidebar'; } return $sidebar_layout; } } if ( ! function_exists( 'halstein_get_page_content_sidebar_classes' ) ) { /** * Function that return classes for the page content when sidebar is enabled * * @return string */ function halstein_get_page_content_sidebar_classes() { $layout = halstein_get_sidebar_layout(); $classes = array( 'qodef-page-content-section' ); switch ( $layout ) { case 'sidebar-33-right': $classes[] = 'qodef-col--8'; break; case 'sidebar-25-right': $classes[] = 'qodef-col--9'; break; case 'sidebar-33-left': $classes[] = 'qodef-col--8'; $classes[] = 'qodef-col-push--4'; break; case 'sidebar-25-left': $classes[] = 'qodef-col--9'; $classes[] = 'qodef-col-push--3'; break; default: $classes[] = 'qodef-col--12'; break; } return implode( ' ', apply_filters( 'halstein_filter_page_content_sidebar_classes', $classes, $layout ) ); } } if ( ! function_exists( 'halstein_get_page_sidebar_classes' ) ) { /** * Function that return classes for the page sidebar when sidebar is enabled * * @return string */ function halstein_get_page_sidebar_classes() { $layout = halstein_get_sidebar_layout(); $classes = array( 'qodef-page-sidebar-section' ); switch ( $layout ) { case 'sidebar-33-right': $classes[] = 'qodef-col--4'; break; case 'sidebar-25-right': $classes[] = 'qodef-col--3'; break; case 'sidebar-33-left': $classes[] = 'qodef-col--4'; $classes[] = 'qodef-col-pull--8'; break; case 'sidebar-25-left': $classes[] = 'qodef-col--3'; $classes[] = 'qodef-col-pull--9'; break; } return implode( ' ', apply_filters( 'halstein_filter_page_sidebar_classes', $classes, $layout ) ); } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
templates
---
0755
helper.php
2411 bytes
0644
include.php
144 bytes
0644
N4ST4R_ID | Naxtarrr