PATH:
home
/
lab2454c
/
adenbic.com
/
wp-content
/
themes
/
leather_market
/
templatemela
/
admin
<?php /*=================================================================================================================== =============================================== General Settings ==================================================== =================================================================================================================== */ $options1 = array(array()); $options1[] = array("label" => __("Site Loader Settings",'leather-market'), "title" => __("Site Loader Settings",'leather-market'), "type" => "Title-1"); $options1[] = array("id" => "tmpmela_show_site_loader", "label" => __("Show Site Loader",'leather-market'), "type" => "select", "description" => __("Displays Site Loader.",'leather-market'), "options" => array('no' => 'No','yes' => 'Yes')); $options1[] = array("id" => "tmpmela_loader_color", "label" => "Site Loader Color", "type" => "textbox-1", "std" => "222222", "description" => "Change your site loader color. "); $options1[] = array("label" => __("General Settings",'leather-market'), "title" => __("General Settings",'leather-market'), "type" => "Title-1"); $options1[] = array("id" => "tmpmela_logo_image", "label" => __("Logo Image",'leather-market'), "type" => "upload", "description" => __("Upload Your Logo. ",'leather-market')); $options1[] = array("id" => "tmpmela_logo_image_alt", "label" => __("Logo Text",'leather-market'), "type" => "textbox", "description" => __("Set your logo text here. ",'leather-market')); $options1[] = array("id" => "tmpmela_mob_logo_image", "label" => __("Mobile Logo Image",'leather-market'), "type" => "upload-6", "description" => __("Upload Your Mobile Logo. ",'leather-market')); $options1[] = array("id" => "tmpmela_mob_logo_image_alt", "label" => __("Mobile Logo Text",'leather-market'), "type" => "textbox", "description" => __(" Set your Mobile logo alternate text here.",'leather-market')); $options1[] = array("id" => "tmpmela_background_upload", "label" => __("Upload Body Background Image",'leather-market'), "type" => "upload-3", "description" => __("Upload Your Background. ",'leather-market')); $options1[] = array("id" => "tmpmela_back_repeat", "label" => __("Body Background Repeat",'leather-market'), "type" => "select", "description" => __("Choose Background repeate. ",'leather-market'), "options" => array('no-repeat' => 'no-repeat', 'repeat' => 'repeat', 'repeat-x' => 'repeat-x', 'repeat-y' => 'repeat-y')); $options1[] = array("id" => "tmpmela_back_position", "label" => __("Body Background Position",'leather-market'), "type" => "select", "description" => __("Choose Backgroung position. ",'leather-market'), "options" => array('top+left' => 'top left', 'top+center' => 'top center', 'top+right' => 'top right', 'center+right' => 'center right', 'center+left' => 'center left', 'center+center' => 'center center', 'bottom+right' => 'bottom right', 'bottom+center' => 'bottom center', 'bottom+left' => 'bottom left')); $options1[] = array("id" => "tmpmela_back_attachment", "label" => __("Body Background Attachment",'leather-market'), "type" => "select", "description" => __("Choose Background attachment. ",'leather-market'), "options" => array('scroll' => 'Scroll', 'Fixed' => 'fixed')); $options1[] = array("id" => "tmpmela_bkg_color", "label" => "Body Background Color", "type" => "textbox-1", "std" => "FFFFFF", "description" => "Change your body background color. "); $options1[] = array("id" => "tmpmela_bodyfont_color", "label" => "Body Font Color", "std" => "222222", "type" => "textbox-1", "description" => "Change your body font color. "); $options1[] = array("id" => "tmpmela_bodyfont", "label" => "Body Font", "type" => "select", "description" => "Change your body font. ", "options" => array('Open+Sans'=>'Open Sans', 'please-select' => 'please-select', 'Raleway' => 'Raleway', 'Josefin+San' => 'Josefin San', 'Antic' => 'Antic', 'Bitter' => 'Bitter', 'Droid+Serif' => 'Droid Serif', 'Philosopher' => 'Philosopher', 'Oxygen' => 'Oxygen', 'Rokkitt' => 'Rokkitt', 'Galdeano' => 'Galdeano', 'Oswald' => 'Oswald', 'Play' => 'Play', 'Cabin' => 'Cabin', 'Cuprum' => 'Cuprum', 'Varela' => 'Varela', 'Andika' => 'Andika', 'Ubuntu' => 'Ubuntu', 'Other+Fonts' => 'Other Fonts')); $options1[] = array("id" => "tmpmela_bodyfont_other", "label" => "Specified Other Body Font", "type" => "textbox", "description" => "Change your specified body font Like Arail,verdana etc. "); $options1[] = array("id" => "tmpmela_secondary_color", "label" => "Secondary Color", "type" => "textbox-1", "std" => "E6E6E6", "description" => "Change secondary color of theme. "); $options1[] = array("label" =>__( "Button Settings",'leather-market'), "title" =>__("Button Settings",'leather-market'), "type" => "Title-1"); $options1[] = array("id" => "tmpmela_button_font_family", "label" => __("Button Font",'leather-market'), "type" => "select", "description" => __("Change store button font.",'leather-market'), "options" => array('Open+Sans'=>'Open Sans', 'please-select' => 'please-select', 'Raleway' => 'Raleway', 'Josefin+San' => 'Josefin San', 'Antic' => 'Antic', 'Bitter' => 'Bitter', 'Droid+Serif' => 'Droid Serif', 'Philosopher' => 'Philosopher', 'Oxygen' => 'Oxygen', 'Rokkitt' => 'Rokkitt', 'Galdeano' => 'Galdeano', 'Oswald' => 'Oswald', 'Play' => 'Play', 'Cabin' => 'Cabin', 'Cuprum' => 'Cuprum', 'Varela' => 'Varela', 'Andika' => 'Andika', 'Ubuntu' => 'Ubuntu', 'Other+Fonts' => 'Other Fonts')); $options1[] = array("id" => "tmpmela_button_color", "label" => __("Buttons Background Color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change store buttons Background color.",'leather-market')); $options1[] = array("id" => "tmpmela_button_hover_color", "label" => __("Buttons Hover Background Color",'leather-market'), "type" => "textbox-1", "std" => "f0f0f0", "description" => __("Change store button hover background color.",'leather-market')); $options1[] = array("id" => "tmpmela_button_text_color", "label" => __("Buttons Text Color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change store buttons text color.",'leather-market')); $options1[] = array("id" => "tmpmela_button_hover_text_color", "label" => __("Buttons hover Text Color",'leather-market'), "type" => "textbox-1", "std" => "F0F0F0", "description" => __("Change store buttons hover text color.",'leather-market')); $options1[] = array("label" =>__( "breadcrumb Settings",'leather-market'), "title" =>__("breadcrumb Settings",'leather-market'), "type" => "Title-1"); $options1[] = array("id" => "tmpmela_breadcrumb_bkg_color", "label" => "Breadcrumb Background Color", "type" => "textbox-1", "std" => "F5F5F5", "description" => "Change your body background color. "); $options1[] = array("id" => "tmpmela_breadcrumb_image", "label" => __("Breadcrumb Image",'leather-market'), "type" => "upload-4", "description" => __("Upload Your Breadcrumb. ",'leather-market')); $options1[] = array("id" => "tmpmela_breadcrumb_back_attachment", "label" => __("Breadcrumbr Image Background Attachment",'leather-market'), "type" => "select", "description" => __("Choose Breadcrumb Image Background attachment. ",'leather-market'), "options" => array('Fixed' => 'fixed', 'scroll' => 'Scroll')); $options1[] = array("id" => "tmpmela_breadcrumb_back_position", "label" => __("Breadcrumb Image Background Position",'leather-market'), "type" => "select", "description" => __("Choose Breadcrumb Image Backgroung position. ",'leather-market'), "options" => array('top+center' => 'top center', 'top+left' => 'top left', 'top+right' => 'top right', 'center+right' => 'center right', 'center+left' => 'center left', 'center+center' => 'center center', 'bottom+right' => 'bottom right', 'bottom+center' => 'bottom center', 'bottom+left' => 'bottom left')); $options1[] = array("id" => "tmpmela_breadcrumb_back_repeat", "label" => __("Breadcrumb Image Background Repeat",'leather-market'), "type" => "select", "description" => __("Choose Breadcrumb Image Background repeat. ",'leather-market'), "options" => array('no-repeat' => 'no-repeat', 'repeat' => 'repeat', 'repeat-x' => 'repeat-x', 'repeat-y' => 'repeat-y')); /*=================================================================================================================== =============================================== Top Bar Settings ==================================================== =================================================================================================================== */ $options6 = array(array()); $options6[] = array("id" => "tmpmela_show_topbar", "label" => "Show Topbar", "type" => "select", "description" => "Displays Topbar.", "options" => array('no' => 'No','yes' => 'Yes')); $options6[] = array("id" => "tmpmela_topbar_color", "label" => "Topbar Background Color", "type" => "textbox-1", "std" => "FFFFFF", "description" => "Change your Topbar Background color."); $options6[] = array("id" => "tmpmela_topbar_text_color", "label" => "Topbar Text Color", "type" => "textbox-1", "std" => "808080", "description" => "Upload Your Topbar Banner Text Color."); $options6[] = array("id" => "tmpmela_topbar_link_color", "label" => "Top Header Link Color", "type" => "textbox-1", "std" => "808080", "description" => "Change your topbar links color."); $options6[] = array("id" => "tmpmela_topbar_link_hover_color", "label" => "Top Header Link Hover Color", "type" => "textbox-1", "std" => "EA9D06", "description" => "Change your topbar links hover color."); $options6[] = array("id" => "tmpmela_show_offer_text", "label" => "Offer Text", "type" => "textbox", "std" => "Welcome To Worldwide Shopinia Store", "description" => "Please Enter Your Offer Text."); /*=================================================================================================================== =============================================== Header Settings ==================================================== =================================================================================================================== */ $options2 = array(array()); $options2[] = array("id" => "tmpmela_header_background_upload", "label" => __("Upload Header Background Image",'leather-market'), "type" => "upload-1", "description" => __("Upload Your Header Background Image. ",'leather-market')); $options2[] = array("id" => "tmpmela_header_back_repeat", "label" => __("Header Image Background Repeat",'leather-market'), "type" => "select", "description" => __("Choose Header Image Background repeat. ",'leather-market'), "options" => array('no-repeat' => 'no-repeat', 'repeat' => 'repeat', 'repeat-x' => 'repeat-x', 'repeat-y' => 'repeat-y')); $options2[] = array("id" => "tmpmela_header_back_position", "label" => __("Header Image Background Position",'leather-market'), "type" => "select", "description" => __("Choose Header Image Backgroung position. ",'leather-market'), "options" => array('top+left' => 'top left', 'top+center' => 'top center', 'top+right' => 'top right', 'center+right' => 'center right', 'center+left' => 'center left', 'center+center' => 'center center', 'bottom+right' => 'bottom right', 'bottom+center' => 'bottom center', 'bottom+left' => 'bottom left')); $options2[] = array("id" => "tmpmela_header_back_attachment", "label" => __("Header Image Background Attachment",'leather-market'), "type" => "select", "description" => __("Choose Header Image Background attachment. ",'leather-market'), "options" => array('scroll' => 'Scroll', 'Fixed' => 'fixed')); $options2[] = array("id" => "tmpmela_header_top_bkg_color1", "label" => __("Header backgrond Gradient 0% color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change your linear-gradient 1st color",'leather-market')); $options2[] = array("id" => "tmpmela_header_top_bkg_color2", "label" => __("Header backgrond Gradient 100% color",'leather-market'), "type" => "textbox-1", "std" => "DBDBDA", "description" => __("Change your linear-gradient 2st color. ",'leather-market')); $options2[] = array("id" => "tmpmela_header_bottom_bkg_color", "label" => __("Header Bottom Background Color",'leather-market'), "type" => "textbox-1", "std" => "000000", "description" => __("Change your header bottom background color. ",'leather-market')); $options2[] = array("id" => "tmpmela_header_bottom_bkg_opacity_color", "label" => __("Header Bottom Background Opacity Color",'leather-market'), "type" => "textbox", "std" => "1", "description" => __("Change your header background opacity e.g. ( 0.0 to 1 )",'leather-market')); $options2[] = array("id" => "tmpmela_show_view_offer", "label" => __("Show View Offer"), "type" => "select", "description" => __("Displays View Offer."), "options" => array('no' => 'No','yes' => 'Yes')); $options2[] = array("id" => "tmpmela_header_bottom_view_offer", "label" => __("View Offer",'leather-market'), "type" => "textbox", "std" => "View Offer Deals", "description" => __("Change your View Offer text",'leather-market')); $options2[] = array("id" => "tmpmela_header_bottom_view_offer_link", "label" => __("View Offer Link",'leather-market'), "type" => "textbox", "std" => "#", "description" => __("Change your View Offer link",'leather-market')); $options2[] = array("id" => "tmpmela_header_bottom_view_offer_link_color", "label" => __("View Offer Link color",'leather-market'), "type" => "textbox-1", "std" => "222222", "description" => __("Change your View Offer link color",'leather-market')); $options2[] = array("id" => "tmpmela_header_bottom_view_offer_link_hover_color", "label" => __("View Offer Link hover color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change your View Offer link hover color",'leather-market')); $options2[] = array("label" => __("Navigation Menu Setting",'leather-market'), "title" => __("Navigation Menu Setting",'leather-market'), "type" => "Title-1"); $options2[] = array("id" => "tmpmela_top_menu_text_color", "label" => __("Top Menu text color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change your text color of top menu ",'leather-market')); $options2[] = array("id" => "tmpmela_top_menu_texthover_color", "label" => __("Top Menu text Hover color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change your text hover color of top menu ",'leather-market')); $options2[] = array("id" => "tmpmela_sub_menu_title_color", "label" => __("Sub Menu Title Color",'leather-market'), "type" => "textbox-1", "std" => "222222", "description" => __("Change your title color of sub menu ",'leather-market')); $options2[] = array("id" => "tmpmela_sub_menu_title_hover_color", "label" => __("Sub Menu Title Hover Color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change your title hover color of sub menu",'leather-market')); $options2[] = array("id" => "tmpmela_sub_menu_bkg_color", "label" => __("Sub Menu Background Color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change your Sub menu background color ",'leather-market')); $options2[] = array("id" => "tmpmela_sub_menu_text_color", "label" => __("Sub Menu Text color",'leather-market'), "type" => "textbox-1", "std" => "222222", "description" => __("Change your text color of Sub menu",'leather-market')); $options2[] = array("id" => "tmpmela_sub_menu_texthover_color", "label" => __("Sub Menu Text Hover color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change your text hover color of Sub menu ",'leather-market')); $options2[] = array("label" => __("Menu Category Setting",'leather-market'), "title" => __("Menu Category Setting",'leather-market'), "type" => "Title-1"); $options2[] = array("id" => "tmpmela_navbar_category_title", "label" => __("Category Title ",'leather-market'), "type" => "textbox", "std" => "All Categories", "description" => __("Change Sidebar Category Title. ",'leather-market')); $options2[] = array("id" => "tmpmela_navbar_category_title_bg_color", "label" => __("Category Title Background Color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change Sidebar Category Title Background Color. ",'leather-market')); $options2[] = array("id" => "tmpmela_categoty_title1_text_color", "label" => __("Category Title Text color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change your text color of header category title1. ",'leather-market')); $options2[] = array("id" => "tmpmela_sidebar_category_bg_color", "label" => __("Category Block Background Color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change Sidebar Category Block Background Color. ",'leather-market')); $options2[] = array("id" => "tmpmela_sidebar_category_link_color", "label" => __("Category Block Link Color",'leather-market'), "type" => "textbox-1", "std" => "222222", "description" => __("Change Sidebar Category Block Link Color. ",'leather-market')); $options2[] = array("id" => "tmpmela_sidebar_category_link_hover_color", "label" => __("Category Block Link hover Color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change Sidebar Category Block Link hover Color. ",'leather-market')); $options2[] = array("id" => "tmpmela_sidebar_category_child_link_color", "label" => __("Category Block Child Link Color",'leather-market'), "type" => "textbox-1", "std" => "222222", "description" => __("Change Sidebar Category Block Child Link Color. ",'leather-market')); $options2[] = array("id" => "tmpmela_sidebar_category_child_link_hover_color", "label" => __("Category Block Child Link hover Color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change Sidebar Category Block Child Link hover Color. ",'leather-market')); $options2[] = array("id" => "tmpmela_sidebar_category_sub_child_link_color", "label" => __("Category Block Sub Child Link Color",'leather-market'), "type" => "textbox-1", "std" => "222222", "description" => __("Change Sidebar Category Block Sub Child Link Color. ",'leather-market')); $options2[] = array("id" => "tmpmela_sidebar_category_sub_child_link_hover_color", "label" => __("Category Block Sub Child Link hover Color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change Sidebar Category Block Sub Child Link hover Color. ",'leather-market')); /*=================================================================================================================== =============================================== Content Settings ==================================================== =================================================================================================================== */ $options3[] = array("id" => "tmpmela_h1font", "label" => "h1 Font", "type" => "select", "description" => "Change your H1 font.", "options" => array('Open+Sans'=>'Open Sans', 'please-select' => 'please-select', 'Raleway' => 'Raleway', 'Josefin+San' => 'Josefin San', 'Antic' => 'Antic', 'Bitter' => 'Bitter', 'Droid+Serif' => 'Droid Serif', 'Philosopher' => 'Philosopher', 'Oxygen' => 'Oxygen', 'Rokkitt' => 'Rokkitt', 'Galdeano' => 'Galdeano', 'Oswald' => 'Oswald', 'Play' => 'Play', 'Cabin' => 'Cabin', 'Cuprum' => 'Cuprum', 'Varela' => 'Varela', 'Andika' => 'Andika', 'Ubuntu' => 'Ubuntu', 'Other+Fonts' => 'Other Fonts')); $options3[] = array("id" => "tmpmela_h1font_other", "label" => "Specified Other h1 Font", "type" => "textbox-3", "std" => "Arial", "description" => "Change your specified h1 font."); $options3[] = array("id" => "tmpmela_h1color", "label" => "H1 Color", "type" => "textbox-1", "std" => "222222", "description" => "Change your H1 font color."); $options3[] = array("id" => "tmpmela_h2font", "label" => "H2 Font", "type" => "select", "description" => "Change your H2 Font.", "options" => array('Open+Sans'=>'Open Sans', 'please-select' => 'please-select', 'Raleway' => 'Raleway', 'Josefin+San' => 'Josefin San', 'Antic' => 'Antic', 'Bitter' => 'Bitter', 'Droid+Serif' => 'Droid Serif', 'Philosopher' => 'Philosopher', 'Oxygen' => 'Oxygen', 'Rokkitt' => 'Rokkitt', 'Galdeano' => 'Galdeano', 'Oswald' => 'Oswald', 'Play' => 'Play', 'Cabin' => 'Cabin', 'Cuprum' => 'Cuprum', 'Varela' => 'Varela', 'Andika' => 'Andika', 'Ubuntu' => 'Ubuntu', 'Other+Fonts' => 'Other Fonts')); $options3[] = array("id" => "tmpmela_h2font_other", "label" => "Specified Other H2 Font", "type" => "textbox-3", "std" => "Arial", "description" => "Change your specified H2 font."); $options3[] = array("id" => "tmpmela_h2color", "label" => "H2 Color", "type" => "textbox-1", "std" => "222222", "description" => "Change your H2 font color."); $options3[] = array("id" => "tmpmela_h3font", "label" => "H3 Font", "type" => "select", "description" => "Change your H3 font.", "options" => array('Open+Sans'=>'Open Sans', 'please-select' => 'please-select', 'Raleway' => 'Raleway', 'Josefin+San' => 'Josefin San', 'Antic' => 'Antic', 'Bitter' => 'Bitter', 'Droid+Serif' => 'Droid Serif', 'Philosopher' => 'Philosopher', 'Oxygen' => 'Oxygen', 'Rokkitt' => 'Rokkitt', 'Galdeano' => 'Galdeano', 'Oswald' => 'Oswald', 'Play' => 'Play', 'Cabin' => 'Cabin', 'Cuprum' => 'Cuprum', 'Varela' => 'Varela', 'Andika' => 'Andika', 'Ubuntu' => 'Ubuntu', 'Other+Fonts' => 'Other Fonts')); $options3[] = array("id" => "tmpmela_h3font_other", "label" => "Specified Other H3 Font", "type" => "textbox-3", "std" => "Arial", "description" => "Change your specified H3 font."); $options3[] = array("id" => "tmpmela_h3color", "label" => "H3 Color", "type" => "textbox-1", "std" => "222222", "description" => "Change your H3 font color."); $options3[] = array("id" => "tmpmela_h4font", "label" => "H4 Font", "type" => "select", "description" => "Change your H4 font.", "options" => array('Open+Sans'=>'Open Sans', 'please-select' => 'please-select', 'Raleway' => 'Raleway', 'Josefin+San' => 'Josefin San', 'Antic' => 'Antic', 'Bitter' => 'Bitter', 'Droid+Serif' => 'Droid Serif', 'Philosopher' => 'Philosopher', 'Oxygen' => 'Oxygen', 'Rokkitt' => 'Rokkitt', 'Galdeano' => 'Galdeano', 'Oswald' => 'Oswald', 'Play' => 'Play', 'Cabin' => 'Cabin', 'Cuprum' => 'Cuprum', 'Varela' => 'Varela', 'Andika' => 'Andika', 'Ubuntu' => 'Ubuntu', 'Other+Fonts' => 'Other Fonts')); $options3[] = array("id" => "tmpmela_h4font_other", "label" => "Specified Other H4 Font", "type" => "textbox-3", "std" => "Arial", "description" => "Change your specified H4 font."); $options3[] = array("id" => "tmpmela_h4color", "label" => "H4 Color", "type" => "textbox-1", "std" => "222222", "description" => "Change your H4 font color."); $options3[] = array("id" => "tmpmela_h5font", "label" => "H5 Font", "type" => "select", "description" => "Change your H5 font.", "options" => array('Open+Sans'=>'Open Sans', 'please-select' => 'please-select', 'Raleway' => 'Raleway', 'Josefin+San' => 'Josefin San', 'Antic' => 'Antic', 'Bitter' => 'Bitter', 'Droid+Serif' => 'Droid Serif', 'Philosopher' => 'Philosopher', 'Oxygen' => 'Oxygen', 'Rokkitt' => 'Rokkitt', 'Galdeano' => 'Galdeano', 'Oswald' => 'Oswald', 'Play' => 'Play', 'Cabin' => 'Cabin', 'Cuprum' => 'Cuprum', 'Varela' => 'Varela', 'Andika' => 'Andika', 'Ubuntu' => 'Ubuntu', 'Other+Fonts' => 'Other Fonts')); $options3[] = array("id" => "tmpmela_h5font_other", "label" => "Specified Other H5 Font", "type" => "textbox-3", "std" => "Arial", "description" => "Change your specified H5 font."); $options3[] = array("id" => "tmpmela_h5color", "label" => "H5 Color", "type" => "textbox-1", "std" => "222222", "description" => "change your H5 font color."); $options3[] = array("id" => "tmpmela_h6font", "label" => "H6 Font", "type" => "select", "description" => "Change your H6 font.", "options" => array('Open+Sans'=>'Open Sans', 'please-select' => 'please-select', 'Raleway' => 'Raleway', 'Josefin+San' => 'Josefin San', 'Antic' => 'Antic', 'Bitter' => 'Bitter', 'Droid+Serif' => 'Droid Serif', 'Philosopher' => 'Philosopher', 'Oxygen' => 'Oxygen', 'Rokkitt' => 'Rokkitt', 'Galdeano' => 'Galdeano', 'Oswald' => 'Oswald', 'Play' => 'Play', 'Cabin' => 'Cabin', 'Cuprum' => 'Cuprum', 'Varela' => 'Varela', 'Andika' => 'Andika', 'Ubuntu' => 'Ubuntu', 'Other+Fonts' => 'Other Fonts')); $options3[] = array("id" => "tmpmela_h6font_other", "label" => "Specified Other H6 Font", "type" => "textbox-3", "std" => "Arial", "description" => "Change your specified H6 font."); $options3[] = array("id" => "tmpmela_h6color", "label" => "H6 Color", "type" => "textbox-1", "std" => "222222", "description" => "Change your H6 font color."); $options3[] = array("id" => "tmpmela_link_color", "label" => "Link Color", "type" => "textbox-1", "std" => "9bbab1", "description" => "Change your link color."); $options3[] = array("id" => "tmpmela_hoverlink_color", "label" => "Link Hover Color", "type" => "textbox-1", "std" => "EA9D06", "description" => "Change your link Hover color."); $options3[] = array("label" => "Sidebar setting for other pages", "title" => "Sidebar setting for other pages", "type" => "Title-1"); $options3[] = array("id" => "tmpmela_page_sidebar", "label" => "Display sidebar on other page?", "type" => "select", "description" => "Enable or Disable sidebar on other page.", "options" => array('yes' => 'Yes', 'no' => 'No')); $options3[] = array("label" => "Blog Author Setting", "title" => "Author setting for Single blog page", "type" => "Title-1"); $options3[] = array("id" => "tmpmela_show_author_info", "label" => __("Show Author Box",'leather-market'), "type" => "select", "description" => __("Show Author Infromation Box on single blog page.",'leather-market'), "options" => array('no' => 'No','yes' => 'Yes')); $options3[] = array("id" => "tmpmela_show_related_post", "label" => __("Show Related Post",'leather-market'), "type" => "select", "description" => __("Show Show Related Post on single pos/blog page.",'leather-market'), "options" => array('no' => 'No','yes' => 'Yes')); /*=================================================================================================================== =============================================== Footer Settings ==================================================== =================================================================================================================== */ $options4 = array(array()); $options4[] = array("id" => "tmpmela_footer_bkg_color", "label" => __("Footer Background Color",'leather-market'), "type" => "textbox-1", "std" => "F5F5F5", "description" => __("Change your footer background color. ",'leather-market')); $options4[] = array("id" => "tmpmela_footer_background_upload", "label" => __("Upload Footer Background Image",'leather-market'), "type" => "upload-1", "description" => __("Upload Your Footer Background Image.",'leather-market')); $options4[] = array("id" => "tmpmela_footer_back_repeat", "label" =>__( "Footer Image Background Repeat",'leather-market'), "type" => "select", "description" => __("Choose Header Image Background repeate.",'leather-market'), "options" => array('no-repeat' => 'no-repeat', 'repeat' => 'repeat', 'repeat-x' => 'repeat-x', 'repeat-y' => 'repeat-y')); $options4[] = array("id" => "tmpmela_footer_back_position", "label" => __("Footer Image Background Position",'leather-market'), "type" => "select", "description" => __("Choose Header Image Backgroung position.",'leather-market'), "options" => array('top+left' => 'top left', 'top+center' => 'top center', 'top+right' => 'top right', 'center+right' => 'center right', 'center+left' => 'center left', 'center+center' => 'center center', 'bottom+right' => 'bottom right', 'bottom+center' => 'bottom center', 'bottom+left' => 'bottom left')); $options4[] = array("id" => "tmpmela_footerheader_back_attachment", "label" => __("Footer Image Background Attachment",'leather-market'), "type" => "select", "description" => __("Choose Header Image Background attachment. ",'leather-market'), "options" => array('scroll' => 'Scroll', 'Fixed' => 'fixed')); $options4[] = array("id" => "tmpmela_footer_title_color", "label" => __("Footer Title Color",'leather-market'), "type" => "textbox-1", "std" => "222222", "description" => __("Change your footer link color. ",'leather-market')); $options4[] = array("id" => "tmpmela_footerlink_color", "label" => __("Footer Link Color",'leather-market'), "type" => "textbox-1", "std" => "9bbab1", "description" =>__( "Change your footer link color. ",'leather-market')); $options4[] = array("id" => "tmpmela_footerhoverlink_color", "label" => __("Footer Link Hover Color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change your footer link hover color. ",'leather-market')); $options4[] = array("id" => "tmpmela_footer_slog", "label" => __("Footer copyright",'leather-market'), "type" => "textbox", "description" => __("Enter your copyright statement here. ",'leather-market'), "std" => "Templatemela."); $options4[] = array("label" => __("Footer Newsletter setting",'leather-market'), "title" => __("Footer Newsletter setting",'leather-market'), "type" => "Title-1"); $options4[] = array("id" => "tmpmela_footer_newsletter_bkg_color", "label" => __("Footer Newsletter Background Color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change your footer Newsletter background color. ",'leather-market')); $options4[] = array("id" => "tmpmela_footer_newsletter_background_upload", "label" => __("Upload Footer Newsletter Background Image",'leather-market'), "type" => "upload-2", "description" => __("Upload Your Footer Background Image.",'leather-market')); $options4[] = array("id" => "tmpmela_footer_newsletter_back_repeat", "label" =>__( "Footer Image Newsletter Background Repeat",'leather-market'), "type" => "select", "description" => __("Choose Header Image Background repeate.",'leather-market'), "options" => array('no-repeat' => 'no-repeat', 'repeat' => 'repeat', 'repeat-x' => 'repeat-x', 'repeat-y' => 'repeat-y')); $options4[] = array("id" => "tmpmela_footer_newsletter_back_position", "label" => __("Footer Image Newsletter Background Position",'leather-market'), "type" => "select", "description" => __("Choose Header Image Backgroung position.",'leather-market'), "options" => array('top+center' => 'top center','top+left' => 'top left', 'top+right' => 'top right', 'center+right' => 'center right', 'center+left' => 'center left', 'center+center' => 'center center', 'bottom+right' => 'bottom right', 'bottom+center' => 'bottom center', 'bottom+left' => 'bottom left')); $options4[] = array("id" => "tmpmela_footer_newsletterheader_back_attachment", "label" => __("Footer Image Newsletter Background Attachment",'leather-market'), "type" => "select", "description" => __("Choose Header Image Background attachment. ",'leather-market'), "options" => array('scroll' => 'Scroll', 'Fixed' => 'fixed')); $options4[] = array("id" => "tmpmela_footer_newsletter_text_color", "label" => __("Newsletter Text Color",'leather-market'), "type" => "textbox-1", "std" => "222222", "description" => __("Change your footer link color. ",'leather-market')); //=============================================== Shop Settings ================================================================== if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) : $options7 = array(array()); $options7[] = array("label" => __("Product color setting",'leather-market'), "title" => __("Product setting",'leather-market'), "type" => "Title-1"); $options7[] = array("id" => "tmpmela_product_button_bkg_color", "label" => __("Product Button Background Color",'leather-market'), "type" => "textbox-1", "std" => "EA9D06", "description" => __("Change your product button background color. ",'leather-market')); $options7[] = array("id" => "tmpmela_product_button_bkg_hover_color", "label" => __("Product Button Background Hover Color",'leather-market'), "type" => "textbox-1", "std" => "222222", "description" => __("Change your product button background hover color. ",'leather-market')); $options7[] = array("id" => "tmpmela_product_button_text_color", "label" => __("Product Button Text Color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change your product button text color. ",'leather-market')); $options7[] = array("id" => "tmpmela_product_button_text_hover_color", "label" => __("Product Button Text Hover Color",'leather-market'), "type" => "textbox-1", "std" => "FFFFFF", "description" => __("Change your product button text hover color. ",'leather-market')); $options7[] = array("label" => __("Product setting",'leather-market'), "title" => __("Product setting",'leather-market'), "type" => "Title-1"); $options7[] = array("id" => "tmpmela_product_items_columns", "label" => __("Related & Upsell Products Columns",'toolbag'), "type" => "textbox", "std" => "5", "description" => __("Dispaly total number of Related & Upsell products columns on single product page",'toolbag')); $options7[] = array("id" => "tmpmela_corsssell_items_columns", "label" => __("Corsssell Products Columns",'toolbag'), "type" => "textbox", "std" => "5", "description" => __("Dispaly total number of Corsssell products columns on cart product page",'toolbag')); $options7[] = array("id" => "tmpmela_related_items", "label" => __("Related Products",'leather-market'), "type" => "textbox", "std" => "12", "description" => __("Dispaly total number of Related products on single product page",'leather-market')); $options7[] = array("id" => "tmpmela_upsells_items", "label" => __("Upsell Products",'leather-market'), "type" => "textbox", "std" => "12", "description" => __("Dispaly total number of Upsell products on single product page",'leather-market')); $options7[] = array("id" => "tmpmela_crosssell_items", "label" => __("Cross Sell Products",'leather-market'), "type" => "textbox", "std" => "12", "description" => __("Dispaly total number of Cross sell products on checkout page",'leather-market')); $options7[] = array("label" => __("Sidebar setting for Single product page",'leather-market'), "title" => __("Sidebar setting for Single product page",'leather-market'), "type" => "Title-1"); $options7[] = array("id" => "tmpmela_secondaryimage", "label" => __("Do you want secondary image on product?",'leather-market'), "type" => "select", "description" => __("Enable or Disable secondary image for product. ",'leather-market'), "options" => array('yes' => 'Yes', 'no' => 'No')); $options7[] = array("id" => "tmpmela_shop_sidebar", "label" =>__( "Display sidebar on Single product page?",'leather-market'), "type" => "select", "description" => __("Enable or Disable sidebar on Single product page. ",'leather-market'), "options" => array('no' => 'No', 'yes' => 'Yes')); endif; ?> <!-- =========================================== Call Font Script =========================================== --> <div class="main-block"> <div id="wpbody-content"> <div class="wrap"> <div class="icon-templatemela"><img src="<?php echo esc_url(get_option('siteurl')) . '/wp-content/themes/' . get_option('template') . '/templatemela/logo.png'; ?>"/> </div> <div class="tmpmela_contents"> <div class="entry-content"> <p> <a target="_Self" href="#" title="<?php esc_attr_e('Templatemela', 'leather-market'); ?>">TemplateMela</a> <br/> <h3>Extremely Customizable, Responsive and fluid theme framework </h3> Make your site shine in few minutes by choosing from any of our high-quality premium WordPress themes.<br/> With our hundreds of WordPress themes to choose from, you'll have a stylishly professional site that's sure to impress. </p> </div> </div> <div id="ajax-response"></div> </div> </div> <h2 class="title-themeset">TemplateMela - Theme Settings</h2> <?php global $result; if ($result == 'success') echo '<div class="updated settings-error" id="setting-error-settings_updated"><p><strong>Settings saved.</strong></p></div>'; ?> <div class="tab_main"> <!-- =========================================== Start Tab =============================================== --> <div id="tab-container" class='tab-container'> <ul class='etabs'> <li class="tab first"> <a href="#General" title="<?php esc_url('General Settings', 'leather-market'); ?>"> <img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/general_setting.png" alt="<?php echo esc_attr_e('general', 'leather-market'); ?>"/> <span class="title"> <?php echo esc_attr_e('General', 'leather-market'); ?> </span> </a> </li> <li class="tab header"> <a href="#Header"> <img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/header_setting.png" alt="<?php echo esc_attr_e('header', 'leather-market'); ?>"/> <span class="title"> <?php echo esc_attr_e('Header', 'leather-market'); ?> </span> </a> </li> <li class="tab topbar"> <a href="#Topbar"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/topbar_setting.png" alt="<?php echo esc_html_e('Topbar','leather-market'); ?>"/> <span class="title"> <?php echo esc_html__('Topbar','leather-market');?> </span></a> </li> <li class="tab"> <a href="#Content"> <img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/content_settings.png" alt="<?php echo esc_attr_e('content', 'leather-market'); ?>"/> <span class="title"> <?php echo esc_attr_e('Content', 'leather-market'); ?> </span> </a> </li> <li class="tab"> <a href="#Footer"> <img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/footer_settings.png" alt="<?php echo esc_attr_e('footer', 'leather-market'); ?>"/> <span class="title"> <?php echo esc_attr_e('Footer', 'leather-market'); ?> </span> </a> </li> <?php if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) : ?> <li class="tab"> <a href="#product"> <img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/product_setting.png" alt="<?php echo esc_attr_e('product', 'leather-market'); ?>"/> <span class="title"> <?php echo esc_attr_e('Product', 'leather-market'); ?> </span> </a> </li> <?php endif; ?> </ul> <!-- Start Panel-container --> <div class='panel-container'> <!-- =========================================== Start General Setting =========================================== --> <div id="General"> <form enctype="multipart/form-data" method="post" id="settingForm1" name="settingForm1"> <input type="hidden" name="action" value="save_options1"/> <?php if (!isset($_REQUEST['action'])) { $_REQUEST['action'] = ''; } if (!isset($_REQUEST['reset1'])) { $_REQUEST['reset1'] = ''; } if ('save_options1' == $_REQUEST['action']) { foreach ($options1 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } if (isset($value['id']) && isset($_REQUEST[$value['id']])) { update_option($value['id'], $_REQUEST[$value['id']]); } } } else if ('reset1' == $_REQUEST['reset1']) { foreach ($options1 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } delete_option($value['id']); } } ?> <div class="form-table"> <?php $i = 0; foreach ($options1 as $value) { if (!isset($value['type'])) { $value['type'] = ''; } switch ($value['type']) { case 'textbox': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { if (!isset($value['std'])) { $value['std'] = ''; } echo esc_attr(stripslashes($value['std'])); } ?>"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--odd-even--> <?php break; case 'upload': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> <br/> <br/> <?php if (get_option('tmpmela_logo_image') != '') { ?> <img src="<?php echo esc_url(get_option('tmpmela_logo_image')); ?>" id="slider_logodisplay"/> <a id="slider_remove_link1" href="javascript:tmpmela_removeImage1();"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/remove.png"/></a> <?php } ?> <script> function tmpmela_removeImage1() { document.getElementById("tmpmela_logo_image").value = ""; document.getElementById("slider_logodisplay").src = ""; document.getElementById("slider_remove_link1").innerHTML = ""; } </script> </div> <div class="content"> <input style=" <?php if ($value['id'] != 'tmpmela_logo_image') { echo 'display:none'; } ?> " class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php echo esc_attr(get_option($value['id'])); ?>"/> <input id="upload_image_button" class="button-primary" type="button" value="Upload Logo"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even odd setting--> <?php break; case 'upload-6': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> <br/> <br/> <?php if (get_option('tmpmela_mob_logo_image') != '') { ?> <img src="<?php echo esc_url(get_option('tmpmela_mob_logo_image')); ?>" id="slider_mob_logodisplay"/> <a id="slider_remove_mob_link" href="javascript:tmpmela_removemobImage();"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/remove.png"/></a> <?php } ?> <script> function tmpmela_removemobImage() { document.getElementById("tmpmela_mob_logo_image").value = ""; document.getElementById("slider_mob_logodisplay").src = ""; document.getElementById("slider_remove_mob_link").innerHTML = ""; } </script> </div> <div class="content"> <input style=" <?php if ($value['id'] != 'tmpmela_mob_logo_image') { echo 'display:none'; } ?> " class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php echo esc_attr(get_option($value['id'])); ?>"/> <input id="upload_image_button" class="button-primary" type="button" value="Upload Logo"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even odd setting--> <?php break; case 'upload-4': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> <br/> <br/> <?php if (get_option('tmpmela_breadcrumb_image') != '') { ?> <img src="<?php echo esc_url(get_option('tmpmela_breadcrumb_image')); ?>" id="slider_breadcrumb_display"/> <a id="slider_remove_breadcrumb_link" href="javascript:tmpmela_removemobbreadcrumbImage();"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/remove.png"/></a> <?php } ?> <script> function tmpmela_removemobbreadcrumbImage() { document.getElementById("tmpmela_breadcrumb_image").value = ""; document.getElementById("slider_breadcrumb_display").src = ""; document.getElementById("slider_remove_breadcrumb_link").innerHTML = ""; } </script> </div> <div class="content"> <input style=" <?php if ($value['id'] != 'tmpmela_breadcrumb_image') { echo 'display:none'; } ?> " class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php echo esc_attr(get_option($value['id'])); ?>"/> <input id="upload_image_button" class="button-primary" type="button" value="Upload Logo"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even odd setting--> <?php break; case 'select': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <select class="select_input" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>"> <?php foreach ($value['options'] as $op_id => $suboption) { ?> <option value="<?php echo esc_attr($op_id); ?>" <?php if (get_option($value['id']) == $op_id) { echo ' selected="selected"'; } ?>><?php echo esc_html($suboption); ?></option> <?php } ?> </select> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even-Odd--> <?php break; //end Switch case 'textbox-1': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <?php if (get_option($value['id']) != "") { $stylecolor = stripslashes(get_option($value['id'])); } else { $stylecolor = stripslashes($value['std']); } $stylecolor = 'style="background-color:#' . $stylecolor . '"'; ?> <input class="regular-text1" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>" <?php echo html_entity_decode( esc_html( $stylecolor ) ); ?> /> <span class="description"><?php echo esc_html($value['description']); echo esc_attr(get_option($value['id'])); ?></span></div> </div> <!--odd-even--> <?php break; case 'upload-3': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> <br/> <br/> <?php if (get_option('tmpmela_background_upload') != '') { ?> <img src="<?php echo esc_url(get_option('tmpmela_background_upload')); ?>" id="slider_backgrounddisplay"/> <a id="slider_remove_link3" href="javascript:tmpmela_removeImage3();"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/remove.png"/></a> <?php } ?> <script> function tmpmela_removeImage3() { document.getElementById("tmpmela_background_upload").value = ""; document.getElementById("slider_backgrounddisplay").src = ""; document.getElementById("slider_remove_link3").innerHTML = ""; } </script> </div> <div class="content"> <input style=" <?php if ($value['id'] != 'tmpmela_background_upload') { echo 'display:none'; } ?> " class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php echo esc_attr(get_option($value['id'])); ?>"/> <input id="upload_backgroundimage_button" class="button-primary" type="button" value="Upload Image"/> <span class="description"><?php echo esc_html($value['description']); ?></span><br/> </div> </div> <?php break; case 'Title-1': if (!isset($value['id'])) { $value['id'] = ''; } ?> <div class="background-title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <?php break; } $i++; } ?> </div> <!--from-table--> <div class="submit"> <input type="submit" value="Save Changes" class="button-primary" name="Submit"> </div> </form> <!--mainform--> <!-- reset Button --> <div class="reset-option"> <form enctype="multipart/form-data" method="post" id="settingForm1" name="settingFormx"> <p class="submit"> <input type="hidden" name="reset1" value="reset1"/> <input type="submit" value="Set Default" class="button-primary" name="reset"/> </p> </form> </div> <!-- End Reset Button --> </div> <!--general-setting--> <div style="clear:both"></div> <!-- =========================================== End General Settings =========================================== --> <!-- =========================================== Start Top bar Settings =========================================== --> <div id="Topbar"> <form enctype="multipart/form-data" method="post" id="settingForm6" name="settingForm6" > <input type="hidden" name="action" value="save_options6" /> <?php if(!isset( $_REQUEST['action'] )) {$_REQUEST['action']=''; } if(!isset( $_REQUEST['reset6'] )) {$_REQUEST['reset6']=''; } if ( 'save_options6' == $_REQUEST['action'] ) { foreach ($options6 as $value) { if(!isset( $value['id'] )) {$value['id']=''; } if(isset( $value['id'] ) && isset($_REQUEST[ $value['id'] ] )){ update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } } } else if( 'reset6' == $_REQUEST['reset6'] ) { foreach ($options6 as $value) { if(!isset( $value['id'] )) {$value['id']=''; } delete_option( $value['id'] ); } } ?> <div class="form-table"> <div class="background-title"> <label> <?php echo esc_html__('Topbar Settings', 'leather-market'); ?> </label> </div> <?php foreach ($options6 as $value) { if(!isset( $value['type'] )) {$value['type'] =''; } switch ( $value['type'] ) { case 'select': ?> <?php if( $i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php }?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <select class="select_input" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>"> <?php foreach ($value['options'] as $op_id => $suboption) { ?> <option value="<?php echo esc_attr($op_id); ?>" <?php if (get_option($value['id']) == $op_id) { echo ' selected="selected"'; } ?>><?php echo esc_html($suboption); ?></option> <?php } ?> </select> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even-Odd--> <?php break; //end Switch case 'textbox':?> <?php if( $i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php }?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if ( get_option( $value['id'] ) != "") { echo esc_attr(stripslashes(get_option( $value['id'] ))); } else { echo esc_attr(stripslashes($value['std'])); } ?>" /> <span class="description"><?php echo esc_html($value['description']); echo esc_attr(get_option( $value['id']));?></span> </div> </div> <!--odd-even--> <?php break; case 'textbox-3':?> <?php if( $i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php }?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if ( get_option( $value['id'] ) != "") { echo esc_attr(stripslashes(get_option( $value['id'] ))); } else { echo esc_attr(stripslashes($value['std'])); } ?>" /> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--odd-even--> <?php break; case 'textbox-1':?> <?php if( $i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php }?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <?php if ( get_option( $value['id'] ) != "") { $stylecolor = stripslashes(get_option( $value['id'] )); } else { $stylecolor = stripslashes($value['std']); } $stylecolor = 'style="background-color:#'.$stylecolor.'"'; ?> <input class="regular-text1" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if ( get_option( $value['id'] ) != "") { echo esc_attr(stripslashes(get_option( $value['id'] ))); } else { echo esc_attr(stripslashes($value['std'])); } ?>" <?php echo html_entity_decode( esc_html( $stylecolor ) ); ?> /> <span class="description"><?php echo esc_html($value['description']); echo esc_attr(get_option( $value['id']));?></span> </div> </div> <!--odd-even--> <?php break; case 'Title-1': if(!isset( $value['id'] )) {$value['id'] =''; } ?> <div class="background-title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <?php break; } $i++; } ?> </div> <!--form table--> <div class="submit"> <input type="submit" value="Save Changes" class="button-primary" name="Submit" > </div> </form> <!-- reset Button --> <div class="reset-option"> <form enctype="multipart/form-data" method="post" id="settingForm6" name="settingForm6" > <p class="submit"> <input type="hidden" name="reset6" value="reset6" /> <input type="submit" value="Set Default" class="button-primary" name="reset"/> </p> </form> </div> <!-- End Reset Button --> </div> <!---#color--> <script type="text/javascript"> function Ajax(){ var xmlHttp; try{ xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari } catch (e){ try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer } catch (e){ try{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ alert("No AJAX!?"); return false; } } } xmlHttp.onreadystatechange=function(){ if(xmlHttp.readyState==4){ document.getElementById('tab_main').innerHTML=xmlHttp.responseText; return false; } } xmlHttp.send(null); } window.onload=function(){ } </script> <div style="clear:both"></div> <!-- =========================================== End Top bar Settings =========================================== --> <!-- =========================================== Start Shop Settings =========================================== --> <?php if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) : ?> <div id="product"> <form enctype="multipart/form-data" method="post" id="settingForm7" name="settingForm7"> <input type="hidden" name="action" value="save_options7"/> <?php if (!isset($_REQUEST['action'])) { $_REQUEST['action'] = ''; } if (!isset($_REQUEST['reset7'])) { $_REQUEST['reset7'] = ''; } if ('save_options7' == $_REQUEST['action']) { foreach ($options7 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } if (isset($value['id']) && isset($_REQUEST[$value['id']])) { update_option($value['id'], $_REQUEST[$value['id']]); } } } else if ('reset7' == $_REQUEST['reset7']) { foreach ($options7 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } delete_option($value['id']); } } ?> <div class="form-table"> <?php foreach ($options7 as $value) { if (!isset($value['type'])) { $value['type'] = ''; } switch ($value['type']) { case 'textbox': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <?php break; //end Switch case 'textbox-1': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <?php if (get_option($value['id']) != "") { $stylecolor = stripslashes(get_option($value['id'])); } else { $stylecolor = stripslashes($value['std']); } $stylecolor = 'style="background-color:#' . $stylecolor . '"'; ?> <input class="regular-text1" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>" <?php echo html_entity_decode( esc_html( $stylecolor ) ); ?> /> <span class="description"><?php echo esc_html($value['description']); echo esc_attr(get_option($value['id'])); ?></span></div> </div> <!--odd-even--> <?php break; case 'select': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <select class="select_input" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>"> <?php foreach ($value['options'] as $op_id => $suboption) { ?> <option value="<?php echo esc_attr($op_id); ?>" <?php if (get_option($value['id']) == $op_id) { echo ' selected="selected"'; } ?>><?php echo esc_html($suboption); ?></option> <?php } ?> </select> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even-Odd--> <?php break; //end Switch case 'Title-1': if (!isset($value['id'])) { $value['id'] = ''; } ?> <div class="background-title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <?php break; } $i++; } ?> </div> <!--form-table--> <div class="submit"> <input type="submit" value="Save Changes" class="button-primary" name="Submit"> </div> </form> <!-- reset Button --> <div class="reset-option"> <form enctype="multipart/form-data" method="post" id="settingForm7" name="settingFormx"> <p class="submit"> <input type="hidden" name="reset7" value="reset7"/> <input type="submit" value="Set Default" class="button-primary" name="reset"/> </p> </form> </div> <!-- End Reset Button --> </div> <?php endif; ?> <!-- =========================================== End Shop Settings =========================================== --> <!-- =========================================== Start Header Settings =========================================== --> <div id="Header"> <form enctype="multipart/form-data" method="post" id="settingForm2" name="settingForm2"> <input type="hidden" name="action" value="save_options2"/> <?php if (!isset($_REQUEST['action'])) { $_REQUEST['action'] = ''; } if (!isset($_REQUEST['reset2'])) { $_REQUEST['reset2'] = ''; } if ('save_options2' == $_REQUEST['action']) { foreach ($options2 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } if (isset($value['id']) && isset($_REQUEST[$value['id']])) { update_option($value['id'], $_REQUEST[$value['id']]); } } } else if ('reset2' == $_REQUEST['reset2']) { foreach ($options2 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } delete_option($value['id']); } } ?> <div class="form-table"> <div class="background-title"> <label> <?php echo esc_html__('Header Settings', 'leather-market'); ?> </label> </div> <?php foreach ($options2 as $value) { if (!isset($value['type'])) { $value['type'] = ''; } switch ($value['type']) { case 'select': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <select class="select_input" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>"> <?php foreach ($value['options'] as $op_id => $suboption) { ?> <option value="<?php echo esc_attr($op_id); ?>" <?php if (get_option($value['id']) == $op_id) { echo ' selected="selected"'; } ?>><?php echo esc_html($suboption); ?></option> <?php } ?> </select> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even-Odd--> <?php break; //end Switch case 'textbox-3': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--odd-even--> <?php break; case 'textbox': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>"/> <span class="description"><?php echo esc_html($value['description']); echo esc_attr(get_option($value['id'])); ?></span></div> </div> <?php break; case 'textbox-1': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <?php if (get_option($value['id']) != "") { $stylecolor = stripslashes(get_option($value['id'])); } else { $stylecolor = stripslashes($value['std']); } $stylecolor = 'style="background-color:#' . $stylecolor . '"'; ?> <input class="regular-text1" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo stripslashes(get_option($value['id'])); } else { echo stripslashes($value['std']); } ?>" <?php echo html_entity_decode( esc_html( $stylecolor ) ); ?> /> <span class="description"><?php echo esc_html($value['description']); echo esc_attr(get_option($value['id'])); ?></span></div> </div> <!--odd-even--> <?php break; case 'texture': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } $img_dir = get_template_directory_uri() . '/templatemela/images/'; ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <div class="tmpmela_content"> <div class="thumb-sel"><img class="thumb" src="<?php if (get_option($value['id']) != "") { echo esc_url($img_dir . get_option($value['id'])); } else { echo esc_url($img_dir . $value['std']); } ?>"/> <span id="switch" class="close"></span> </div> <div class="thumb-list"> <ul> <?php foreach ($value['options'] as $opt_key => $opt_val) { if (get_option($value['id']) != "") { if ($opt_key == get_option($value['id'])) { $checked = "checked=\"checked\""; } else { $checked = ""; } } else { if ($opt_key == ($value['std'])) { $checked = "checked=\"checked\""; } else { $checked = ""; } } ?> <li> <input type="radio" name="<?php echo esc_attr($value['id']) ?>" value="<?php echo esc_attr($opt_key); ?>" <?php echo esc_attr($checked); ?>/> <img class="thumb" src="<?php echo esc_url($img_dir . $opt_key); ?>" title="<?php echo esc_attr($opt_val); ?>"/> </li> <?php } ?> </ul> </div> </div> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <?php break; case 'upload': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input style=" <?php if ($value['id'] != 'tmpmela_background_upload') { echo 'display:none'; } ?> " class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php echo esc_attr(get_option($value['id'])); ?>"/> <input id="upload_image_button1" class="button-primary" type="button" value="Upload Image"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even odd setting--> <?php break; case 'upload-1': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> <br/> <br/> <?php if (get_option('tmpmela_header_background_upload') != '') { ?> <img src="<?php echo esc_url(get_option('tmpmela_header_background_upload')); ?>" id="tmpmela_header_background_display" class="thumb"/> <a id="tmpmela_header_background_remove_link" href="javascript:tmpmela_remove_header_background();"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/remove.png"/></a> <?php } ?> <script> function tmpmela_remove_header_background() { document.getElementById("tmpmela_header_background_upload").value = ""; document.getElementById("tmpmela_header_background_display").src = ""; document.getElementById("tmpmela_header_background_remove_link").innerHTML = ""; } </script> </div> <div class="content"> <input style=" <?php if ($value['id'] != 'tmpmela_header_background_upload') { echo 'display:none'; } ?> " class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php echo esc_attr(get_option($value['id'])); ?>"/> <input id="upload_backgroundimage_button" class="button-primary" type="button" value="Upload Image"/> <span class="description"><?php echo esc_html($value['description']); ?></span><br/> </div> </div> <!--even odd setting--> <?php break; case 'Title-1': if (!isset($value['id'])) { $value['id'] = ''; } ?> <div class="background-title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <?php break; } $i++; } ?> </div> <!--form table--> <div class="submit"> <input type="submit" value="Save Changes" class="button-primary" name="Submit"> </div> </form> <!-- reset Button --> <div class="reset-option"> <form enctype="multipart/form-data" method="post" id="settingForm2" name="settingFormx"> <p class="submit"> <input type="hidden" name="reset2" value="reset2"/> <input type="submit" value="Set Default" class="button-primary" name="reset"/> </p> </form> </div> <!-- End Reset Button --> </div> <!---#color--> <script type="text/javascript"> function Ajax() { var xmlHttp; try { xmlHttp = new XMLHttpRequest();// Firefox, Opera 8.0+, Safari } catch (e) { try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer } catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("No AJAX!?"); return false; } } } xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 4) { document.getElementById('tab_main').innerHTML = xmlHttp.responseText; return false; } } xmlHttp.send(null); } window.onload = function () { } </script> <!-- =========================================== Start Content Settings =========================================== --> <div id="Content"> <form enctype="multipart/form-data" method="post" id="settingForm3" name="settingForm3"> <input type="hidden" name="action" value="save_options3"/> <?php if (!isset($_REQUEST['action'])) { $_REQUEST['action'] = ''; } if (!isset($_REQUEST['reset3'])) { $_REQUEST['reset3'] = ''; } if ('save_options3' == $_REQUEST['action']) { foreach ($options3 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } if (isset($value['id']) && isset($_REQUEST[$value['id']])) { update_option($value['id'], $_REQUEST[$value['id']]); } } } else if ('reset3' == $_REQUEST['reset3']) { foreach ($options3 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } delete_option($value['id']); } } ?> <div class="form-table"> <div class="background-title"> <label> <?php echo esc_attr_e('Content Settings', 'leather-market'); ?> </label> </div> <?php foreach ($options3 as $value) { switch ($value['type']) { case 'select': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <select class="select_input" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>"> <?php foreach ($value['options'] as $op_id => $suboption) { ?> <option value="<?php echo esc_attr($op_id); ?>" <?php if (get_option($value['id']) == $op_id) { echo ' selected="selected"'; } ?>><?php echo esc_html($suboption); ?></option> <?php } ?> </select> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <?php break; case 'Title-1': if (!isset($value['id'])) { $value['id'] = ''; } ?> <div class="background-title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <?php break; case 'textbox-1': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <?php if (get_option($value['id']) != "") { $stylecolor = stripslashes(get_option($value['id'])); } else { $stylecolor = stripslashes($value['std']); } $stylecolor = 'style="background-color:#' . $stylecolor . '"'; ?> <input class="regular-text1" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>" <?php echo html_entity_decode( esc_html( $stylecolor ) ); ?> /> <span class="description"><?php echo esc_html($value['description']); echo esc_attr(get_option($value['id'])); ?></span></div> </div> <!--odd-even--> <?php break; } $i++; } ?> </div> <!--form-table--> <div class="submit"> <input type="submit" value="Save Changes" class="button-primary" name="Submit"> </div> </form> <!-- reset Button --> <div class="reset-option"> <form enctype="multipart/form-data" method="post" id="settingForm3" name="settingFormx"> <p class="submit"> <input type="hidden" name="reset3" value="reset3"/> <input type="submit" value="Set Default" class="button-primary" name="reset"/> </p> </form> </div> <!-- End Reset Button --> </div> <!--Font--> <!-- =========================================== Start Footer Settings =========================================== --> <div id="Footer"> <form enctype="multipart/form-data" method="post" id="settingForm4" name="settingForm4"> <input type="hidden" name="action" value="save_options4"/> <?php if (!isset($_REQUEST['action'])) { $_REQUEST['action'] = ''; } if (!isset($_REQUEST['reset4'])) { $_REQUEST['reset4'] = ''; } if ('save_options4' == $_REQUEST['action']) { foreach ($options4 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } if (isset($value['id']) && isset($_REQUEST[$value['id']])) { update_option($value['id'], $_REQUEST[$value['id']]); } } } else if ('reset4' == $_REQUEST['reset4']) { foreach ($options4 as $value) { if (!isset($value['id'])) { $value['id'] = ''; } delete_option($value['id']); } } ?> <div class="form-table"> <div class="background-title"> <label> <?php echo esc_html__('Footer Settings', 'leather-market'); ?> </label> </div> <?php foreach ($options4 as $value) { if (!isset($value['type'])) { $value['type'] = ''; } switch ($value['type']) { case 'select': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <select class="select_input" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>"> <?php foreach ($value['options'] as $op_id => $suboption) { ?> <option value="<?php echo esc_attr($op_id); ?>" <?php if (get_option($value['id']) == $op_id) { echo ' selected="selected"'; } ?>><?php echo esc_html($suboption); ?></option> <?php } ?> </select> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even-Odd--> <?php break; //end Switch case 'Title-1': if (!isset($value['id'])) { $value['id'] = ''; } ?> <div class="background-title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <?php break; case 'upload-2': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> <br/> <br/> <?php if (get_option('tmpmela_footer_newsletter_background_upload') != '') { ?> <img src="<?php echo esc_url(get_option('tmpmela_footer_newsletter_background_upload')); ?>" id="slider_backgrounddisplay1" class="thumb"/> <a id="slider_remove_link_newsletter" href="javascript:tmpmela_removeImage_newsletter();"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/remove.png"/></a> <?php } ?> <script> function tmpmela_removeImage_newsletter() { document.getElementById("tmpmela_footer_newsletter_background_upload").value = ""; document.getElementById("slider_backgrounddisplay1").src = ""; document.getElementById("slider_remove_link_newsletter").innerHTML = ""; } </script> </div> <div class="content"> <input style=" <?php if ($value['id'] != 'tmpmela_footer_newsletter_background_upload') { echo 'display:none'; } ?> " class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php echo esc_attr(get_option($value['id'])); ?>"/> <input id="upload_backgroundimage_button" class="button-primary" type="button" value="Upload Image"/> <span class="description"><?php echo esc_html($value['description']); ?></span><br/> </div> </div> <!--even odd setting--> <?php break; case 'upload-1': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> <br/> <br/> <?php if (get_option('tmpmela_footer_background_upload') != '') { ?> <img src="<?php echo esc_url(get_option('tmpmela_footer_background_upload')); ?>" id="slider_backgrounddisplay1" class="thumb"/> <a id="slider_remove_link31" href="javascript:tmpmela_removeImage31();"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/images/megnor/admin/remove.png"/></a> <?php } ?> <script> function tmpmela_removeImage31() { document.getElementById("tmpmela_footer_background_upload").value = ""; document.getElementById("slider_backgrounddisplay1").src = ""; document.getElementById("slider_remove_link31").innerHTML = ""; } </script> </div> <div class="content"> <input style=" <?php if ($value['id'] != 'tmpmela_footer_background_upload') { echo 'display:none'; } ?> " class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php echo esc_attr(get_option($value['id'])); ?>"/> <input id="upload_backgroundimage_button" class="button-primary" type="button" value="Upload Image"/> <span class="description"><?php echo esc_html($value['description']); ?></span><br/> </div> </div> <!--even odd setting--> <?php break; case 'textbox-3': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--odd-even--> <?php break; case 'textbox-1': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <?php if (get_option($value['id']) != "") { $stylecolor = stripslashes(get_option($value['id'])); } else { $stylecolor = stripslashes($value['std']); } $stylecolor = 'style="background-color:#' . $stylecolor . '"'; ?> <input class="regular-text1" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>" <?php echo html_entity_decode( esc_html( $stylecolor ) ); ?> /> <span class="description"><?php echo esc_html($value['description']); echo esc_attr(get_option($value['id'])); ?></span></div> </div> <!--odd-even--> <?php break; case 'textbox-2': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <?php if (get_option($value['id']) != "") { $stylecolor = stripslashes(get_option($value['id'])); } else { $stylecolor = stripslashes($value['std']); } $stylecolor = 'style="background-color:#' . $stylecolor . '"'; ?> <input class="regular-text1" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>" <?php echo html_entity_decode( esc_html( $stylecolor ) ); ?> /> <span class="description"><?php echo esc_html($value['description']); echo esc_attr(get_option($value['id'])); ?></span></div> </div> <!--odd-even--> <?php break; case 'texture': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } $img_dir = get_template_directory_uri() . '/images/megnor/admin/'; ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <div class="tmpmela_content"> <div class="thumb-sel"><img class="thumb" src="<?php if (get_option($value['id']) != "") { echo esc_url($img_dir . get_option($value['id'])); } else { echo esc_url($img_dir . $value['std']); } ?>"/> <span id="switch" class="close"></span> </div> <div class="thumb-list"> <ul> <?php foreach ($value['options'] as $opt_key => $opt_val) { if (get_option($value['id']) != "") { if ($opt_key == get_option($value['id'])) { $checked = "checked=\"checked\""; } else { $checked = ""; } } else { if ($opt_key == ($value['std'])) { $checked = "checked=\"checked\""; } else { $checked = ""; } } ?> <li> <input type="radio" name="<?php echo esc_attr($value['id']) ?>" value="<?php echo esc_attr($opt_key) ?>" <?php echo esc_attr($checked); ?>/> <img class="thumb" src="<?php echo esc_url($img_dir . $opt_key) ?>" title="<?php echo esc_attr($opt_val) ?>"/> </li> <?php } ?> </ul> </div> </div> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <?php break; case 'upload': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input style=" <?php if ($value['id'] != 'tmpmela_background_upload') { echo 'display:none'; } ?> " class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php echo esc_attr(get_option($value['id'])); ?>"/> <input id="upload_image_button1" class="button-primary" type="button" value="Upload Image"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--even odd setting--> <?php break; case 'textbox': ?> <?php if ($i % 2 != 0) { ?> <div class="odd setting_main"> <?php } else { ?> <div class="even setting_main"> <?php } ?> <div class="title"> <label for="<?php echo esc_attr($value['id']); ?>"><?php echo esc_html($value['label']); ?></label> </div> <div class="content"> <input class="regular-text" name="<?php echo esc_attr($value['id']); ?>" id="<?php echo esc_attr($value['id']); ?>" type="text" value="<?php if (get_option($value['id']) != "") { echo esc_attr(stripslashes(get_option($value['id']))); } else { echo esc_attr(stripslashes($value['std'])); } ?>"/> <span class="description"><?php echo esc_html($value['description']); ?></span> </div> </div> <!--odd-even--> <?php break; } $i++; } ?> </div> <!--form table--> <div class="submit"> <input type="submit" value="Save Changes" class="button-primary" name="Submit"> </div> </form> <!-- reset Button --> <div class="reset-option"> <form enctype="multipart/form-data" method="post" id="settingForm4" name="settingFormx"> <p class="submit"> <input type="hidden" name="reset4" value="reset4"/> <input type="submit" value="Set Default" class="button-primary" name="reset"/> </p> </form> </div> <!-- End Reset Button --> </div> <div id="ajax-response"></div> <br class="clear"> </div> </div> <div id="ajax-response"></div>
[+]
..
[-] theme-setting.php
[edit]
[-] hook-functions.php
[edit]
[-] templatemela.php
[edit]
[-] theme-hook.php
[edit]