示例#1
0
function one_paze_sanitize_page_select($input)
{
    $one_paze_page_lists = one_paze_page_lists();
    if (array_key_exists($input, $one_paze_page_lists)) {
        return $input;
    } else {
        return '';
    }
}
示例#2
0
<?php

/**
 * Necessary Variables
 */
$one_paze_page_lists = one_paze_page_lists();
$one_paze_category_lists = one_paze_category_lists();
$bg_repeat = array('no-repeat' => __('No Repeat', 'one-paze'), 'repeat' => __('Tile', 'one-paze'), 'repeat-x' => __('Tile Horizontally', 'one-paze'), 'repeat-y' => __('Tile Vertically', 'one-paze'));
$bg_position = array('left' => __('Left', 'one-paze'), 'center' => __('Center', 'one-paze'), 'right' => __('Right', 'one-paze'));
$bg_attachment = array('fixed' => __('Fixed', 'one-paze'), 'scroll' => __('Scroll', 'one-paze'));
$bg_size = array('auto' => __('Auto', 'one-paze'), 'cover' => __('Cover', 'one-paze'), 'contain' => __('Contain', 'one-paze'));
$menu_shows = array('top' => __('Top', 'one-paze'), 'right' => __('Right', 'one-paze'), 'left' => __('Left', 'one-paze'));
$blog_layouts = array('blog_image_large' => __('Blog Image Large', 'one-paze'), 'blog_image_medium' => __('Blog Image Medium', 'one-paze'), 'blog_image_alt_medium' => __('Blog Image Alternate Medium', 'one-paze'), 'blog_full_content' => __('Blog Full Content', 'one-paze'));
$one_paze_section_enables = array('about', 'portfolio', 'services', 'blog', 'cta', 'testimonial', 'team', 'contact');
$one_paze_section_menu_titles = array('about', 'portfolio', 'services', 'blog', 'cta', 'testimonial', 'team', 'contact');
$one_paze_section_titles = array('about', 'portfolio', 'services', 'blog', 'testimonial', 'team');
$one_paze_section_title_colors = array('about', 'portfolio', 'services', 'blog', 'testimonial', 'team');
$one_paze_section_content_colors = array('about', 'services', 'cta', 'testimonial', 'team');
$one_paze_section_descrs = array('services', 'cta');
$one_paze_section_categories = array('portfolio', 'blog', 'testimonial', 'team');
$sections_bgs = array('about', 'portfolio', 'services', 'blog', 'cta', 'testimonial', 'team');
/**
 * Panels
 */
$one_paze_panels = array('header_settings' => array('id' => 'header_settings', 'args' => array('title' => __('Header Settings', 'one-paze'), 'description' => __('Configure Header Sections', 'one-paze'), 'priority' => 500)), 'home_page_section' => array('id' => 'home_page_section', 'args' => array('title' => __('Home Page Settings', 'one-paze'), 'description' => __('Configure Home Page Sections', 'one-paze'), 'priority' => 700)));
/**
 * Sections
 */
$one_paze_sections = array('slider_settings' => array('id' => 'slider_settings', 'args' => array('title' => __('Slider Settings', 'one-paze'), 'description' => __('Configure Slider Sections', 'one-paze'), 'priority' => 600, 'capability' => 'edit_theme_options', 'theme_supports' => '')), 'general' => array('id' => 'general_section', 'args' => array('title' => __('General Settings', 'one-paze'), 'description' => __('General Setting Configurations', 'one-paze'), 'priority' => 1, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'panel' => 'home_page_section')), 'about' => array('id' => 'about_section', 'args' => array('title' => __('About Section', 'one-paze'), 'description' => __('About Section Configurations', 'one-paze'), 'priority' => 1, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'panel' => 'home_page_section')), 'portfolio' => array('id' => 'portfolio_section', 'args' => array('title' => __('Portfolio/Project Section', 'one-paze'), 'description' => __('Portfolio/Project Section Configurations', 'one-paze'), 'priority' => 2, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'panel' => 'home_page_section')), 'services' => array('id' => 'services_section', 'args' => array('title' => __('Our Services Section', 'one-paze'), 'description' => __('Our Services Section Configurations', 'one-paze'), 'priority' => 3, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'panel' => 'home_page_section')), 'blog' => array('id' => 'blog_section', 'args' => array('title' => __('Blog Section', 'one-paze'), 'description' => __('Blog Section Configurations', 'one-paze'), 'priority' => 4, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'panel' => 'home_page_section')), 'cta' => array('id' => 'cta_section', 'args' => array('title' => __('Call To Action Section', 'one-paze'), 'description' => __('Call To Action Section Configurations', 'one-paze'), 'priority' => 5, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'panel' => 'home_page_section')), 'testimonial' => array('id' => 'testimonial_section', 'args' => array('title' => __('Testimonial Section', 'one-paze'), 'description' => __('Testimonial Section Configurations', 'one-paze'), 'priority' => 6, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'panel' => 'home_page_section')), 'team' => array('id' => 'team_section', 'args' => array('title' => __('Team Section', 'one-paze'), 'description' => __('Team Section Configurations', 'one-paze'), 'priority' => 7, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'panel' => 'home_page_section')), 'contact' => array('id' => 'contact_section', 'args' => array('title' => __('Contact Section', 'one-paze'), 'description' => __('Contact Section Configurations', 'one-paze'), 'priority' => 8, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'panel' => 'home_page_section')), 'blog_archive' => array('id' => 'blog_archive_section', 'args' => array('title' => __('Blog/Archive Settings', 'one-paze'), 'description' => __('Blog/Archive Page Configurations', 'one-paze'), 'priority' => 800, 'capability' => 'edit_theme_options')));
/**
 * One Paze Settings