createAdminPanel( array( 'name' => 'Theme Cerebellum', 'parent' => 'themes.php' ) ); // General Tab. $general = $panel->createTab( array( 'name' => __( 'General', THEMESLUG ), ) ); $general->createOption( array( 'name' => __( 'Select a Color Theme', THEMESLUG ), 'id' => 'color_palette', 'type' => 'radio-image', 'options' => array( 'light' => IMG_URL . '/palette_light.jpg', 'woods' => IMG_URL . '/palette_woods.jpg', 'dark' => IMG_URL . '/palette_dark.jpg', ), 'default' => 'light', ) ); $general->createOption( array( 'name' => __( 'Favicon', THEMESLUG ), 'id' => 'favicon', 'type' => 'upload', 'desc' => __( 'Upload your favicon. Ideal Size is', THEMESLUG ) . ' 16px x 16px', ) ); $general->createOption( array( 'name' => __( 'iPhone Icon', THEMESLUG ), 'id' => 'iphone', 'type' => 'upload', 'desc' => __( 'Upload your iPhone icon. Ideal Size is', THEMESLUG ) . ' 57px x 57px', ) ); $general->createOption( array( 'name' => __( 'iPhone Retina Icon', THEMESLUG ), 'id' => 'iphone_retina', 'type' => 'upload', 'desc' => __( 'Upload your iPhone Retina Icon. Ideal Size is', THEMESLUG ) . ' 120px x 120px', ) ); $general->createOption( array( 'name' => __( 'iPad Icon', THEMESLUG ), 'id' => 'ipad', 'type' => 'upload', 'desc' => __( 'Upload your iPad Icon. Ideal Size is', THEMESLUG ) . ' 72 x 72px', ) ); $general->createOption( array( 'name' => __( 'iPad Retina Icon', THEMESLUG ), 'id' => 'ipad_retina', 'type' => 'upload', 'desc' => __( 'Uplaod your iPad Retina Icon. Ideal Size is', THEMESLUG ) . ' 144px x 144px', ) ); $general->createOption( array( 'name' => __( 'Head Markup', THEMESLUG ), 'id' => 'head_code', 'type' => 'code', 'desc' => __( 'Any code placed here will be added in the <head> section of the Theme', THEMESLUG ), 'lang' => 'html', ) ); $general->createOption( array( 'name' => __( 'Body Markup', THEMESLUG ), 'id' => 'body_code', 'type' => 'code', 'desc' => __( 'Any code placed here will be added right after the <body> tag of the Theme', THEMESLUG ), 'lang' => 'html', ) ); $general->createOption( array( 'name' => __( 'Custom (S)CSS', THEMESLUG ), 'id' => 'custom_css', 'type' => 'code', 'desc' => __( 'Any additional CSS code can be added here. SCSS is supported as well', THEMESLUG ), 'lang' => 'scss', ) ); $general->createOption( array( 'name' => __( 'Custom JavaScript', THEMESLUG ), 'id' => 'custom_js', 'type' => 'code', 'desc' => __( 'Any additional JavaScript can be added here, the script tags are already included, so type your script in here, without them', THEMESLUG ), 'lang' => 'javascript', ) ); // Header Tab. $header = $panel->createTab( array( 'name' => __( 'Header', THEMESLUG ), ) ); $header->createOption( array( 'name' => __( 'Search Function', THEMESLUG ), 'id' => 'search', 'type' => 'checkbox', 'desc' => __( 'Display Search Icon in the top Menu', THEMESLUG ), 'default' => true, ) ); $header->createOption( array( 'name' => __( 'Header Image', THEMESLUG ), 'id' => 'my_header_img', 'type' => 'upload', 'desc' => __( 'Upload your header image here. It will replace the title and subtitle display shown by default.', THEMESLUG ), ) ); $header->createOption( array( 'name' => __( 'Header Logo', THEMESLUG ), 'id' => 'my_header_logo', 'type' => 'upload', 'desc' => __( 'Upload your logo here, it will be shown next to the title', THEMESLUG ), ) ); // Social Media Tab. $socialmedia = $panel->createTab( array( 'name' => __( 'Social Media', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'facebook', THEMESLUG ), 'id' => 'fb', 'type' => 'text', 'desc' => __( 'Include Facebook', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'Google+', THEMESLUG ), 'id' => 'gplus', 'type' => 'text', 'desc' => __( 'Include Google Plus', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'twitter', THEMESLUG ), 'id' => 'twitter', 'type' => 'text', 'desc' => __( 'Include Twitter', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'linkedIn', THEMESLUG ), 'id' => 'li', 'type' => 'text', 'desc' => __( 'Include LinkedIn', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'Xing', THEMESLUG ), 'id' => 'xing', 'type' => 'text', 'desc' => __( 'Include Xing', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'Pinterest', THEMESLUG ), 'id' => 'pin', 'type' => 'text', 'desc' => __( 'Include Pinterest', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'Instagram', THEMESLUG ), 'id' => 'insta', 'type' => 'text', 'desc' => __( 'Include Instagram', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'Flickr', THEMESLUG ), 'id' => 'flickr', 'type' => 'text', 'desc' => __( 'Include Flickr', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'deviantArt', THEMESLUG ), 'id' => 'dA', 'type' => 'text', 'desc' => __( 'Include deviantArt', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'dribbble', THEMESLUG ), 'id' => 'dribbble', 'type' => 'text', 'desc' => __( 'Include Dribble', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'Behance', THEMESLUG ), 'id' => 'behance', 'type' => 'text', 'desc' => __( 'Include Behance', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'GitHub', THEMESLUG ), 'id' => 'github', 'type' => 'text', 'desc' => __( 'Include GitHub', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'tumblr', THEMESLUG ), 'id' => 'tumblr', 'type' => 'text', 'desc' => __( 'Include Tumblr', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'YouTube', THEMESLUG ), 'id' => 'yt', 'type' => 'text', 'desc' => __( 'Include YouTube', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'Vimeo', THEMESLUG ), 'id' => 'vimeo', 'type' => 'text', 'desc' => __( 'Include Vimeo', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'Vine', THEMESLUG ), 'id' => 'vine', 'type' => 'text', 'desc' => __( 'Include Vine', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'SoundCloud', THEMESLUG ), 'id' => 'sc', 'type' => 'text', 'desc' => __( 'Include Soundcloud', THEMESLUG ), ) ); $socialmedia->createOption( array( 'name' => __( 'Spotify', THEMESLUG ), 'id' => 'spotifiy', 'type' => 'text', 'desc' => __( 'Include Spotify', THEMESLUG ), ) ); // Article Tab. $article = $panel->createTab( array( 'name' => __( 'Article Settings', THEMESLUG ), ) ); $article->createOption( array( 'name' => __( 'Meta Information', THEMESLUG ), 'id' => 'meta_info', 'type' => 'multicheck', 'desc' => __( 'Check the ones you want to show', THEMESLUG ), 'options' => array( '1' => __( 'Date', THEMESLUG ), '2' => __( 'Author', THEMESLUG ), '3' => __( 'Category', THEMESLUG ), '4' => __( 'Tags', THEMESLUG ), ), 'default' => array( '1', '2', '3', '4' ), ) ); $article->createOption( array( 'name' => __( 'Featured Image', THEMESLUG ), 'id' => 'feat_img', 'type' => 'multicheck', 'desc' => __( 'Display Search Icon in the top Menu', THEMESLUG ), 'options' => array( '1' => __( 'Display the featured image on home page', THEMESLUG ), '2' => __( 'Display the featured image on single page', THEMESLUG ), '3' => __( 'Display featured image of featured post on home page', THEMESLUG ), ), 'default' => array( '1', '2', '3' ), ) ); $article->createOption( array( 'name' => __( 'Featured Category', THEMESLUG ), 'id' => 'fcselect', 'type' => 'select-categories', 'desc' => __( 'Select from what category the most recent post shall be taken.', THEMESLUG ), ) ); $article->createOption( array( 'name' => __( 'AddThis Code', THEMESLUG ), 'id' => 'addthis_code', 'type' => 'code', 'desc' => __( 'Add the addthis container here. Place the javascript within the custom body section found in the General tab', THEMESLUG ), 'lang' => 'html', ) ); // Footer Tab. $footer = $panel->createTab( array( 'name' => __( 'Footer', THEMESLUG ), ) ); $footer->createOption( array( 'name' => __( 'Select a Layout for the widgetized footer', THEMESLUG ), 'id' => 'footer_layout', 'type' => 'radio-image', 'options' => array( 'full_width' => IMG_URL . '/foot_1.jpg', '2_widget_area' => IMG_URL . '/foot_2.jpg', '3_widget_area' => IMG_URL . '/foot_3.jpg', '4_widget_area' => IMG_URL . '/foot_4.jpg', 'hide_footer' => IMG_URL . '/foot_0.jpg', ), 'default' => '3_widget_area', ) ); $footer->createOption( array( 'name' => __( 'Footer Elements', THEMESLUG ), 'id' => 'foot_elements', 'type' => 'multicheck', 'desc' => __( 'Check which elements to display', THEMESLUG ), 'options' => array( '1' => __( 'Back to top link', THEMESLUG ), '2' => __( 'Social Media Icons', THEMESLUG ), ), 'default' => array( '1', '2' ), ) ); $footer->createOption( array( 'name' => __( 'Footer Content', THEMESLUG ), 'id' => 'foot_content', 'type' => 'editor', 'desc' => __( 'Put your footer content here', THEMESLUG ), ) ); $panel->createOption( array( 'type' => 'save', ) ); } } new Digitalmind_Admin_Options(); ?>