Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Default Options */
- if ( !get_option('elevenfourty_theme_options') ) {
- $options = array(
- "css" => '',
- "show_vertical_icons" => true,
- "show_footer_icons" => true,
- "home_type" => 'none',
- "home_text" => '',
- "single_type" => 'none',
- "single_text" => '',
- "header_logo_url" => '',
- "cat_title" => '',
- "footer_text" => '',
- "css" => '',
- "css_post" => '',
- "css_page" => '',
- "block_type_1" => 'none',
- "block_name_1" => '',
- "block_text_1" => '',
- "block_type_2" => 'none',
- "block_name_2" => '',
- "block_text_2" => '',
- "block_type_3" => 'none',
- "block_text_3" => '',
- "block_name_3" => '',
- "block_type_4" => 'none',
- "block_name_4" => '',
- "block_text_4" => '',
- "block_type_5" => 'none',
- "block_name_5" => '',
- "block_text_5" => '',
- 'google_font' => true,
- 'font_name' => 'Limelight',
- 'font_style' => 'regular',
- 'font_size' => 48,
- 'font_spacing' => 0.1,
- 'font_bold' => false,
- 'font_italic' => false,
- 'page_titles' => true,
- 'widget_titles' => true,
- );
- update_option('elevenfourty_theme_options', $options );
- }
- /* Default Cat_Meta */
- if ( !get_option('elevenforty_cat_meta') ) {
- $options = array();
- update_option('elevenforty_cat_meta', $options );
- }
- /* Color List array */
- function elevenforty_color_styles () {
- $options=array();
- $options['aqua'] = array(
- 'primary' => '#027061',
- 'secondary' => '#217C6C',
- 'tertiary' => '#3BBCAA'
- );
- $options['blue'] = array(
- 'primary' => '#00609A',
- 'secondary' => '#3479B5',
- 'tertiary' => '#1982D1'
- );
- $options['dove'] = array(
- 'primary' => '#4B5676',
- 'secondary' => '#646E97',
- 'tertiary' => '#7C8EC1'
- );
- $options['green'] = array(
- 'primary' => '#4C7016',
- 'secondary' => '#5F8A1E',
- 'tertiary' => '#80BC24'
- );
- $options['olive'] = array(
- 'primary' => '#625D34',
- 'secondary' => '#58664B',
- 'tertiary' => '#AFAC91'
- );
- $options['orange'] = array(
- 'primary' => '#A72608',
- 'secondary' => '#BB430B',
- 'tertiary' => '#DB7C2A'
- );
- $options['pink'] = array(
- 'primary' => '#840259',
- 'secondary' => '#A11A6E',
- 'tertiary' => '#CF4283'
- );
- $options['purple'] = array(
- 'primary' => '#691E79',
- 'secondary' => '#893F9C',
- 'tertiary' => '#B56BC4'
- );
- $options['red'] = array(
- 'primary' => '#851607',
- 'secondary' => '#A3362D',
- 'tertiary' => '#D15949'
- );
- $options['suede'] = array(
- 'primary' => '#504638',
- 'secondary' => '#726E52',
- 'tertiary' => '#9C896E'
- );
- $options['teal'] = array(
- 'primary' => '#0C6989',
- 'secondary' => '#2D7595',
- 'tertiary' => '#52B5D6'
- );
- return $options;
- }
- /* Color List */
- function elevenforty_color_list () {
- $options=array();
- $options[]='';
- $options[]='aqua';
- $options[]='blue';
- $options[]='dove';
- $options[]='green';
- $options[]='olive';
- $options[]='orange';
- $options[]='pink';
- $options[]='purple';
- $options[]='red';
- $options[]='suede';
- $options[]='teal';
- }
- /* Options for the Theme Setup page */
- function get_theme_admin_options() {
- $types = array(
- 'none' => array(
- 'value' => 'none',
- 'label' => 'None'
- ),
- 'text' => array(
- 'value' => 'ad',
- 'label' => 'Advertisement'
- ),
- 'image' => array(
- 'value' => 'image',
- 'label' => 'Image'
- ),
- 'text' => array(
- 'value' => 'text',
- 'label' => 'HTML Text'
- )
- );
- /* Google Font Style Options */
- $google_font_style_options = array(
- 'regular' => array(
- 'value' => 'regular',
- 'label' => 'Regular'
- ),
- 'bold' => array(
- 'value' => 'bold',
- 'label' => 'Bold'
- ),
- );
- global $theme_css;
- $general_options = array (
- /* General Section */
- array(
- "name" => "General Settings",
- "type" => "title"),
- array(
- "name" => __( "General Settings", THEME_NS ),
- "type" => "section"),
- array( "type" => "open"),
- array(
- "id" => "css",
- "name" => __('Default Color Stylesheet', THEME_NS),
- "desc" => __('You may change the default color scheme here', THEME_NS),
- "type" => 'select',
- "sub-type" => 'small',
- 'options' => $theme_css,
- "default" => '',
- ),
- array(
- "id" => "css_page",
- "name" => __('Default Page Color Stylesheet', THEME_NS),
- "desc" => __('You may change the default page color scheme here', THEME_NS),
- "type" => 'select',
- "sub-type" => 'small',
- 'options' => $theme_css,
- "default" => '',
- ),
- array(
- "name" => __( "Side Social Media Icons", THEME_NS ),
- "desc" => __( "Show the right screen vertical social media icons", THEME_NS ),
- "id" => "show_vertical_icons",
- "type" => "checkbox",
- "default" => true),
- array(
- "name" => __( "Footer Social Media Icons", THEME_NS ),
- "desc" => __( "Show the horizontal footer social media icons", THEME_NS ),
- "id" => "show_footer_icons",
- "type" => "checkbox",
- "default" => true),
- array( "type" => "close"),
- array(
- "name" => __('Header', THEME_NS),
- "type" => "section"),
- array( "type" => "open"),
- array(
- "id" => "header_logo_url",
- "name" => __('Custom Logo URL', THEME_NS),
- "desc" => __('Logo Image Width: 150px Height: 150px', THEME_NS),
- "type" => 'text',
- "default" => '',
- ),
- array(
- "id" => "cat_title",
- "name" => __('Category Page Title', THEME_NS),
- "desc" => __('Sub title for category pages like Digital for Digital News', THEME_NS),
- "type" => 'text',
- "default" => '',
- ),
- array(
- "id" => "home_type",
- "name" => __('Block (468px * 60px )', THEME_NS),
- "desc" => __('Select the content type for the default 468px * 60px header block', THEME_NS),
- "type" => 'select',
- "sub-type" => 'small',
- 'options' => $types,
- "default" => 'none',
- ),
- array(
- "id" => "home_text",
- "name" => __('Display in Block', THEME_NS),
- "desc" => __('Enter the image url, html text, or adtext for the default header block', THEME_NS),
- "type" => 'textarea',
- "default" => '',
- ),
- array(
- "id" => "single_type",
- "name" => __('Block (468px * 60px )', THEME_NS),
- "desc" => __('Select the content type for the default 468px * 60px page header block', THEME_NS),
- "type" => 'select',
- "sub-type" => 'small',
- 'options' => $types,
- "default" => 'none',
- ),
- array(
- "id" => "single_text",
- "name" => __('Display in Block', THEME_NS),
- "desc" => __('Enter the image url, html text, or adtext for the default page header block', THEME_NS),
- "type" => 'textarea',
- "default" => '',
- ),
- array( "type" => "close"),
- array(
- "name" => __( "Footer", THEME_NS ),
- "type" => "section"),
- array( "type" => "open"),
- array(
- "name" => __( "Footer Text", THEME_NS ),
- "desc" => __( "Company Footer Text", THEME_NS ),
- "id" => "footer_text",
- "type" => "textarea",
- "default" => ""),
- array( "type" => "close"),
- /* Font */
- array(
- "name" => "Google Fonts",
- "type" => "title"),
- array(
- "name" => __('Google Font', THEME_NS),
- "type" => "section"),
- array( "type" => "open"),
- array(
- 'id' => 'google_font',
- 'name' => __('Use Google Font', THEME_NS),
- 'desc' => __('Select to use Google Fonts', THEME_NS),
- 'type' => 'checkbox',
- "default" => true,
- ),
- array(
- 'id' => 'font_name',
- 'name' => __('Google Font Name', THEME_NS),
- 'desc' => __('Google Font Name from http://www.google.com/webfonts', THEME_NS),
- 'type' => 'text',
- "default" => 'Limelight',
- ),
- array(
- 'id' => 'font_style',
- 'name' => __('Font Type', THEME_NS),
- 'type' => 'select',
- 'sub-type' => 'small',
- 'options' => $google_font_style_options,
- 'desc' => __('the text after the colon : from the font preview EG: Limelight:<b>regular</b>', THEME_NS),
- 'default' => 'regular'
- ),
- array(
- 'id' => 'font_size',
- 'name' => __('Font Size', THEME_NS),
- 'desc' => __('Numeric Value for the Font Size', THEME_NS),
- 'type' => 'text',
- 'numeric' => 1,
- 'size' => 3,
- 'maxlength' => 2,
- 'min' => 0,
- 'max' => 60,
- 'default' => 55
- ),
- array(
- 'id' => 'font_spacing',
- 'name' => __('Font Spacing', THEME_NS),
- 'desc' => __('Numeric Value for the Font Spacing EG: 0.20em', THEME_NS),
- 'type' => 'text',
- 'numeric' => 1,
- 'size' => 3,
- 'maxlength' => 4,
- 'min' => 0,
- 'max' => 2,
- 'default' => 0.1
- ),
- array(
- 'id' => 'font_bold',
- 'name' => __('Google Font Bold', THEME_NS),
- 'desc' => __('Font Bold', THEME_NS),
- 'type' => 'checkbox',
- 'default' => false
- ),
- array(
- 'id' => 'font_italic',
- 'name' => __('Google Font Italic', THEME_NS),
- 'desc' => __('Font Italic', THEME_NS),
- 'type' => 'checkbox',
- 'default' => false
- ),
- array(
- 'id' => 'page_titles',
- 'name' => __('Post and Page Titles', THEME_NS),
- 'desc' => __('Apply to Post and Page Titles', THEME_NS),
- 'type' => 'checkbox',
- 'default' => true
- ),
- array(
- 'id' => 'widget_titles',
- 'name' => __('Widget Titles', THEME_NS),
- 'desc' => __('Apply Font to Widget Titles', THEME_NS),
- 'type' => 'checkbox',
- 'default' => true
- ),
- /* googleFont Settings */
- array( "type" => "close"),
- );
- return $general_options;
- }
- function elevenforty_featured () {
- $types = array(
- 'list' => array(
- 'value' => 'list',
- 'label' => 'Simple List'
- ),
- 'image' => array(
- 'value' => 'image',
- 'label' => 'Large Image no Excerpt'
- ),
- 'thumb' => array(
- 'value' => 'thumb',
- 'label' => 'Thumbnail and Excerpt'
- ),
- 'excerpt' => array(
- 'value' => 'excerpt',
- 'label' => 'Excerpt no Thumbnail'
- )
- );
- return $types;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement