cat_ID] = $category_list->cat_name; } array_unshift($wp_cats, "Choose a category"); $options = array ( array( "name" => __('Header','ux'), "type" => "section"), array( "type" => "open"), array( "name" => __('Enable Plain Text Logo','ux'), "desc" => "Check this to enable a plain text logo rather than an image.", "id" => $shortname."_textlogo", "type" => "checkbox", "std" => ""), array( "name" => __('Custom Logo','ux'), "desc" => "Specify the image address of your online logo. ", "id" => $shortname."_logo", "std" => "", "type" => "text"), array( "name" => __('Enable search bar','ux'), "desc" => "", "id" => $shortname."_searchbar", "type" => "checkbox", "std" => ""), array( "name" => "Facebook URL", "desc" => __('Optional, for Facebook icon','ux'), "id" => $shortname."_facebook", "std" => "", "type" => "text"), array( "name" => "Twitter URL", "desc" => "", "id" => $shortname."_tweet", "std" => "", "type" => "text"), array( "name" => "LinkedIn URL", "desc" => "", "id" => $shortname."_linkedin", "std" => "", "type" => "text"), array( "name" => "Flickr URL", "desc" => "", "id" => $shortname."_flickr", "std" => "", "type" => "text"), array( "name" => "Youtube URL", "desc" => "", "id" => $shortname."_youtube", "std" => "", "type" => "text"), array( "name" => "Vimeo URL", "desc" => "", "id" => $shortname."_vimeo", "std" => "", "type" => "text"), array( "name" => "Blogger URL", "desc" => "", "id" => $shortname."_blogger", "std" => "", "type" => "text"), array( "name" => "Last.fm URL", "desc" => "", "id" => $shortname."_lastfm", "std" => "", "type" => "text"), array( "name" => "Email adderss", "desc" => __('For email icon','ux'), "id" => $shortname."_iconmail", "std" => "", "type" => "text"), array( "name" => "Rss URL", "desc" => "", "id" => $shortname."_rss", "std" => "", "type" => "text"), array( "type" => "close"), array( "name" => __('General','ux'), "type" => "section"), array( "type" => "open"), array( "name" => __('Custom Favicon','ux'), "desc" => __('16px x 16px Ico/Png/Gif image that will represent your website\'s favicon.','ux'), "id" => $shortname."_favicon", "std" => "", "type" => "text"), array( "name" => __('Custom Mobile Bookmark Icon','ux'), "desc" => "This icon is used by Android (v2.1+) and iPhones to display home screen bookmarks. Recommended image size 129 x 129, saved in PNG format", "id" => $shortname."_mobileicon", "std" => "", "type" => "text"), array( "name" => __('Skin','ux'), "desc" => "", "id" => $shortname."_skin", "type" => "select", "options" => array("Please Select","dark", "light"), "std" => "dark"), array( "name" => __('Color scheme','ux'), "desc" => "", "id" => $shortname."_font_color", "type" => "selectcolor", "std" => "sienna"), array( "name" => __('Background color','ux'), "desc" => __('Enter color code','ux'), "id" => $shortname."_colorbg", "std" => "", "type" => "colorbox"), array( "name" => __('Background Pattern','ux'), "desc" => "", "id" => $shortname."_pattern", "type" => "selectpattern", "std" => ""), array( "name" => __('Enable Custom Background Pattern','ux'), "desc" => "", "id" => $shortname."_customif", "std" => "", "type" => "checkbox"), array( "name" => __(' Custom Background Pattern Image url','ux'), "desc" => __('Optional, Png/Jpg/Gif format','ux'), "id" => $shortname."_custombg", "std" => "", "type" => "text"), array( "name" => __('Background Pattern repeat or not','ux'), "desc" => __('Optional','ux'), "id" => $shortname."_repeat", "type" => "select", "options" => array("","repeat", "no-repeat","repeat-x","repeat-y"), "std" => ""), array( "name" => __('Background Pattern fixed or not','ux'), "desc" => __('Optional','ux'), "id" => $shortname."_fix", "type" => "select", "options" => array("","fixed", "scroll"), "std" => ""), array( "name" => __('Heading Font','ux'), "desc" => "", "id" => $shortname."_font", "type" => "select", "options" => array("Abel", "Righteous", "Signika", "Ribeye", "Niconne", "Iceland", "Knewave", "Smokum", "Arapey", "Redressed", "Petrona", "Cookie", "Snippet", "Prata", "Smythe", "Meddon", "Aclonica", "Julee", "Satisfy", "Voltaire", "Sancreek", "Montez", "Quicksand", "Rosario", "Limelight", "Metrophobic", "Rationale", "Marvel", "Questrial", "Vidaloka", "Candal", "Yellowtail", "Lora", "Salsa", "Kenia", "Actor", "Rokkitt", "Lekton", "Federant", "Numans", "Podkova", "Lato", "Andika", "Damion"), "std" => ""), array( "name" => __('Enable Lightbox','ux'), "desc" => "Check this to enable the Lightbox in waterfall list.", "id" => $shortname."_lightbox", "type" => "checkbox", "std" => ""), array( "name" => __('Readmore button','ux'), "desc" => "", "id" => $shortname."_readmore", "std" => __('Read more','ux'), "type" => "text"), array( "name" => __('Article number of each archive page','ux'), "desc" => __('default 15','ux'), "id" => $shortname."_number_index", "std" => "", "type" => "text"), array( "name" => __('Article number of each search result page','ux'), "desc" => __('default 15','ux'), "id" => $shortname."_number_search", "std" => "", "type" => "text"), array( "name" => __('Comment Form Title','ux'), "desc" => "", "id" => $shortname."_respondtit", "std" => __('LEAVE A REPLY','ux'), "type" => "text"), array( "name" => __('Comment Form button','ux'), "desc" => "", "id" => $shortname."_respondsend", "std" => __('Submit','ux'), "type" => "text"), array( "name" => "Custom CSS code", "desc" => __('You could customize the css code what you want. e.g. body{background-color:#000}','ux'), "id" => $shortname."_customcss", "std" => "", "type" => "textarea"), array( "type" => "close"), array( "name" => __('Footer','ux'), "type" => "section"), array( "type" => "open"), array( "name" => __('Copyright','ux'), "desc" => __('e.g. Copyright 2015 Powered by WordPress. Magazine Theme by Bwsm','ux'), "id" => $shortname."_copyright", "std" => "", "type" => "textarea"), array( "name" => __('Contact infomation','ux'), "desc" => __('Show the contact information and form in footer','ux'), "id" => $shortname."_contactinfo", "type" => "select", "options" => array("not show","click to show", "show by default"), "std" => "not show"), array( "name" => __('Address Title','ux'), "desc" => __('e.g. Our Address','ux'), "id" => $shortname."_addresstitle", "std" => "", "type" => "text"), array( "name" => __('Address Details','ux'), "desc" => "", "id" => $shortname."_addressdetails", "std" => "123 Room, Buliding, 321 Street, USA, NY <br />Phone: (000) 765-4321 <br />Fax: (000) 765-4321<br /><br />Email: <a href="mailto:uiueux@gmail.com">uiueux@gmail.com</a><br />Website: <a href="http://www.uiueux.com/">www.uiueux.com</a>", "type" => "textarea"), array( "name" => "Email", "desc" => __('Please enter a email address which you want receive message from the contact form','ux'), "id" => $shortname."_mailto", "type" => "text", "std" => ""), array( "name" => __('Contact form Title','ux'), "desc" => __('e.g. Leave a Message','ux'), "id" => $shortname."_contactTitle", "std" => "", "type" => "text"), array( "name" => __('Contact form Button','ux'), "desc" => "", "id" => $shortname."_contactButton", "std" => __('Send','ux'), "type" => "text"), array( "name" => __('Enable Random Verify Number','ux'), "desc" => "", "id" => $shortname."_verify", "std" => "", "type" => "checkbox"), array( "name" => __('Facebook URL','ux'), "desc" => __('Optional, for Facebook icon','ux'), "id" => $shortname."_foot_facebook", "std" => "", "type" => "text"), array( "name" => "Twitter URL", "desc" => "", "id" => $shortname."_foot_tweet", "std" => "", "type" => "text"), array( "name" => "LinkedIn URL", "desc" => "", "id" => $shortname."_foot_linkedin", "std" => "", "type" => "text"), array( "name" => "Flickr URL", "desc" => "", "id" => $shortname."_foot_flickr", "std" => "", "type" => "text"), array( "name" => "Youtube URL", "desc" => "", "id" => $shortname."_foot_youtube", "std" => "", "type" => "text"), array( "name" => "Vimeo URL", "desc" => "", "id" => $shortname."_foot_vimeo", "std" => "", "type" => "text"), array( "name" => "Blogger URL", "desc" => "", "id" => $shortname."_foot_blogger", "std" => "", "type" => "text"), array( "name" => "Last.fm URL", "desc" => "", "id" => $shortname."_foot_lastfm", "std" => "", "type" => "text"), array( "name" => __('Email adderss','UX'), "desc" => __('For email icon','UX'), "id" => $shortname."_foot_iconmail", "std" => "", "type" => "text"), array( "name" => "Rss URL", "desc" => "", "id" => $shortname."_foot_rss", "std" => "", "type" => "text"), array( "type" => "close"), array( "name" => __('Advertising in post','ux'), "type" => "section"), array( "type" => "open"), array( "name" => __('Top of post','ux'), "desc" => "
". __('Please enter the AD code.','ux')."
e.g.<a href="http://sample.com"><img src="http://sample.com/sample.gif"></a>", "id" => $shortname."_adposttop", "type" => "textarea", "std" => ""), array( "name" => __('After content','ux'), "desc" => "
e.g.<a href="http://sample.com"><img src="http://sample.com/sample.gif"></a>", "id" => $shortname."_adpostcontent", "type" => "textarea", "std" => ""), array( "name" => __('Bottom of post','ux'), "desc" => "
e.g.<a href="http://sample.com"><img src="http://sample.com/sample.gif"></a>", "id" => $shortname."_adpostbottom", "type" => "textarea", "std" => ""), array( "type" => "close") ); function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { $the_value = stripslashes($_REQUEST[$value['id']]); if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $the_value ); } else { delete_option( $value['id'] ); } } header("Location: admin.php?page=options.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: admin.php?page=options.php&reset=true"); die; } } add_theme_page($themename, $themename, 'administrator', basename(__FILE__), 'mytheme_admin'); } function mytheme_add_init() { $file_dir=get_template_directory_uri(); wp_register_script('customfields', (get_template_directory_uri() .'/functions/custom_fields.js'), false); wp_enqueue_script('customfields'); wp_enqueue_style("functions", $file_dir."/functions/functions.css", false, "1.0", "all"); wp_enqueue_style("customfieldscss", $file_dir."/functions/custom_fields.css", false, "1.0", "all"); wp_enqueue_script("rm_script", $file_dir."/functions/rm_script.js", false, "1.0"); wp_enqueue_script( 'my-theme-options', get_template_directory_uri() . '/jscolor/jscolor.js'); wp_enqueue_script('rm_script'); wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); } function mytheme_admin() { global $themename, $shortname, $options; $i=0; if ( $_REQUEST['saved'] ) echo '

'.esc_html($themename).' settings saved.

'; if ( $_REQUEST['reset'] ) echo '

'.esc_html($themename).' settings reset.

'; ?>

Settings


To easily use the theme, you can use the menu below.

" />
value="pattern_dot_a" name="" />
value="pattern_dot_b" name="" />
value="pattern_dot_c" name="" />
value="pattern_dot_d" name="" />
value="pattern_dot_e" name="" />
value="pattern_dot_f" name="" />
value="pattern_bg_a" name="" />
value="pattern_bg_b" name="" />
value="nopattern" name="" />
/>
" name="" />
" style="width:230px;" />

Icons: WooFunction