| Server IP : 89.108.64.180 / Your IP : 216.73.217.92 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/v-eiske.ru/wp-content/themes/hotelmaster/include/ |
Upload File : |
<?php
/*
* Goodlayers Framework File
* ---------------------------------------------------------------------
* This file contains the admin option setting
* ---------------------------------------------------------------------
*/
// page excerpt
add_action('init', 'gdlr_init_page_feature');
if( !function_exists('gdlr_init_page_feature') ){
function gdlr_init_page_feature() {
add_post_type_support( 'page', 'excerpt' );
// create page categories
register_taxonomy(
'page_category', array("page"), array(
'hierarchical' => true,
'label' => __('Page Categories', 'gdlr_translate'),
'singular_label' => __('Page Category', 'gdlr_translate'),
'rewrite' => array( 'slug' => 'page_category' )));
register_taxonomy_for_object_type('page_category', 'page');
}
}
// create the page option
add_action('init', 'gdlr_create_page_options');
if( !function_exists('gdlr_create_page_options') ){
function gdlr_create_page_options(){
global $gdlr_sidebar_controller;
new gdlr_page_options(
// page option attribute
array(
'post_type' => array('page'),
'meta_title' => __('Goodlayers Page Option', 'gdlr_translate'),
'meta_slug' => 'goodlayers-page-option',
'option_name' => 'post-option',
'position' => 'side',
'priority' => 'core',
),
// page option settings
array(
'page-layout' => array(
'title' => __('Page Layout', 'gdlr_translate'),
'options' => array(
'sidebar' => array(
'type' => 'radioimage',
'options' => array(
'no-sidebar'=>GDLR_PATH . '/include/images/no-sidebar-2.png',
'both-sidebar'=>GDLR_PATH . '/include/images/both-sidebar-2.png',
'right-sidebar'=>GDLR_PATH . '/include/images/right-sidebar-2.png',
'left-sidebar'=>GDLR_PATH . '/include/images/left-sidebar-2.png'
),
'default'=>'no-sidebar'
),
'left-sidebar' => array(
'title' => __('Left Sidebar' , 'gdlr_translate'),
'type' => 'combobox',
'options' => $gdlr_sidebar_controller->get_sidebar_array(),
'wrapper-class' => 'sidebar-wrapper left-sidebar-wrapper both-sidebar-wrapper'
),
'right-sidebar' => array(
'title' => __('Right Sidebar' , 'gdlr_translate'),
'type' => 'combobox',
'options' => $gdlr_sidebar_controller->get_sidebar_array(),
'wrapper-class' => 'sidebar-wrapper right-sidebar-wrapper both-sidebar-wrapper'
),
'page-style' => array(
'title' => __('Page Style' , 'gdlr_translate'),
'type' => 'combobox',
'options' => array(
'normal'=> __('Normal', 'gdlr_translate'),
'no-header'=> __('No Header', 'gdlr_translate'),
'no-footer'=> __('No Footer', 'gdlr_translate'),
'no-header-footer'=> __('No Header / No Footer', 'gdlr_translate'),
)
),
)
),
'page-option' => array(
'title' => __('Page Option', 'gdlr_translate'),
'options' => array(
'show-title' => array(
'title' => __('Show Title' , 'gdlr_translate'),
'type' => 'checkbox',
'default' => 'enable',
),
'page-caption' => array(
'title' => __('Page Caption' , 'gdlr_translate'),
'type' => 'textarea'
),
'show-content' => array(
'title' => __('Show Content (From Default Editor)' , 'gdlr_translate'),
'type' => 'checkbox',
'default' => 'enable',
),
'header-background' => array(
'title' => __('Header Background Image' , 'gdlr_translate'),
'button' => __('Upload', 'gdlr_translate'),
'type' => 'upload',
),
'header-style' => array(
'title' => __('Header Style' , 'gdlr_translate'),
'type' => 'combobox',
'options' => array(
'default' => __('Default', 'gdlr_translate'),
'solid' => __('Solid', 'gdlr_translate'),
'transparent' => __('Transparent', 'gdlr_translate'),
)
)
)
),
)
);
}
}
?>