hello 404 Not Found
Al-HUWAITI Shell
Al-huwaiti


Server : Apache
System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : chryzalihi ( 621211)
PHP Version : 8.3.31
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Directory :  /home/c/h/r/chryzalihi/www/wp-content/languages/themes/the/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/c/h/r/chryzalihi/www/wp-content/languages/themes/the/class-bloglo-customizer-ticker.php.tar
chryzalihi/www/wp-content/themes/bloglo/inc/customizer/settings/class-bloglo-customizer-ticker.php000064400000016333152426036010030645 0ustar00home<?php
/**
 * Bloglo Ticker section in Customizer.
 *
 * @package     Bloglo
 * @author      Peregrine Themes
 * @since       1.0.0
 */

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

if ( ! class_exists( 'Bloglo_Customizer_Ticker' ) ) :
	/**
	 * Bloglo Ticker section in Customizer.
	 */
	class Bloglo_Customizer_Ticker {

		/**
		 * Primary class constructor.
		 *
		 * @since 1.0.0
		 */
		public function __construct() {

			/**
			 * Registers our custom options in Customizer.
			 */
			add_filter( 'bloglo_customizer_options', array( $this, 'register_options' ) );
		}

		/**
		 * Registers our custom options in Customizer.
		 *
		 * @since 1.0.0
		 * @param array $options Array of customizer options.
		 */
		public function register_options( $options ) {
			// Ticker News Section.
			$options['section']['bloglo_section_ticker'] = array(
				'title'    => esc_html__( 'Ticker News', 'bloglo' ),
				'priority' => 3,
			);

			// Ticker News enable.
			$options['setting']['bloglo_enable_ticker'] = array(
				'transport'         => 'refresh',
				'sanitize_callback' => 'bloglo_sanitize_toggle',
				'control'           => array(
					'type'    => 'bloglo-toggle',
					'section' => 'bloglo_section_ticker',
					'label'   => esc_html__( 'Enable Ticker News Section', 'bloglo' ),
				),
			);

			// Title.
			$options['setting']['bloglo_ticker_title'] = array(
				'transport'         => 'postMessage',
				'sanitize_callback' => 'sanitize_text_field',
				'control'           => array(
					'type'     => 'bloglo-text',
					'section'  => 'bloglo_section_ticker',
					'label'    => esc_html__( 'Title', 'bloglo' ),
					'required' => array(
						array(
							'control'  => 'bloglo_enable_ticker',
							'value'    => true,
							'operator' => '==',
						),
					),
				),
			);

			// Ticker News display on.
			$options['setting']['bloglo_ticker_enable_on'] = array(
				'transport'         => 'refresh',
				'sanitize_callback' => 'bloglo_no_sanitize',
				'control'           => array(
					'type'        => 'bloglo-checkbox-group',
					'label'       => esc_html__( 'Enable On: ', 'bloglo' ),
					'description' => esc_html__( 'Choose on which pages you want to enable Ticker News. ', 'bloglo' ),
					'section'     => 'bloglo_section_ticker',
					'choices'     => array(
						'home'       => array(
							'title' => esc_html__( 'Home Page', 'bloglo' ),
						),
						'posts_page' => array(
							'title' => esc_html__( 'Blog / Posts Page', 'bloglo' ),
						),
						'archive'    => array(
							'title' => esc_html__( 'Archive Page', 'bloglo' ),
						),
						'search'     => array(
							'title' => esc_html__( 'Search Page', 'bloglo' ),
						),
						'post'       => array(
							'title' => esc_html__( 'Single Post', 'bloglo' ),
						),
					),
					'required'    => array(
						array(
							'control'  => 'bloglo_enable_ticker',
							'value'    => true,
							'operator' => '==',
						),
					),
				),
			);

			// Post Settings heading.
			$options['setting']['bloglo_ticker_posts'] = array(
				'transport'         => 'postMessage',
				'sanitize_callback' => 'bloglo_sanitize_toggle',
				'control'           => array(
					'type'     => 'bloglo-heading',
					'section'  => 'bloglo_section_ticker',
					'label'    => esc_html__( 'Post Settings', 'bloglo' ),
					'required' => array(
						array(
							'control'  => 'bloglo_enable_ticker',
							'value'    => true,
							'operator' => '==',
						),
						array(
							'control'  => 'bloglo_ticker_type',
							'value'    => 'hover-slider',
							'operator' => '==',
						),
					),
				),
			);

			// Post count.
			$options['setting']['bloglo_ticker_post_number'] = array(
				'transport'         => 'refresh',
				'sanitize_callback' => 'bloglo_sanitize_range',
				'control'           => array(
					'type'        => 'bloglo-range',
					'section'     => 'bloglo_section_ticker',
					'label'       => esc_html__( 'Post Number', 'bloglo' ),
					'description' => esc_html__( 'Set the number of visible posts.', 'bloglo' ),
					'min'         => 1,
					'max'         => 500,
					'step'        => 1,
					'unit'        => '',
					'required'    => array(
						array(
							'control'  => 'bloglo_enable_ticker',
							'value'    => true,
							'operator' => '==',
						),
						array(
							'control'  => 'bloglo_ticker_posts',
							'value'    => true,
							'operator' => '==',
						),
						array(
							'control'  => 'bloglo_ticker_type',
							'value'    => 'hover-slider',
							'operator' => '==',
						),
					),
				),
			);

			// Post category.
			$options['setting']['bloglo_ticker_category'] = array(
				'transport'         => 'refresh',
				'sanitize_callback' => 'bloglo_sanitize_select',
				'control'           => array(
					'type'        => 'bloglo-select',
					'section'     => 'bloglo_section_ticker',
					'label'       => esc_html__( 'Category', 'bloglo' ),
					'description' => esc_html__( 'Display posts from selected category only. Leave empty to include all.', 'bloglo' ),
					'is_select2'  => true,
					'data_source' => 'category',
					'multiple'    => true,
					'required'    => array(
						array(
							'control'  => 'bloglo_enable_ticker',
							'value'    => true,
							'operator' => '==',
						),
						array(
							'control'  => 'bloglo_ticker_posts',
							'value'    => true,
							'operator' => '==',
						),
						array(
							'control'  => 'bloglo_ticker_type',
							'value'    => 'hover-slider',
							'operator' => '==',
						),
					),
				),
			);

			// Ticker Slider heading.
			$options['setting']['bloglo_ticker_style'] = array(
				'transport'         => 'postMessage',
				'sanitize_callback' => 'bloglo_sanitize_toggle',
				'control'           => array(
					'type'     => 'bloglo-heading',
					'section'  => 'bloglo_section_ticker',
					'label'    => esc_html__( 'Style', 'bloglo' ),
					'required' => array(
						array(
							'control'  => 'bloglo_enable_ticker',
							'value'    => true,
							'operator' => '==',
						),
						array(
							'control'  => 'bloglo_ticker_type',
							'value'    => 'hover-slider',
							'operator' => '==',
						),
					),
				),
			);

			// Ticker Slider Elements.
			$options['setting']['bloglo_ticker_elements'] = array(
				'transport'         => 'refresh',
				'sanitize_callback' => 'bloglo_sanitize_sortable',
				'control'           => array(
					'type'     => 'bloglo-sortable',
					'section'  => 'bloglo_section_ticker',
					'label'    => esc_html__( 'Post Elements', 'bloglo' ),
					'sortable' => false,
					'choices'  => array(
						'meta' => esc_html__( 'Post Date', 'bloglo' ),
					),
					'required' => array(
						array(
							'control'  => 'bloglo_enable_ticker',
							'value'    => true,
							'operator' => '==',
						),
						array(
							'control'  => 'bloglo_ticker_style',
							'value'    => true,
							'operator' => '==',
						),
						array(
							'control'  => 'bloglo_ticker_type',
							'value'    => 'hover-slider',
							'operator' => '==',
						),
					),
				),
				'partial'           => array(
					'selector'            => '#ticker',
					'render_callback'     => 'bloglo_blog_ticker',
					'container_inclusive' => true,
					'fallback_refresh'    => true,
				),
			);

			return $options;
		}
	}
endif;
new Bloglo_Customizer_Ticker();

Al-HUWAITI Shell