__( 'One', 'artistic-green' ), 'two' => __( 'Two', 'artistic-green' ), 'three' => __( 'Three', 'artistic-green' ), 'four' => __( 'Four', 'artistic-green' ), 'five' => __( 'Five', 'artistic-green' ) ); $openclose = array( 'on' => __( 'On', 'artistic-green' ), 'off' => __( 'Off', 'artistic-green' ), ); // Multicheck Array $multicheck_array = array( 'one' => __( 'French Toast', 'artistic-green' ), 'two' => __( 'Pancake', 'artistic-green' ), 'three' => __( 'Omelette', 'artistic-green' ), 'four' => __( 'Crepe', 'artistic-green' ), 'five' => __( 'Waffle', 'artistic-green' ) ); // Multicheck Defaults $multicheck_defaults = array( 'one' => '1', 'five' => '1' ); // Background Defaults $background_defaults = array( 'color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment'=>'scroll' ); // Typography Defaults $typography_defaults = array( 'size' => '15px', 'face' => 'georgia', 'style' => 'bold', 'color' => '#bada55' ); // Typography Options $typography_options = array( 'sizes' => array( '6','12','14','16','20' ), 'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ), 'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ), 'color' => false ); // Pull all the categories into an array $options_categories = array(); $options_categories_obj = get_categories(); foreach ($options_categories_obj as $category) { $options_categories[$category->cat_ID] = $category->cat_name; } // Pull all tags into an array $options_tags = array(); $options_tags_obj = get_tags(); foreach ( $options_tags_obj as $tag ) { $options_tags[$tag->term_id] = $tag->name; } // Pull all the pages into an array $options_pages = array(); $options_pages_obj = get_pages( 'sort_column=post_parent,menu_order' ); $options_pages[''] = 'Select a page:'; foreach ($options_pages_obj as $page) { $options_pages[$page->ID] = $page->post_title; } // If using image radio buttons, define a directory path $imagepath = get_template_directory_uri() . '/images/'; $options = array(); $options[] = array( 'name' => __( 'Basic Settings', 'artistic-green' ), 'type' => 'heading' ); $options[] = array( 'name' => __( 'Logo', 'artistic-green' ), 'desc' => __( 'Select a logo. ( 300 x 125 )', 'artistic-green' ), 'id' => 'example_uploader', 'type' => 'upload' ); $options[] = array( 'name' => __( '(Or) Title', 'artistic-green' ), 'desc' => __( 'Write site name.', 'artistic-green' ), 'id' => 'logotitle', 'std' => 'Artistic Green', 'class' => 'mini', 'type' => 'text' ); $options[] = array( 'name' => __( 'Favicon', 'artistic-green' ), 'desc' => __( 'Select favicon.', 'artistic-green' ), 'id' => 'upload_favicon', 'type' => 'upload' ); $options[] = array( 'name' => __( 'Featured Content', 'artistic-green' ), 'desc' => __( '! Minimum 6 articles required', 'artistic-green' ), 'id' => 'featured_onoff', 'std' => 'off', 'type' => 'radio', 'options' => $openclose ); $options[] = array( 'name' => __( 'Categories to display(Featured Titles)', 'artistic-green' ), 'desc' => __( 'Select featured categories.', 'artistic-green' ), 'id' => 'example_multicheck', 'type' => 'multicheck', 'options' => $options_categories ); //Index Categories $options[] = array( 'id' => 'code', 'code' => '', 'type' => 'html' ); $options[] = array( 'id' => 'closetag', 'class' => 'displaycontentindex', 'type' => 'info', 'closetag' => '' ); // Pull all the categories into an array $options_categories_obj = get_categories(); $options[] = array( 'code' => '
Order
', 'id' => 'descriptionorder', 'type' => 'html' ); $ie = 0; foreach ($options_categories_obj as $categorye) { $categoryct[] = $categorye->cat_ID; ++$ie; // Category Order $options[] = array( 'id' => 'displayorders'.$categorye->cat_ID, 'std' => $ie, 'class' => 'mini', 'type' => 'text' ); } $options[] = array( 'id' => 'closetag2', 'type' => 'customtag', 'closetag' => '' ); $options[] = array( 'name' => __( 'Categories to display(Index)', 'artistic-green' ), 'desc' => __( 'Select display categories.', 'artistic-green' ), 'id' => 'displaycategories', 'type' => 'multicheck', 'options' => $options_categories ); //$categorycount = count($categoryct); //$ctcount = implode(',',$ctcount); $options[] = array( 'name' => __( 'Show Limit(Index)', 'artistic-green' ), 'desc' => __( 'Default: "3"', 'artistic-green' ), 'id' => 'showlimit', 'std' => 3, 'class' => 'mini', 'type' => 'text' ); $options[] = array( 'id' => 'cscode', 'code' => '', 'type' => 'html' ); // Social Networks $options[] = array( 'name' => __( 'Social Networks Configuration', 'artistic-green' ), 'type' => 'heading' ); $options[] = array( 'name' => __( 'Facebook', 'artistic-green' ), 'desc' => __( 'Facebook link.', 'artistic-green' ), 'id' => 'facebooklink', 'std' => '', 'type' => 'text' ); $options[] = array( 'name' => __( 'Twitter', 'artistic-green' ), 'desc' => __( 'Twitter link.', 'artistic-green' ), 'id' => 'twitterlink', 'std' => '', 'type' => 'text' ); $options[] = array( 'name' => __( 'Google+', 'artistic-green' ), 'desc' => __( 'Google link.', 'artistic-green' ), 'id' => 'googlelink', 'std' => '', 'type' => 'text' ); $options[] = array( 'name' => __( 'Pinterest', 'artistic-green' ), 'desc' => __( 'Pinterest link.', 'artistic-green' ), 'id' => 'pinterestlink', 'std' => '', 'type' => 'text' ); $options[] = array( 'name' => __( 'Youtube', 'artistic-green' ), 'desc' => __( 'Youtube link.', 'artistic-green' ), 'id' => 'youtubelink', 'std' => '', 'type' => 'text' ); $options[] = array( 'name' => __( 'Nav Menu', 'artistic-green' ), 'type' => 'heading' ); $options[] = array( 'name' => __( 'Nav Menu (Left)', 'artistic-green' ), 'desc' => __( 'Nav menu active/deactive. ', 'artistic-green' ), 'id' => 'oylesine', 'code' => '
',
'type' => 'html'
);
$options[] = array(
'desc' => __( 'Nav menu active/deactive. (Add a new menu and select "Left Home Menu") ', 'artistic-green' ),
'id' => 'navmenuonoff',
'std' => 'off',
'type' => 'radio',
'options' => $openclose
);
$options[] = array(
'name' => __( 'Colors', 'artistic-green' ),
'type' => 'heading'
);
$options[] = array(
'name' => __( 'Header Color', 'artistic-green' ),
'desc' => __( 'Select Header Color.', 'artistic-green' ),
'id' => 'headercolor',
'std' => '#f9f9f9',
'type' => 'color'
);
$options[] = array(
'name' => __( 'Background Color', 'artistic-green' ),
'desc' => __( 'Select Background Color.', 'artistic-green' ),
'id' => 'backgroundcolor',
'std' => '#f2f2f2',
'type' => 'color'
);
$options[] = array(
'name' => __( 'Custom CSS', 'artistic-green' ),
'type' => 'heading'
);
/**
* For $settings options see:
* http://codex.wordpress.org/Function_Reference/wp_editor
*
* 'media_buttons' are not supported as there is no post to attach items to
* 'textarea_name' is set by the 'id' you choose
*/
$wp_editor_settings = array(
'wpautop' => true, // Default
'textarea_rows' => 5,
'tinymce' => array( 'plugins' => 'wordpress,wplink' )
);
$options[] = array(
'name' => __( 'Custom CSS', 'artistic-green' ),
'desc' => __( 'Custom CSS panel.', 'artistic-green' ),
'id' => 'custom_css',
'type' => 'textarea'
);
return $options;
}