Beispiel #1
0
    $sidebarClass = 'front-page-sidebar';
}
$sett['front-page-sidebar'] = array('type' => array('template' => 'inline', 'input' => 'select'), 'templateClass' => $sidebarClass, 'values' => $values, 'label' => __('Front page sidebar', 'myThemes'));
/* PAGES LAYOUT */
$sett['page-title'] = array('type' => array('template' => 'code'), 'title' => __('Page Layout', 'myThemes'));
$sett['page-layout'] = array('type' => array('template' => 'inline', 'input' => 'imageSelect'), 'values' => $layouts, 'coll' => 3, 'label' => __('Pages layout', 'myThemes'), 'hint' => __('If not is set custom layout, will be used default layout.', 'myThemes'), 'action' => "[ 'hs' , { 'full' : '.page-sidebar' } ]");
if (myThemes::pget('page-layout') == 'full') {
    $sidebarClass = 'page-sidebar hidden';
} else {
    $sidebarClass = 'page-sidebar';
}
$sett['page-sidebar'] = array('type' => array('template' => 'inline', 'input' => 'select'), 'templateClass' => $sidebarClass, 'values' => $values, 'label' => __('Pages sidebar', 'myThemes'));
/* SINGLE POSTS */
$sett['single-title'] = array('type' => array('template' => 'code'), 'title' => __('Single Posts Layout', 'myThemes'));
$sett['single-layout'] = array('type' => array('template' => 'inline', 'input' => 'imageSelect'), 'values' => $layouts, 'coll' => 3, 'label' => __('Single posts layout', 'myThemes'), 'hint' => __('If not is set single post layout, will be used default layout.', 'myThemes'), 'action' => "[ 'hs' , { 'full' : '.single-sidebar' } ]");
if (myThemes::pget('single-layout') == 'full') {
    $sidebarClass = 'single-sidebar hidden';
} else {
    $sidebarClass = 'single-sidebar';
}
$sett['single-sidebar'] = array('type' => array('template' => 'inline', 'input' => 'select'), 'templateClass' => $sidebarClass, 'values' => $values, 'label' => __('Single posts sidebar', 'myThemes'));
/////////////////////////////////////////
/* SOCIAL SETTINGS */
$sett['social-settings-title'] = array('type' => array('template' => 'none'), 'content' => '<div style="padding-top: 80px;" class="title"><h2>' . __('Social', 'myThemes') . '</h2></div>');
$sett['github'] = array('type' => array('template' => 'inline', 'input' => 'text'), 'label' => __('Github URL profile', 'myThemes'));
$sett['vimeo'] = array('type' => array('template' => 'inline', 'input' => 'text'), 'label' => __('Vimeo URL profile', 'myThemes'));
$sett['twitter'] = array('type' => array('template' => 'inline', 'input' => 'text'), 'label' => __('Twitter URL profile', 'myThemes'));
$sett['renren'] = array('type' => array('template' => 'inline', 'input' => 'text'), 'label' => __('Renren URL profile', 'myThemes'));
$sett['skype'] = array('type' => array('template' => 'inline', 'input' => 'text'), 'label' => __('Skype URL profile', 'myThemes'));
$sett['linkedin'] = array('type' => array('template' => 'inline', 'input' => 'text'), 'label' => __('Linkedin URL profile', 'myThemes'));
$sett['behance'] = array('type' => array('template' => 'inline', 'input' => 'text'), 'label' => __('Behance URL profile', 'myThemes'));
     ),
     'label' => __( 'Upload logo' , "mythemes" ),
     'hint' => __( 'This logo will be used only for under construction side' , "mythemes" )
 );
 
 $sett[ 'activate' ] = array(
     'type' => array(
         'template' => 'inline',
         'input' => 'logic'
     ),
     'action' => "{'t' : '.mytheme-used-page' , 'f' : '-' }",
     'label' => __( 'Activate under construction template' , "mythemes" ),
     'hint' => __( 'It will activate only on front page' , 'mythemes' )
 );
 
 if( (boolean)myThemes::pget( 'under-construction-activate' ) ){
     $pageClass = 'mytheme-used-page';
 }
 else{
     $pageClass = 'mytheme-used-page hidden';
 }
 
 $sett[ 'default-text' ] = array(
     'type' => array(
         'template' => 'inline',
         'input' => 'textarea',
         'validator' => 'noesc'
     ),
     'templateClass' => $pageClass,
     'label' => __( 'Default under construction description' , "mythemes" )
 );