function theme_admin_print_scripts() { wp_enqueue_script('jquery'); wp_enqueue_script('jquery-bqq'); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_script('theme-admin'); wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); wp_enqueue_style("google-font-open-sans", "http://fonts.googleapis.com/css?family=Open+Sans:400,600"); $sidebars = array("default" => array(array("name" => "header", "label" => __("header", 'medicenter')), array("name" => "footer_top", "label" => __("footer top", 'medicenter')), array("name" => "footer_bottom", "label" => __("footer bottom", 'medicenter'))), "template-blog.php" => array(array("name" => "header", "label" => __("header", 'medicenter')), array("name" => "footer_top", "label" => __("footer top", 'medicenter')), array("name" => "footer_bottom", "label" => __("footer bottom", 'medicenter'))), "single.php" => array(array("name" => "header", "label" => __("header", 'medicenter')), array("name" => "footer_top", "label" => __("footer top", 'medicenter')), array("name" => "footer_bottom", "label" => __("footer bottom", 'medicenter'))), "single-features.php" => array(array("name" => "header", "label" => __("header", 'medicenter')), array("name" => "footer_top", "label" => __("footer top", 'medicenter')), array("name" => "footer_bottom", "label" => __("footer bottom", 'medicenter'))), "search.php" => array(array("name" => "header", "label" => __("header", 'medicenter')), array("name" => "footer_top", "label" => __("footer top", 'medicenter')), array("name" => "footer_bottom", "label" => __("footer bottom", 'medicenter'))), "template-default-without-breadcrumbs.php" => array(array("name" => "footer_top", "label" => __("footer top", 'medicenter')), array("name" => "footer_bottom", "label" => __("footer bottom", 'medicenter'))), "template-home.php" => array(array("name" => "top", "label" => __("top", 'medicenter')), array("name" => "footer_top", "label" => __("footer top", 'medicenter')), array("name" => "footer_bottom", "label" => __("footer bottom", 'medicenter'))), "404.php" => array(array("name" => "header", "label" => __("header", 'medicenter')), array("name" => "footer_top", "label" => __("footer top", 'medicenter')), array("name" => "footer_bottom", "label" => __("footer bottom", 'medicenter')))); //get theme sidebars $theme_sidebars = array(); $theme_sidebars_array = get_posts(array('post_type' => 'medicenter_sidebars', 'posts_per_page' => '-1', 'post_status' => 'publish', 'orderby' => 'menu_order', 'order' => 'ASC')); for ($i = 0; $i < count($theme_sidebars_array); $i++) { $theme_sidebars[$i]["id"] = $theme_sidebars_array[$i]->ID; $theme_sidebars[$i]["title"] = $theme_sidebars_array[$i]->post_title; } //get theme sliders $sliderAllShortcodeIds = array(); $allOptions = get_alloptions(); foreach ($allOptions as $key => $value) { if (substr($key, 0, 26) == "medicenter_slider_settings") { $sliderAllShortcodeIds[] = $key; } } //sort slider ids sort($sliderAllShortcodeIds); $data = array('img_url' => get_template_directory_uri() . "/images/", 'admin_img_url' => get_template_directory_uri() . "/admin/images/", 'sidebar_label' => __('Sidebar', 'medicenter'), 'slider_label' => __('Main Slider', 'medicenter'), 'sidebars' => $sidebars, 'theme_sidebars' => $theme_sidebars, 'page_sidebars' => get_post_meta(get_the_ID(), "medicenter_page_sidebars", true), 'theme_sliders' => $sliderAllShortcodeIds, 'main_slider' => get_post_meta(get_the_ID(), "main_slider", true)); //pass data to javascript $params = array('l10n_print_after' => 'config = ' . json_encode($data) . ';'); wp_localize_script("theme-admin", "config", $params); }
function get_tables($tables = array()) { $options = get_alloptions(); foreach ($options as $key => $val) { if (substr($key, 0, strlen(self::$prefix)) == self::$prefix) { $tables[] = $key; } } return $tables; }
function update_option($option_name, $newvalue, $force = false) { $optionHandler =& wp_handler('Option'); $optionObject =& $optionHandler->getByName($option_name); if ($optionObject->getVar('option_value', 'n') != $newvalue) { $optionObject->setVar('option_value', $newvalue); if (!$optionHandler->insert($optionObject, $force, true)) { return false; } $GLOBALS['cache_settings'][wp_id()] = get_alloptions(); // Re cache settings } return true; }
function delete_option($name) { $options = get_alloptions(); unset($options[$name]); return config_save($options); }
function dspp_admin_page() { $error = ""; if ($_POST["action"] == "save") { if ($_POST["shortcodeId"] != "") { for ($i = 0; $i < count($_POST["step_title"]); $i++) { if ($_POST["step_title"][$i] == "") { $_POST["step_title"][$i] = " "; } if ($_POST["step_content"][$i] == "") { $_POST["step_content"][$i] = " "; } } $dspp_options = array("kind" => $_POST["kind"], "style" => $_POST["style"], "firstselected" => $_POST["firstSelected"], "icons" => $_POST["icons"], "imgfolder" => $_POST["imgFolder"], "chooseagain" => $_POST["chooseAgain"], "nextprevbuttons" => $_POST["nextPrevButtons"], "nextprevbuttonsposition" => $_POST["nextPrevButtonsPosition"], "nextbuttontitle" => $_POST["nextButtonTitle"], "prevbuttontitle" => $_POST["prevButtonTitle"], "fadespeed" => $_POST["fadeSpeed"], "event" => $_POST["event"], "packed" => $_POST["packed"], "jquery" => $_POST["jQuery"], "aspopup" => $_POST["asPopup"], "beforeload" => $_POST["beforeLoad"], "onload" => $_POST["onLoad"], "onopen" => $_POST["onOpen"], "afteropen" => $_POST["afterOpen"], "onhoverin" => $_POST["onHoverIn"], "onhoverout" => $_POST["onHoverOut"], "onopenpopup" => $_POST["onOpenPopup"], "onclosepopup" => $_POST["onClosePopup"], "paneltag" => $_POST["panel_tag"], "panelid" => $_POST["panel_id"], "panelclass" => $_POST["panel_class"], "panelstyle" => $_POST["panel_style"], "panelaction" => $_POST["panel_action"], "panelmethod" => $_POST["panel_method"], "stepscount" => $_POST["stepsCount"], "title" => $_POST["step_title"], "tag" => $_POST["step_tag"], "href" => $_POST["step_href"], "class" => $_POST["step_class"], "label" => $_POST["step_label"], "content" => $_POST["step_content"], "contentfromfile" => $_POST["step_content_from_file"], "contenttag" => $_POST["step_content_tag"], "contentid" => $_POST["step_content_id"], "contentclass" => $_POST["step_content_class"]); //add if not exist or update if exist $updated = true; if (!get_option('dspp_shortcode_settings_' . $_POST["shortcodeId"])) { $updated = false; } update_option('dspp_shortcode_settings_' . $_POST["shortcodeId"], $dspp_options); $message .= "Settings saved!" . ($updated ? " (overwritten)" : ""); $message .= "<br />Use <pre>[dspp id='" . $_POST["shortcodeId"] . "']</pre> shortcode to put process panel on your page."; } else { $error .= "Please fill 'Shortcode id' field!"; } } $allOptions = get_alloptions(); $dsppAllShortcodeIds = array(); foreach ($allOptions as $key => $value) { if (substr($key, 0, 23) == "dspp_shortcode_settings") { $dsppAllShortcodeIds[] = $key; } } //sort shortcode ids sort($dsppAllShortcodeIds); ?> <div class="wrap"> <div class="icon32" id="icon-options-general"><br></div> <h2>Dynamic Step Process Panels settings</h2> </div> <?php if ($error != "" || $message != "") { ?> <div class="<?php echo $message != "" ? "updated" : "error"; ?> settings-error"> <p> <strong style="line-height: 150%;"> <?php echo $message != "" ? $message : $error; ?> </strong> </p> </div> <?php } ?> <form action="<?php echo $_SERVER['REQUEST_URI']; ?> " method="post" id="dspp_settings"> <table class="form-table"> <tbody> <?php if (count($dsppAllShortcodeIds)) { ?> <tr valign="top"> <th scope="row"> <label for="editShortcodeId">Choose shortcode id</label> </th> <td> <select name="editShortcodeId" id="editShortcodeId"> <option value="-1">choose...</option> <?php for ($i = 0; $i < count($dsppAllShortcodeIds); $i++) { echo "<option value='{$dsppAllShortcodeIds[$i]}'>" . substr($dsppAllShortcodeIds[$i], 24) . "</option>"; } ?> </select> <span id="ajax_loader" style="display: none;"><img style="margin-bottom: -3px;" src="<?php echo WP_PLUGIN_URL; ?> /dynamic_step_process_panels/img/ajax-loader.gif" /></span> <span class="description">Choose the shortcode id for editing</span> </td> </tr> <?php } ?> <tr valign="top"> <th scope="row"> <label for="shortcodeId">Or create new shortcode id</label> </th> <td> <input type="text" class="regular-text" value="" id="shortcodeId" name="shortcodeId"> <span class="description">Unique identifier for dspp shortcode. Don't use special characters.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="kind">Type</label> </th> <td> <select name="kind" id="kind"> <option value="stepByStep">stepByStep</option> <option value="freeChoice">freeChoice</option> </select> <span class="description">Specifies the behaviour of the steps panel. Parameter stepByStep forces the user to open steps one after another. Parameter freeChoice allow free choice.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="style">Style</label> </th> <td> <select name="style" id="style"> <option value="green-blue">green-blue</option> <option value="green-gray">green-gray</option> <option value="green-maroon">green-maroon</option> <option value="green-orange">green-orange</option> <option value="blue-gray">blue-gray</option> <option value="blue-green">blue-green</option> <option value="blue-maroon">blue-maroon</option> <option value="blue-orange">blue-orange</option> <option value="maroon-blue">maroon-blue</option> <option value="maroon-gray">maroon-gray</option> <option value="maroon-green">maroon-green</option> <option value="maroon-orange">maroon-orange</option> <option value="orange-blue">orange-blue</option> <option value="orange-gray">orange-gray</option> <option value="orange-green">orange-green</option> <option value="orange-maroon">orange-maroon</option> </select> <span class="description">Specifies the coloristic version of the step panel.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="firstselected">First selected</label> </th> <td> <select name="firstSelected" id="firstselected"> <option value="true">true</option> <option value="false">false</option> </select> <span class="description">Specifies that the first step is open on start or not.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="icons">Icons</label> </th> <td> <select name="icons" id="icons"> <option value="true">true</option> <option value="false">false</option> </select> <span class="description">Specifies that the icons under the step labels shows or not.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="imgfolder">Images folder</label> </th> <td> <input type="text" class="regular-text" value="wp-content/plugins/dynamic_step_process_panels/img" id="imgfolder" name="imgFolder"> <span class="description">Specifies the path to folder which contains the sprite_with_icons.png, sprite_without_icons.png and sprite_buttons.png images.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="chooseagain">Choose again</label> </th> <td> <select name="chooseAgain" id="chooseagain"> <option value="true">true</option> <option value="false">false</option> </select> <span class="description">Specifies that the step can be chosen again.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="nextprevbuttons">Next and previous buttons</label> </th> <td> <select name="nextPrevButtons" id="nextprevbuttons"> <option value="true">true</option> <option value="false">false</option> </select> <span class="description">Specifies that the next and previous buttons will show.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="nextprevbuttonsposition">Next and previous buttons position</label> </th> <td> <select name="nextPrevButtonsPosition" id="nextprevbuttonsposition"> <option value="bottom">bottom</option> <option value="top">top</option> </select> <span class="description">Specifies the next and previous buttons position.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="nextbuttontitle">Next button title</label> </th> <td> <input type="text" class="regular-text" value="Next step" id="nextbuttontitle" name="nextButtonTitle"> <span class="description">Specifies the next button caption.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="prevbuttontitle">Next button title</label> </th> <td> <input type="text" class="regular-text" value="Previous step" id="prevbuttontitle" name="prevButtonTitle"> <span class="description">Specifies the previous button caption.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="fadespeed">Fade effect speed</label> </th> <td> <input type="text" class="regular-text" value="1000" id="fadespeed" name="fadeSpeed"> <span class="description">Specifies the fade effect speed (in miliseconds) when the step is changed. Set to 0 if you want to disable effect.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="event">Event</label> </th> <td> <select name="event" id="event"> <option value="click">click</option> <option value="mouseover">mouseover</option> </select> <span class="description">Specifies the type of event to be used for open step content.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="beforeload">beforeLoad event</label> </th> <td> <textarea cols="50" rows="5" id="beforeload" class="large-text code" name="beforeLoad">function(){}</textarea> <span class="description">This event is triggered before step panel will be initialized.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="onload">onLoad event</label> </th> <td> <textarea cols="50" rows="5" id="onload" class="large-text code" name="onLoad">function(){}</textarea> <span class="description">This event is triggered after step panel has been initialized.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="onopen">onOpen event</label> </th> <td> <textarea cols="50" rows="5" id="onopen" class="large-text code" name="onOpen">function(event, step, content, stepNumber){}</textarea> <span class="description">This event is triggered before opening step content.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="afteropen">afterOpen event</label> </th> <td> <textarea cols="50" rows="5" id="afteropen" class="large-text code" name="afterOpen">function(event, step, content, stepNumber){}</textarea> <span class="description">This event is triggered after opening step content.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="onhoverin">onHoverIn event</label> </th> <td> <textarea cols="50" rows="5" id="onhoverin" class="large-text code" name="onHoverIn">function(event, step, stepNumber){}</textarea> <span class="description">This event is triggered when step is hovered.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="onhoverout">onHoverOut event</label> </th> <td> <textarea cols="50" rows="5" id="onhoverout" class="large-text code" name="onHoverOut">function(event, step, stepNumber){}</textarea> <span class="description">This event is triggered when step hover is out.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="onopenpopup">onOpenPopup event</label> </th> <td> <textarea cols="50" rows="5" id="onopenpopup" class="large-text code" name="onOpenPopup">function(event, button, panel){}</textarea> <span class="description">This event is triggered before opening process panel displayed as a popup.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="onclosepopup">onClosePopup event</label> </th> <td> <textarea cols="50" rows="5" id="onclosepopup" class="large-text code" name="onClosePopup">function(event, button, panel){}</textarea> <span class="description">This event is triggered after opening process panel displayed as a popup.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="packed">Packed</label> </th> <td> <select name="packed" id="packed"> <option value="true">true</option> <option value="false">false</option> </select> <span class="description">If set to true, the packed version of javascript will be loaded (jquery.processPanel.packed.js). If set to false, scripts will be loaded separately and won't be packed (jquery-1.4.2.min.js, jquery.processPanel.js).</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="jquery">jQuery</label> </th> <td> <select name="jQuery" id="jquery"> <option value="true">true</option> <option value="false">false</option> </select> <span class="description">It works only when parameter packed is set to false. If set to true jquery-1.4.2.min.js will be loaded. If set to false jquery-1.4.2.min.js won't be loaded.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="aspopup">Displayed as a popup</label> </th> <td> <select name="asPopup" id="aspopup"> <option value="yes">yes</option> <option value="no" selected="selected">no</option> </select> <span class="description">Specifies that the panel will be displayed as a popup or not. <span style="font-weight: bold;">If you've choosen 'yes' please put this link on your page <a href="#<span id="panelidhint">processPanel</span>-popup">open popup</a>. When you gonna click on it, the popup will open.</span></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="paneltag">Panel tag</label> </th> <td> <input type="text" class="regular-text" value="div" id="paneltag" name="panel_tag"> <span class="description">Defines the html tag of the steps panel node.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="panelid">Panel id</label> </th> <td> <input type="text" class="regular-text" value="processPanel" id="panelid" name="panel_id"> <span class="description">Defines the id attribute of the steps panel.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="panelclass">Panel class</label> </th> <td> <input type="text" class="regular-text" value="dspp_panel" id="panelclass" name="panel_class"> <span class="description">Defines the class attribute of the steps panel.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="panelstyle">Panel style</label> </th> <td> <input type="text" class="regular-text" value="" id="panelstyle" name="panel_style"> <span class="description">Defines the style attribute of the steps panel. Using this parameter you can define inline styles for the panel.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="panelaction">Panel action</label> </th> <td> <input type="text" class="regular-text" value="" id="panelaction" name="panel_action"> <span class="description">Defines the action attribute of the steps panel, when it is used as a form (panel tag field value = form).</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="panelmethod">Panel method</label> </th> <td> <select name="panel_method" id="panelmethod"> <option value="post">post</option> <option value="get">get</option> </select> <span class="description">Defines the method attribute of the steps panel, when it is used as a form (panel tag field value = form).</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="stepscount">Number of steps</label> </th> <td> <input type="text" class="regular-text" value="3" id="stepscount" name="stepsCount" maxlength="2"> <span class="description">Specifies the number of steps in panel.</span> </td> </tr> <tr valign="top"> <th scope="row" colspan="2" style="padding: 0px;" id="steps_settings"> <table class="form-table" id="dspp_table_content1"> <tr valign="top"> <th scope="row" colspan="2" style="font-weight: bold;"> Step 1 settings: </th> </tr> <tr valign="top"> <th scope="row"> <label for="title1">Title</label> </th> <td> <input type="text" class="regular-text" value="" id="title1" name="step_title[]"> <span class="description">Defines the title of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="tag1">Tag</label> </th> <td> <input type="text" class="regular-text" value="a" id="tag1" name="step_tag[]"> <span class="description">Defines the html tag of the step node.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="href1">Href</label> </th> <td> <input type="text" class="regular-text" value="#content1" id="href1" name="step_href[]"> <span class="description">Defines the href attribute of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="class1">Class</label> </th> <td> <input type="text" class="regular-text" value="" id="class1" name="step_class[]"> <span class="description">Defines the class attribute of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="label1">Label</label> </th> <td> <input type="text" class="regular-text" value="" id="label1" name="step_label[]"> <span class="description">Defines the label attribute of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="content1">Content</label> </th> <td> <textarea cols="50" rows="10" id="content1" class="large-text code" name="step_content[]"></textarea> <span class="description">HTML step content.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contentfromfile1">Content from file</label> </th> <td> <input type="text" class="regular-text" value="" id="contentfromfile1" name="step_content_from_file[]" /> <span class="description">Specify the file from which content will be loaded via AJAX. If you specify this parameter, html step content will be ignored.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contenttag1">Content tag</label> </th> <td> <input type="text" class="regular-text" value="div" id="contenttag1" name="step_content_tag[]"> <span class="description">Defines the html tag of the step content node.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contentid1">Content id</label> </th> <td> <input type="text" class="regular-text" value="content1" id="contentid1" name="step_content_id[]"> <span class="description">Defines the id attribute of the step content.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contentclass1">Content class</label> </th> <td> <input type="text" class="regular-text" value="" id="contentclass1" name="step_content_class[]"> <span class="description">Defines the class attribute of the step content.</span> </td> </tr> </table> <table class="form-table" id="dspp_table_content2"> <tr valign="top"> <th scope="row" colspan="2" style="font-weight: bold;"> Step 2 settings: </th> </tr> <tr valign="top"> <th scope="row"> <label for="title2">Title</label> </th> <td> <input type="text" class="regular-text" value="" id="title2" name="step_title[]"> <span class="description">Defines the title of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="tag2">Tag</label> </th> <td> <input type="text" class="regular-text" value="a" id="tag2" name="step_tag[]"> <span class="description">Defines the html tag of the step node.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="href2">Href</label> </th> <td> <input type="text" class="regular-text" value="#content2" id="href2" name="step_href[]"> <span class="description">Defines the href attribute of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="class2">Class</label> </th> <td> <input type="text" class="regular-text" value="" id="class2" name="step_class[]"> <span class="description">Defines the class attribute of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="label2">Label</label> </th> <td> <input type="text" class="regular-text" value="" id="label2" name="step_label[]"> <span class="description">Defines the label attribute of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="content2">Content</label> </th> <td> <textarea cols="50" rows="10" id="content2" class="large-text code" name="step_content[]"></textarea> <span class="description">HTML step content.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contentfromfile2">Content from file</label> </th> <td> <input type="text" class="regular-text" value="" id="contentfromfile2" name="step_content_from_file[]" /> <span class="description">Specify the file from which content will be loaded via AJAX. If you specify this parameter, html step content will be ignored.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contenttag2">Content tag</label> </th> <td> <input type="text" class="regular-text" value="div" id="contenttag2" name="step_content_tag[]"> <span class="description">Defines the html tag of the step content node.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contentid2">Content id</label> </th> <td> <input type="text" class="regular-text" value="content2" id="contentid2" name="step_content_id[]"> <span class="description">Defines the id attribute of the step content.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contentclass2">Content class</label> </th> <td> <input type="text" class="regular-text" value="" id="contentclass2" name="step_content_class[]"> <span class="description">Defines the class attribute of the step content.</span> </td> </tr> </table> <table class="form-table" id="dspp_table_content3"> <tr valign="top"> <th scope="row" colspan="2" style="font-weight: bold;"> Step 3 settings: </th> </tr> <tr valign="top"> <th scope="row"> <label for="title3">Title</label> </th> <td> <input type="text" class="regular-text" value="" id="title3" name="step_title[]"> <span class="description">Defines the title of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="tag3">Tag</label> </th> <td> <input type="text" class="regular-text" value="a" id="tag3" name="step_tag[]"> <span class="description">Defines the html tag of the step node.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="href3">Href</label> </th> <td> <input type="text" class="regular-text" value="#content3" id="href3" name="step_href[]"> <span class="description">Defines the href attribute of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="class3">Class</label> </th> <td> <input type="text" class="regular-text" value="" id="class3" name="step_class[]"> <span class="description">Defines the class attribute of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="label3">Label</label> </th> <td> <input type="text" class="regular-text" value="" id="label3" name="step_label[]"> <span class="description">Defines the label attribute of the step.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="content3">Content</label> </th> <td> <textarea cols="50" rows="10" id="content3" class="large-text code" name="step_content[]"></textarea> <span class="description">HTML step content.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contentfromfile3">Content from file</label> </th> <td> <input type="text" class="regular-text" value="" id="contentfromfile3" name="step_content_from_file[]" /> <span class="description">Specify the file from which content will be loaded via AJAX. If you specify this parameter, html step content will be ignored.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contenttag3">Content tag</label> </th> <td> <input type="text" class="regular-text" value="div" id="contenttag3" name="step_content_tag[]"> <span class="description">Defines the html tag of the step content node.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contentid3">Content id</label> </th> <td> <input type="text" class="regular-text" value="content3" id="contentid3" name="step_content_id[]"> <span class="description">Defines the id attribute of the step content.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contentclass3">Content class</label> </th> <td> <input type="text" class="regular-text" value="" id="contentclass3" name="step_content_class[]"> <span class="description">Defines the class attribute of the step content.</span> </td> </tr> </table> </th> </tr> </tbody> </table> <p class="submit"> <input type="submit" value="Save Options" class="button-primary" name="Submit"> <input type="hidden" name="action" value="save" /> </p> </form> <?php }
function get_settings($setting) { global $wpdb, $cache_settings, $use_cache, $REQUEST_URI; if (strstr($REQUEST_URI, 'install.php')) { return false; } if (empty($cache_settings) or !$use_cache) { $settings = get_alloptions(); $cache_settings = $settings; } else { $settings = $cache_settings; } if (!isset($settings->{$setting})) { return false; } else { return $settings->{$setting}; } }
/** * @dataProvider providerTestProcessBlogOptions */ function testProcessBlogOptions($data, $expected_fields) { update_option('test', 'test'); $this->pf->process_blog_options($data, array('category' => 1)); foreach ($expected_fields as $name => $value) { $this->assertEquals($value, get_option($name)); if ($value === false) { $all_options = get_alloptions(); $this->assertTrue(!isset($all_options[$name])); } } }
function update_option($option_name, $newvalue) { global $wpdb, $wp_id, $cache_settings; // No validation at the moment $newvalue = stripslashes($newvalue); $newvalue = trim($newvalue); // I can't think of any situation we wouldn't want to trim $newvalue = $wpdb->escape($newvalue); $wpdb->query("UPDATE {$wpdb->options[$wp_id]} SET option_value = '{$newvalue}' WHERE option_name = '{$option_name}'"); $cache_settings[$wp_id] = get_alloptions(); // Re cache settings }
/** * Function is called when plugin is deactivated by wordpress * * Deletes the wordpress page that was acting as Kohana front loader * and removes all kohana options. * @return */ function kohana_deactivate() { error_log('deactivating kohana plugin'); wp_delete_post(get_option('kohana_front_loader')); delete_option('kohana_front_loader'); delete_option('kohana_default_placement'); delete_option('kohana_process_all_uri'); delete_option('kohana_system_path'); delete_option('kohana_modules_path'); delete_option('kohana_application_path'); delete_option('kohana_bootstrap_path'); delete_option('kohana_ext'); delete_option('kohana_front_loader_in_nav'); delete_option('kohana_modules'); delete_option('kohana_default_controller'); delete_option('kohana_default_action'); delete_option('kohana_default_id'); delete_option('kohana_page_template'); // remove all page routes $all_options = get_alloptions(); foreach ($all_options as $op_name => $op_value) { if (substr($op_name, 0, 12) == 'kohana_route') { delete_option($op_name); } } }
function update_option($option_name, $newvalue) { global $wpdb, $cache_settings; if ( is_array($newvalue) || is_object($newvalue) ) $newvalue = serialize($newvalue); $newvalue = trim($newvalue); // I can't think of any situation we wouldn't want to trim // If the new and old values are the same, no need to update. if ($newvalue == get_option($option_name)) { return true; } // If it's not there add it if ( !$wpdb->get_var("SELECT option_name FROM $wpdb->options WHERE option_name = '$option_name'") ) add_option($option_name); $newvalue = $wpdb->escape($newvalue); $wpdb->query("UPDATE $wpdb->options SET option_value = '$newvalue' WHERE option_name = '$option_name'"); $cache_settings = get_alloptions(); // Re cache settings return true; }
function wp_load_alloptions() { return get_alloptions(); }
} $routes_updated = true; } } /** * Handle Deleting Routing Option */ if ($_POST['action'] == 'delete_page_routing') { $show_routing_tab = true; delete_option($_POST['route']); $routes_updated = true; } /** * Check wordpress options and find all kohana routes */ $all_options = get_alloptions(); $routes = array(); foreach ($all_options as $op_name => $op_value) { if (substr($op_name, 0, 12) == 'kohana_route') { $routes[] = explode('::', $op_name . '::' . $op_value); } } $option_set = get_option('kohana_system_path') && get_option('kohana_application_path') ? true : false; $has_routes = $routes ? true : false; /** * Determine the Kohana Front Loader URL */ $my_kohana_front = get_option('siteurl'); global $wpdb; if (!get_option('permalink_structure')) { $my_kohana_front .= '/?page_id=' . get_option('kohana_front_loader');
function testGetAllOptions() { update_option('test', 'value'); $this->assertEquals(array('test' => 'value'), get_alloptions()); }
function medicenter_options() { global $themename; /*if($_POST["action"]==$themename . "_save") { $theme_options = (array)get_option($themename . "_options"); if($_POST[$themename . "_submit"]=="Save Main Options") { $theme_options_main = array( "logo_url" => $_POST["logo_url"], "logo_text" => $_POST["logo_text"], "footer_text_left" => $_POST["footer_text_left"], "footer_text_right" => $_POST["footer_text_right"], "responsive" => (int)$_POST["responsive"], "layout" => $_POST["layout"] ); update_option($themename . "_options", array_merge($theme_options, $theme_options_main)); $selected_tab = 0; } else if($_POST[$themename . "_submit"]=="Save Slider Options") { $theme_options_backgrounds = array( "slider_image_url" => array_filter($_POST["slider_image_url"]), "slider_image_title" => array_filter($_POST["slider_image_title"]), "slider_image_subtitle" => array_filter($_POST["slider_image_subtitle"]), "slider_image_link" => array_filter($_POST["slider_image_link"]), "slider_autoplay" => $_POST["slider_autoplay"], "slide_interval" => (int)$_POST["slide_interval"], "slider_effect" => $_POST["slider_effect"], "slider_transition" => $_POST["slider_transition"], "slider_transition_speed" => (int)$_POST["slider_transition_speed"] ); update_option($themename . "_options", array_merge($theme_options, $theme_options_backgrounds)); $selected_tab = 1; } else if($_POST[$themename . "_submit"]=="Save Contact Form Options") { $theme_options_contact_form = array( "cf_admin_name" => $_POST["cf_admin_name"], "cf_admin_email" => $_POST["cf_admin_email"], "cf_smtp_host" => $_POST["cf_smtp_host"], "cf_smtp_username" => $_POST["cf_smtp_username"], "cf_smtp_password" => $_POST["cf_smtp_password"], "cf_smtp_port" => $_POST["cf_smtp_port"], "cf_smtp_secure" => $_POST["cf_smtp_secure"], "cf_email_subject" => $_POST["cf_email_subject"], "cf_template" => $_POST["cf_template"] ); update_option($themename . "_options", array_merge($theme_options, $theme_options_contact_form)); $selected_tab = 2; } else if($_POST[$themename . "_submit"]=="Save Colors Options") { $theme_options_colors = array( "header_background_color" => $_POST["header_background_color"], "body_background_color" => $_POST["body_background_color"], "footer_background_color" => $_POST["footer_background_color"], "link_color" => $_POST["link_color"], "link_hover_color" => $_POST["link_hover_color"], "body_headers_color" => $_POST["body_headers_color"], "body_headers_border_color" => $_POST["body_headers_border_color"], "body_text_color" => $_POST["body_text_color"], "body_text2_color" => $_POST["body_text2_color"], "footer_headers_color" => $_POST["footer_headers_color"], "footer_headers_border_color" => $_POST["footer_headers_border_color"], "footer_text_color" => $_POST["footer_text_color"], "timeago_label_color" => $_POST["timeago_label_color"], "sentence_color" => $_POST["sentence_color"], "logo_first_part_text_color" => $_POST["logo_first_part_text_color"], "logo_second_part_text_color" => $_POST["logo_second_part_text_color"], "body_button_color" => $_POST["body_button_color"], "body_button_hover_color" => $_POST["body_button_hover_color"], "body_button_border_color" => $_POST["body_button_border_color"], "body_button_border_hover_color" => $_POST["body_button_border_hover_color"], "footer_button_color" => $_POST["footer_button_color"], "footer_button_hover_color" => $_POST["footer_button_hover_color"], "footer_button_border_color" => $_POST["footer_button_border_color"], "footer_button_border_hover_color" => $_POST["footer_button_border_hover_color"], "menu_link_color" => $_POST["menu_link_color"], "menu_link_border_color" => $_POST["menu_link_border_color"], "menu_active_color" => $_POST["menu_active_color"], "menu_active_border_color" => $_POST["menu_active_border_color"], "menu_hover_color" => $_POST["menu_hover_color"], "menu_hover_border_color" => $_POST["menu_hover_border_color"], "submenu_background_color" => $_POST["submenu_background_color"], "submenu_hover_background_color" => $_POST["submenu_hover_background_color"], "submenu_color" => $_POST["submenu_color"], "submenu_hover_color" => $_POST["submenu_hover_color"], "form_hint_color" => $_POST["form_hint_color"], "form_field_text_color" => $_POST["form_field_text_color"], "form_field_border_color" => $_POST["form_field_border_color"], "form_field_active_border_color" => $_POST["form_field_active_border_color"], "date_box_color" => $_POST["date_box_color"], "date_box_text_color" => $_POST["date_box_text_color"], "date_box_comments_number_text_color" => $_POST["date_box_comments_number_text_color"], "date_box_comments_number_border_color" => $_POST["date_box_comments_number_border_color"], "date_box_comments_number_hover_border_color" => $_POST["date_box_comments_number_hover_border_color"], "gallery_box_color" => $_POST["gallery_box_color"], "gallery_box_text_first_line_color" => $_POST["gallery_box_text_first_line_color"], "gallery_box_text_second_line_color" => $_POST["gallery_box_text_second_line_color"], "gallery_box_hover_color" => $_POST["gallery_box_hover_color"], "gallery_box_hover_text_first_line_color" => $_POST["gallery_box_hover_text_first_line_color"], "gallery_box_hover_text_second_line_color" => $_POST["gallery_box_hover_text_second_line_color"], "timetable_box_color" => $_POST["timetable_box_color"], "timetable_box_hover_color" => $_POST["timetable_box_hover_color"], "gallery_details_box_border_color" => $_POST["gallery_details_box_border_color"], "bread_crumb_border_color" => $_POST["bread_crumb_border_color"], "accordion_item_border_color" => $_POST["accordion_item_border_color"], "accordion_item_border_hover_color" => $_POST["accordion_item_border_hover_color"], "accordion_item_border_active_color" => $_POST["accordion_item_border_active_color"], "copyright_area_border_color" => $_POST["copyright_area_border_color"], "comment_reply_button_color" => $_POST["comment_reply_button_color"], "post_author_link_color" => $_POST["post_author_link_color"], "contact_details_box_background_color" => $_POST["contact_details_box_background_color"] ); update_option($themename . "_options", array_merge($theme_options, $theme_options_colors)); $selected_tab = 3; } else if($_POST[$themename . "_submit"]=="Save Fonts Options") { $theme_options_fonts = array( "header_font" => $_POST["header_font"], "subheader_font" => $_POST["subheader_font"] ); update_option($themename . "_options", array_merge($theme_options, $theme_options_fonts)); $selected_tab = 4; } else { $theme_options = array( "logo_url" => $_POST["logo_url"], "logo_first_part_text" => $_POST["logo_first_part_text"], "logo_second_part_text" => $_POST["logo_second_part_text"], "footer_text_left" => $_POST["footer_text_left"], "footer_text_right" => $_POST["footer_text_right"], "responsive" => (int)$_POST["responsive"], "slider_image_url" => array_filter($_POST["slider_image_url"]), "slider_image_title" => array_filter($_POST["slider_image_title"]), "slider_image_subtitle" => array_filter($_POST["slider_image_subtitle"]), "slider_image_link" => array_filter($_POST["slider_image_link"]), "slider_autoplay" => $_POST["slider_autoplay"], "slide_interval" => (int)$_POST["slide_interval"], "slider_effect" => $_POST["slider_effect"], "slider_transition" => $_POST["slider_transition"], "slider_transition_speed" => (int)$_POST["slider_transition_speed"], "footer_text_left" => $_POST["footer_text_left"], "footer_text_right" => $_POST["footer_text_right"], "cf_admin_name" => $_POST["cf_admin_name"], "cf_admin_email" => $_POST["cf_admin_email"], "cf_smtp_host" => $_POST["cf_smtp_host"], "cf_smtp_username" => $_POST["cf_smtp_username"], "cf_smtp_password" => $_POST["cf_smtp_password"], "cf_smtp_port" => $_POST["cf_smtp_port"], "cf_smtp_secure" => $_POST["cf_smtp_secure"], "cf_email_subject" => $_POST["cf_email_subject"], "cf_template" => $_POST["cf_template"], "header_background_color" => $_POST["header_background_color"], "body_background_color" => $_POST["body_background_color"], "footer_background_color" => $_POST["footer_background_color"], "link_color" => $_POST["link_color"], "link_hover_color" => $_POST["link_hover_color"], "body_headers_color" => $_POST["body_headers_color"], "body_headers_border_color" => $_POST["body_headers_border_color"], "body_text_color" => $_POST["body_text_color"], "body_text2_color" => $_POST["body_text2_color"], "footer_headers_color" => $_POST["footer_headers_color"], "footer_headers_border_color" => $_POST["footer_headers_border_color"], "footer_text_color" => $_POST["footer_text_color"], "timeago_label_color" => $_POST["timeago_label_color"], "sentence_color" => $_POST["sentence_color"], "logo_first_part_text_color" => $_POST["logo_first_part_text_color"], "logo_second_part_text_color" => $_POST["logo_second_part_text_color"], "body_button_color" => $_POST["body_button_color"], "body_button_hover_color" => $_POST["body_button_hover_color"], "body_button_border_color" => $_POST["body_button_border_color"], "body_button_border_hover_color" => $_POST["body_button_border_hover_color"], "footer_button_color" => $_POST["footer_button_color"], "footer_button_hover_color" => $_POST["footer_button_hover_color"], "footer_button_border_color" => $_POST["footer_button_border_color"], "footer_button_border_hover_color" => $_POST["footer_button_border_hover_color"], "menu_link_color" => $_POST["menu_link_color"], "menu_link_border_color" => $_POST["menu_link_border_color"], "menu_active_color" => $_POST["menu_active_color"], "menu_active_border_color" => $_POST["menu_active_border_color"], "menu_hover_color" => $_POST["menu_hover_color"], "menu_hover_border_color" => $_POST["menu_hover_border_color"], "submenu_background_color" => $_POST["submenu_background_color"], "submenu_hover_background_color" => $_POST["submenu_hover_background_color"], "submenu_color" => $_POST["submenu_color"], "submenu_hover_color" => $_POST["submenu_hover_color"], "form_hint_color" => $_POST["form_hint_color"], "form_field_text_color" => $_POST["form_field_text_color"], "form_field_border_color" => $_POST["form_field_border_color"], "form_field_active_border_color" => $_POST["form_field_active_border_color"], "date_box_color" => $_POST["date_box_color"], "date_box_text_color" => $_POST["date_box_text_color"], "date_box_comments_number_text_color" => $_POST["date_box_comments_number_text_color"], "date_box_comments_number_border_color" => $_POST["date_box_comments_number_border_color"], "date_box_comments_number_hover_border_color" => $_POST["date_box_comments_number_hover_border_color"], "gallery_box_text_first_line_color" => $_POST["gallery_box_text_first_line_color"], "gallery_box_text_second_line_color" => $_POST["gallery_box_text_second_line_color"], "gallery_box_hover_color" => $_POST["gallery_box_hover_color"], "gallery_box_hover_text_first_line_color" => $_POST["gallery_box_hover_text_first_line_color"], "gallery_box_hover_text_second_line_color" => $_POST["gallery_box_hover_text_second_line_color"], "timetable_box_color" => $_POST["timetable_box_color"], "timetable_box_hover_color" => $_POST["timetable_box_hover_color"], "gallery_details_box_border_color" => $_POST["gallery_details_box_border_color"], "bread_crumb_border_color" => $_POST["bread_crumb_border_color"], "accordion_item_border_color" => $_POST["accordion_item_border_color"], "accordion_item_border_hover_color" => $_POST["accordion_item_border_hover_color"], "accordion_item_border_active_color" => $_POST["accordion_item_border_active_color"], "copyright_area_border_color" => $_POST["copyright_area_border_color"], "comment_reply_button_color" => $_POST["comment_reply_button_color"], "post_author_link_color" => $_POST["post_author_link_color"], "contact_details_box_background_color" => $_POST["contact_details_box_background_color"], "header_font" => $_POST["header_font"], "subheader_font" => $_POST["subheader_font"] ); update_option($themename . "_options", $theme_options); $selected_tab = 0; } }*/ $theme_options = theme_stripslashes_deep(get_option($themename . "_options")); $sliderAllShortcodeIds = array(); $allOptions = get_alloptions(); foreach ($allOptions as $key => $value) { if (substr($key, 0, 26) == "medicenter_slider_settings") { $sliderAllShortcodeIds[] = $key; } } //sort slider ids sort($sliderAllShortcodeIds); ?> <div class="wrap"> <div class="icon32" id="icon-options-general"><br></div> <h2><?php echo ucfirst('medicenter'); ?> Options</h2> </div> <?php if ($_POST["action"] == $themename . "_save") { ?> <div class="updated"> <p> <strong> <?php _e('Options saved', 'medicenter'); ?> </strong> </p> </div> <?php } //get google fonts $google_api_url = 'https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyB4_VClnbxilxqjZd7NbysoHwAXX1ZGdKQ'; $fontsJson = wp_remote_retrieve_body(wp_remote_get($google_api_url, array('sslverify' => false))); $fontsArray = json_decode($fontsJson); //$fontsJson = file_get_contents('https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyB4_VClnbxilxqjZd7NbysoHwAXX1ZGdKQ'); //$fontsArray = json_decode($fontsJson); ?> <form class="theme_options" action="<?php echo $_SERVER['REQUEST_URI']; ?> " method="post" id="theme-options-panel"> <div class="header"> <div class="header_left"> <h3> <a href="http://themeforest.net/user/QuanticaLabs/portfolio?ref=QuanticaLabs" title="QuanticaLabs"> QuanticaLabs </a> </h3> <h5>Theme Options</h5> </div> <div class="header_right"> <div class="description"> <h3> <a href="http://themeforest.net/user/QuanticaLabs/portfolio?ref=QuanticaLabs" title="MediCenter - Responsive Medical Health WordPress Theme"> MediCenter </a> </h3> <h5>Responsive Medical Health WordPress Theme</h5> </div> <a class="logo" href="http://themeforest.net/user/QuanticaLabs/portfolio?ref=QuanticaLabs" title="QuanticaLabs"> </a> </div> </div> <div class="content clearfix"> <ul class="menu"> <li> <a href='#tab-main' class="selected"> <?php _e('Main', 'medicenter'); ?> <span class="general"></span> </a> </li> <li> <a href="#tab-slider"> <?php _e('Slider', 'medicenter'); ?> <span class="slider"></span> </a> </li> <li> <a href="#tab-contact-form"> <?php _e('Contact Form', 'medicenter'); ?> <span class="contact_form"></span> </a> </li> <li> <a href="#tab-colors"> <?php _e('Colors', 'medicenter'); ?> <span class="colors"></span> </a> <ul class="submenu"> <li> <a href="#tab-colors_general"> <?php _e('General', 'medicenter'); ?> </a> </li> <li> <a href="#tab-colors_text"> <?php _e('Text', 'medicenter'); ?> </a> </li> <li> <a href="#tab-colors_buttons"> <?php _e('Buttons', 'medicenter'); ?> </a> </li> <li> <a href="#tab-colors_menu"> <?php _e('Menu', 'medicenter'); ?> </a> </li> <li> <a href="#tab-colors_forms"> <?php _e('Forms', 'medicenter'); ?> </a> </li> <li> <a href="#tab-colors_miscellaneous"> <?php _e('Miscellaneous', 'medicenter'); ?> </a> </li> </ul> </li> <li> <a href="#tab-fonts"> <?php _e('Fonts', 'medicenter'); ?> <span class="font"></span> </a> </li> </ul> <div id="tab-main" class="settings" style="display: block;"> <h3><?php _e('Main', 'medicenter'); ?> </h3> <ul class="form_field_list"> <li> <label for="logo_url"><?php _e('LOGO URL', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["logo_url"]); ?> " id="logo_url" name="logo_url"> <input type="button" class="button" name="<?php echo $themename; ?> _upload_button" id="logo_url_upload_button" value="<?php _e('Insert logo', 'medicenter'); ?> " /> </div> </li> <li> <label for="logo_text"><?php _e('LOGO TEXT', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["logo_text"]); ?> " id="logo_text" name="logo_text"> </div> </li> <li> <label for="footer_text_left"><?php _e('FOOTER TEXT LEFT', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["footer_text_left"]); ?> " id="footer_text_left" name="footer_text_left"> </div> </li> <li> <label for="footer_text_right"><?php _e('FOOTER TEXT RIGHT', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["footer_text_right"]); ?> " id="footer_text_right" name="footer_text_right"> </div> </li> <li> <label for="home_page_top_hint"><?php _e('HOME PAGE TOP HINT', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["home_page_top_hint"]); ?> " id="home_page_top_hint" name="home_page_top_hint"> </div> </li> <li> <label for="responsive"><?php _e('RESPONSIVE', 'medicenter'); ?> </label> <div> <select id="responsive" name="responsive"> <option value="1"<?php echo (int) $theme_options["responsive"] == 1 ? " selected='selected'" : ""; ?> ><?php _e('yes', 'medicenter'); ?> </option> <option value="0"<?php echo (int) $theme_options["responsive"] == 0 ? " selected='selected'" : ""; ?> ><?php _e('no', 'medicenter'); ?> </option> </select> </div> </li> <li> <label for="layout"><?php _e('LAYOUT', 'medicenter'); ?> </label> <div> <select id="layout" name="layout"> <option value="wide"<?php echo $theme_options["layout"] == "wide" ? " selected='selected'" : ""; ?> ><?php _e('wide', 'medicenter'); ?> </option> <option value="boxed"<?php echo $theme_options["layout"] == "boxed" ? " selected='selected'" : ""; ?> ><?php _e('boxed', 'medicenter'); ?> </option> </select> </div> </li> <li> <label for="layout_picker"><?php _e('SHOW LAYOUT PICKER', 'medicenter'); ?> </label> <div> <select id="layout_picker" name="layout_picker"> <option value="0"<?php echo !(int) $theme_options["layout_picker"] ? " selected='selected'" : ""; ?> ><?php _e('no', 'medicenter'); ?> </option> <option value="1"<?php echo (int) $theme_options["layout_picker"] ? " selected='selected'" : ""; ?> ><?php _e('yes', 'medicenter'); ?> </option> </select> </div> </li> </ul> </div> <div id="tab-slider" class="settings"> <h3><?php _e('Slider', 'medicenter'); ?> </h3> <ul class="form_field_list"> <li> <label for="edit_slider_id"><?php _e('Choose slider id for edit', 'medicenter'); ?> </label> <div> <select id="edit_slider_id" name="edit_slider_id"> <option value="-1">choose...</option> <?php for ($i = 0; $i < count($sliderAllShortcodeIds); $i++) { echo "<option value='{$sliderAllShortcodeIds[$i]}'>" . substr($sliderAllShortcodeIds[$i], 27) . "</option>"; } ?> </select> <img style="display: none; cursor: pointer;" id="slider_delete_button" src="<?php echo get_template_directory_uri(); ?> /images/delete.png" alt="del" title="<?php _e('Delete this slider', 'medicenter'); ?> " /> <span id="slider_ajax_loader" style="display: none;"><img style="margin-bottom: -3px;" src="<?php echo get_template_directory_uri(); ?> /admin/images/ajax-loader.gif" /></span> </div> </li> <li class="slider_image_title_row"> <label><?php _e('Or type new slider id to create new one', 'medicenter'); ?> </label> <div> <input class="regular-text" type="text" id="slider_id" name="slider_id" value="" /> </div> </li> <?php $slides_count = count($theme_options["slider_image_url"]); if ($slides_count == 0) { $slides_count = 3; } for ($i = 0; $i < $slides_count; $i++) { ?> <li class="slider_image_url_row"> <label><?php _e('SLIDER IMAGE URL', 'medicenter'); echo " " . ($i + 1); ?> </label> <div> <input class="regular-text" type="text" id="<?php echo $themename; ?> _slider_image_url_<?php echo $i + 1; ?> " name="slider_image_url[]" value="" /> <input type="button" class="button" name="<?php echo $themename; ?> _upload_button" id="<?php echo $themename; ?> _slider_image_url_button_<?php echo $i + 1; ?> " value="<?php _e('Browse', 'medicenter'); ?> " /> </div> </li> <li class="slider_image_title_row"> <label><?php _e('SLIDER IMAGE TITLE', 'medicenter'); echo " " . ($i + 1); ?> </label> <div> <input class="regular-text" type="text" id="<?php echo $themename; ?> _slider_image_title_<?php echo $i + 1; ?> " name="slider_image_title[]" value="" /> </div> </li> <li class="slider_image_subtitle_row"> <label><?php _e('SLIDER IMAGE SUBTITLE', 'medicenter'); echo " " . ($i + 1); ?> </label> <div> <input class="regular-text" type="text" id="<?php echo $themename; ?> _slider_image_subtitle_<?php echo $i + 1; ?> " name="slider_image_subtitle[]" value="" /> </div> </li> <li class="slider_image_link_row"> <label><?php _e('SLIDER IMAGE LINK', 'medicenter'); echo " " . ($i + 1); ?> </label> <div> <input class="regular-text" type="text" id="<?php echo $themename; ?> _slider_image_link_<?php echo $i + 1; ?> " name="slider_image_link[]" value="" /> </div> </li> <?php } ?> <li> <input type="button" class="button" name="<?php echo $themename; ?> _add_new_button" id="<?php echo $themename; ?> _add_new_button" value="<?php _e('Add slider image', 'medicenter'); ?> " /> </li> <li> <label><?php _e('AUTOPLAY', 'medicenter'); ?> </label> <div> <select id="slider_autoplay" name="slider_autoplay"> <option value="1"><?php _e('yes', 'medicenter'); ?> </option> <option value="0"><?php _e('no', 'medicenter'); ?> </option> </select> </div> </li> <?php /*<li> <label><?php _e('PAUSE ON HOVER', 'medicenter'); ?></label> <div> <select id="slider_pause_on_hover" name="slider_pause_on_hover"> <option value="0"><?php _e('no', 'medicenter'); ?></option> <option value="1"><?php _e('yes', 'medicenter'); ?></option> </select> </div> </li>*/ ?> <li> <label for="slide_interval"><?php _e('SLIDE INTERVAL (ms):', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" id="slide_interval" name="slide_interval" value="5000" /> </div> </li> <li> <label for="slider_effect"><?php _e('EFFECT:', 'medicenter'); ?> </label> <div> <select id="slider_effect" name="slider_effect"> <option value="scroll"><?php _e('scroll', 'medicenter'); ?> </option> <option value="none"><?php _e('none', 'medicenter'); ?> </option> <option value="directscroll"><?php _e('directscroll', 'medicenter'); ?> </option> <option value="fade"><?php _e('fade', 'medicenter'); ?> </option> <option value="crossfade"><?php _e('crossfade', 'medicenter'); ?> </option> <option value="cover"><?php _e('cover', 'medicenter'); ?> </option> <option value="uncover"><?php _e('uncover', 'medicenter'); ?> </option> </select> </div> </li> <li> <label for="slider_transition"><?php _e('TRANSITION:', 'medicenter'); ?> </label> <div> <select id="slider_transition" name="slider_transition"> <option value="swing"><?php _e('swing', 'medicenter'); ?> </option> <option value="linear"><?php _e('linear', 'medicenter'); ?> </option> <option value="easeInQuad"><?php _e('easeInQuad', 'medicenter'); ?> </option> <option value="easeOutQuad"><?php _e('easeOutQuad', 'medicenter'); ?> </option> <option value="easeInOutQuad"><?php _e('easeInOutQuad', 'medicenter'); ?> </option> <option value="easeInCubic"><?php _e('easeInCubic', 'medicenter'); ?> </option> <option value="easeOutCubic"><?php _e('easeOutCubic', 'medicenter'); ?> </option> <option value="easeInOutCubic"><?php _e('easeInOutCubic', 'medicenter'); ?> </option> <option value="easeInOutCubic"><?php _e('easeInOutCubic', 'medicenter'); ?> </option> <option value="easeInQuart"><?php _e('easeInQuart', 'medicenter'); ?> </option> <option value="easeOutQuart"><?php _e('easeOutQuart', 'medicenter'); ?> </option> <option value="easeInOutQuart"><?php _e('easeInOutQuart', 'medicenter'); ?> </option> <option value="easeInSine"><?php _e('easeInSine', 'medicenter'); ?> </option> <option value="easeOutSine"><?php _e('easeOutSine', 'medicenter'); ?> </option> <option value="easeInOutSine"><?php _e('easeInOutSine', 'medicenter'); ?> </option> <option value="easeInExpo"><?php _e('easeInExpo', 'medicenter'); ?> </option> <option value="easeOutExpo"><?php _e('easeOutExpo', 'medicenter'); ?> </option> <option value="easeInOutExpo"><?php _e('easeInOutExpo', 'medicenter'); ?> </option> <option value="easeInQuint"><?php _e('easeInQuint', 'medicenter'); ?> </option> <option value="easeOutQuint"><?php _e('easeOutQuint', 'medicenter'); ?> </option> <option value="easeInOutQuint"><?php _e('easeInOutQuint', 'medicenter'); ?> </option> <option value="easeInCirc"><?php _e('easeInCirc', 'medicenter'); ?> </option> <option value="easeOutCirc"><?php _e('easeOutCirc', 'medicenter'); ?> </option> <option value="easeInOutCirc"><?php _e('easeInOutCirc', 'medicenter'); ?> </option> <option value="easeInElastic"><?php _e('easeInElastic', 'medicenter'); ?> </option> <option value="easeOutElastic"><?php _e('easeOutElastic', 'medicenter'); ?> </option> <option value="easeInOutElastic"><?php _e('easeInOutElastic', 'medicenter'); ?> </option> <option value="easeInBack"><?php _e('easeInBack', 'medicenter'); ?> </option> <option value="easeOutBack"><?php _e('easeOutBack', 'medicenter'); ?> </option> <option value="easeInOutBack"><?php _e('easeInOutBack', 'medicenter'); ?> </option> <option value="easeInBounce"><?php _e('easeInBounce', 'medicenter'); ?> </option> <option value="easeOutBounce"><?php _e('easeOutBounce', 'medicenter'); ?> </option> <option value="easeInOutBounce"><?php _e('easeInOutBounce', 'medicenter'); ?> </option> </select> </div> </li> <li> <label for="slider_transition_speed"><?php _e('TRANSITION SPEED (ms):', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" id="slider_transition_speed" name="slider_transition_speed" value="750" /> </div> </li> </ul> </div> <div id="tab-contact-form" class="settings"> <h3><?php _e('Contact Form', 'medicenter'); ?> </h3> <h4><?php _e('ADMIN EMAIL CONFIG', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="cf_admin_name"><?php _e('NAME', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_admin_name"]); ?> " id="cf_admin_name" name="cf_admin_name"> </div> </li> <li> <label for="cf_admin_email"><?php _e('EMAIL', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_admin_email"]); ?> " id="cf_admin_email" name="cf_admin_email"> </div> </li> </ul> <h4><?php _e('ADMIN SMTP CONFIG (OPTIONAL)', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="cf_smtp_host"><?php _e('HOST', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_smtp_host"]); ?> " id="cf_smtp_host" name="cf_smtp_host"> </div> </li> <li> <label for="cf_smtp_username"><?php _e('USERNAME', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_smtp_username"]); ?> " id="cf_smtp_username" name="cf_smtp_username"> </div> </li> <li> <label for="cf_smtp_password"><?php _e('PASSWORD', 'medicenter'); ?> </label> <div> <input type="password" class="regular-text" value="<?php echo esc_attr($theme_options["cf_smtp_password"]); ?> " id="cf_smtp_password" name="cf_smtp_password"> </div> </li> <li> <label for="cf_smtp_port"><?php _e('PORT', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_smtp_port"]); ?> " id="cf_smtp_port" name="cf_smtp_port"> </div> </li> <li> <label for="cf_smtp_secure"><?php _e('SMTP SECURE', 'medicenter'); ?> </label> <div> <select id="cf_smtp_secure" name="cf_smtp_secure"> <option value=""<?php echo $theme_options["cf_smtp_secure"] == "" ? " selected='selected'" : ""; ?> >-</option> <option value="ssl"<?php echo $theme_options["cf_smtp_secure"] == "ssl" ? " selected='selected'" : ""; ?> ><?php _e('ssl', 'medicenter'); ?> </option> <option value="tls"<?php echo $theme_options["cf_smtp_secure"] == "tls" ? " selected='selected'" : ""; ?> ><?php _e('tls', 'medicenter'); ?> </option> </select> </div> </li> </ul> <h4><?php _e('EMAIL CONFIG', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="cf_email_subject"><?php _e('EMAIL SUBJECT', 'medicenter'); ?> </label> <div> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_email_subject"]); ?> " id="cf_email_subject" name="cf_email_subject"> </div> </li> <li> <label for="cf_template"><?php _e('TEMPLATE', 'medicenter'); ?> </label> <div> Available shortcodes:<br><strong>[first_name]</strong>, <strong>[last_name]</strong>, <strong>[date]</strong>, <strong>[social_security_number]</strong>, <strong>[phone_number]</strong>, <strong>[email]</strong>, <strong>[message]</strong><br><br> <?php the_editor($theme_options["cf_template"], "cf_template"); ?> </div> </li> </ul> </div> <div id="tab-colors" class="settings"> <h3><?php _e('Colors', 'medicenter'); ?> </h3> <h4><?php _e('COLOR SCHEME', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="color_scheme"><?php _e('Color scheme', 'medicenter'); ?> </label> <div> <select id="color_scheme" name="color_scheme"> <option value="blue"<?php echo $theme_options["color_scheme"] == "blue" ? " selected='selected'" : ""; ?> ><?php _e('blue (default)', 'medicenter'); ?> </option> <option value="green"<?php echo $theme_options["color_scheme"] == "green" ? " selected='selected'" : ""; ?> ><?php _e('green', 'medicenter'); ?> </option> <option value="orange"<?php echo $theme_options["color_scheme"] == "orange" ? " selected='selected'" : ""; ?> ><?php _e('orange', 'medicenter'); ?> </option> <option value="red"<?php echo $theme_options["color_scheme"] == "red" ? " selected='selected'" : ""; ?> ><?php _e('red', 'medicenter'); ?> </option> <option value="turquoise"<?php echo $theme_options["color_scheme"] == "turquoise" ? " selected='selected'" : ""; ?> ><?php _e('turquoise', 'medicenter'); ?> </option> <option value="violet"<?php echo $theme_options["color_scheme"] == "violet" ? " selected='selected'" : ""; ?> ><?php _e('violet', 'medicenter'); ?> </option> </select> </div> </li> </ul> <div id="tab-colors_general" class="subsettings"> <h4><?php _e('GENERAL', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="site_background_color"><?php _e('Site background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["site_background_color"] != "" ? esc_attr($theme_options["site_background_color"]) : 'D8D8D8'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["site_background_color"]); ?> " id="site_background_color" name="site_background_color" data-default-color="D8D8D8"> </div> </li> <li> <label for="header_background_color"><?php _e('Header background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["header_background_color"] != "" ? esc_attr($theme_options["header_background_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["header_background_color"]); ?> " id="header_background_color" name="header_background_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="body_background_color"><?php _e('Body background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["body_background_color"] != "" ? esc_attr($theme_options["body_background_color"]) : 'F8F8F8'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_background_color"]); ?> " id="body_background_color" name="body_background_color" data-default-color="F8F8F8"> </div> </li> <li> <label for="footer_background_color"><?php _e('Footer background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_background_color"] != "" ? esc_attr($theme_options["footer_background_color"]) : '202020'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_background_color"]); ?> " id="footer_background_color" name="footer_background_color" data-default-color="202020"> </div> </li> <li> <label for="link_color"><?php _e('Link color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["link_color"] != "" ? esc_attr($theme_options["link_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["link_color"]); ?> " id="link_color" name="link_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="link_hover_color"><?php _e('Link hover color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["link_hover_color"] != "" ? esc_attr($theme_options["link_hover_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["link_hover_color"]); ?> " id="link_hover_color" name="link_hover_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="footer_link_color"><?php _e('Footer link color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_link_color"] != "" ? esc_attr($theme_options["footer_link_color"]) : 'D5D5D5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_link_color"]); ?> " id="footer_link_color" name="footer_link_color" data-default-color="D5D5D5"> </div> </li> <li> <label for="footer_link_hover_color"><?php _e('Footer link hover color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_link_hover_color"] != "" ? esc_attr($theme_options["footer_link_hover_color"]) : 'D5D5D5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_link_hover_color"]); ?> " id="link_hover_color" name="footer_link_hover_color" data-default-color="D5D5D5"> </div> </li> </ul> </div> <div id="tab-colors_text" class="subsettings"> <h4><?php _e('TEXT', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="body_headers_color"><?php _e('Body headers color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["body_headers_color"] != "" ? esc_attr($theme_options["body_headers_color"]) : '000000'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_headers_color"]); ?> " id="body_headers_color" name="body_headers_color" data-default-color="000000"> </div> </li> <li> <label for="body_headers_border_color"><?php _e('Body headers border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["body_headers_border_color"] != "" ? esc_attr($theme_options["body_headers_border_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_headers_border_color"]); ?> " id="body_headers_border_color" name="body_headers_border_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <li> <label for="body_text_color"><?php _e('Body text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["body_text_color"] != "" ? esc_attr($theme_options["body_text_color"]) : '666666'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_text_color"]); ?> " id="body_text_color" name="body_text_color" data-default-color="666666"> </div> </li> <li> <label for="timeago_label_color"><?php _e('Timeago label color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["timeago_label_color"] != "" ? esc_attr($theme_options["timeago_label_color"]) : '909090'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timeago_label_color"]); ?> " id="timeago_label_color" name="timeago_label_color" data-default-color="909090"> </div> </li> <li> <label for="footer_headers_color"><?php _e('Footer headers color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_headers_color"] != "" ? esc_attr($theme_options["footer_headers_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_headers_color"]); ?> " id="footer_headers_color" name="footer_headers_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="footer_headers_border_color"><?php _e('Footer headers border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_headers_border_color"] != "" ? esc_attr($theme_options["footer_headers_border_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_headers_border_color"]); ?> " id="footer_headers_border_color" name="footer_headers_border_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <li> <label for="footer_text_color"><?php _e('Footer text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_text_color"] != "" ? esc_attr($theme_options["footer_text_color"]) : '909090'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_text_color"]); ?> " id="footer_text_color" name="footer_text_color" data-default-color="909090"> </div> </li> <li> <label for="footer_timeago_label_color"><?php _e('Footer timeago label color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_timeago_label_color"] != "" ? esc_attr($theme_options["footer_timeago_label_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_timeago_label_color"]); ?> " id="footer_timeago_label_color" name="footer_timeago_label_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> <li> <label for="sentence_color"><?php _e('Sentence color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["sentence_color"] != "" ? esc_attr($theme_options["sentence_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["sentence_color"]); ?> " id="sentence_color" name="sentence_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="quote_color"><?php _e('Quote color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["quote_color"] != "" ? esc_attr($theme_options["quote_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["quote_color"]); ?> " id="quote_color" name="quote_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="logo_text_color"><?php _e('Logo text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["logo_text_color"] != "" ? esc_attr($theme_options["logo_text_color"]) : '000000'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["logo_text_color"]); ?> " id="logo_text_color" name="logo_text_color" data-default-color="000000"> </div> </li> </ul> </div> <div id="tab-colors_buttons" class="subsettings"> <h4><?php _e('BUTTONS', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="body_button_color"><?php _e('Body button text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["body_button_color"] != "" ? esc_attr($theme_options["body_button_color"]) : '666666'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_button_color"]); ?> " id="body_button_color" name="body_button_color" data-default-color="666666"> </div> </li> <li> <label for="body_button_hover_color"><?php _e('Body button text hover color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["body_button_hover_color"] != "" ? esc_attr($theme_options["body_button_hover_color"]) : '000000'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_button_hover_color"]); ?> " id="body_button_hover_color" name="body_button_hover_color" data-default-color="000000"> </div> </li> <li> <label for="body_button_border_color"><?php _e('Body button border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["body_button_border_color"] != "" ? esc_attr($theme_options["body_button_border_color"]) : 'E0E0E0'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_button_border_color"]); ?> " id="body_button_border_color" name="body_button_border_color" data-default-color="E0E0E0"> </div> </li> <li> <label for="body_button_border_hover_color"><?php _e('Body button border hover color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["body_button_border_hover_color"] != "" ? esc_attr($theme_options["body_button_border_hover_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_button_border_hover_color"]); ?> " id="body_button_border_hover_color" name="body_button_border_hover_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> <li> <label for="footer_button_color"><?php _e('Footer button text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_button_color"] != "" ? esc_attr($theme_options["footer_button_color"]) : '909090'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_button_color"]); ?> " id="footer_button_color" name="footer_button_color" data-default-color="909090"> </div> </li> <li> <label for="footer_button_hover_color"><?php _e('Footer button text hover color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_button_hover_color"] != "" ? esc_attr($theme_options["footer_button_hover_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_button_hover_color"]); ?> " id="footer_button_hover_color" name="footer_button_hover_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="footer_button_border_color"><?php _e('Footer button border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_button_border_color"] != "" ? esc_attr($theme_options["footer_button_border_color"]) : '353535'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_button_border_color"]); ?> " id="footer_button_border_color" name="footer_button_border_color" data-default-color="353535"> </div> </li> <li> <label for="footer_button_border_hover_color"><?php _e('Footer button border hover color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["footer_button_border_hover_color"] != "" ? esc_attr($theme_options["footer_button_border_hover_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_button_border_hover_color"]); ?> " id="footer_button_border_hover_color" name="footer_button_border_hover_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> </ul> </div> <div id="tab-colors_menu" class="subsettings"> <h4><?php _e('MENU', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="menu_position_text_color"><?php _e('Postion text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["menu_position_text_color"] != "" ? esc_attr($theme_options["menu_position_text_color"]) : '888888'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_position_text_color"]); ?> " id="menu_position_text_color" name="menu_position_text_color" data-default-color="888888"> </div> </li> <li> <label for="menu_position_hover_text_color"><?php _e('Postion hover text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["menu_position_hover_text_color"] != "" ? esc_attr($theme_options["menu_position_hover_text_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_position_hover_text_color"]); ?> " id="menu_position_hover_text_color" name="menu_position_hover_text_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="menu_position_background_color"><?php _e('Postion background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["menu_position_background_color"] != "" ? esc_attr($theme_options["menu_position_background_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_position_background_color"]); ?> " id="menu_position_background_color" name="menu_position_background_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="menu_position_hover_background_color"><?php _e('Postion hover background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["menu_position_hover_background_color"] != "" ? esc_attr($theme_options["menu_position_hover_background_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_position_hover_background_color"]); ?> " id="menu_position_hover_background_color" name="menu_position_hover_background_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> <li> <label for="submenu_position_text_color"><?php _e('Submenu postion text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["submenu_position_text_color"] != "" ? esc_attr($theme_options["submenu_position_text_color"]) : '888888'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["submenu_position_text_color"]); ?> " id="menu_position_text_color" name="submenu_position_text_color" data-default-color="888888"> </div> </li> <li> <label for="submenu_position_hover_text_color"><?php _e('Submenu postion hover text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["submenu_position_hover_text_color"] != "" ? esc_attr($theme_options["submenu_position_hover_text_color"]) : '000000'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["submenu_position_hover_text_color"]); ?> " id="submenu_position_hover_text_color" name="submenu_position_hover_text_color" data-default-color="000000"> </div> </li> <li> <label for="submenu_position_border_color"><?php _e('Submenu postion border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["submenu_position_border_color"] != "" ? esc_attr($theme_options["submenu_position_border_color"]) : 'E8E8E8'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["submenu_position_border_color"]); ?> " id="submenu_position_border_color" name="submenu_position_border_color" data-default-color="E8E8E8"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <li> <label for="submenu_position_hover_border_color"><?php _e('Submenu postion hover border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["submenu_position_hover_border_color"] != "" ? esc_attr($theme_options["submenu_position_hover_border_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["submenu_position_hover_border_color"]); ?> " id="submenu_position_border_color" name="submenu_position_hover_border_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <li> <label for="dropdownmenu_background_color"><?php _e('Dropdown menu background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["dropdownmenu_background_color"] != "" ? esc_attr($theme_options["dropdownmenu_background_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["dropdownmenu_background_color"]); ?> " id="dropdownmenu_background_color" name="dropdownmenu_background_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="dropdownmenu_hover_background_color"><?php _e('Dropdown menu hover background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["dropdownmenu_hover_background_color"] != "" ? esc_attr($theme_options["dropdownmenu_hover_background_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["dropdownmenu_hover_background_color"]); ?> " id="dropdownmenu_hover_background_color" name="dropdownmenu_hover_background_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> <li> <label for="dropdownmenu_border_color"><?php _e('Dropdown menu border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["dropdownmenu_border_color"] != "" ? esc_attr($theme_options["dropdownmenu_border_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["dropdownmenu_border_color"]); ?> " id="dropdownmenu_border_color" name="dropdownmenu_border_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> </ul> </div> <div id="tab-colors_forms" class="subsettings"> <h4><?php _e('FORMS', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="form_field_text_color"><?php _e('Form field text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["form_field_text_color"] != "" ? esc_attr($theme_options["form_field_text_color"]) : '000000'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_field_text_color"]); ?> " id="form_field_text_color" name="form_field_text_color" data-default-color="000000"> </div> </li> <li> <label for="form_field_border_color"><?php _e('Form field top border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["form_field_border_color"] != "" ? esc_attr($theme_options["form_field_border_color"]) : 'E0E0E0'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_field_border_color"]); ?> " id="form_field_border_color" name="form_field_border_color" data-default-color="E0E0E0"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <li> <label for="form_field_active_border_color"><?php _e('Form field active top border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["form_field_active_border_color"] != "" ? esc_attr($theme_options["form_field_active_border_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_field_active_border_color"]); ?> " id="form_field_active_border_color" name="form_field_active_border_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <li> <label for="form_button_background_color"><?php _e('Form button background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["form_button_background_color"] != "" ? esc_attr($theme_options["form_button_background_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_button_background_color"]); ?> " id="form_button_background_color" name="form_button_background_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="form_button_hover_background_color"><?php _e('Form button hover background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["form_button_hover_background_color"] != "" ? esc_attr($theme_options["form_button_hover_background_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_button_hover_background_color"]); ?> " id="form_button_hover_background_color" name="form_button_hover_background_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> <li> <label for="form_button_text_color"><?php _e('Form button text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["form_button_text_color"] != "" ? esc_attr($theme_options["form_button_text_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_button_text_color"]); ?> " id="form_button_text_color" name="form_button_text_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="form_button_hover_text_color"><?php _e('Form button hover text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["form_button_hover_text_color"] != "" ? esc_attr($theme_options["form_button_hover_text_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_button_hover_text_color"]); ?> " id="form_button_hover_text_color" name="form_button_hover_text_color" data-default-color="FFFFFF"> </div> </li> </ul> </div> <div id="tab-colors_miscellaneous" class="subsettings"> <h4><?php _e('MISCELLANEOUS', 'medicenter'); ?> </h4> <ul class="form_field_list"> <li> <label for="top_hint_background_color"><?php _e('Top hint background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["top_hint_background_color"] != "" ? esc_attr($theme_options["top_hint_background_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["top_hint_background_color"]); ?> " id="top_hint_background_color" name="top_hint_background_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> <li> <label for="top_hint_text_color"><?php _e('Top hint text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["top_hint_text_color"] != "" ? esc_attr($theme_options["top_hint_text_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["top_hint_text_color"]); ?> " id="top_hint_text_color" name="top_hint_text_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="page_top_border_color"><?php _e('Page top border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["page_top_border_color"] != "" ? esc_attr($theme_options["page_top_border_color"]) : 'F0F0F0'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["page_top_border_color"]); ?> " id="page_top_border_color" name="page_top_border_color" data-default-color="F0F0F0"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <li> <label for="divider_background_color"><?php _e('Divider background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["divider_background_color"] != "" ? esc_attr($theme_options["divider_background_color"]) : 'E0E0E0'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["divider_background_color"]); ?> " id="divider_background_color" name="divider_background_color" data-default-color="E0E0E0"> </div> </li> <li> <label for="date_box_color"><?php _e('Date box background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["date_box_color"] != "" ? esc_attr($theme_options["date_box_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["date_box_color"]); ?> " id="date_box_color" name="date_box_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="date_box_text_color"><?php _e('Date box text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["date_box_text_color"] != "" ? esc_attr($theme_options["date_box_text_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["date_box_text_color"]); ?> " id="date_box_text_color" name="date_box_text_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="date_box_comments_number_color"><?php _e('Date box comments number background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["date_box_comments_number_color"] != "" ? esc_attr($theme_options["date_box_comments_number_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["date_box_comments_number_color"]); ?> " id="date_box_comments_number_color" name="date_box_comments_number_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> <li> <label for="date_box_comments_number_text_color"><?php _e('Date box comments number text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["date_box_comments_number_text_color"] != "" ? esc_attr($theme_options["date_box_comments_number_text_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["date_box_comments_number_text_color"]); ?> " id="date_box_comments_number_text_color" name="date_box_comments_number_text_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="gallery_box_color"><?php _e('Gallery box background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["gallery_box_color"] != "" ? esc_attr($theme_options["gallery_box_color"]) : 'F0F0F0'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_color"]); ?> " id="gallery_box_color" name="gallery_box_color" data-default-color="F0F0F0"> </div> </li> <li> <label for="gallery_box_hover_color"><?php _e('Gallery box hover background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["gallery_box_hover_color"] != "" ? esc_attr($theme_options["gallery_box_hover_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_hover_color"]); ?> " id="gallery_box_hover_color" name="gallery_box_hover_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> <li> <label for="gallery_box_text_first_line_color"><?php _e('Gallery box text first line color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["gallery_box_text_first_line_color"] != "" ? esc_attr($theme_options["gallery_box_text_first_line_color"]) : '000000'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_text_first_line_color"]); ?> " id="gallery_box_text_first_line_color" name="gallery_box_text_first_line_color" data-default-color="000000"> </div> </li> <li> <label for="gallery_box_text_second_line_color"><?php _e('Gallery box text second line color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["gallery_box_text_second_line_color"] != "" ? esc_attr($theme_options["gallery_box_text_second_line_color"]) : '666666'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_text_second_line_color"]); ?> " id="gallery_box_text_second_line_color" name="gallery_box_text_second_line_color" data-default-color="666666"> </div> </li> <li> <label for="gallery_box_hover_text_first_line_color"><?php _e('Gallery box hover text first line color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["gallery_box_hover_text_first_line_color"] != "" ? esc_attr($theme_options["gallery_box_hover_text_first_line_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_hover_text_first_line_color"]); ?> " id="gallery_box_hover_text_first_line_color" name="gallery_box_hover_text_first_line_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="gallery_box_hover_text_second_line_color"><?php _e('Gallery box hover text second line color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["gallery_box_hover_text_second_line_color"] != "" ? esc_attr($theme_options["gallery_box_hover_text_second_line_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_hover_text_second_line_color"]); ?> " id="gallery_box_hover_text_second_line_color" name="gallery_box_hover_text_second_line_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="gallery_box_border_color"><?php _e('Gallery box border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["gallery_box_border_color"] != "" ? esc_attr($theme_options["gallery_box_border_color"]) : 'E0E0E0'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_border_color"]); ?> " id="gallery_box_border_color" name="gallery_box_border_color" data-default-color="E0E0E0"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <li> <label for="gallery_box_hover_border_color"><?php _e('Gallery box hover border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["gallery_box_hover_border_color"] != "" ? esc_attr($theme_options["gallery_box_hover_border_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_hover_border_color"]); ?> " id="gallery_box_hover_border_color" name="gallery_box_hover_border_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <li> <label for="timetable_box_color"><?php _e('Timetable box background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["timetable_box_color"] != "" ? esc_attr($theme_options["timetable_box_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timetable_box_color"]); ?> " id="timetable_box_color" name="timetable_box_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="timetable_box_hover_color"><?php _e('Timetable box hover background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["timetable_box_hover_color"] != "" ? esc_attr($theme_options["timetable_box_hover_color"]) : '42B3E5'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timetable_box_hover_color"]); ?> " id="timetable_box_hover_color" name="timetable_box_hover_color" data-default-color="42B3E5" data-default-color-green="7CBA3D" data-default-color-orange="ffa800" data-default-color-red="f37548" data-default-color-turquoise="00b6cc" data-default-color-violet="9187c4"> </div> </li> <li> <label for="timetable_box_text_color"><?php _e('Timetable box text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["timetable_box_text_color"] != "" ? esc_attr($theme_options["timetable_box_text_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timetable_box_text_color"]); ?> " id="timetable_box_text_color" name="timetable_box_text_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="timetable_box_hover_text_color"><?php _e('Timetable box hover text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["timetable_box_hover_text_color"] != "" ? esc_attr($theme_options["timetable_box_hover_text_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timetable_box_hover_text_color"]); ?> " id="timetable_box_hover_text_color" name="timetable_box_hover_text_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="timetable_box_hours_text_color"><?php _e('Timetable box hours text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["timetable_box_hours_text_color"] != "" ? esc_attr($theme_options["timetable_box_hours_text_color"]) : 'A6C3FF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timetable_box_hours_text_color"]); ?> " id="timetable_box_hours_text_color" name="timetable_box_hours_text_color" data-default-color="A6C3FF" data-default-color-green="BBE095" data-default-color-orange="FFCE70" data-default-color-red="FFBD9C" data-default-color-turquoise="98DEF5" data-default-color-violet="B0BDFF"> </div> </li> <li> <label for="timetable_box_hover_hours_text_color"><?php _e('Timetable box hover hours text color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["timetable_box_hover_hours_text_color"] != "" ? esc_attr($theme_options["timetable_box_hover_hours_text_color"]) : 'FFFFFF'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timetable_box_hover_hours_text_color"]); ?> " id="timetable_box_hover_hours_text_color" name="timetable_box_hover_hours_text_color" data-default-color="FFFFFF"> </div> </li> <li> <label for="timetable_tip_box_color"><?php _e('Timetable tip box background color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["timetable_tip_box_color"] != "" ? esc_attr($theme_options["timetable_tip_box_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timetable_tip_box_color"]); ?> " id="timetable_tip_box_color" name="timetable_tip_box_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="accordion_tab_color"><?php _e('Accordion tab color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["accordion_tab_color"] != "" ? esc_attr($theme_options["accordion_tab_color"]) : '3156A3'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["accordion_tab_color"]); ?> " id="accordion_tab_color" name="accordion_tab_color" data-default-color="3156A3" data-default-color-green="008238" data-default-color-orange="cb451b" data-default-color-red="c03427" data-default-color-turquoise="006688" data-default-color-violet="3e4c94"> </div> </li> <li> <label for="copyright_area_border_color"><?php _e('Copyright area border color', 'medicenter'); ?> </label> <div> <span class="color_preview" style="background-color: #<?php echo $theme_options["copyright_area_border_color"] != "" ? esc_attr($theme_options["copyright_area_border_color"]) : '353535'; ?> ;"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["copyright_area_border_color"]); ?> " id="copyright_area_border_color" name="copyright_area_border_color" data-default-color="353535"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?> </span> </div> </li> <?php /*<li> <label for="gallery_details_box_border_color"><?php _e('Gallery details box border color', 'medicenter'); ?></label> <div> <span class="color_preview" style="background-color: #<?php echo esc_attr($theme_options["gallery_details_box_border_color"]); ?>"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_details_box_border_color"]); ?>" id="gallery_details_box_border_color" name="gallery_details_box_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </div> </li> <li> <label for="bread_crumb_border_color"><?php _e('Bread crumb border color', 'medicenter'); ?></label> <div> <span class="color_preview" style="background-color: #<?php echo esc_attr($theme_options["bread_crumb_border_color"]); ?>"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["bread_crumb_border_color"]); ?>" id="bread_crumb_border_color" name="bread_crumb_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </div> </li> <li> <label for="accordion_item_border_color"><?php _e('Accordion item border color', 'medicenter'); ?></label> <div> <span class="color_preview" style="background-color: #<?php echo esc_attr($theme_options["accordion_item_border_color"]); ?>"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["accordion_item_border_color"]); ?>" id="accordion_item_border_color" name="accordion_item_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </div> </li> <li> <label for="accordion_item_border_hover_color"><?php _e('Accordion item border hover color', 'medicenter'); ?></label> <div> <span class="color_preview" style="background-color: #<?php echo esc_attr($theme_options["accordion_item_border_hover_color"]); ?>"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["accordion_item_border_hover_color"]); ?>" id="accordion_item_border_hover_color" name="accordion_item_border_hover_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </div> </li> <li> <label for="accordion_item_border_active_color"><?php _e('Accordion item border active color', 'medicenter'); ?></label> <div> <span class="color_preview" style="background-color: #<?php echo esc_attr($theme_options["accordion_item_border_active_color"]); ?>"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["accordion_item_border_active_color"]); ?>" id="accordion_item_border_active_color" name="accordion_item_border_active_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </div> </li> <li> <label for="comment_reply_button_color"><?php _e('Comment reply button color', 'medicenter'); ?></label> <div> <span class="color_preview" style="background-color: #<?php echo esc_attr($theme_options["comment_reply_button_color"]); ?>"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["comment_reply_button_color"]); ?>" id="comment_reply_button_color" name="comment_reply_button_color"> </div> </li> <li> <label for="post_author_link_color"><?php _e('Post author link color', 'medicenter'); ?></label> <div> <span class="color_preview" style="background-color: #<?php echo esc_attr($theme_options["post_author_link_color"]); ?>"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["post_author_link_color"]); ?>" id="post_author_link_color" name="post_author_link_color"> </div> </li> <li> <label for="contact_details_box_background_color"><?php _e('Contact details box background color', 'medicenter'); ?></label> <div> <span class="color_preview" style="background-color: #<?php echo esc_attr($theme_options["contact_details_box_background_color"]); ?>"></span> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["contact_details_box_background_color"]); ?>" id="contact_details_box_background_color" name="contact_details_box_background_color"> </div> </li>*/ ?> </ul> </div> </div> <div id="tab-fonts" class="settings"> <h3><?php _e('Fonts', 'medicenter'); ?> </h3> <ul class="form_field_list"> <li> <label for="header_font"><?php _e('Header font', 'medicenter'); ?> </label> <div> <select id="header_font" name="header_font"> <option<?php echo $theme_options["header_font"] == "" ? " selected='selected'" : ""; ?> value=""><?php _e("Default", 'medicenter'); ?> </option> <?php $fontsCount = count($fontsArray->items); for ($i = 0; $i < $fontsCount; $i++) { ?> <?php $variantsCount = count($fontsArray->items[$i]->variants); if ($variantsCount > 1) { for ($j = 0; $j < $variantsCount; $j++) { ?> <option<?php echo $theme_options["header_font"] == $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j] ? " selected='selected'" : ""; ?> value="<?php echo $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j]; ?> "><?php echo $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j]; ?> </option> <?php } } else { ?> <option<?php echo $theme_options["header_font"] == $fontsArray->items[$i]->family ? " selected='selected'" : ""; ?> value="<?php echo $fontsArray->items[$i]->family; ?> "><?php echo $fontsArray->items[$i]->family; ?> </option> <?php } } ?> </select> </div> </li> <li> <label for="subheader_font"><?php _e('Subheader font', 'medicenter'); ?> </label> <div> <select id="subheader_font" name="subheader_font"> <option<?php echo $theme_options["subheader_font"] == "" ? " selected='selected'" : ""; ?> value=""><?php _e("Default", 'medicenter'); ?> </option> <?php $fontsCount = count($fontsArray->items); for ($i = 0; $i < $fontsCount; $i++) { ?> <?php $variantsCount = count($fontsArray->items[$i]->variants); if ($variantsCount > 1) { for ($j = 0; $j < $variantsCount; $j++) { ?> <option<?php echo $theme_options["subheader_font"] == $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j] ? " selected='selected'" : ""; ?> value="<?php echo $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j]; ?> "><?php echo $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j]; ?> </option> <?php } } else { ?> <option<?php echo $theme_options["subheader_font"] == $fontsArray->items[$i]->family ? " selected='selected'" : ""; ?> value="<?php echo $fontsArray->items[$i]->family; ?> "><?php echo $fontsArray->items[$i]->family; ?> </option> <?php } } ?> </select> </div> </li> </ul> </div> </div> <div class="footer"> <div class="footer_left"> <ul class="social-list"> <li><a target="_blank" href="http://www.facebook.com/QuanticaLabs/" class="social-list-facebook" title="Facebook"></a></li> <li><a target="_blank" href="https://twitter.com/quanticalabs" class="social-list-twitter" title="Twitter"></a></li> <li><a target="_blank" href="http://www.flickr.com/photos/76628486@N03" class="social-list-flickr" title="Flickr"></a></li> <li><a target="_blank" href="http://themeforest.net/user/QuanticaLabs?ref=QuanticaLabs" class="social-list-envato" title="Envato"></a></li> <li><a target="_blank" href="http://quanticalabs.tumblr.com/" class="social-list-tumblr" title="Tumblr"></a></li> <li><a target="_blank" href="http://quanticalabs.deviantart.com/" class="social-list-deviantart" title="Deviantart"></a></li> </ul> </div> <div class="footer_right"> <input type="hidden" name="action" value="<?php echo $themename; ?> _save" /> <input type="submit" name="submit" value="Save Options" /> <img id="theme_options_preloader" src="<?php echo get_template_directory_uri(); ?> /admin/images/ajax-loader.gif" /> <img id="theme_options_tick" src="<?php echo get_template_directory_uri(); ?> /admin/images/tick.png" /> </div> </div> </form> <?php //print_r($fontsArray->items); /* ?> <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" id="<?php echo $themename; ?>-options-tabs"> <ul class="nav-tabs"> <li class="nav-tab"> <a href="#tab-main"> <?php _e('Main', 'medicenter'); ?> </a> </li> <li class="nav-tab"> <a href="#tab-slider"> <?php _e('Slider', 'medicenter'); ?> </a> </li> <li class="nav-tab"> <a href="#tab-contact-form"> <?php _e('Contact Form', 'medicenter'); ?> </a> </li> <li class="nav-tab"> <a href="#tab-contact-details"> <?php _e('Contact Details', 'medicenter'); ?> </a> </li> <li class="nav-tab"> <a href="#tab-colors"> <?php _e('Colors', 'medicenter'); ?> </a> </li> <li class="nav-tab"> <a href="#tab-fonts"> <?php _e('Fonts', 'medicenter'); ?> </a> </li> </ul> <div id="tab-main"> <table class="form-table"> <tbody> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Main', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="logo_url"><?php _e('Logo url', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["logo_url"]); ?>" id="logo_url" name="logo_url"> <input type="button" class="button" name="<?php echo $themename;?>_upload_button" id="logo_url_upload_button" value="<?php _e('Insert logo', 'medicenter'); ?>" /> </td> </tr> <tr valign="top"> <th scope="row"> <label for="logo_first_part_text"><?php _e('Logo first part text', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["logo_first_part_text"]); ?>" id="logo_first_part_text" name="logo_first_part_text"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="logo_second_part_text"><?php _e('Logo second part text', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["logo_second_part_text"]); ?>" id="logo_second_part_text" name="logo_second_part_text"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_text_left"><?php _e('Footer text left', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["footer_text_left"]); ?>" id="footer_text_left" name="footer_text_left"> <span class="description"><?php _e('Can be text or any html', 'medicenter'); ?>.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_text_right"><?php _e('Footer text right', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["footer_text_right"]); ?>" id="footer_text_right" name="footer_text_right"> <span class="description"><?php _e('Can be text or any html', 'medicenter'); ?>.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="home_page_top_hint"><?php _e('Home page top hint', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["home_page_top_hint"]); ?>" id="home_page_top_hint" name="home_page_top_hint"> <span class="description"><?php _e('Can be text or any html', 'medicenter'); ?>.</span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="responsive"><?php _e('Responsive', 'medicenter'); ?></label> </th> <td> <select id="responsive" name="responsive"> <option value="1"<?php echo ((int)$theme_options["responsive"]==1 ? " selected='selected'" : "") ?>><?php _e('yes', 'medicenter'); ?></option> <option value="0"<?php echo ((int)$theme_options["responsive"]==0 ? " selected='selected'" : "") ?>><?php _e('no', 'medicenter'); ?></option> </select> </td> </tr> </tbody> </table> <p> <input type="submit" value="<?php _e('Save Main Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </div> <div id="tab-slider"> <table class="form-table"> <tbody> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Slider', 'medicenter'); ?> </th> </tr> <?php $slides_count = count($theme_options["slider_image_url"]); if($slides_count==0) $slides_count = 3; for($i=0; $i<$slides_count; $i++) { ?> <tr class="slider_image_url_row"> <td> <label><?php _e('Slider image url', 'medicenter'); echo " " . ($i+1); ?></label> </td> <td> <input class="regular-text" type="text" id="<?php echo $themename;?>_slider_image_url_<?php echo ($i+1); ?>" name="slider_image_url[]" value="<?php echo esc_attr($theme_options["slider_image_url"][$i]); ?>" /> <input type="button" class="button" name="<?php echo $themename;?>_upload_button" id="<?php echo $themename;?>_slider_image_url_button_<?php echo ($i+1); ?>" value="<?php _e('Browse', 'medicenter'); ?>" /> </td> </tr> <tr class="slider_image_title_row"> <td> <label><?php _e('Slider image title', 'medicenter'); echo " " . ($i+1); ?></label> </td> <td> <input class="regular-text" type="text" id="<?php echo $themename;?>_slider_image_title_<?php echo ($i+1); ?>" name="slider_image_title[]" value="<?php echo esc_attr($theme_options["slider_image_title"][$i]); ?>" /> </td> </tr> <tr class="slider_image_subtitle_row"> <td> <label><?php _e('Slider image subtitle', 'medicenter'); echo " " . ($i+1); ?></label> </td> <td> <input class="regular-text" type="text" id="<?php echo $themename;?>_slider_image_subtitle_<?php echo ($i+1); ?>" name="slider_image_subtitle[]" value="<?php echo esc_attr($theme_options["slider_image_subtitle"][$i]); ?>" /> </td> </tr> <tr class="slider_image_link_row"> <td> <label><?php _e('Slider image link', 'medicenter'); echo " " . ($i+1); ?></label> </td> <td> <input class="regular-text" type="text" id="<?php echo $themename;?>_slider_image_link_<?php echo ($i+1); ?>" name="slider_image_link[]" value="<?php echo esc_attr($theme_options["slider_image_link"][$i]); ?>" /> </td> </tr> <?php } ?> <tr> <td></td> <td> <input type="button" class="button" name="<?php echo $themename;?>_add_new_button" id="<?php echo $themename;?>_add_new_button" value="<?php _e('Add slider image', 'medicenter'); ?>" /> </td> </tr> <tr> <td> <label><?php _e('Autoplay', 'medicenter'); ?></label> </td> <td> <select id="slider_autoplay" name="slider_autoplay"> <option value="true"<?php echo ($theme_options["slider_autoplay"]=="true" ? " selected='selected'" : "") ?>><?php _e('yes', 'medicenter'); ?></option> <option value="false"<?php echo ($theme_options["slider_autoplay"]=="false" ? " selected='selected'" : "") ?>><?php _e('no', 'medicenter'); ?></option> </select> </td> </tr> <tr> <td> <label for="slide_interval"><?php _e('Slide interval:', 'medicenter'); ?></label> </td> <td> <input type="text" class="regular-text" id="slide_interval" name="slide_interval" value="<?php echo (int)esc_attr($theme_options["slide_interval"]); ?>" /> </td> </tr> <tr> <td> <label for="slider_effect"><?php _e('Effect:', 'medicenter'); ?></label> </td> <td> <select id="slider_effect" name="slider_effect"> <option value="scroll"<?php echo ($theme_options["slider_effect"]=="scroll" ? " selected='selected'" : "") ?>><?php _e('scroll', 'medicenter'); ?></option> <option value="none"<?php echo ($theme_options["slider_effect"]=="none" ? " selected='selected'" : "") ?>><?php _e('none', 'medicenter'); ?></option> <option value="directscroll"<?php echo ($theme_options["slider_effect"]=="directscroll" ? " selected='selected'" : "") ?>><?php _e('directscroll', 'medicenter'); ?></option> <option value="fade"<?php echo ($theme_options["slider_effect"]=="fade" ? " selected='selected'" : "") ?>><?php _e('fade', 'medicenter'); ?></option> <option value="crossfade"<?php echo ($theme_options["slider_effect"]=="crossfade" ? " selected='selected'" : "") ?>><?php _e('crossfade', 'medicenter'); ?></option> <option value="cover"<?php echo ($theme_options["slider_effect"]=="cover" ? " selected='selected'" : "") ?>><?php _e('cover', 'medicenter'); ?></option> <option value="uncover"<?php echo ($theme_options["slider_effect"]=="uncover" ? " selected='selected'" : "") ?>><?php _e('uncover', 'medicenter'); ?></option> </select> </td> </tr> <tr> <td> <label for="slider_transition"><?php _e('Transition:', 'medicenter'); ?></label> </td> <td> <select id="slider_transition" name="slider_transition"> <option value="swing"<?php echo ($theme_options["slider_transition"]=="swing" ? " selected='selected'" : "") ?>><?php _e('swing', 'medicenter'); ?></option> <option value="linear"<?php echo ($theme_options["slider_transition"]=="linear" ? " selected='selected'" : "") ?>><?php _e('linear', 'medicenter'); ?></option> <option value="easeInQuad"<?php echo ($theme_options["slider_transition"]=="easeInQuad" ? " selected='selected'" : "") ?>><?php _e('easeInQuad', 'medicenter'); ?></option> <option value="easeOutQuad"<?php echo ($theme_options["slider_transition"]=="easeOutQuad" ? " selected='selected'" : "") ?>><?php _e('easeOutQuad', 'medicenter'); ?></option> <option value="easeInOutQuad"<?php echo ($theme_options["slider_transition"]=="easeInOutQuad" ? " selected='selected'" : "") ?>><?php _e('easeInOutQuad', 'medicenter'); ?></option> <option value="easeInCubic"<?php echo ($theme_options["slider_transition"]=="easeInCubic" ? " selected='selected'" : "") ?>><?php _e('easeInCubic', 'medicenter'); ?></option> <option value="easeOutCubic"<?php echo ($theme_options["slider_transition"]=="easeOutCubic" ? " selected='selected'" : "") ?>><?php _e('easeOutCubic', 'medicenter'); ?></option> <option value="easeInOutCubic"<?php echo ($theme_options["slider_transition"]=="easeInOutCubic" ? " selected='selected'" : "") ?>><?php _e('easeInOutCubic', 'medicenter'); ?></option> <option value="easeInOutCubic"<?php echo ($theme_options["slider_transition"]=="easeInOutCubic" ? " selected='selected'" : "") ?>><?php _e('easeInOutCubic', 'medicenter'); ?></option> <option value="easeInQuart"<?php echo ($theme_options["slider_transition"]=="easeInQuart" ? " selected='selected'" : "") ?>><?php _e('easeInQuart', 'medicenter'); ?></option> <option value="easeOutQuart"<?php echo ($theme_options["slider_transition"]=="easeOutQuart" ? " selected='selected'" : "") ?>><?php _e('easeOutQuart', 'medicenter'); ?></option> <option value="easeInOutQuart"<?php echo ($theme_options["slider_transition"]=="easeInOutQuart" ? " selected='selected'" : "") ?>><?php _e('easeInOutQuart', 'medicenter'); ?></option> <option value="easeInSine"<?php echo ($theme_options["slider_transition"]=="easeInSine" ? " selected='selected'" : "") ?>><?php _e('easeInSine', 'medicenter'); ?></option> <option value="easeOutSine"<?php echo ($theme_options["slider_transition"]=="easeOutSine" ? " selected='selected'" : "") ?>><?php _e('easeOutSine', 'medicenter'); ?></option> <option value="easeInOutSine"<?php echo ($theme_options["slider_transition"]=="easeInOutSine" ? " selected='selected'" : "") ?>><?php _e('easeInOutSine', 'medicenter'); ?></option> <option value="easeInExpo"<?php echo ($theme_options["slider_transition"]=="easeInExpo" ? " selected='selected'" : "") ?>><?php _e('easeInExpo', 'medicenter'); ?></option> <option value="easeOutExpo"<?php echo ($theme_options["slider_transition"]=="easeOutExpo" ? " selected='selected'" : "") ?>><?php _e('easeOutExpo', 'medicenter'); ?></option> <option value="easeInOutExpo"<?php echo ($theme_options["slider_transition"]=="easeInOutExpo" ? " selected='selected'" : "") ?>><?php _e('easeInOutExpo', 'medicenter'); ?></option> <option value="easeInQuint"<?php echo ($theme_options["slider_transition"]=="easeInQuint" ? " selected='selected'" : "") ?>><?php _e('easeInQuint', 'medicenter'); ?></option> <option value="easeOutQuint"<?php echo ($theme_options["slider_transition"]=="easeOutQuint" ? " selected='selected'" : "") ?>><?php _e('easeOutQuint', 'medicenter'); ?></option> <option value="easeInOutQuint"<?php echo ($theme_options["slider_transition"]=="easeInOutQuint" ? " selected='selected'" : "") ?>><?php _e('easeInOutQuint', 'medicenter'); ?></option> <option value="easeInCirc"<?php echo ($theme_options["slider_transition"]=="easeInCirc" ? " selected='selected'" : "") ?>><?php _e('easeInCirc', 'medicenter'); ?></option> <option value="easeOutCirc"<?php echo ($theme_options["slider_transition"]=="easeOutCirc" ? " selected='selected'" : "") ?>><?php _e('easeOutCirc', 'medicenter'); ?></option> <option value="easeInOutCirc"<?php echo ($theme_options["slider_transition"]=="easeInOutCirc" ? " selected='selected'" : "") ?>><?php _e('easeInOutCirc', 'medicenter'); ?></option> <option value="easeInElastic"<?php echo ($theme_options["slider_transition"]=="easeInElastic" ? " selected='selected'" : "") ?>><?php _e('easeInElastic', 'medicenter'); ?></option> <option value="easeOutElastic"<?php echo ($theme_options["slider_transition"]=="easeOutElastic" ? " selected='selected'" : "") ?>><?php _e('easeOutElastic', 'medicenter'); ?></option> <option value="easeInOutElastic"<?php echo ($theme_options["slider_transition"]=="easeInOutElastic" ? " selected='selected'" : "") ?>><?php _e('easeInOutElastic', 'medicenter'); ?></option> <option value="easeInBack"<?php echo ($theme_options["slider_transition"]=="easeInBack" ? " selected='selected'" : "") ?>><?php _e('easeInBack', 'medicenter'); ?></option> <option value="easeOutBack"<?php echo ($theme_options["slider_transition"]=="easeOutBack" ? " selected='selected'" : "") ?>><?php _e('easeOutBack', 'medicenter'); ?></option> <option value="easeInOutBack"<?php echo ($theme_options["slider_transition"]=="easeOutCirc" ? " selected='selected'" : "") ?>><?php _e('easeInOutBack', 'medicenter'); ?></option> <option value="easeInBounce"<?php echo ($theme_options["slider_transition"]=="easeInBounce" ? " selected='selected'" : "") ?>><?php _e('easeInBounce', 'medicenter'); ?></option> <option value="easeOutBounce"<?php echo ($theme_options["slider_transition"]=="easeOutBounce" ? " selected='selected'" : "") ?>><?php _e('easeOutBounce', 'medicenter'); ?></option> <option value="easeInOutBounce"<?php echo ($theme_options["slider_transition"]=="easeInOutBounce" ? " selected='selected'" : "") ?>><?php _e('easeInOutBounce', 'medicenter'); ?></option> </select> </td> </tr> <tr> <td> <label for="slider_transition_speed"><?php _e('Transition speed:', 'medicenter'); ?></label> </td> <td> <input type="text" class="regular-text" id="slider_transition_speed" name="slider_transition_speed" value="<?php echo (int)esc_attr($theme_options["slider_transition_speed"]); ?>" /> </td> </tr> </tbody> </table> <p> <input type="submit" value="<?php _e('Save Slider Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </div> <div id="tab-contact-form"> <table class="form-table"> <tbody> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Admin email config', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="cf_admin_name"><?php _e('Name', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_admin_name"]); ?>" id="cf_admin_name" name="cf_admin_name"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="cf_admin_email"><?php _e('Email', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_admin_email"]); ?>" id="cf_admin_email" name="cf_admin_email"> </td> </tr> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <br /> </th> </tr> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Admin SMTP config (optional)', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="cf_smtp_host"><?php _e('Host', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_smtp_host"]); ?>" id="cf_smtp_host" name="cf_smtp_host"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="cf_smtp_username"><?php _e('Username', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_smtp_username"]); ?>" id="cf_smtp_username" name="cf_smtp_username"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="cf_smtp_password"><?php _e('Password', 'medicenter'); ?></label> </th> <td> <input type="password" class="regular-text" value="<?php echo esc_attr($theme_options["cf_smtp_password"]); ?>" id="cf_smtp_password" name="cf_smtp_password"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="cf_smtp_port"><?php _e('Port', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_smtp_port"]); ?>" id="cf_smtp_port" name="cf_smtp_port"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="cf_smtp_secure"><?php _e('SMTP Secure', 'medicenter'); ?></label> </th> <td> <select id="cf_smtp_secure" name="cf_smtp_secure"> <option value=""<?php echo ($theme_options["cf_smtp_secure"]=="" ? " selected='selected'" : "") ?>>-</option> <option value="ssl"<?php echo ($theme_options["cf_smtp_secure"]=="ssl" ? " selected='selected'" : "") ?>><?php _e('ssl', 'medicenter'); ?></option> <option value="tls"<?php echo ($theme_options["cf_smtp_secure"]=="tls" ? " selected='selected'" : "") ?>><?php _e('tls', 'medicenter'); ?></option> </select> </td> </tr> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <br /> </th> </tr> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Email config', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="cf_email_subject"><?php _e('Email subject', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["cf_email_subject"]); ?>" id="cf_email_subject" name="cf_email_subject"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="cf_template"><?php _e('Template', 'medicenter'); ?></label> </th> <td></td> </tr> <tr valign="top"> <td colspan="2"> <?php the_editor($theme_options["cf_template"], "cf_template");?> </td> </tr> </tbody> </table> <p> <input type="submit" value="<?php _e('Save Contact Form Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </div> <div id="tab-contact-details"> <table class="form-table"> <tbody> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Contact Details', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="contact_logo_first_part_text"><?php _e('Contact logo first part text', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["contact_logo_first_part_text"]); ?>" id="contact_logo_first_part_text" name="contact_logo_first_part_text"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contact_logo_second_part_text"><?php _e('Contact logo second part text', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["contact_logo_second_part_text"]); ?>" id="contact_logo_second_part_text" name="contact_logo_second_part_text"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contact_phone"><?php _e('Contact phone', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["contact_phone"]); ?>" id="contact_phone" name="contact_phone"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contact_fax"><?php _e('Contact fax', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["contact_fax"]); ?>" id="contact_fax" name="contact_fax"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contact_email"><?php _e('Contact email', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text" value="<?php echo esc_attr($theme_options["contact_email"]); ?>" id="contact_phone" name="contact_email"> </td> </tr> </tbody> </table> <p> <input type="submit" value="<?php _e('Save Contact Details Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </div> <div id="tab-colors"> <table class="form-table"> <tbody> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('General', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="header_background_color"><?php _e('Header background color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["header_background_color"]); ?>" id="header_background_color" name="header_background_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="body_background_color"><?php _e('Body background color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_background_color"]); ?>" id="body_background_color" name="body_background_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_background_color"><?php _e('Footer background color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_background_color"]); ?>" id="footer_background_color" name="footer_background_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="link_color"><?php _e('Link color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["link_color"]); ?>" id="link_color" name="link_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="link_hover_color"><?php _e('Link hover color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["link_hover_color"]); ?>" id="link_hover_color" name="link_hover_color"> </td> </tr> <tr> <td style="padding: 0;"> <p> <input type="submit" value="<?php _e('Save Colors Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </td> </tr> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Text', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="body_headers_color"><?php _e('Body headers color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_headers_color"]); ?>" id="body_headers_color" name="body_headers_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="body_headers_border_color"><?php _e('Body headers border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_headers_border_color"]); ?>" id="body_headers_border_color" name="body_headers_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="body_text_color"><?php _e('Body text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_text_color"]); ?>" id="body_text_color" name="body_text_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="body_text2_color"><?php _e('Body text 2 color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_text2_color"]); ?>" id="body_text2_color" name="body_text2_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_headers_color"><?php _e('Footer headers color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_headers_color"]); ?>" id="footer_headers_color" name="footer_headers_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_headers_border_color"><?php _e('Footer headers border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_headers_border_color"]); ?>" id="footer_headers_border_color" name="footer_headers_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_text_color"><?php _e('Footer text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_text_color"]); ?>" id="footer_text_color" name="footer_text_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="timeago_label_color"><?php _e('Timeago label color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timeago_label_color"]); ?>" id="timeago_label_color" name="timeago_label_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="sentence_color"><?php _e('Sentence color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["sentence_color"]); ?>" id="sentence_color" name="sentence_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="logo_first_part_text_color"><?php _e('Logo first part text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["logo_first_part_text_color"]); ?>" id="logo_first_part_text_color" name="logo_first_part_text_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="logo_second_part_text_color"><?php _e('Logo second part text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["logo_second_part_text_color"]); ?>" id="logo_second_part_text_color" name="logo_second_part_text_color"> </td> </tr> <tr> <td style="padding: 0;"> <p> <input type="submit" value="<?php _e('Save Colors Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </td> </tr> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Buttons', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="body_button_color"><?php _e('Body button text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_button_color"]); ?>" id="body_button_color" name="body_button_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="body_button_hover_color"><?php _e('Body button text hover color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_button_hover_color"]); ?>" id="body_button_hover_color" name="body_button_hover_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="body_button_border_color"><?php _e('Body button border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_button_border_color"]); ?>" id="body_button_border_color" name="body_button_border_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="body_button_border_hover_color"><?php _e('Body button border hover color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["body_button_border_hover_color"]); ?>" id="body_button_border_hover_color" name="body_button_border_hover_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_button_color"><?php _e('Footer button text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_button_color"]); ?>" id="footer_button_color" name="footer_button_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_button_hover_color"><?php _e('Footer button text hover color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_button_hover_color"]); ?>" id="footer_button_hover_color" name="footer_button_hover_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_button_border_color"><?php _e('Footer button border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_button_border_color"]); ?>" id="footer_button_border_color" name="footer_button_border_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="footer_button_border_hover_color"><?php _e('Footer button border hover color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["footer_button_border_hover_color"]); ?>" id="footer_button_border_hover_color" name="footer_button_border_hover_color"> </td> </tr> <tr> <td style="padding: 0;"> <p> <input type="submit" value="<?php _e('Save Colors Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </td> </tr> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Menu', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="menu_link_color"><?php _e('Link color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_link_color"]); ?>" id="menu_link_color" name="menu_link_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="menu_link_border_color"><?php _e('Link border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_link_border_color"]); ?>" id="menu_link_border_color" name="menu_link_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="menu_active_color"><?php _e('Active color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_active_color"]); ?>" id="menu_active_color" name="menu_active_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="menu_active_border_color"><?php _e('Active border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_active_border_color"]); ?>" id="menu_active_border_color" name="menu_active_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="menu_hover_color"><?php _e('Hover color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_hover_color"]); ?>" id="menu_hover_color" name="menu_hover_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="menu_hover_border_color"><?php _e('Hover border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["menu_hover_border_color"]); ?>" id="menu_hover_border_color" name="menu_hover_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="submenu_background_color"><?php _e('Submenu background color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["submenu_background_color"]); ?>" id="submenu_background_color" name="submenu_background_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="submenu_hover_background_color"><?php _e('Submenu hover background color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["submenu_hover_background_color"]); ?>" id="submenu_hover_background_color" name="submenu_hover_background_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="submenu_color"><?php _e('Submenu link color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["submenu_color"]); ?>" id="submenu_color" name="submenu_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="submenu_hover_color"><?php _e('Submenu hover link color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["submenu_hover_color"]); ?>" id="submenu_color" name="submenu_hover_color"> </td> </tr> <tr> <td style="padding: 0;"> <p> <input type="submit" value="<?php _e('Save Colors Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </td> </tr> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Forms', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="form_hint_color"><?php _e('Form hint color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_hint_color"]); ?>" id="form_hint_color" name="form_hint_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="form_field_text_color"><?php _e('Form field text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_field_text_color"]); ?>" id="form_field_text_color" name="form_field_text_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="form_field_border_color"><?php _e('Form field border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_field_border_color"]); ?>" id="form_field_border_color" name="form_field_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="form_field_active_border_color"><?php _e('Form field active border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["form_field_active_border_color"]); ?>" id="form_field_active_border_color" name="form_field_active_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Miscellaneous', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="date_box_color"><?php _e('Date box background color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["date_box_color"]); ?>" id="date_box_color" name="date_box_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="date_box_text_color"><?php _e('Date box text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["date_box_text_color"]); ?>" id="date_box_text_color" name="date_box_text_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="date_box_comments_number_text_color"><?php _e('Date box comments number text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["date_box_comments_number_text_color"]); ?>" id="date_box_comments_number_text_color" name="date_box_comments_number_text_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="date_box_comments_number_border_color"><?php _e('Date box comments number border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["date_box_comments_number_border_color"]); ?>" id="date_box_comments_number_border_color" name="date_box_comments_number_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="date_box_comments_number_hover_border_color"><?php _e('Date box comments number hover border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["date_box_comments_number_hover_border_color"]); ?>" id="date_box_comments_number_hover_border_color" name="date_box_comments_number_hover_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="gallery_box_color"><?php _e('Gallery box color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_color"]); ?>" id="gallery_box_color" name="gallery_box_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="gallery_box_hover_color"><?php _e('Gallery box hover color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_box_hover_color"]); ?>" id="gallery_box_hover_color" name="gallery_box_hover_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="timetable_box_color"><?php _e('Timetable box color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timetable_box_color"]); ?>" id="timetable_box_color" name="timetable_box_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="timetable_box_hover_color"><?php _e('Timetable box hover color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["timetable_box_hover_color"]); ?>" id="timetable_box_hover_color" name="timetable_box_hover_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="gallery_details_box_border_color"><?php _e('Gallery details box border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["gallery_details_box_border_color"]); ?>" id="gallery_details_box_border_color" name="gallery_details_box_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="bread_crumb_border_color"><?php _e('Bread crumb border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["bread_crumb_border_color"]); ?>" id="bread_crumb_border_color" name="bread_crumb_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="accordion_item_border_color"><?php _e('Accordion item border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["accordion_item_border_color"]); ?>" id="accordion_item_border_color" name="accordion_item_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="accordion_item_border_hover_color"><?php _e('Accordion item border hover color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["accordion_item_border_hover_color"]); ?>" id="accordion_item_border_hover_color" name="accordion_item_border_hover_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="accordion_item_border_active_color"><?php _e('Accordion item border active color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["accordion_item_border_active_color"]); ?>" id="accordion_item_border_active_color" name="accordion_item_border_active_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="copyright_area_border_color"><?php _e('Copyright area border color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["copyright_area_border_color"]); ?>" id="copyright_area_border_color" name="copyright_area_border_color"> <span class="description"><?php _e('Enter \'none\' for no border', 'medicenter'); ?></span> </td> </tr> <tr valign="top"> <th scope="row"> <label for="top_hint_background_color"><?php _e('Top hint background color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["top_hint_background_color"]); ?>" id="top_hint_background_color" name="top_hint_background_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="top_hint_text_color"><?php _e('Top hint text color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["top_hint_text_color"]); ?>" id="top_hint_text_color" name="top_hint_text_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="comment_reply_button_color"><?php _e('Comment reply button color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["comment_reply_button_color"]); ?>" id="comment_reply_button_color" name="comment_reply_button_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="post_author_link_color"><?php _e('Post author link color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["post_author_link_color"]); ?>" id="post_author_link_color" name="post_author_link_color"> </td> </tr> <tr valign="top"> <th scope="row"> <label for="contact_details_box_background_color"><?php _e('Contact details box background color', 'medicenter'); ?></label> </th> <td> <input type="text" class="regular-text color" value="<?php echo esc_attr($theme_options["contact_details_box_background_color"]); ?>" id="contact_details_box_background_color" name="contact_details_box_background_color"> </td> </tr> </tbody> </table> <p> <input type="submit" value="<?php _e('Save Colors Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </div> <div id="tab-fonts"> <table class="form-table"> <tbody> <tr valign="top"> <th colspan="2" scope="row" style="font-weight: bold;"> <?php _e('Fonts', 'medicenter'); ?> </th> </tr> <tr valign="top"> <th scope="row"> <label for="header_font"><?php _e('Header font', 'medicenter'); ?></label> </th> <td> <select id="header_font" name="header_font"> <option<?php echo ($theme_options["header_font"]=="" ? " selected='selected'" : ""); ?> value=""><?php _e("Default", 'medicenter'); ?></option> <?php $fontsCount = count($fontsArray->items); for($i=0; $i<$fontsCount; $i++) { ?> <?php $variantsCount = count($fontsArray->items[$i]->variants); if($variantsCount>1) { for($j=0; $j<$variantsCount; $j++) { ?> <option<?php echo ($theme_options["header_font"]==$fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j] ? " selected='selected'" : ""); ?> value="<?php echo $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j]; ?>"><?php echo $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j]; ?></option> <?php } } else { ?> <option<?php echo ($theme_options["header_font"]==$fontsArray->items[$i]->family ? " selected='selected'" : ""); ?> value="<?php echo $fontsArray->items[$i]->family; ?>"><?php echo $fontsArray->items[$i]->family; ?></option> <?php } } ?> </select> </td> </tr> <tr valign="top"> <th scope="row"> <label for="subheader_font"><?php _e('Subheader font', 'medicenter'); ?></label> </th> <td> <select id="subheader_font" name="subheader_font"> <option<?php echo ($theme_options["subheader_font"]=="" ? " selected='selected'" : ""); ?> value=""><?php _e("Default", 'medicenter'); ?></option> <?php $fontsCount = count($fontsArray->items); for($i=0; $i<$fontsCount; $i++) { ?> <?php $variantsCount = count($fontsArray->items[$i]->variants); if($variantsCount>1) { for($j=0; $j<$variantsCount; $j++) { ?> <option<?php echo ($theme_options["subheader_font"]==$fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j] ? " selected='selected'" : ""); ?> value="<?php echo $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j]; ?>"><?php echo $fontsArray->items[$i]->family . ":" . $fontsArray->items[$i]->variants[$j]; ?></option> <?php } } else { ?> <option<?php echo ($theme_options["subheader_font"]==$fontsArray->items[$i]->family ? " selected='selected'" : ""); ?> value="<?php echo $fontsArray->items[$i]->family; ?>"><?php echo $fontsArray->items[$i]->family; ?></option> <?php } } ?> </select> </td> </tr> </tbody> </table> <p> <input type="submit" value="<?php _e('Save Fonts Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> </div> <p> <input type="hidden" name="action" value="<?php echo $themename; ?>_save" /> <input type="submit" value="<?php _e('Save All Options', 'medicenter'); ?>" class="button-primary" name="<?php echo $themename; ?>_submit"> </p> <input type="hidden" id="<?php echo $themename; ?>-selected-tab" value="<?php echo $selected_tab;?>" /> </form> <?php */ }