function cs_meta_menu($post) { global $cs_xmlObject, $cs_xmlObject_transaction; $cs_xmlObject_transaction = new stdclass(); $cs_menu = get_post_meta($post->ID, "cs_cause_meta", true); $cause_end_date = get_post_meta($post->ID, "cause_end_date", true); $cs_cause = get_post_meta($post->ID, "cs_cause_transaction_meta", true); $cs_cause_percentage_amount = get_post_meta($post->ID, 'cs_cause_percentage_amount', true); $cs_cause_percentage_amount = get_post_meta($post->ID, 'cs_cause_raised_amount', true); $cs_cause_percentage_amount = get_post_meta($post->ID, 'cs_cause_goal_amount', true); $payment_gross = 0; $percentage_amount = $payment_gross_total = 0; if ($cs_cause != "") { $cs_xmlObject_transaction = new SimpleXMLElement($cs_cause); if (count($cs_xmlObject_transaction->transaction) > 0) { foreach ($cs_xmlObject_transaction->transaction as $transct) { $payment_gross_total = $payment_gross_total + $transct->payment_gross; } } $cause_raised_amount = $payment_gross_total; } else { $cause_raised_amount = '0'; } if ($cs_menu != "") { $cs_xmlObject = new SimpleXMLElement($cs_menu); $cause_social_share = $cs_xmlObject->cause_social_share; $cause_goal_amount = $cs_xmlObject->cause_goal_amount; $payment_gross_total = 0; $cause_related = $cs_xmlObject->cause_related; $cause_related_post_title = $cs_xmlObject->cause_related_post_title; $cause_end_date = $cs_xmlObject->cause_end_date; $cause_paypal_email = $cs_xmlObject->cause_paypal_email; $cs_donations_show = $cs_xmlObject->cs_donations_show; $post_author_info_show = $cs_xmlObject->post_author_info_show; $post_tags_show = $cs_xmlObject->post_tags_show; $post_pagination_show = $cs_xmlObject->post_pagination_show; } else { $cause_related = ''; $cause_related_post_title = ''; $cause_goal_amount = '1000'; $cause_raised_amount = '0'; $cause_end_date = ''; $cause_paypal_email = ''; $cs_donations_show = ''; $post_author_info_show = 'on'; $cause_social_share = 'on'; $post_tags_show = $post_pagination_show = 'on'; } ?> <div class="page-wrap page-opts left" style="overflow:hidden; position:relative;"> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/jquery.scrollTo-min.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/select.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/prettyCheckable.js"></script> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /css/admin/jquery.ui.datepicker.css"> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /css/admin/jquery.ui.datepicker.theme.css"> <script> jQuery(function($) { $('#payment_date').datepicker(); $('#cause_end_date').datepicker(); }); </script> <div class="option-sec" style="margin-bottom:0;"> <?php subheader_meta_layout(); ?> <div class="clear"></div> <div class="opt-conts"> <div class="opt-head"> <h4><?php _e('Cause Date, Goal, Email', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Cause End Date', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="cause_end_date" name="cause_end_date" value="<?php echo $cause_end_date; ?> " /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Goal Amount', 'WeStand'); ?> </label></li> <li class="to-field"><input type="text" name="cause_goal_amount" value="<?php echo htmlspecialchars($cause_goal_amount); ?> " /></li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Paypal Email', 'WeStand'); ?> </label></li> <li class="to-field"><input type="text" name="cause_paypal_email" value="<?php echo htmlspecialchars($cause_paypal_email); ?> " /><p> <?php _e('Please enter your paypal bussiness email for individual Cause. If you dont enter paypal email here. You must enter paypal email at theme options', 'WeStand'); ?> <?php //echo '<a target="_blank" href="' . get_admin_url() . 'themes.php?page=cs_theme_options#tab-paypalapi-key-show">' . __('here', 'WeStand') . '.</a>'; ?> <?php _e('that will be used for default for all cuases', 'WeStand'); ?> </p></li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Raised Amount', 'WeStand'); ?> </label></li> <li class="to-field"><input type="text" disabled="disabled" name="cause_raised_amount" value="<?php echo htmlspecialchars($cause_raised_amount); ?> " /><p><?php _e('Auto Calculated Raised Amount From Donations', 'WeStand'); ?> </p></li> </ul> </div> <div class="clear"></div> </div> <div class="boxes tracklists"> <div id="add_ingrediant" class="poped-up"> <div class="opt-head"> <h5><?php _e('Donor Settings', 'WeStand'); ?> </h5> <a href="javascript:closepopedup('add_ingrediant')" class="closeit"> </a> <div class="clear"></div> </div> <ul class="form-elements"> <li class="to-label"><label><?php _e('Name', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="address_name" name="address_name" value="" /> <p><?php _e('Put Name', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Email', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="payer_email" name="payer_email" value="" /> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Amount', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="payment_gross" name="payment_gross" value="" /> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Transaction ID', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="txn_id" name="txn_id" value="" /> <p><?php _e('Put Transaction ID', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Payment Date', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="payment_date" name="payment_date" value="" /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"></li> <li class="to-field"><input type="button" value="Add Donation" onclick="add_menu_to_list('<?php echo admin_url(); ?> ', '<?php echo get_template_directory_uri(); ?> ')" /></li> </ul> </div> <script> jQuery(document).ready(function($) { $("#total_tracks").sortable({ cancel : 'td div.poped-up', }); }); </script> <div class="opt-head"> <h4 style="padding-top:12px;"><?php _e('Cause Donors', 'WeStand'); ?> </h4> <a href="javascript:openpopedup('add_ingrediant')" class="button"><?php _e('Add Donor', 'WeStand'); ?> </a> <div class="clear"></div> </div> <table class="to-table" border="0" cellspacing="0"> <thead> <tr> <th style="width:20%;"><?php _e('Donor Name', 'WeStand'); ?> </th> <th style="width:20%;"><?php _e('Email', 'WeStand'); ?> </th> <th style="width:20%;"><?php _e('Amount', 'WeStand'); ?> </th> <th style="width:20%;"><?php _e('Transaction ID', 'WeStand'); ?> </th> <th style="width:20%;"><?php _e('Date', 'WeStand'); ?> </th> <th style="width:20%;" class="centr"><?php _e('Actions', 'WeStand'); ?> </th> </tr> </thead> <tbody id="total_tracks"> <?php global $counter_track, $address_name, $payer_email, $payment_gross, $txn_id, $payment_date; $counter_track = $post->ID; $cs_cause_trans = get_post_meta($post->ID, "cs_cause_transaction_meta", true); if ($cs_cause_trans != "") { $cs_xmlObject_transact = new SimpleXMLElement($cs_cause_trans); foreach ($cs_xmlObject_transact->transaction as $transct) { $address_name = $transct->address_name; $payer_email = $transct->payer_email; $payment_gross = $transct->payment_gross; $txn_id = $transct->txn_id; $payment_date = $transct->payment_date; $counter_track++; add_gradiants_to_list(); } } ?> </tbody> </table> </div> <div class="clear"></div> <div class="cause-other-options" id="cause_other_options"> <div class="opt-head"> <h4><?php _e('Other Options', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Social Sharing', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="cause_social_share" value="on" class="myClass" <?php if ($cause_social_share == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Post Author', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="post_author_info_show" value="on" class="myClass" <?php if ($post_author_info_show == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Tags', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="post_tags_show" value="on" class="myClass" <?php if ($post_tags_show == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Next Previous Button', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="post_pagination_show" value="on" class="myClass" <?php if ($post_pagination_show == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Donors On/Off', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="cs_donations_show" class="myClass" <?php if (empty($cs_donations_show) || $cs_donations_show == "on") { echo "checked"; } ?> /></div> </li> </ul> </div> <?php meta_layout(); ?> <input type="hidden" name="cause_meta_form" value="1" /> <div class="clear"></div> </div> <div class="clear"></div> <?php }
function cs_meta_team($post) { $cs_team = get_post_meta($post->ID, "cs_team", true); global $cs_xmlObject; if ($cs_team != "") { $cs_xmlObject = new SimpleXMLElement($cs_team); $var_cp_expertise = $cs_xmlObject->var_cp_expertise; $var_cp_email = $cs_xmlObject->var_cp_email; $facebook = $cs_xmlObject->facebook; $twitter = $cs_xmlObject->twitter; $linkedin = $cs_xmlObject->linkedin; $google_plus = $cs_xmlObject->google_plus; $team_social_sharing = $cs_xmlObject->team_social_sharing; } else { $var_cp_expertise = ''; $var_cp_about = ''; $var_cp_email = ''; $facebook = ''; $twitter = ''; $linkedin = ''; $google_plus = ''; $team_social_sharing = 'on'; } ?> <div class="page-wrap page-opts left" style="overflow:hidden; position:relative;"> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/jquery.scrollTo-min.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/select.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/prettyCheckable.js"></script> <div class="option-sec" style="margin-bottom:0;"> <?php subheader_meta_layout(); ?> <div class="opt-conts"> <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('About', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Expertise', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" name="var_cp_expertise" value="<?php echo htmlspecialchars($var_cp_expertise); ?> "/> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Email', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" name="var_cp_email" value="<?php echo htmlspecialchars($var_cp_email); ?> "/> </li> </ul> </div> <div class="clear"></div> </div> <div class="boxes tracklists"> <div id="add_track" class="poped-up"> <div class="opt-head"> <h5><?php _e('Peronal Information', 'WeStand'); ?> </h5> <a href="javascript:closepopedup('add_track')" class="closeit"> </a> <div class="clear"></div> </div> <ul class="form-elements"> <li class="to-label"><label><?php _e('Title', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="var_cp_title" name="var_cp_title" value="Title" /> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('FontAwsome Icon', 'WeStand'); ?> </label></li> <li class="to-field"> <input id="var_cp_image_url" name="var_cp_image_url" value="" type="text" class="small" /> <input id="var_cp_image_url" name="var_cp_image_url" type="button" class="uploadfile left" value="Browse"/> <p><?php _e('Put Fontsome Icon. You can get fontawsome icons from', 'WeStand'); ?> <a href="http://fortawesome.github.io/Font-Awesome/icons/"><?php _e('here', 'WeStand'); ?> </a></p> </li> </ul> <ul class="form-elements"> <li class="to-label"><label>Text</label></li> <li class="to-field"> <textarea name="var_cp_team_text" id="var_cp_team_text" rows="5" cols="20"></textarea> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"></li> <li class="to-field"><input type="button" value="Add Personal Information to List" onclick="add_social_to_list('<?php echo admin_url(); ?> ', '<?php echo get_template_directory_uri(); ?> ')" /></li> </ul> </div> <script> jQuery(document).ready(function($) { $("#total_tracks").sortable({ cancel : 'td div.poped-up', }); }); </script> <div class="opt-head"> <h4 style="padding-top:12px;"><?php _e('Peronal Information listings', 'WeStand'); ?> </h4> <a href="javascript:openpopedup('add_track')" class="button"><?php _e('Add Peronal Information', 'WeStand'); ?> </a> <div class="clear"></div> </div> <table class="to-table" border="0" cellspacing="0"> <thead> <tr> <th style="width:80%;">Title</th> <th style="width:80%;" class="centr">Actions</th> </tr> </thead> <tbody id="total_tracks"> <?php global $counter_social, $var_cp_title, $var_cp_image_url, $var_cp_team_text; $counter_social = $post->ID; if ($cs_team != "") { foreach ($cs_xmlObject as $social) { if ($social->getName() == "social") { $var_cp_title = $social->var_cp_title; $var_cp_image_url = $social->var_cp_image_url; $var_cp_team_text = $social->var_cp_team_text; $counter_social++; cs_add_social_to_list(); } } } ?> </tbody> </table> </div> <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Social Links', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Facebook URL', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" name="facebook" value="<?php if (isset($facebook)) { echo $facebook; } ?> " /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Twitter URL', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" name="twitter" value="<?php if (isset($twitter)) { echo $twitter; } ?> " /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Google Plus', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" name="google_plus" value="<?php if (isset($google_plus)) { echo $google_plus; } ?> " /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('linkedin URL', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" name="linkedin" value="<?php if (isset($linkedin)) { echo $linkedin; } ?> " /> </li> </ul> <div class="opt-head"> <h4><?php _e('Other Option', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements"> <li class="to-label"><label><?php _e('Social Sharing', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="team_social_sharing" value="on" class="myClass" <?php if ($team_social_sharing == 'on') { echo "checked"; } ?> /></div> </li> </ul> <?php meta_layout(); ?> <input type="hidden" name="team_meta_form" value="1" /> <div class="clear"></div> </div> <div class="clear"></div> <?php }
function theme_option() { global $post; $cs_theme_option = ''; $cs_theme_option = get_option('cs_theme_option'); ?> <link href="<?php echo get_template_directory_uri(); ?> /css/admin/datePicker.css" rel="stylesheet" type="text/css" /> <form id="frm" method="post" action="javascript:theme_option_save('<?php echo admin_url(); ?> ', '<?php echo get_template_directory_uri(); ?> ');"> <div class="theme-wrap fullwidth"> <div class="loading_div"></div> <div class="form-msg"></div> <div class="inner"> <div class="row"> <!-- Left Column Start --> <div class="col1"> <div class="logo"><a href="#"><img src="<?php echo get_template_directory_uri(); ?> /images/admin/logo.png" /></a></div> <div class="arrowlistmenu" id="paginate-slider2"> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon g-setting"> </span><?php _e('General Settings', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li class="tab-color active"><a href="#tab-color" onClick="toggleDiv(this.hash);return false;"><?php _e('Color and Style', 'WeStand'); ?> </a></li> <li class="tab-logo"><a href="#tab-logo" onClick="toggleDiv(this.hash);return false;"><?php _e('Logo / Fav Icon', 'WeStand'); ?> </a></li> <li class="tab-head-scripts"><a href="#tab-head-scripts" onClick="toggleDiv(this.hash);return false;"><?php _e('Header Settings', 'WeStand'); ?> </a></li> <li class="tab-foot-setting"><a href="#tab-foot-setting" onClick="toggleDiv(this.hash);return false;"><?php _e('Footer Settings', 'WeStand'); ?> </a></li> <li class="tab-under-consturction"><a href="#tab-under-consturction" onClick="toggleDiv(this.hash);return false;"><?php _e('Under Constrution', 'WeStand'); ?> </a></li> <li class="tab-other"><a href="#tab-other" onClick="toggleDiv(this.hash);return false;"><?php _e('Other Settings', 'WeStand'); ?> </a></li> <li class="tab-api-key"><a href="#tab-api-key" onClick="toggleDiv(this.hash);return false;"><?php _e('API Settings', 'WeStand'); ?> </a></li> </ul> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon h-setting"> </span><?php _e('Home Page Settings', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li class="tab-slider"><a href="#tab-slider" onClick="toggleDiv(this.hash);return false;"><?php _e('Slider', 'WeStand'); ?> </a></li> </ul> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon h-setting"> </span><?php _e('Donations', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li class="tab-paypalapi"><a href="#tab-paypalapi" onClick="toggleDiv(this.hash);return false;"><?php _e('Paypal and Payment settings', 'WeStand'); ?> </a></li> <li class="tab-donationsbtns"><a href="#tab-donationsbtns" onClick="toggleDiv(this.hash);return false;"><?php _e('Model Window Buttons', 'WeStand'); ?> </a></li> </ul> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon side-bar"> </span><?php _e('Side Bars', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li class="tab-manage-sidebars"><a href="#tab-manage-sidebars" onClick="toggleDiv(this.hash);return false;"><?php _e('Manage Sidebars', 'WeStand'); ?> </a></li> </ul> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon slider-setting"> </span><?php _e('Slider Setting', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li class="tab-flex-slider"><a href="#tab-flex-slider" onClick="toggleDiv(this.hash);return false;"><?php _e('Flex Slider', 'WeStand'); ?> </a></li> </ul> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon s-network"> </span><?php _e('Sahre', 'WeStand'); _e('Social Settings', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li class="tab-social-network"><a href="#tab-social-network" onClick="toggleDiv(this.hash);return false;"><?php _e('Social Network', 'WeStand'); ?> </a></li> </ul> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon languages"> </span><?php _e('Language', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li class="tab-upload-languages"><a href="#tab-upload-languages" onClick="toggleDiv(this.hash);return false;"><?php _e('Upload New Languages', 'WeStand'); ?> </a></li> </ul> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon translation"> </span><?php _e('Translation', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li class="tab-cause-translation"><a href="#tab-cause-translation" onClick="toggleDiv(this.hash);return false;"><?php _e('Cause', 'WeStand'); ?> </a></li> <li class="tab-contact-translation"><a href="#tab-contact-translation" onClick="toggleDiv(this.hash);return false;"><?php _e('Contact', 'WeStand'); ?> </a></li> <li class="tab-other-translation"><a href="#tab-other-translation" onClick="toggleDiv(this.hash);return false;"><?php _e('Others', 'WeStand'); ?> </a></li> </ul> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon default-pages"> </span><?php _e('Default Pages', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li class="tab-default-pages"><a href="#tab-default-pages" onClick="toggleDiv(this.hash);return false;"><?php _e('Default Pages', 'WeStand'); ?> </a></li> </ul> <h3 class="menuheader expandable"><a href="#"><span class="nav-icon default-pages"> </span><?php _e('Backup Options', 'WeStand'); ?> </a></h3> <ul class="categoryitems"> <li><a href="#tab-import-export-backup" onClick="toggleDiv(this.hash);return false;"><?php _e('Theme Options Backup', 'WeStand'); ?> </a></li> <li class="tab-import-export"><a onclick="cs_to_restore_default_option('<?php echo admin_url(); ?> ', '<?php echo get_template_directory_uri(); ?> ')"><?php _e('Restore Default', 'WeStand'); ?> </a></li> </ul> </div> <div class="clear"></div> </div> <!-- Left Column End --> <div class="col2"> <input type="button" value="Reset Option" class="top_btn_reset" onclick="cs_to_restore_default_option('<?php echo admin_url(); ?> ', '<?php echo get_template_directory_uri(); ?> ')" /> <input type="submit" id="submit_btn" name="submit_btn" class="top_btn_save" value="Save All Settings" /> <!-- Color And Style Start --> <div id="tab-color"> <div class="theme-header"> <h1><?php _e('General Settings', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Color And Styles', 'WeStand'); ?> </h4> <p><?php _e('Theme color scheme and styling setting', 'WeStand'); ?> </p> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Select Color Scheme', 'WeStand'); ?> </label> </li> <li class="to-field"> <div id="colorpickerwrapp"> <?php $cs_color_array = array('#45b363', '#339a74', '#1d7f5b', '#3fb0c3', '#2293a6', '#137d8f', '#9374ae', '#775b8f', '#dca13a', '#c46d32', '#c44732', '#c44d55', '#425660', '#292f32'); foreach ($cs_color_array as $colors) { $active = ''; if ($colors == $cs_theme_option['custom_color_scheme']) { $active = 'active'; } echo '<span class="col-box ' . $active . '" data-color="' . $colors . '" style="background: ' . $colors . '"></span>'; } ?> </div> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Custom Color Scheme', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="cs_custom_color_style" name="custom_color_scheme" value="<?php if (isset($cs_theme_option['custom_color_scheme'])) { echo $cs_theme_option['custom_color_scheme']; } ?> " class="bg_color" /> <p><?php _e('Pick a custom color for Scheme of the theme', 'WeStand'); ?> e.g. #697e09</p> </li> </ul> <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Layout Options', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Layout Option', 'WeStand'); ?> </label> </li> <li class="to-field"> <span id="wrapper_boxed_layoutoptions1"> <input type="radio" name="layout_option" value="wrapper_boxed" <?php if ($cs_theme_option['layout_option'] == "wrapper_boxed") { echo "checked"; } ?> class="styled" /></span> <label><?php _e('Boxed', 'WeStand'); ?> </label> <span id="wrapper_boxed_layoutoptions2"><input type="radio" name="layout_option" value="wrapper" <?php if ($cs_theme_option['layout_option'] == "wrapper") { echo "checked"; } ?> class="styled" /></span> <label><?php _e('Wide', 'WeStand'); ?> </label> </li> </ul> <div id="layout-background-theme-options" <?php if ($cs_theme_option['layout_option'] == "wrapper") { echo 'style="display: none;"'; } ?> > <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Background Options', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Background Image', 'WeStand'); ?> </label> </li> <li class="to-field"> <div class="meta-input pattern"> <?php for ($i = 0; $i < 8; $i++) { ?> <div class='radio-image-wrapper'> <input <?php if ($cs_theme_option['bg_img'] == $i) { echo "checked"; } ?> onclick="select_bg()" type="radio" name="bg_img" class="radio" value="<?php echo $i; ?> " /> <label for="radio_<?php echo $i; ?> "> <span class="ss"><img src="<?php echo get_template_directory_uri(); ?> /images/background/background<?php echo $i; ?> .png" /></span> <span <?php if ($cs_theme_option['bg_img'] == $i) { echo "class='check-list'"; } ?> id="check-list"> </span> </label> </div> <?php } ?> </div> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Background Image', 'WeStand'); ?> </label> </li> <li class="to-field"> <input id="bg_img_custom" name="bg_img_custom" value="<?php echo $cs_theme_option['bg_img_custom']; ?> " type="text" class="small" /> <input id="bg_img_custom" name="bg_img_custom" type="button" class="uploadfile left" value="Browse"/> <?php if ($cs_theme_option['bg_img_custom'] != "") { ?> <div class="thumb-preview" id="bg_img_custom_img_div"> <img src="<?php echo $cs_theme_option['bg_img_custom']; ?> " /> <a href="javascript:remove_image('bg_img_custom')" class="del"> </a> </div> <?php } ?> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Position', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="radio" name="bg_position" value="left" <?php if ($cs_theme_option['bg_position'] == "left") { echo "checked"; } ?> class="styled" /> <label><?php _e('Left', 'WeStand'); ?> </label> <input type="radio" name="bg_position" value="center" <?php if ($cs_theme_option['bg_position'] == "center") { echo "checked"; } ?> class="styled" /> <label><?php _e('Center', 'WeStand'); ?> </label> <input type="radio" name="bg_position" value="right" <?php if ($cs_theme_option['bg_position'] == "right") { echo "checked"; } ?> class="styled" /> <label><?php _e('Right', 'WeStand'); ?> </label> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Repeat', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="radio" name="bg_repeat" value="no-repeat" <?php if ($cs_theme_option['bg_repeat'] == "no-repeat") { echo "checked"; } ?> class="styled" /> <label><?php _e('No Repeat', 'WeStand'); ?> </label> <input type="radio" name="bg_repeat" value="repeat" <?php if ($cs_theme_option['bg_repeat'] == "repeat") { echo "checked"; } ?> class="styled" /> <label><?php _e('Tile', 'WeStand'); ?> </label> <input type="radio" name="bg_repeat" value="repeat-x" <?php if ($cs_theme_option['bg_repeat'] == "repeat-x") { echo "checked"; } ?> class="styled" /> <label><?php _e('Tile Horizontally', 'WeStand'); ?> </label> <input type="radio" name="bg_repeat" value="repeat-y" <?php if ($cs_theme_option['bg_repeat'] == "repeat-y") { echo "checked"; } ?> class="styled" /> <label><?php _e('Tile Vertically', 'WeStand'); ?> </label> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Attachment', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="radio" name="bg_attach" value="scroll" <?php if ($cs_theme_option['bg_attach'] == "scroll") { echo "checked"; } ?> class="styled" /> <label>Scroll</label> <input type="radio" name="bg_attach" value="fixed" <?php if ($cs_theme_option['bg_attach'] == "fixed") { echo "checked"; } ?> class="styled" /> <label><?php _e('Fixed', 'WeStand'); ?> </label> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Background Pattern', 'WeStand'); ?> </label> </li> <li class="to-field"> <div class="meta-input pattern"> <?php for ($i = 0; $i < 16; $i++) { ?> <div class='radio-image-wrapper'> <input <?php if ($cs_theme_option['pattern_img'] == $i) { echo "checked"; } ?> onclick="select_pattern()" type="radio" name="pattern_img" class="radio" value="<?php echo $i; ?> " /> <label for="radio_<?php echo $i; ?> "> <span class="ss"><img src="<?php echo get_template_directory_uri(); ?> /images/pattern/pattern<?php echo $i; ?> .png" /></span> <span <?php if ($cs_theme_option['pattern_img'] == $i) { echo "class='check-list'"; } ?> id="check-list"> </span> </label> </div> <?php } ?> </div> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Background Pattern', 'WeStand'); ?> </label> </li> <li class="to-field"> <input id="custome_pattern" name="custome_pattern" value="<?php echo $cs_theme_option['custome_pattern']; ?> " type="text" class="small" /> <input id="custome_pattern" name="custome_pattern" type="button" class="uploadfile left" value="Browse"/> <?php if ($cs_theme_option['custome_pattern'] != "") { ?> <div class="thumb-preview" id="custome_pattern_img_div"> <img src="<?php echo $cs_theme_option['custome_pattern']; ?> " /> <a href="javascript:remove_image('custome_pattern')" class="del"> </a> </div> <?php } ?> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Background Color', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="bg_color" value="<?php echo $cs_theme_option['bg_color']; ?> " class="bg_color" data-default-color="" /> </li> </ul> </div> </div> <!-- Color And Style End --> <!-- Logo Tabs --> <div id="tab-logo" style="display:none;"> <div class="theme-header"> <h1><?php _e('Logo / Fav Icon Settings', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Logo / Fav Icon Settings', 'WeStand'); ?> </h4> <p><?php _e('Add your logo and fav icon', 'WeStand'); ?> </p> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Upload Logo', 'WeStand'); ?> </label> </li> <li class="to-field"> <input id="logo" name="logo" value="<?php echo $cs_theme_option['logo']; ?> " type="text" class="small {validate:{accept:'jpg|jpeg|gif|png|bmp'}}" /> <input id="log" name="logo" type="button" class="uploadfile left" value="Browse"/> <?php if ($cs_theme_option['logo'] != "") { ?> <div class="thumb-preview" id="logo_img_div"><img width="<?php echo $cs_theme_option['logo_width']; ?> " height="<?php echo $cs_theme_option['logo_height']; ?> " src="<?php echo $cs_theme_option['logo']; ?> " /> <a href="javascript:remove_image('logo')" class="del"> </a> </div> <?php } ?> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Width', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="logo_width" id="width-value" value="<?php echo $cs_theme_option['logo_width']; ?> " class="vsmall" /> <span class="short">px</span> <p><?php _e('Please enter the required size', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Height', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="logo_height" id="height-value" value="<?php echo $cs_theme_option['logo_height']; ?> " class="vsmall" /> <span class="short">px</span> <p><?php _e('Please enter the required size', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('FAV Icon', 'WeStand'); ?> </label> </li> <li class="to-field"> <input id="fav_icon" name="fav_icon" value="<?php echo $cs_theme_option['fav_icon']; ?> " type="text" class="small {validate:{accept:'ico|png'}}" /> <input id="fav_icon" name="fav_icon" type="button" class="uploadfile left" value="Browse" /> <p><?php _e('Browse a small fav icon, only .ICO or .PNG format allowed', 'WeStand'); ?> </p> </li> </ul> </div> <!-- Logo Tabs End --> <!-- Header Styles --> <!-- Header Script --> <div id="tab-head-scripts" style="display:none;"> <div class="theme-header"> <h1><?php _e('Header Settings', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Header Settings', 'WeStand'); ?> </h4> <p><?php _e('Modify your header settings', 'WeStand'); ?> </p> </div> <ul class="form-elements noborder header-bg"> <li class="to-label"> <label><?php _e('Menu Background Color', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="menu_bg_color" value="<?php if (isset($cs_theme_option['menu_bg_color'])) { echo $cs_theme_option['menu_bg_color']; } ?> " class="bg_color" /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Menu Font Color', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="menu_font_color" value="<?php if (isset($cs_theme_option['menu_font_color'])) { echo $cs_theme_option['menu_font_color']; } ?> " class="bg_color" /> </li> </ul> <?php $wpmlsettings = get_option('icl_sitepress_settings'); if (function_exists('icl_object_id')) { if (!isset($cs_theme_option['header_languages'])) { $cs_theme_option['header_languages'] = 'on'; } ?> <ul class="form-elements"> <li class="full"> </li> <li class="to-label"> <label><?php _e('Header Languages', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="header_languages" value="" /> <input type="checkbox" class="myClass" name="header_languages" <?php if ($cs_theme_option['header_languages'] == "on") { echo "checked"; } ?> /> </li> </ul> <?php } else { ?> <input type="hidden" name="header_languages" value="" /> <?php } ?> <?php if (function_exists('is_woocommerce')) { if (!isset($cs_theme_option['header_cart'])) { $cs_theme_option['header_cart'] = 'on'; } ?> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Cart Count', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="header_cart" value=""/> <input type="checkbox" class="myClass" name="header_cart" <?php if ($cs_theme_option['header_cart'] == "on") { echo "checked"; } ?> /> </li> </ul> <?php } else { ?> <input type="hidden" name="header_cart" value=""/> <?php } ?> <ul class="form-elements donation-button-theme-options noborder"> <li class="to-label"> <label><?php _e('Donation', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="header_donation_button" value="" /> <input type="checkbox" class="myClass" name="header_donation_button" <?php if (isset($cs_theme_option['header_donation_button']) && $cs_theme_option['header_donation_button'] == "on") { echo "checked"; } ?> /> </li> </ul> <ul class="form-elements donation-button-theme-options"> <li class="to-label"> <label><?php _e('Donation Title', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="donation_btn_title" value="<?php if (isset($cs_theme_option['donation_btn_title']) && $cs_theme_option['donation_btn_title'] != '') { echo $cs_theme_option['donation_btn_title']; } ?> " class="vsmall" /> </li> </ul> <?php $header_banner_style_default = $header_banner_image_default = $page_sub_title_default = $header_banner_flex_slider_default = $custom_slider_id_default = $page_subheader_color_default = ''; if (isset($cs_theme_option['header_banner_style_default'])) { $header_banner_style_default = $cs_theme_option['header_banner_style_default']; } if (isset($cs_theme_option['page_subheader_color_default'])) { $page_subheader_color_default = $cs_theme_option['page_subheader_color_default']; } if (isset($cs_theme_option['header_banner_image_default'])) { $header_banner_image_default = $cs_theme_option['header_banner_image_default']; } if (isset($cs_theme_option['page_sub_title_default'])) { $page_sub_title_default = $cs_theme_option['page_sub_title_default']; } if (isset($cs_theme_option['header_banner_flex_slider_default'])) { $header_banner_flex_slider_default = $cs_theme_option['header_banner_flex_slider_default']; } if (isset($cs_theme_option['custom_slider_id_default'])) { $custom_slider_id_default = $cs_theme_option['custom_slider_id_default']; } ?> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Sub Header Style', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="header_banner_style_default" class="dropdown" onchange="javascript:home_slider_header_toggle(this.value)"> <option <?php if (isset($header_banner_style_default) and $header_banner_style_default == "breadcrumbs") { echo "selected"; } ?> value="breadcrumbs" ><?php _e('Breadcrumbs', 'WeStand'); ?> </option> <option <?php if (isset($header_banner_style_default) and $header_banner_style_default == "no-header") { echo "selected"; } ?> value="no-header" ><?php _e('No Subheader', 'WeStand'); ?> </option> <option <?php if (isset($header_banner_style_default) and $header_banner_style_default == "flex_slider") { echo "selected"; } ?> value="flex_slider" ><?php _e('Flex Slider', 'WeStand'); ?> </option> <option <?php if (isset($header_banner_style_default) and $header_banner_style_default == "custom_slider") { echo "selected"; } ?> value="custom_slider" ><?php _e('Custom Slider', 'WeStand'); ?> </option> </select> <p><?php _e('These settings will apply to all those pages or post where you select the Default Header Style', 'WeStand'); ?> </p> </li> </ul> <div id="header_custom_image" style="display:<?php if ($header_banner_style_default == "breadcrumbs" || $header_banner_style_default == "") { echo 'inline"'; } else { echo 'none'; } ?> " > <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Sub-Header Background', 'WeStand'); ?> </label></li> <li class="to-field"> <input id="header_banner_image_default" name="header_banner_image_default" value="<?php echo $header_banner_image_default; ?> " type="text" class="small" /> <input id="header_banner_image_default" name="header_banner_image_default" type="button" class="uploadfile left" value="Browse"/> <p><?php _e('Default background can be changed by uploading', 'WeStand'); ?> (image size 1600*900)</p> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Page Sub Header Color', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" name="page_subheader_color_default" class="bg_color" value="<?php echo $page_subheader_color_default; ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Page Sub Title', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" name="page_sub_title_default" value="<?php echo $page_sub_title_default; ?> " /> </li> </ul> </div> <div class="slider_options" id="ws_slider_options" style="display:<?php if ($header_banner_style_default == "flex_slider") { echo 'inline"'; } else { echo 'none'; } ?> " > <ul class="form-elements"> <li class="to-label"><label><?php _e('Select Slider', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="header_banner_flex_slider_default" class="dropdown"> <?php $query = array('posts_per_page' => '-1', 'post_type' => 'cs_slider', 'orderby' => 'ID', 'post_status' => 'publish'); $wp_query = new WP_Query($query); while ($wp_query->have_posts()) { $wp_query->the_post(); ?> <option <?php if ($post->post_name == $header_banner_flex_slider_default) { echo "selected"; } ?> value="<?php echo $post->post_name; ?> "><?php the_title(); ?> </option> <?php } ?> </select> <p><?php _e('You can use already created slider OR create new slider', 'WeStand'); ?> <a href="<?php echo admin_url(); ?> /post-new.php?post_type=cs_slider" target="_blank"><?php _e('Click Here', 'WeStand'); ?> </a>.</p> </li> </ul> </div> <ul class="form-elements" id="header_custom_slider" style=" <?php if (isset($header_banner_style_default) and $header_banner_style_default != "custom_slider") { echo "display:none"; } else { "display:inline"; } ?> " > <li class="to-label"> <label><?php _e('Custom Slider Short Code', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="custom_slider_id_default" class="txtfield" value="<?php if (isset($custom_slider_id_default)) { echo $custom_slider_id_default; } ?> " /> <p><?php _e('Please enter the short code for Layer Slider OR Revolution Slider if already included in package. Otherwise buy Sliders from', 'WeStand'); ?> <a href="http://codecanyon.net/" target="_blank"><?php _e('Codecanyon', 'WeStand'); ?> </a>.<?php _e('But its optional', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Header Code', 'WeStand'); ?> </label> </li> <li class="to-field"> <textarea rows="" cols="" class="header_code_indent" name="header_code"><?php echo $cs_theme_option['header_code']; ?> </textarea> <p><?php _e('Paste your Html or Css Code here', 'WeStand'); ?> </p> </li> </ul> </div> <!-- Header Script End --> <!-- Footer Settings --> <div id="tab-foot-setting" style="display:none;"> <div class="theme-header"> <h1><?php _e('Footer Settings', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Footer Settings', 'WeStand'); ?> </h4> <p><?php _e('Add footer setting detail', 'WeStand'); ?> </p> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Footer Widget Background Color', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="footer_widgetarea_bg_color" name="footer_widgetarea_bg_color" value="<?php if (isset($cs_theme_option['footer_widgetarea_bg_color'])) { echo $cs_theme_option['footer_widgetarea_bg_color']; } ?> " class="bg_color" /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Footer Background Color', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="footer_bg_color" name="footer_bg_color" value="<?php if (isset($cs_theme_option['footer_bg_color'])) { echo $cs_theme_option['footer_bg_color']; } ?> " class="bg_color" /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Custom Copyright', 'WeStand'); ?> </label> </li> <li class="to-field"> <textarea rows="2" cols="4" name="copyright"><?php echo $cs_theme_option['copyright']; ?> </textarea> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Powered By Text', 'WeStand'); ?> </label> </li> <li class="to-field"> <textarea rows="2" cols="4" name="powered_by"><?php echo $cs_theme_option['powered_by']; ?> </textarea> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Analytics Code', 'WeStand'); ?> </label> </li> <li class="to-field"> <textarea rows="" cols="" class="analytics_indent" name="analytics"><?php echo $cs_theme_option['analytics']; ?> </textarea> <p><?php _e('Paste your Google Analytics (or other) tracking code here', 'WeStand'); ?> .<br /> <?php _e('This will be added into the footer template of your theme', 'WeStand'); ?> .</p> </li> </ul> </div> <!-- Footer Settings End --> <!-- Maintenance Page Settings start --> <div id="tab-under-consturction" style="display:none;"> <div class="theme-header"> <h1><?php _e('Maintenance Page Settings', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Maintenance Page Settings', 'WeStand'); ?> </h4> <p><?php _e('Add maintenance page setting detail', 'WeStand'); ?> .</p> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Maintenance Page', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="under-construction" value="" /> <input type="checkbox" class="myClass" name="under-construction" <?php if ($cs_theme_option['under-construction'] == "on") { echo "checked"; } ?> /> <p><?php _e('Set the maintenance page On/Off', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Show Logo', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="showlogo" value="" /> <input type="checkbox" class="myClass" name="showlogo" <?php if ($cs_theme_option['showlogo'] == "on") { echo "checked"; } ?> /> <p><?php _e('Set show logo On/Off', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Maintenance Text', 'WeStand'); ?> </label> </li> <li class="to-field"> <textarea rows="2" cols="4" name="under_construction_text"><?php echo $cs_theme_option['under_construction_text']; ?> </textarea> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Launch Date', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="launch_date" name="launch_date" value="<?php if ($cs_theme_option['launch_date'] == '') { echo gmdate("Y-m-d"); } else { echo $cs_theme_option['launch_date']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Social Network', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="socialnetwork" value="" /> <input type="checkbox" class="myClass" name="socialnetwork" <?php if ($cs_theme_option['socialnetwork'] == "on") { echo "checked"; } ?> /> <p><?php _e('Set social network On/Off', 'WeStand'); ?> </p> </li> </ul> </div> <!-- Maintenance Page Settings end --> <!-- Other Settings Start --> <div id="tab-other" style="display:none;"> <div class="theme-header"> <h1><?php _e('Other Setting', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Other Setting', 'WeStand'); ?> </h4> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Sticky Menu', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="header_sticky_menu" value="" /> <input type="checkbox" class="myClass" name="header_sticky_menu" <?php if ($cs_theme_option['header_sticky_menu'] == "on") { echo "checked"; } ?> /> <p><?php _e('Set the Main Navigation Sticky On/Off', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Responsive', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="responsive" value="" /> <input type="checkbox" class="myClass" name="responsive" <?php if ($cs_theme_option['responsive'] == "on") { echo "checked"; } ?> /> <p><?php _e('Set the responsive On/Off', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Right to Left(RTL)', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="style_rtl" value="" /> <input type="checkbox" class="myClass" name="style_rtl" <?php if ($cs_theme_option['style_rtl'] == "on") { echo "checked"; } ?> /> <p><?php _e('Set the theme styl"Right to Left (RTL)"', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Color Switcher', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="color_switcher" value="" /> <input type="checkbox" class="myClass" name="color_switcher" <?php if ($cs_theme_option['color_switcher'] == "on") { echo "checked"; } ?> /> <p><?php _e('Set the color switcher for user demo', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Translation Switcher', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="trans_switcher" value="" /> <input type="checkbox" class="myClass" name="trans_switcher" <?php if ($cs_theme_option['trans_switcher'] == "on") { echo "checked"; } ?> /> <p><?php _e('Set the translation switcher for user demo', 'WeStand'); ?> </p> </li> </ul> </div> <div id="tab-paypalapi" style="display:none;"> <div class="theme-header"> <h1><?php _e('Paypal & Payments', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Paypal & Payments Setting', 'WeStand'); ?> </h4> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Paypal Email', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="paypal_email" name="paypal_email" value="<?php echo $cs_theme_option['paypal_email']; ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Paypal Ipn URL', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="paypal_ipn_url" name="paypal_ipn_url" value="<?php echo $cs_theme_option['paypal_ipn_url']; ?> "/> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Currency', 'WeStand'); ?> </label> </li> <li class="to-field"> <?php $currency_array = array('U.S. Dollar' => 'USD', 'Australian Dollar' => 'AUD', 'Brazilian Real' => 'BRL', 'Canadian Dollar' => 'CAD', 'Czech Koruna' => 'CZK', 'Danish Krone' => 'DKK', 'Euro' => 'EUR', 'Hong Kong Dollar' => 'HKD', 'Hungarian Forint' => 'HUF', 'Israeli New Sheqel' => 'ILS', 'Japanese Yen' => 'JPY', 'Malaysian Ringgit' => 'MYR', 'Mexican Peso' => 'MXN', 'Norwegian Krone' => 'NOK', 'New Zealand Dollar' => 'NZD', 'Philippine Peso' => 'PHP', 'Polish Zloty' => 'PLN', 'Pound Sterling' => 'GBP', 'Singapore Dollar' => 'SGD', 'Swedish Krona' => 'SEK', 'Swiss Franc' => 'CHF', 'Taiwan New Dollar' => 'TWD', 'Thai Baht' => 'THB', 'Turkish Lira' => 'TRY'); ?> <select name="paypal_currency"> <?php foreach ($currency_array as $key => $val) { ?> <option value="<?php echo $val; ?> " <?php if ($cs_theme_option['paypal_currency'] == $val) { echo ' selected="selected"'; } ?> ><?php echo $key; ?> </option> <?php } ?> </select> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Currency Sign', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="paypal_currency_sign" name="paypal_currency_sign" value="<?php if ($cs_theme_option['paypal_currency_sign'] == '') { echo '$'; } else { echo $cs_theme_option['paypal_currency_sign']; } ?> "/> <p><?php _e('Use Currency Sign', 'WeStand'); ?> eg: £,¥</p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Paypal Payments', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="paypal_payments" name="paypal_payments" value="<?php if (isset($cs_theme_option['paypal_payments']) && $cs_theme_option['paypal_payments'] == '') { echo ''; } else { echo $cs_theme_option['paypal_payments']; } ?> "/> <p><?php _e('Please enter payments by comma seperated', 'WeStand'); ?> .</p> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Model Window Heading', 'WeStand'); ?> </label> </li> <li class="to-field"> <textarea name="header_support_button_text_heading3" cols="20" rows="8"><?php if (isset($cs_theme_option['header_support_button_text_heading3'])) { echo $cs_theme_option['header_support_button_text_heading3']; } ?> </textarea> </li> </ul> </div> <div id="tab-donationsbtns" style="display:none;"> <div class="theme-header"> <h1><?php _e('Support Buttons', 'WeStand'); ?> </h1> </div> <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Tab 1', 'WeStand'); ?> </h4> </div> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Donation Title', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_title3" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_title3'])) { echo $cs_theme_option['header_support_button_title3']; } ?> " /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Fontawsome Icon', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_icon3" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_icon3'])) { echo $cs_theme_option['header_support_button_icon3']; } ?> " /> <p><?php _e('Put Fontawsome icon url. You can get fontawsome icons from', 'WeStand'); ?> <a href='http://fortawesome.github.io/Font-Awesome/icons/'><?php _e('here', 'WeStand'); ?> </a></p> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Button Text', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_text3" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_text3'])) { echo $cs_theme_option['header_support_button_text3']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Cause', 'WeStand'); ?> </label> </li> <li class="to-field"> <select name="header_support_button_url3" class="dropdown"> <option value="">Select Cause</option> <?php $args_cause = array('posts_per_page' => "-1", 'post_type' => 'cs_cause', 'post_status' => 'publish', 'meta_key' => 'cs_cause_percentage_amount', 'meta_value' => "100", 'meta_compare' => ">", 'orderby' => 'meta_value', 'order' => 'ASC'); // $query = array( 'posts_per_page' => '-1', 'post_type' => 'cs_cause', 'orderby'=>'ID', 'post_status' => 'publish' ); $wp_query = new WP_Query($args_cause); while ($wp_query->have_posts()) { $wp_query->the_post(); ?> <option <?php if ($post->post_name == $cs_theme_option['header_support_button_url3']) { echo "selected"; } ?> value="<?php echo $post->post_name; ?> "><?php the_title(); ?> </option> <?php } ?> </select> </li> </ul> <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Tab 2', 'WeStand'); ?> </h4> </div> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Join Our Movement Title', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_title1" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_title1'])) { echo $cs_theme_option['header_support_button_title1']; } ?> " /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Fontawsome Icon', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_icon1" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_icon1'])) { echo $cs_theme_option['header_support_button_icon1']; } ?> " /> <p><?php _e('Put Fontawsome icon url. You can get fontawsome icons from', 'WeStand'); ?> <a href='http://fortawesome.github.io/Font-Awesome/icons/'><?php _e('here', 'WeStand'); ?> </a></p> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Button Text', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_text1" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_text1'])) { echo $cs_theme_option['header_support_button_text1']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('URL', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_url1" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_url1'])) { echo $cs_theme_option['header_support_button_url1']; } ?> " /> </li> </ul> <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Tab 3', 'WeStand'); ?> </h4> </div> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Become Volunteer Title', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_title2" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_title2'])) { echo $cs_theme_option['header_support_button_title2']; } ?> " /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Fontawsome Icon', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_icon2" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_icon2'])) { echo $cs_theme_option['header_support_button_icon2']; } ?> " /> <p><?php _e('Put Fontawsome icon url. You can get fontawsome icons from ', 'WeStand'); ?> <a href='http://fortawesome.github.io/Font-Awesome/icons/'><?php _e('here', 'WeStand'); ?> </a></p> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Button Text', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_text2" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_text2'])) { echo $cs_theme_option['header_support_button_text2']; } ?> " /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Button URL', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="header_support_button_url2" class="txtfield" value="<?php if (isset($cs_theme_option['header_support_button_url2'])) { echo $cs_theme_option['header_support_button_url2']; } ?> " /> </li> </ul> </div> <!-- Other Settings End --> <!-- API Settings Start --> <div id="tab-api-key" style="display:none;"> <div class="theme-header"> <h1><?php _e('API Setting', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('API Setting', 'WeStand'); ?> </h4> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('MailChimp Key', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="mailchimp_key" name="mailchimp_key" value="<?php if (isset($cs_theme_option['mailchimp_key'])) { echo $cs_theme_option['mailchimp_key']; } else { $cs_theme_option['mailchimp_key'] = ''; } ?> " /> <p><?php echo __('Enter a valid MailChimp API key here to get started. Once you\'ve done that, you can use the MailChimp Widget from the Widgets menu. You will need to have at least MailChimp list set up before the using the widget.', 'WeStand') . __(' You can get your mailchimp activation key', 'WeStand') . ' <u><a href="' . get_admin_url() . 'https://login.mailchimp.com/">' . __('here', 'WeStand') . '</a></u>'; ?> </p> </li> </ul> <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Twitter API Setting', 'WeStand'); ?> </h4> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Consumer Key', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="consumer_key" value="" /> <input type="text" id="consumer_key" name="consumer_key" value="<?php echo $cs_theme_option['consumer_key']; ?> " class="{validate:{required:true}}"/> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Consumer Secret', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="consumer_secret" value="" /> <input type="text" id="consumer_secret" name="consumer_secret" value="<?php echo $cs_theme_option['consumer_secret']; ?> " class="{validate:{required:true}}"/> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Access Token', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="access_token" value="" /> <input type="text" id="access_token" name="access_token" value="<?php echo $cs_theme_option['access_token']; ?> " class="{validate:{required:true}}"/> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Access Token Secret', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="access_token_secret" value="" /> <input type="text" id="access_token_secret" name="access_token_secret" value="<?php echo $cs_theme_option['access_token_secret']; ?> " class="{validate:{required:true}}"/> </li> </ul> </div> <!-- API Settings end --> <div id="tab-slider" style="display:none;"> <div class="theme-header"> <h1><?php _e('Home Page Slider', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Home Page Slider', 'WeStand'); ?> </h4> <p><?php _e('Edit home page slider settings', 'WeStand'); ?> </p> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Show Slider', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="show_slider" value="" /> <input type="checkbox" class="myClass" name="show_slider" <?php if (isset($cs_theme_option['show_slider']) and $cs_theme_option['show_slider'] == "on") { echo "checked"; } ?> /> <p><?php _e('Switch it on if you want to show slider at home page. If you switch it off it will not show slider at home page', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Choose SliderType', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="slider_type" class="dropdown" onchange="javascript:home_slider_toggle(this.value)"> <option <?php if (isset($cs_theme_option['slider_type']) and $cs_theme_option['slider_type'] == "post_slider") { echo "selected"; } ?> value="post_slider" ><?php _e('Post Slider', 'WeStand'); ?> </option> <option <?php if (isset($cs_theme_option['slider_type']) and $cs_theme_option['slider_type'] == "custom") { echo "selected"; } ?> value="custom" ><?php _e('Custom Slider', 'WeStand'); ?> </option> </select> </li> </ul> <div class="form-elements" id="post_sliders" style=" <?php if ($cs_theme_option['slider_type'] != "post_slider") { echo "display:none"; } else { "display:inline"; } ?> "> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Select Post Category For posts', 'WeStand'); ?> </label> </li> <li class="to-field"> <select name="cs_slider_blog_cat" class="dropdown"> <option value="0"><?php _e('-- Select Category --', 'WeStand'); ?> </option> <?php show_all_cats('', '', $cs_theme_option['cs_slider_blog_cat'], "category"); ?> </select> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('No of Posts', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="slider_no_posts" class="txtfield" value="<?php if (isset($cs_theme_option['slider_no_posts'])) { echo $cs_theme_option['slider_no_posts']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Show Slider Pagination', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="show_slider_pagination" value="" /> <input type="checkbox" class="myClass" name="show_slider_pagination" <?php if (isset($cs_theme_option['show_slider_pagination']) and $cs_theme_option['show_slider_pagination'] == "on") { echo "checked"; } ?> /> <p><?php _e('Switch it on if you want to show slider pagination at home page. If you switch it off it will not show slider at home page', 'WeStand'); ?> </p> </li> </ul> </div> <ul class="form-elements" id="custom_slider" style=" <?php if (isset($cs_theme_option['slider_type']) and $cs_theme_option['slider_type'] != "custom") { echo "display:none"; } else { "display:inline"; } ?> " > <li class="to-label"> <label><?php _e('Custom Slider Short Code', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="slider_id" class="txtfield" value="<?php if (isset($cs_theme_option['slider_id'])) { echo $cs_theme_option['slider_id']; } ?> " /> <p>><?php _e('Please enter the short code for Layer Slider OR Revolution Slider if already included in package. Otherwise buy Sliders from', 'WeStand'); ?> <a href="http://codecanyon.net/" target="_blank"><?php _e('Codecanyon', 'WeStand'); ?> </a>.<?php _e('But its optional', 'WeStand'); ?> </p> </li> </ul> </div> <div id="tab-manage-sidebars" style="display:none;"> <div class="theme-header"> <h1><?php _e('Manage Sidebars', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Manage Sidebars', 'WeStand'); ?> </h4> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Sidebar Name', 'WeStand'); ?> </label> </li> <li class="to-field"> <input class="small" type="text" name="sidebar_input" id="sidebar_input" style="width:420px;" /> <input type="button" value="Add Sidebar" onclick="javascript:add_sidebar()" /> <p><?php _e('Please enter the desired title of sidebar', 'WeStand'); ?> </p> </li> </ul> <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Already Added Sidebars', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <div class="boxes"> <table class="to-table" border="0" cellspacing="0"> <thead> <tr> <th><?php _e('Sider Bar Name', 'WeStand'); ?> </th> <th class="centr"><?php _e('Actions', 'WeStand'); ?> </th> </tr> </thead> <tbody id="sidebar_area"> <?php if (isset($cs_theme_option['sidebar']) and count($cs_theme_option['sidebar']) > 0) { $cs_counter_sidebar = rand(10000, 20000); foreach ($cs_theme_option['sidebar'] as $sidebar) { $cs_counter_sidebar++; echo '<tr id="' . $cs_counter_sidebar . '">'; echo '<td><input type="hidden" name="sidebar[]" value="' . $sidebar . '" />' . $sidebar . '</td>'; echo '<td class="centr"> <a onclick="javascript:return confirm(\'Are you sure! You want to delete this\')" href="javascript:cs_div_remove(' . $cs_counter_sidebar . ')">Del</a> </td>'; echo '</tr>'; } } ?> </tbody> </table> </div> </div> <div id="tab-flex-slider" style="display:none;"> <div class="theme-header"> <h1><?php _e('Flex Slider', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Flex Slider Options', 'WeStand'); ?> </h4> <p><?php _e('Configure Flex Slider setting', 'WeStand'); ?> </p> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Effects', 'WeStand'); ?> </label> </li> <li class="to-field"> <select class="dropdown" name="flex_effect"> <option <?php if (isset($cs_theme_option['flex_effect']) and $cs_theme_option['flex_effect'] == "fade") { echo "selected"; } ?> value="fade" ><?php _e('Fade', 'WeStand'); ?> </option> <option <?php if (isset($cs_theme_option['flex_effect']) and $cs_theme_option['flex_effect'] == "slide") { echo "selected"; } ?> value="slide" ><?php _e('Slide', 'WeStand'); ?> </option> </select> <p><?php _e('Please select Effect for flex Slider', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Auto Play', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="hidden" name="flex_auto_play" value="" /> <input type="checkbox" name="flex_auto_play" <?php if (isset($cs_theme_option['flex_auto_play']) and $cs_theme_option['flex_auto_play'] == "on") { echo "checked"; } ?> class="myClass" /> <p><?php _e('If true, the slideshow will start running on page load', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Animation Speed', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="flex_animation_speed" size="5" class="{validate:{required:true}} bar" value="<?php if (isset($cs_theme_option['flex_animation_speed'])) { echo $cs_theme_option['flex_animation_speed']; } ?> " /> <p><?php _e('How long the slideshow transition takes (in milliseconds)', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Pause Time', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="flex_pause_time" size="5" class="{validate:{required:true}} bar" value="<?php if (isset($cs_theme_option['flex_pause_time'])) { echo $cs_theme_option['flex_pause_time']; } ?> " /> <p><?php _e('Resume slideshow after user interaction (in milliseconds)', 'WeStand'); ?> </p> </li> </ul> </div> <div id="tab-social-network" style="display:none;"> <div class="theme-header"> <h1><?php _e('Social Settings', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Social Network', 'WeStand'); ?> </h4> <p><?php _e('Edit Social Network', 'WeStand'); ?> </p> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Section Title', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="social_net_title" value="<?php if (isset($cs_theme_option['social_net_title'])) { echo $cs_theme_option['social_net_title']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Icon Path', 'WeStand'); ?> </label> </li> <li class="to-field"> <input id="social_net_icon_path_input" type="text" class="small" onblur="javascript:update_image('social_net_icon_path_input_img_div')" /> <input id="social_net_icon_path_input" name="social_net_icon_path_input" type="button" class="uploadfile left" value="Browse"/> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Awesome Font', 'WeStand'); ?> </label> </li> <li class="to-field"> <input class="small" type="text" id="social_net_awesome_input" style="width:420px;" /> <p><?php _e('Put Awesome Font Code like "icon-facebook".', 'WeStand'); ?> </p> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('URL', 'WeStand'); ?> </label> </li> <li class="to-field"> <input class="small" type="text" id="social_net_url_input" style="width:420px;" /> <p><?php _e('Please enter full URL', 'WeStand'); ?> </p> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Title', 'WeStand'); ?> </label> </li> <li class="to-field"> <input class="small" type="text" id="social_net_tooltip_input" style="width:420px;" /> <p><?php _e('Please enter text for icon tooltip', 'WeStand'); ?> </p> </li> <li class="full"> </li> <li class="to-label"></li> <li class="to-field"> <input type="button" value="Add" onclick="javascript:cs_add_social_icon('<?php echo admin_url(); ?> ')" /> </li> </ul> <div class="clear"></div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Already Added Social Icons', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <div class="boxes"> <table class="to-table" border="0" cellspacing="0"> <thead> <tr> <th><?php _e('Icon Path', 'WeStand'); ?> </th> <th><?php _e('URL', 'WeStand'); ?> </th> <th class="centr"><?php _e('Actions', 'WeStand'); ?> </th> </tr> </thead> <tbody id="social_network_area"> <?php if (isset($cs_theme_option['social_net_url']) and count($cs_theme_option['social_net_url']) > 0) { wp_enqueue_style('font-awesome_css', get_template_directory_uri() . '/css/font-awesome.css'); // Register stylesheet // Apply IE conditionals // Enqueue stylesheet $cs_counter_social_network = rand(10000, 20000); $i = 0; //print_r($cs_theme_option['social_net_url']); foreach ($cs_theme_option['social_net_url'] as $val) { //print_r($cs_theme_option['social_net_color_input'][$i]); $cs_counter_social_network++; echo '<tr id="del_' . $cs_counter_social_network . '">'; if (isset($cs_theme_option['social_net_awesome'][$i]) && $cs_theme_option['social_net_awesome'][$i] != '') { echo '<td><i class="fa ' . $cs_theme_option['social_net_awesome'][$i] . ' fa-2x"></td>'; } else { echo '<td><img width="50" src="' . $cs_theme_option['social_net_icon_path'][$i] . '"></td>'; } echo '<td>' . $val . '</td>'; echo '<td class="centr"> <a onclick="javascript:return confirm(\'Are you sure! You want to delete this\')" href="javascript:social_icon_del(' . $cs_counter_social_network . ')">Del</a> | <a href="javascript:cs_toggle(' . $cs_counter_social_network . ')">Edit</a> </td>'; echo '</tr>'; ?> <tr id="<?php echo $cs_counter_social_network; ?> " style="display:none"> <td colspan="3"><ul class="form-elements"> <li class="to-label"> <label><?php _e('Icon Path', 'WeStand'); ?> </label> </li> <li class="to-field"> <input id="social_net_icon_path<?php echo $cs_counter_social_network; ?> " name="social_net_icon_path[]" value="<?php echo $cs_theme_option['social_net_icon_path'][$i]; ?> " type="text" class="small" /> </li> <li><a onclick="cs_toggle('<?php echo $cs_counter_social_network; ?> ')"><img src="<?php echo get_template_directory_uri(); ?> /images/admin/close-red.png" /></a></li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Awesome Font', 'WeStand'); ?> </label> </li> <li class="to-field"> <input class="small" type="text" id="social_net_awesome" name="social_net_awesome[]" value="<?php echo $cs_theme_option['social_net_awesome'][$i]; ?> " style="width:420px;" /> <p><?php _e('Put Awesome Font Code like "icon-flag".', 'WeStand'); ?> </p> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('URL', 'WeStand'); ?> </label> </li> <li class="to-field"> <input class="small" type="text" id="social_net_url" name="social_net_url[]" value="<?php echo $val; ?> " style="width:420px;" /> <p><?php _e('Please enter full URL', 'WeStand'); ?> </p> </li> <li class="full"> </li> <li class="to-label"> <label>Title</label> </li> <li class="to-field"> <input class="small" type="text" id="social_net_tooltip" name="social_net_tooltip[]" value="<?php echo $cs_theme_option['social_net_tooltip'][$i]; ?> " style="width:420px;" /> <p><?php _e('Please enter text for icon tooltip', 'WeStand'); ?> </p> </li> </ul></td> </tr> <?php $i++; } } ?> </tbody> </table> </div> </div> <div id="tab-default-pages" style="display:none;"> <div class="theme-header"> <h1><?php _e('Default Pages', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Default Pages Settings', 'WeStand'); ?> </h4> <p><?php _e('Manage Default Pages (Archive, Search, Categories, Tags and Author Pages)', 'WeStand'); ?> </p> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Pagination', 'WeStand'); ?> </label> </li> <li class="to-field"> <select name="pagination" class="dropdown" onchange="cs_toggle('record_per_page')"> <option <?php if (isset($cs_theme_option['pagination']) and $cs_theme_option['pagination'] == "Show Pagination") { echo "selected"; } ?> ><?php _e('Show Pagination', 'WeStand'); ?> </option> <option <?php if (isset($cs_theme_option['pagination']) and $cs_theme_option['pagination'] == "Single Page") { echo "selected"; } ?> ><?php _e('Single Page', 'WeStand'); ?> </option> </select> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Exerpt Length', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="default_excerpt_length" value="<?php if (isset($cs_theme_option['default_excerpt_length'])) { echo $cs_theme_option['default_excerpt_length']; } ?> " /> </li> </ul> <?php global $cs_xmlObject; $cs_xmlObject = new stdClass(); $cs_xmlObject->sidebar_layout = new stdClass(); if (isset($cs_theme_option['header_banner_style'])) { $cs_xmlObject->header_banner_style = $cs_theme_option['header_banner_style']; } else { $cs_xmlObject->header_banner_style = ''; } if (isset($cs_theme_option['page_subheader_color'])) { $cs_xmlObject->page_subheader_color = $cs_theme_option['page_subheader_color']; } else { $cs_xmlObject->page_subheader_color = ''; } if (isset($cs_theme_option['header_banner_image'])) { $cs_xmlObject->header_banner_image = $cs_theme_option['header_banner_image']; } else { $cs_xmlObject->header_banner_image = ''; } if (isset($cs_theme_option['header_banner_flex_slider'])) { $cs_xmlObject->header_banner_flex_slider = $cs_theme_option['header_banner_flex_slider']; } else { $cs_xmlObject->header_banner_flex_slider = ''; } if (isset($cs_theme_option['custom_slider_id'])) { $cs_xmlObject->custom_slider_id = $cs_theme_option['custom_slider_id']; } else { $cs_xmlObject->custom_slider_id = ''; } if (isset($cs_theme_option['cs_layout'])) { $cs_xmlObject->sidebar_layout->cs_layout = $cs_theme_option['cs_layout']; } else { $cs_xmlObject->sidebar_layout->cs_layout = ''; } if (isset($cs_theme_option['cs_sidebar_left'])) { $cs_xmlObject->sidebar_layout->cs_sidebar_left = $cs_theme_option['cs_sidebar_left']; } else { $cs_xmlObject->sidebar_layout->cs_sidebar_left = ''; } if (isset($cs_theme_option['cs_sidebar_right'])) { $cs_xmlObject->sidebar_layout->cs_sidebar_right = $cs_theme_option['cs_sidebar_right']; } else { $cs_xmlObject->sidebar_layout->cs_sidebar_right = ''; } if (isset($cs_theme_option['cs_layout'])) { if ($cs_theme_option['cs_layout'] == "none") { $cs_xmlObject->sidebar_layout->cs_sidebar_left = ''; $cs_xmlObject->sidebar_layout->cs_sidebar_right = ''; } else { if ($cs_theme_option['cs_layout'] == "left") { $cs_xmlObject->sidebar_layout->cs_sidebar_right = ''; } else { if ($cs_theme_option['cs_layout'] == "right") { $cs_xmlObject->sidebar_layout->cs_sidebar_left = ''; } } } } subheader_meta_layout(); meta_layout('default'); ?> </div> <div id="tab-upload-languages" style="display:none;"> <div class="theme-header"> <h1><?php _e('Upload New Language', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Upload New Language', 'WeStand'); ?> </h4> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Upload Language (MO File)', 'WeStand'); ?> </label> </li> <li class="to-field"> <div class="fileinputs"> <input type="file" class="file" size="78" name="mofile" id="mofile" /> <div class="fakefile"> <input type="text" /> <button><?php _e('Browse', 'WeStand'); ?> </button> </div> </div> <p><?php _e('Please upload new language file (MO format only). It will be uploaded in your themes languages folder.', 'WeStand'); ?> </p> <p><?php _e('Download MO files from', 'WeStand'); ?> <a target="_blank" href="http://translate.wordpress.org/projects/wp/">http://translate.wordpress.org/projects/wp/</a> </p> <p> <button type="button" id="upload_btn"><?php _e('Upload Files!', 'WeStand'); ?> </button> </p> </li> </ul> <ul id="image-list"> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Already Uploaded Languages', 'WeStand'); ?> </label> </li> <li class="to-field"> <strong> <?php $cs_counter = 0; foreach (glob(get_template_directory() . "/languages/*.mo") as $filename) { $cs_counter++; $val = str_replace(get_template_directory() . "/languages/", "", $filename); echo "<p>" . $cs_counter . ". " . str_replace(".mo", "", $val) . "</p>"; } ?> </strong> </li> <p><?php _e('Please copy the language name, open config.php file, find WPLANG constant and set its value by replacing the language name.', 'WeStand'); ?> </p> <p><strong><?php _e('Language Translations', 'WeStand'); ?> </strong><br/><?php _e('All of our Themes are able to be translated into any language. The process of translating the theme is a user responsibility. The following instructions are given as guidance.', 'WeStand'); ?> </p> <ul class="lnag-listing"> <li> <?php _e('1. Open wp-config.php and replace this: define', 'WeStand'); ?> ('WPLANG', '');<?php _e('with this (subsitute the language string (bg_BG) with your own!): define', 'WeStand'); ?> ('WPLANG', 'bg_BG'); </li> <li> <?php _e('2. Download and install POEDIT', 'WeStand'); ?> </li> <li> <?php _e('3. Connect to your site -> open your theme/languages directory', 'WeStand'); ?> </li> <li> <?php _e('4. Download the default.po file and open it with POEDIT.', 'WeStand'); ?> </li> <li> <?php _e('5. Translate file and save it as bg_BG (the file name must match with the string you inserted into wp-config.php)', 'WeStand'); ?> </li> <li> <?php _e('6. Two files will be generated after save. bg_BG.po and bg_BG.mo', 'WeStand'); ?> </li> <li> <?php _e(' 7. Upload the .mo and .po files into wp-content/themes/your-theme/languages folder', 'WeStand'); ?> </li> </li> </ul> </ul> </ul> </div> <div id="tab-upload-languages" style="display:none;"> <div class="theme-header"> <h1><?php _e('Manage Languages', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Upload Languages', 'WeStand'); ?> </h4> <p><?php _e('Upload new language', 'WeStand'); ?> </p> </div> </div> <div id="tab-cause-translation" style="display:none;"> <div class="theme-header"> <h1><?php _e('Cause Translation', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Cause Translation', 'WeStand'); ?> </h4> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Raised', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="cause_raised" value="<?php echo $cs_theme_option['cause_raised']; ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('End Date', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="cause_end_date" value="<?php echo $cs_theme_option['cause_end_date']; ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Goal', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="cause_goal" value="<?php echo $cs_theme_option['cause_goal']; ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Close', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="cause_status" value="<?php echo $cs_theme_option['cause_status']; ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Donors', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="cause_donors" value="<?php echo $cs_theme_option['cause_donors']; ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Donation', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="cause_donation" value="<?php echo $cs_theme_option['cause_donation']; ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Donate Now', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="cause_donate" value="<?php echo $cs_theme_option['cause_donate']; ?> " /> </li> </ul> </div> <div id="tab-contact-translation" style="display:none;"> <div class="theme-header"> <h1><?php _e('Contact Translation', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Contact Translation', 'WeStand'); ?> </h4> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('First Name', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="res_first_name" value="<?php if (isset($cs_theme_option['res_first_name'])) { echo $cs_theme_option['res_first_name']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Last Name', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="res_last_name" value="<?php if (isset($cs_theme_option['res_last_name'])) { echo $cs_theme_option['res_last_name']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Subject', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="trans_subject" value="<?php if (isset($cs_theme_option['trans_subject'])) { echo $cs_theme_option['trans_subject']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Message', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="trans_message" value="<?php if (isset($cs_theme_option['trans_message'])) { echo $cs_theme_option['trans_message']; } ?> " /> </li> </ul> </div> <div id="tab-other-translation" style="display:none;"> <div class="theme-header"> <h1><?php _e('Other Translation', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4 style="padding-bottom:0px;"><?php _e('Other Translation', 'WeStand'); ?> </h4> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('404 Content', 'WeStand'); ?> </label> </li> <li class="to-field"> <textarea name="trans_content_404"><?php if (isset($cs_theme_option['trans_content_404'])) { echo $cs_theme_option['trans_content_404']; } ?> </textarea> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Share Now', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="trans_share_this_post" value="<?php if (isset($cs_theme_option['trans_share_this_post'])) { echo $cs_theme_option['trans_share_this_post']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Current Page', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="trans_current" value="<?php if (isset($cs_theme_option['trans_current'])) { echo $cs_theme_option['trans_current']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Likes', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="trans_likes" value="<?php if (isset($cs_theme_option['trans_likes'])) { echo $cs_theme_option['trans_likes']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Sort By', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="trans_sortby" value="<?php if (isset($cs_theme_option['trans_sortby'])) { echo $cs_theme_option['trans_sortby']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Featured', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="trans_featured" value="<?php if (isset($cs_theme_option['trans_featured'])) { echo $cs_theme_option['trans_featured']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Read More', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="trans_read_more" value="<?php if (isset($cs_theme_option['trans_read_more'])) { echo $cs_theme_option['trans_read_more']; } ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('View All', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" name="trans_view_all" value="<?php if (isset($cs_theme_option['trans_view_all'])) { echo $cs_theme_option['trans_view_all']; } ?> " /> </li> </ul> </div> <!-- import export Start --> <div id="tab-import-export-backup" style="display:none;"> <div class="theme-header"> <h1><?php _e('Backup Options', 'WeStand'); ?> </h1> </div> <div class="theme-help"> <h4><?php _e('Backup Options', 'WeStand'); ?> </h4> <p><?php _e('Theme Options Backup and restore settings', 'WeStand'); ?> </p> </div> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Last Backup Taken on', 'WeStand'); ?> </label> </li> <li class="to-field"> <strong><span id="last_backup_taken"> <?php if (get_option('cs_theme_option_backup_time')) { echo get_option('cs_theme_option_backup_time'); } else { echo "Not Taken Yet"; } ?> </span></strong> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Take Backup', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="button" value="Take Backup" onclick="cs_to_backup('<?php echo admin_url(); ?> ', '<?php echo get_template_directory_uri(); ?> ')" /> <p><?php _e('Take the Backup of your current theme options, it will replace the old backup if you have already taken', 'WeStand'); ?> </p> </li> <li class="full"> </li> <li class="to-label"> <label><?php _e('Restore Backup', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="button" value="Restore Backup" onclick="cs_to_backup_restore('<?php echo admin_url(); ?> ','<?php echo get_template_directory_uri(); ?> ')" /> <p><?php _e('Restore your last backup taken (It will be replaced on your curernt theme options)', 'WeStand'); ?> .</p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Current Theme Option Data', 'WeStand'); ?> </label> </li> <li class="to-field"> <textarea id="theme_option_data" readonly="readonly" onclick="this.select()"><?php echo base64_encode(serialize($cs_theme_option)); ?> </textarea> <p><?php _e('You can copy your current theme data in a text file and import it later by replacing the above text', 'WeStand'); ?> .</p> </li> </ul> <ul class="form-elements"> <li class="to-label"> <label><?php _e('Import Theme Option Data', 'WeStand'); ?> </label> </li> <li class="to-field"> <textarea id="theme_option_data_import" name="theme_option_data_import"></textarea> <p><?php _e('You can paste theme option backup data', 'WeStand'); ?> .</p> <p><input type="button" value="Import This Data" onclick="cs_to_import_export_option('<?php echo admin_url(); ?> ', '<?php echo get_template_directory_uri(); ?> ')" /></p> </li> </ul> </div> <!-- import / export end --> </div> <div class="clear"></div> <!-- Right Column End --> </div> <div class="footer"> <input type="button" value="Reset Option" class="bottom_btn_reset" onclick="cs_to_restore_default('<?php echo admin_url(); ?> ', '<?php echo get_template_directory_uri(); ?> ')" /> <input type="submit" id="submit_btn" name="submit_btn" class="bottom_btn_save" value="Save All Settings" /> <input type="hidden" name="action" value="theme_option_save" /> </div> </div> </div> </form> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/select.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/functions.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/jquery.validate.metadata.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/jquery.validate.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/ddaccordion.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/prettyCheckable.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/jquery.timepicker.js"></script> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /css/admin/jquery.ui.datepicker.css"> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /css/admin/jquery.ui.datepicker.theme.css"> <script type="text/javascript"> jQuery(document).ready(function($){ $('.bg_color').wpColorPicker(); $('textarea.header_code_indent').keydown(function(e) { if(e.keyCode == 9) { var start = $(this).get(0).selectionStart; $(this).val($(this).val().substring(0, start) + " " + $(this).val().substring($(this).get(0).selectionEnd)); $(this).get(0).selectionStart = $(this).get(0).selectionEnd = start + 4; return false; } }); $('textarea.analytics_indent').keydown(function(e) { if(e.keyCode == 9) { var start = $(this).get(0).selectionStart; $(this).val($(this).val().substring(0, start) + " " + $(this).val().substring($(this).get(0).selectionEnd)); $(this).get(0).selectionStart = $(this).get(0).selectionEnd = start + 4; return false; } }); }); function load_default_settings(id) { jQuery("#" + id + " input.button.wp-picker-default").trigger('click'); jQuery("#" + id + " input[type='checkbox'].myClass").each(function(index) { var da = jQuery(this).data('default-header'); var ch = jQuery(this).next().hasClass("checked") if ((da == 'on') && (!ch)) { jQuery(this).next().trigger('click'); } if ((da == 'off') && (ch)) { jQuery(this).next().trigger('click'); } }); jQuery("#" + id + " input[type='text'].vsmall").each(function(index) { var da = jQuery(this).data('default-header'); jQuery(this).val(da); }); jQuery("#" + id + " .to-field input.small").each(function(index) { var da = jQuery(this).data('default-header'); jQuery(this).val(da); jQuery(this).parent().find(".thumb-preview").find('img').attr("src", da) }); jQuery("#" + id + " textarea").each(function(index) { var da = jQuery(this).data('default-header'); jQuery(this).val(da); }); jQuery("#" + id + " select").each(function(index) { var da = jQuery(this).data('default-header'); jQuery(this).find("option[value='" + da + "']").attr("selected", "selected"); }); } </script> <script type="text/javascript"> jQuery(function($) { $( "#launch_date" ).datepicker({ defaultDate: "+1w", dateFormat: "yy-mm-dd", changeMonth: true, numberOfMonths: 1, onSelect: function( selectedDate ) { $( "#launch_date" ).datepicker( "option", "minDate", selectedDate ); } }); }); function toggleDiv(id) { jQuery('.col2').children().hide(); jQuery(id).show(); location.hash = id+"-show"; var link = id.replace('#', ''); jQuery('.categoryitems li').removeClass('active'); jQuery(".menuheader.expandable") .removeClass('openheader'); jQuery(".categoryitems").hide(); jQuery("."+link).addClass('active'); jQuery("."+link) .parent("ul").show().prev().addClass("openheader"); } jQuery(document).ready(function() { jQuery(".categoryitems").hide(); jQuery(".categoryitems:first").show(); jQuery(".menuheader:first").addClass("openheader"); jQuery(".menuheader").live('click', function(event) { if (jQuery(this).hasClass('openheader')){ jQuery(".menuheader").removeClass("openheader"); jQuery(this).next().slideUp(200); return false; } jQuery(".menuheader").removeClass("openheader"); jQuery(this).addClass("openheader"); jQuery(".categoryitems").slideUp(200); jQuery(this).next().slideDown(200); return false; }); var hash = window.location.hash.substring(1); var id = hash.split("-show")[0]; if (id){ jQuery('.col2').children().hide(); jQuery("#"+id).show(); jQuery('.categoryitems li').removeClass('active'); jQuery(".menuheader.expandable") .removeClass('openheader'); jQuery(".categoryitems").hide(); jQuery("."+id).addClass('active'); jQuery("."+id) .parent("ul").slideDown(300).prev().addClass("openheader"); } }); var counter_sidebar = 0; function add_sidebar(){ counter_sidebar++; var sidebar_input = jQuery("#sidebar_input").val(); if ( sidebar_input != "" ) { jQuery("#sidebar_area").append('<tr id="'+counter_sidebar+'"> \ <td><input type="hidden" name="sidebar[]" value="'+sidebar_input+'" />'+sidebar_input+'</td> \ <td class="centr"> <a onclick="javascript:return confirm(\'Are you sure! You want to delete this\')" href="javascript:cs_div_remove('+counter_sidebar+')">Del</a> </td> \ </tr>'); jQuery("#sidebar_input").val(""); } } jQuery().ready(function($) { var container = $('div.container'); // validate the form when it is submitted var validator = $("#frm").validate({ errorContainer: container, errorLabelContainer: $(container), errorElement:'span', errorClass:'ele-error', meta: "validate" }); }); jQuery(document).ready( function($) { var consoleTimeout; $('.minicolors').each( function() { $(this).minicolors({ change: function(hex, opacity) { // Generate text to show in console text = hex ? hex : 'transparent'; if( opacity ) text += ', ' + opacity; text += ' / ' + $(this).minicolors('rgbaString'); } }); }); }); (function () { var input = document.getElementById("mofile") var upload_btn = document.getElementById("upload_btn"), formdata = false; if (window.FormData) { formdata = new FormData(); } upload_btn.addEventListener("click", function (evt) { var i = 0, len = input.files.length, txt, reader, file; for ( ; i < len; i++ ) { file = input.files[i]; if (formdata) { formdata.append("mofile[]", file); } } if (formdata) { jQuery.ajax({ url: '<?php echo get_template_directory_uri(); ?> /include/lang_upload.php', type: "POST", data: formdata, processData: false, contentType: false, success: function (res) { jQuery("#mofile").val(""); jQuery(".form-msg").show(); jQuery(".form-msg").html(res); } }); } }, false); }()); </script> <script type="text/javascript"> jQuery(document).ready(function($){ jQuery("#colorpickerwrapp span.col-box").live("click",function(event) { var a = jQuery(this).data('color'); jQuery("#cs_custom_color_style").val(a); jQuery('.wp-color-result').css('background-color', a); jQuery("#colorpickerwrapp span.col-box") .removeClass('active'); jQuery(this).addClass("active"); }); }); </script> <?php }
function cs_page_bulider($post) { ?> <div class="page-wrap page-opts" style="overflow:hidden; position:relative; height: 705px;"> <div class="page-builder"> <div class="page-head"> <h5>Layout Sections</h5> <div class="add-widget"> <span class="addwidget">+ Add Page Elements</span> <div class="widgets-list"> <a href="javascript:ajaxSubmit('cs_pb_blog')"><?php _e('Blog', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_cause')"><?php _e('Cause', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_column')"><?php _e('Column', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_team')"><?php _e('Team', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_contact')"><?php _e('Contact', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_event')"><?php _e('Events', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_gallery')"><?php _e('Gallery', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_tabs')"><?php _e('Tabs', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_video')"><?php _e('Video', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_accordion')"><?php _e('Accordion', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_quote')"><?php _e('Quote', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_services')"><?php _e('Services', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_map')"><?php _e('Map', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_slider')"><?php _e('Slider', 'WeStand'); ?> </a> <a href="javascript:ajaxSubmit('cs_pb_parallax')"><?php _e('FullWidth', 'WeStand'); ?> </a> </div> </div> </div> </div> <div class="clear"></div> <div id="add_page_builder_item"> <?php global $cs_node, $cs_count_node, $cs_xmlObject, $cs_theme_option; $cs_count_node = 0; $count_widget = 0; $page_title = ''; $page_content = ''; $page_sub_title = ''; $header_banner = ''; $switch_footer_widgets = ''; $cs_page_bulider = get_post_meta($post->ID, "cs_page_builder", true); if ($cs_page_bulider != "") { $cs_xmlObject = new stdClass(); $cs_xmlObject = new SimpleXMLElement($cs_page_bulider); $count_widget = count($cs_xmlObject->children()) - 10; foreach ($cs_xmlObject->children() as $cs_node) { if ($cs_node->getName() == "gallery") { cs_pb_gallery(1); } else { if ($cs_node->getName() == "slider") { cs_pb_slider(1); } else { if ($cs_node->getName() == "cause") { cs_pb_cause(1); } else { if ($cs_node->getName() == "team") { cs_pb_team(1); } else { if ($cs_node->getName() == "blog") { cs_pb_blog(1); } else { if ($cs_node->getName() == "event") { cs_pb_event(1); } else { if ($cs_node->getName() == "contact") { cs_pb_contact(1); } else { if ($cs_node->getName() == "column") { cs_pb_column(1); } else { if ($cs_node->getName() == "services") { cs_pb_services(1); } else { if ($cs_node->getName() == "accordions") { cs_pb_accordion(1); } else { if ($cs_node->getName() == "quote") { cs_pb_quote(1); } else { if ($cs_node->getName() == "video") { cs_pb_video(1); } else { if ($cs_node->getName() == "tabs") { cs_pb_tabs(1); } else { if ($cs_node->getName() == "map") { cs_pb_map(1); } else { if ($cs_node->getName() == "parallax") { cs_pb_parallax(1); } } } } } } } } } } } } } } } } } if ($cs_page_bulider != "") { if (isset($cs_xmlObject->page_content)) { $page_content = $cs_xmlObject->page_content; } if (isset($cs_xmlObject->page_sub_title)) { $page_sub_title = $cs_xmlObject->page_sub_title; } if (isset($cs_xmlObject->header_banner)) { $header_banner = $cs_xmlObject->header_banner; } } else { //$header_styles = $cs_theme_option['default_header']; } ?> <div id="no_widget" class="placehoder">Page Builder in Empty, Please Select Page Element. <img src="<?php echo get_template_directory_uri(); ?> /images/admin/bg-arrowup.png" alt="" /></div> </div> <div id="loading" class="builderload"></div> <div class="clear"></div> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/prettyCheckable.js"></script> <div class="elementhidden"> <ul class="form-elements"> <li class="to-label"><label><?php _e('Show Page Description', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="page_content" class="dropdown"> <option value="Yes" <?php if ($page_content == "Yes") { echo "selected"; } ?> ><?php _e('Yes', 'WeStand'); ?> </option> <option value="No" <?php if ($page_content == "No") { echo "selected"; } ?> ><?php _e('No', 'WeStand'); ?> </option> </select> <p><?php _e('Show the description of the page', 'WeStand'); ?> </p> </li> </ul> </div> <?php subheader_meta_layout(); meta_layout(); ?> <input type="hidden" name="page_builder_form" value="1" /> <div class="clear"></div> </div> <div class="clear"></div> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/jquery.scrollTo-min.js"></script> <script> jQuery(function() { jQuery( "#add_page_builder_item" ).sortable({ cancel : 'div div.poped-up' }); //jQuery( "#add_page_builder_item" ).disableSelection(); }); </script> <script type="text/javascript"> var count_widget = <?php echo $count_widget; ?> ; function ajaxSubmit(action){ counter++; count_widget++; var newCustomerForm = "action=" + action + '&counter=' + counter; jQuery.ajax({ type:"POST", url: "<?php echo admin_url(); ?> /admin-ajax.php", data: newCustomerForm, success:function(data){ jQuery("#add_page_builder_item").append(data); if (count_widget > 0) jQuery("#add_page_builder_item").addClass('hasclass'); //alert(count_widget); } }); //return false; } </script> <?php }
function cs_event_meta_data($post) { $cs_event_meta = get_post_meta($post->ID, "cs_event_meta", true); global $cs_xmlObject; if ($cs_event_meta != "") { $cs_xmlObject = new SimpleXMLElement($cs_event_meta); $event_thumb_view = $cs_xmlObject->event_thumb_view; $event_social_sharing = $cs_xmlObject->event_social_sharing; $event_start_time = $cs_xmlObject->event_start_time; $event_end_time = $cs_xmlObject->event_end_time; $event_all_day = $cs_xmlObject->event_all_day; $event_address = $cs_xmlObject->event_address; $event_loc_lat = $cs_xmlObject->event_loc_lat; $event_loc_long = $cs_xmlObject->event_loc_long; $event_loc_zoom = $cs_xmlObject->event_loc_zoom; $event_buy_now = $cs_xmlObject->event_buy_now; $event_ticket_options = $cs_xmlObject->event_ticket_options; $event_map = $cs_xmlObject->event_map; $event_ticket_color = $cs_xmlObject->event_ticket_color; $post_author_info_show = $cs_xmlObject->post_author_info_show; $event_calendar = $cs_xmlObject->event_calendar; $event_pagination = $cs_xmlObject->event_pagination; $event_tags = $cs_xmlObject->event_tags; $event_like = $cs_xmlObject->event_like; } else { $slider_id = ''; $event_thumb_view = ''; $event_related = ''; $event_start_time = ''; $event_end_time = ''; $event_all_day = ''; $event_address = ''; $event_loc_lat = ''; $event_loc_long = ''; $event_loc_zoom = ''; $event_map = ''; $event_buy_now = ''; $event_ticket_options = 'Buy Now $99'; $event_ticket_color = '#ce1a37'; $post_author_info_show = 'on'; $event_social_sharing = 'on'; $event_calendar = $event_pagination = $event_tags = $event_like = 'on'; // event_calendar, event_pagination, event_tags } $cs_event_from_date = get_post_meta($post->ID, "cs_event_from_date", true); $cs_event_to_date = get_post_meta($post->ID, "cs_event_to_date", true); ?> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/select.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/prettyCheckable.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/jquery.timepicker.js"></script> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /css/admin/jquery.ui.datepicker.css"> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /css/admin/jquery.ui.datepicker.theme.css"> <script> jQuery(document).ready(function($){ $('.bg_color').wpColorPicker(); }); jQuery(function($) { $('#event_start_time').timepicker(); $('#event_end_time').timepicker(); }); jQuery(function($) { //$('#event_start_timee').timepicker({ 'scrollDefaultNow': true }); //$('#event_end_timee').timepicker({ 'scrollDefaultNow': true }); $( "#from_date" ).datepicker({ defaultDate: "+1w", dateFormat: "yy-mm-dd", changeMonth: true, numberOfMonths: 1, onSelect: function( selectedDate ) { $( "#to_date" ).datepicker( "option", "minDate", selectedDate ); } }); $( "#to_date" ).datepicker({ defaultDate: "+1w", dateFormat: "yy-mm-dd", changeMonth: true, numberOfMonths: 1, onSelect: function( selectedDate ) { $( "#from_date" ).datepicker( "option", "maxDate", selectedDate ); } }); }); </script> <div class="page-wrap"> <div class="option-sec" style="margin-bottom:0;"> <div class="opt-conts"> <?php subheader_meta_layout(); ?> <ul class="form-elements"> <li class="to-label"><label><?php _e('Thumbnail View', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="event_thumb_view" class="dropdown" onchange="javascript:new_toggle(this.value)"> <option <?php if ($event_thumb_view == "Single Image") { echo "selected"; } ?> ><?php _e('Single Image', 'WeStand'); ?> </option> <option <?php if ($event_thumb_view == "Map") { echo "selected"; } ?> ><?php _e('Map', 'WeStand'); ?> </option> </select> <p id="post_thumb_image" style="display:<?php if ($event_thumb_view == "Single Image" or $event_thumb_view == "") { echo 'inline"'; } else { echo 'none'; } ?> "></p> </li> </ul> <div class="clear"></div> <div class="opt-head"> <h4><?php _e('Event Date, Time and Location', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Event Date', 'WeStand'); ?> </label></li> <li class="to-field short-field"> <input type="text" id="from_date" name="event_from_date" value="<?php if ($cs_event_from_date == '') { echo gmdate("Y-m-d"); } else { echo $cs_event_from_date; } ?> " /> <p><?php _e('Start date', 'WeStand'); ?> </p> </li> <li class="to-label short-label"><label><?php _e('To', 'WeStand'); ?> </label></li> <li class="to-field short-field"> <input type="text" id="to_date" name="event_to_date" value="<?php if ($cs_event_to_date == '') { echo gmdate("Y-m-d"); } else { echo $cs_event_to_date; } ?> " /> <p><?php _e('End date', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements event-day noborder"> <li class="to-label"><label><?php _e('Start Time', 'WeStand'); ?> </label></li> <li class="to-field"> <div id="event_time" <?php if ($event_all_day == 'on') { echo 'style="display:none"'; } ?> > <div class="cs-left-sec"> <input id="event_start_time" name="event_start_time" value="<?php echo $event_start_time; ?> " type="text" class="vsmall" /> <label class="first-label"><?php _e('Start time', 'WeStand'); ?> </label></div> <span class="short"><?php _e('To', 'WeStand'); ?> </span> <div class="cs-left-sec"> <input id="event_end_time" name="event_end_time" value="<?php echo $event_end_time; ?> " type="text" class="vsmall" /> <label class="sec-label"><?php _e('End time', 'WeStand'); ?> </label></div> <div class="checkbox-list" style="padding-top:15px;"> <div class="checkbox-item"> <input type="checkbox" name="event_all_day" value="on" <?php if ($event_all_day == 'on') { echo "checked"; } ?> onclick="cs_toggle('event_time')" class="styled" /> <label><?php _e('All Day', 'WeStand'); ?> </label> </div> </div> </div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Location / Address', 'WeStand'); ?> </label></li> <li class="to-field"> <?php //echo $event_address."<br />"; query_posts(array('post_type' => 'event-location')); while (have_posts()) { the_post(); //echo get_the_ID(); } ?> <select name="event_address" class="dropdown"> <option value="0"><?php _e('Select Map Location', 'WeStand'); ?> </option> <?php query_posts(array('posts_per_page' => "-1", 'post_status' => 'publish', 'post_type' => 'event-location')); while (have_posts()) { the_post(); ?> <option <?php if ($event_address == get_the_ID()) { echo "selected"; } ?> value="<?php the_ID(); ?> "><?php the_title(); ?> </option> <?php } ?> </select> </li> </ul> <ul class="form-elements noborder" id="event_map"> <li class="to-label"><label><?php _e('Show Map', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="event_map" class="myClass" <?php if (empty($event_map) || $event_map == "on") { echo "checked"; } ?> /></div> </li> </ul> <?php if (empty($_GET['post'])) { ?> <ul class="form-elements"> <li class="to-label"><label><?php _e('Repeat', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="repeat" class="dropdown" onchange="toggle_with_value('num_repeat', this.value)"> <option value="0"><?php _e('-- Never Repeat --', 'WeStand'); ?> </option> <option value="+1 day"><?php _e('Every Day', 'WeStand'); ?> </option> <option value="+1 week"><?php _e('Every Week', 'WeStand'); ?> </option> <option value="+1 month"><?php _e('Every Month', 'WeStand'); ?> </option> </select> </li> </ul> <ul class="form-elements" id="num_repeat" style="display:none"> <li class="to-label"><label><?php _e('Repeat how many time', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="num_repeat" class="dropdown"> <?php for ($i = 1; $i <= 25; $i++) { ?> <option><?php echo $i; ?> </option> <?php } ?> </select> </li> </ul> <?php } ?> <div class="clear"></div> <div class="opt-head"> <h4><?php _e('Ticket Options', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements noborder"> <li class="to-label"> <label><?php _e('Button Title and Price', 'WeStand'); ?> </label> </li> <li class="to-field"> <input type="text" id="event_ticket_options" name="event_ticket_options" value="<?php echo $event_ticket_options; ?> " /> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Buy Now URL', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="event_buy_now" name="event_buy_now" value="<?php echo $event_buy_now; ?> " /> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Ticket Button Color', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" name="event_ticket_color" value="<?php echo $event_ticket_color; ?> " class="bg_color" /> </li> </ul> <div class="clear"></div> <div class="opt-head"> <h4><?php _e('Other Options', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Post Author', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="post_author_info_show" value="on" class="myClass" <?php if ($post_author_info_show == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Social Sharing', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="event_social_sharing" value="on" class="myClass" <?php if ($event_social_sharing == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Tags', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="event_tags" value="on" class="myClass" <?php if ($event_tags == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Next Previous button', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="event_pagination" value="on" class="myClass" <?php if ($event_pagination == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Add to calendar button', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="event_calendar" value="on" class="myClass" <?php if ($event_calendar == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Like Button', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="event_like" value="on" class="myClass" <?php if ($event_like == 'on') { echo "checked"; } ?> /></div> </li> </ul> </div> </div> <div class="clear"></div> <?php meta_layout(); ?> <input type="hidden" name="event_meta_form" value="1" /> <div class="clear"></div> </div> <?php }
function cs_meta_post($post) { $post_xml = get_post_meta($post->ID, "post", true); global $cs_xmlObject; if ($post_xml != "") { $cs_xmlObject = new SimpleXMLElement($post_xml); $sub_title = $cs_xmlObject->sub_title; $post_thumb_view = $cs_xmlObject->post_thumb_view; $post_featured_image_as_thumbnail = $cs_xmlObject->post_featured_image_as_thumbnail; $post_thumb_audio = $cs_xmlObject->post_thumb_audio; $post_thumb_video = $cs_xmlObject->post_thumb_video; $post_thumb_slider = $cs_xmlObject->post_thumb_slider; $post_thumb_slider_type = $cs_xmlObject->post_thumb_slider_type; $inside_post_thumb_view = $cs_xmlObject->inside_post_thumb_view; $inside_post_featured_image_as_thumbnail = $cs_xmlObject->inside_post_featured_image_as_thumbnail; $inside_post_thumb_audio = $cs_xmlObject->inside_post_thumb_audio; $inside_post_thumb_video = $cs_xmlObject->inside_post_thumb_video; $inside_post_thumb_slider = $cs_xmlObject->inside_post_thumb_slider; $inside_post_thumb_slider_type = $cs_xmlObject->inside_post_thumb_slider_type; $post_social_sharing = $cs_xmlObject->post_social_sharing; $post_author_info_show = $cs_xmlObject->post_author_info_show; $post_tags_show = $cs_xmlObject->post_tags_show; $post_pagination_show = $cs_xmlObject->post_pagination_show; } else { $sub_title = ''; $post_thumb_view = ''; $post_featured_image_as_thumbnail = ''; $post_thumb_audio = ''; $post_thumb_video = ''; $post_thumb_slider = ''; $post_thumb_slider_type = ''; $inside_post_thumb_view = ''; $inside_post_featured_image_as_thumbnail = ''; $inside_post_thumb_audio = ''; $inside_post_thumb_video = ''; $inside_post_thumb_slider = ''; $inside_post_thumb_slider_type = ''; $post_social_sharing = 'on'; $post_author_info_show = 'on'; $post_tags_show = $post_pagination_show = 'on'; } ?> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/select.js"></script> <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?> /scripts/admin/prettyCheckable.js"></script> <div class="page-wrap"> <div class="option-sec row"> <?php subheader_meta_layout(); ?> <div class="clear"></div> <div class="opt-conts"> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Thumbnail View', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="post_thumb_view" class="dropdown" onchange="javascript:new_toggle(this.value)"> <option <?php if ($post_thumb_view == "Single Image") { echo "selected"; } ?> ><?php _e('Single Image', 'WeStand'); ?> </option> <option <?php if ($post_thumb_view == "Audio") { echo "selected"; } ?> ><?php _e('Audio', 'WeStand'); ?> </option> <option <?php if ($post_thumb_view == "Video") { echo "selected"; } ?> value="Video"><?php _e('Video/Soundcloud', 'WeStand'); ?> </option> <option <?php if ($post_thumb_view == "Slider") { echo "selected"; } ?> ><?php _e('Slider', 'WeStand'); ?> </option> </select> <p id="post_thumb_image" style="display:<?php if ($post_thumb_view == "Single Image" or $post_thumb_view == "") { echo 'inline"'; } else { echo 'none'; } ?> "><?php _e('Use Featured Image as Thumbnail', 'WeStand'); ?> </p> </li> <ul class="form-elements" id="post_thumb_audio" style="display:<?php if ($post_thumb_view == "Audio") { echo 'inline"'; } else { echo 'none'; } ?> " > <li class="to-label"><label><?php _e('Audio URL', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="post_thumb_audio2" name="post_thumb_audio" value="<?php echo htmlspecialchars($post_thumb_audio); ?> " class="txtfield" /> <input type="button" id="post_thumb_audio2" name="post_thumb_audio2" class="uploadfile left" value="Browse"/> <p><?php _e('Enter Specific Audio URL (Youtube, Vimeo and all otheres wordpress supported)', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements" id="post_thumb_video" style="display:<?php if ($post_thumb_view == "Video") { echo 'inline"'; } else { echo 'none'; } ?> " > <li class="to-label"><label><?php _e('Use featured image as video thumbnail', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="post_featured_image_as_thumbnail" value="on" class="styled" <?php if ($post_featured_image_as_thumbnail == 'on') { echo "checked"; } ?> /></div> <p><?php _e('It will work only for self hosted video', 'WeStand'); ?> </p> </li> <li class="full"> </li> <li class="to-label"><label><?php _e('Thumbnail Video URL', 'WeStand'); ?> </label></li> <li class="to-field"> <input id="post_thumb_video2" name="post_thumb_video" value="<?php echo $post_thumb_video; ?> " type="text" class="small" /> <input id="post_thumb_video2" name="post_thumb_video2" type="button" class="uploadfile left" value="Browse"/> <p><?php _e('Enter Specific Video URL (Youtube, Vimeo and all otheres wordpress supported) OR you can select it from your media library', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements noborder" id="post_thumb_slider" style="display:<?php if ($post_thumb_view == "Slider") { echo 'inline"'; } else { echo 'none'; } ?> " > <li class="to-label"><label><?php _e('Select Slider', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="post_thumb_slider" class="dropdown"> <option value="0"><?php _e('-- Select Slider --', 'WeStand'); ?> </option> <?php $query = array('posts_per_page' => '-1', 'post_type' => 'cs_slider', 'orderby' => 'ID', 'post_status' => 'publish'); $wp_query = new WP_Query($query); while ($wp_query->have_posts()) { $wp_query->the_post(); ?> <option <?php if (get_the_ID() == $post_thumb_slider) { echo "selected"; } ?> value="<?php the_ID(); ?> "><?php the_title(); ?> </option> <?php } ?> </select> </li> <li class="full"> </li> </ul> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Inside Post Thumbnail View', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="inside_post_thumb_view" class="dropdown" onchange="javascript:new_toggle_inside_post(this.value)"> <option <?php if ($inside_post_thumb_view == "Single Image") { echo "selected"; } ?> ><?php _e('Single Image', 'WeStand'); ?> </option> <option <?php if ($inside_post_thumb_view == "Audio") { echo "selected"; } ?> ><?php _e('Audio', 'WeStand'); ?> </option> <option <?php if ($inside_post_thumb_view == "Video") { echo "selected"; } ?> value="Video"><?php _e('Video/Soundcloud', 'WeStand'); ?> </option> <option <?php if ($inside_post_thumb_view == "Slider") { echo "selected"; } ?> ><?php _e('Slider', 'WeStand'); ?> </option> </select> <p id="inside_post_thumb_image" style="display:<?php if ($inside_post_thumb_view == "Single Image" or $inside_post_thumb_view == "") { echo 'inline"'; } else { echo 'none'; } ?> "><?php _e('Use Featured Image as Thumbnail', 'WeStand'); ?> </p> </li> <ul class="form-elements" id="inside_post_thumb_audio" style="display:<?php if ($inside_post_thumb_view == "Audio") { echo 'inline"'; } else { echo 'none'; } ?> " > <li class="to-label"><label><?php _e('Audio URL', 'WeStand'); ?> </label></li> <li class="to-field"> <input type="text" id="inside_post_thumb_audio2" name="inside_post_thumb_audio" value="<?php echo htmlspecialchars($inside_post_thumb_audio); ?> " class="txtfield" /> <input type="button" id="inside_post_thumb_audio2" name="inside_post_thumb_audio2" class="uploadfile left" value="Browse"/> <p><?php _e('Enter Specific Audio URL (Youtube, Vimeo and all otheres wordpress supported)', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements" id="inside_post_thumb_video" style="display:<?php if ($inside_post_thumb_view == "Video") { echo 'inline"'; } else { echo 'none'; } ?> " > <li class="to-label"><label><?php _e('Use featured image as video thumbnail', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="inside_post_featured_image_as_thumbnail" value="on" class="styled" <?php if ($inside_post_featured_image_as_thumbnail == 'on') { echo "checked"; } ?> /></div> <p><?php _e('It will work only for self hosted video', 'WeStand'); ?> </p> </li> <li class="full"> </li> <li class="to-label"><label><?php _e('Thumbnail Video URL', 'WeStand'); ?> </label></li> <li class="to-field"> <input id="inside_post_thumb_video2" name="inside_post_thumb_video" value="<?php echo $inside_post_thumb_video; ?> " type="text" class="small" /> <input id="inside_post_thumb_video2" name="inside_post_thumb_video2" type="button" class="uploadfile left" value="Browse"/> <p><?php _e('Enter Specific Video URL (Youtube, Vimeo and all otheres wordpress supported) OR you can select it from your media library', 'WeStand'); ?> </p> </li> </ul> <ul class="form-elements" id="inside_post_thumb_slider" style="display:<?php if ($inside_post_thumb_view == "Slider") { echo 'inline"'; } else { echo 'none'; } ?> " > <li class="to-label"><label><?php _e('Select Slider', 'WeStand'); ?> </label></li> <li class="to-field"> <select name="inside_post_thumb_slider" class="dropdown"> <option value="0"><?php _e('-- Select Slider --', 'WeStand'); ?> </option> <?php $query = array('posts_per_page' => '-1', 'post_type' => 'cs_slider', 'orderby' => 'ID', 'post_status' => 'publish'); $wp_query = new WP_Query($query); while ($wp_query->have_posts()) { $wp_query->the_post(); ?> <option <?php if (get_the_ID() == $inside_post_thumb_slider) { echo "selected"; } ?> value="<?php the_ID(); ?> "><?php the_title(); ?> </option> <?php } ?> </select> </li> <li class="full"> </li> </ul> </ul> <div class="clear"></div> <div class="opt-head"> <h4><?php _e('Other Option', 'WeStand'); ?> </h4> <div class="clear"></div> </div> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Social Sharing', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="post_social_sharing" value="on" class="myClass" <?php if ($post_social_sharing == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Post Author', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="post_author_info_show" value="on" class="myClass" <?php if ($post_author_info_show == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements noborder"> <li class="to-label"><label><?php _e('Tags', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="post_tags_show" value="on" class="myClass" <?php if (isset($post_tags_show) && $post_tags_show == 'on') { echo "checked"; } ?> /></div> </li> </ul> <ul class="form-elements"> <li class="to-label"><label><?php _e('Next Previous Button', 'WeStand'); ?> </label></li> <li class="to-field"> <div class="on-off"><input type="checkbox" name="post_pagination_show" value="on" class="myClass" <?php if (isset($post_pagination_show) && $post_pagination_show == 'on') { echo "checked"; } ?> /></div> </li> </ul> </div> </div> <div class="clear"></div> <?php meta_layout(); ?> <input type="hidden" name="post_meta_form" value="1" /> </div> <?php }