REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 5.99 KB
Close
/home/certprox/test.certproxywizard.com/wp-content/themes/blocksy/inc/sidebar.php
Text
Base64
<?php /** * Sidebar helpers * * @copyright 2019-present Creative Themes * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License * @package Blocksy */ add_filter('widget_nav_menu_args', function ($nav_menu_args) { $nav_menu_args['menu_class'] = 'widget-menu'; return $nav_menu_args; }, 10, 1); add_action( 'dynamic_sidebar_before', function () { ob_start(); } ); add_action( 'dynamic_sidebar_after', function () { $text = preg_replace( '/<div class="ct-widget[^>]*><\\/div[^>]*>/', '', ob_get_clean() ); echo $text; } ); if (! function_exists('blocksy_sidebar_position_attr')) { function blocksy_sidebar_position_attr($args = []) { $args = wp_parse_args( $args, [ 'attr_id' => 'data-sidebar', 'array' => false ] ); if ($args['array']) { if (blocksy_sidebar_position() !== 'none') { return [ $args['attr_id'] => blocksy_sidebar_position() ]; } else { return []; } } return ( blocksy_sidebar_position() === 'none' ) ? '' : $args['attr_id'] . '="' . blocksy_sidebar_position() . '"'; } } if (! function_exists('blocksy_get_single_page_structure')) { function blocksy_get_single_page_structure() { $default_page_structure = blocksy_default_akg( 'page_structure_type', blocksy_get_post_options(), 'default' ); if ($default_page_structure !== 'default') { return $default_page_structure; } $prefix = blocksy_manager()->screen->get_prefix(); $result = 'none'; if ( ! is_singular() && $prefix !== 'bbpress_single' && $prefix !== 'buddypress_single' && ( $prefix !== 'courses_archive' && function_exists('tutor') || ! function_exists('tutor') ) && ( $prefix !== 'tribe_events_archive' && class_exists('Tribe__Events__Main') || ! class_exists('Tribe__Events__Main') ) ) { $result = 'none'; } else { $default_structure = ($prefix === 'single_blog_post') ? 'type-3' : 'type-4'; if ($prefix === 'courses_single' && function_exists('tutor')) { $default_structure = 'type-1'; } $result = blocksy_get_theme_mod($prefix . '_structure', $default_structure); if ($prefix === 'courses_single' && function_exists('tutor')) { $current_template = blocksy_manager()->get_current_template(); if ($current_template !== tutor_get_template('single-course')) { $result = 'type-4'; } } } if ($prefix === 'lms') { $result = 'none'; } return apply_filters('blocksy:global:page_structure', $result); } } if (! function_exists('blocksy_sidebar_position')) { function blocksy_sidebar_position() { return apply_filters( 'blocksy:general:sidebar-position', blocksy_sidebar_position_unfiltered() ); } } if (! function_exists('blocksy_sidebar_position_unfiltered')) { function blocksy_sidebar_position_unfiltered($prefix = null) { $prefix = blocksy_manager()->screen->get_prefix(); if ($prefix === 'lms') { return 'right'; } global $blocksy_template_output; if ( isset($blocksy_template_output) && $blocksy_template_output ) { $page_structure_type = blocksy_get_single_page_structure(); if ('type-1' === $page_structure_type) { return 'right'; } if ('type-2' === $page_structure_type) { return 'left'; } return 'none'; } $is_dokan_store = ( class_exists('WeDevs_Dokan') && function_exists('dokan_is_store_page') && dokan_is_store_page() ); if ($is_dokan_store) { return 'none'; } if (! $prefix) { return 'none'; } if ( class_exists('\EventKoi\Init') && is_tax('event_cal') ) { $page_structure_type = blocksy_get_theme_mod($prefix . '_structure', 'type-4'); if ('type-1' === $page_structure_type) { return 'right'; } if ('type-2' === $page_structure_type) { return 'left'; } return 'none'; } if (class_exists('Visual_Portfolio')) { $vp_settings = get_option('vp_general'); if ( ( isset($vp_settings['portfolio_archive_page']) && intval($vp_settings['portfolio_archive_page']) === get_the_ID() ) || is_tax('portfolio_category') || is_tax('portfolio_tag') ) { $page_structure_type = blocksy_get_theme_mod($prefix . '_structure', 'type-4'); if ('type-1' === $page_structure_type) { return 'right'; } if ('type-2' === $page_structure_type) { return 'left'; } return 'none'; } } $blog_post_structure = blocksy_listing_page_structure([ 'prefix' => $prefix ]); $allows_custom_sidebar = ( $prefix !== 'courses_archive' && function_exists('tutor') || ! function_exists('tutor') ) && ( $prefix !== 'tribe_events_archive' && class_exists('Tribe__Events__Main') || ! class_exists('Tribe__Events__Main') ); if ( strpos($prefix, '_archive') !== false || $prefix === 'search' || $prefix === 'categories' || $prefix === 'author' || $prefix === 'blog' || $prefix === 'woo_categories' ) { if ($allows_custom_sidebar) { if ( blocksy_get_theme_mod($prefix . '_has_sidebar', 'no') === 'no' || $blog_post_structure === 'gutenberg' ) { return 'none'; } return blocksy_get_theme_mod($prefix . '_sidebar_position', 'right'); } } if ( $prefix !== 'single_page' && $prefix !== 'single_blog_post' && $prefix !== 'product' && strpos($prefix, '_single') === false && $allows_custom_sidebar ) { return 'right'; } $page_structure_type = blocksy_get_single_page_structure(); if ('type-1' === $page_structure_type) { return 'right'; } if ('type-2' === $page_structure_type) { return 'left'; } return 'none'; } } if (! function_exists('blocksy_get_page_structure')) { function blocksy_get_page_structure() { $page_structure_type = blocksy_get_single_page_structure(); if ('type-3' === $page_structure_type) { return 'narrow'; } if ( $page_structure_type === 'type-4' || $page_structure_type === 'type-5' ) { return 'normal'; } return 'none'; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 9 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
classes
DIR
-
drwxr-xr-x
2026-01-11 22:23:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
components
DIR
-
drwxr-xr-x
2026-01-11 22:23:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
css
DIR
-
drwxr-xr-x
2026-01-11 22:23:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
customizer
DIR
-
drwxr-xr-x
2026-01-11 22:23:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dynamic-styles
DIR
-
drwxr-xr-x
2026-01-11 22:23:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
helpers
DIR
-
drwxr-xr-x
2026-01-11 22:23:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
integrations
DIR
-
drwxr-xr-x
2026-03-02 04:25:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
options
DIR
-
drwxr-xr-x
2026-01-11 22:23:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
panel-builder
DIR
-
drwxr-xr-x
2026-01-11 22:23:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dynamic-css.php
11.03 KB
lrw-r--r--
2026-03-01 08:42:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
footer.php
1.88 KB
lrw-r--r--
2026-03-01 08:42:21
Edit
Download
Rename
Chmod
Change Date
Delete
helpers.php
7.43 KB
lrw-r--r--
2026-03-01 08:42:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
init.php
20.41 KB
lrw-r--r--
2026-03-01 08:42:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
manager.php
10.66 KB
lrw-r--r--
2026-03-01 08:42:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
meta-boxes.php
2.28 KB
lrw-r--r--
2026-03-01 08:42:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
php-fallback.php
1.53 KB
lrw-r--r--
2026-03-01 08:42:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-org.php
5.46 KB
lrw-r--r--
2026-03-01 08:42:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sidebar.php
5.99 KB
lrw-r--r--
2026-03-01 08:42:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
template-actions.php
336 B
lrw-r--r--
2026-03-01 08:42:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
template-tags.php
15.26 KB
lrw-r--r--
2026-03-01 08:42:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).