Guest User

Untitled

a guest
Apr 6th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.87 KB | None | 0 0
  1. <?php
  2. $current_options = get_option( 'busiprof_theme_options' );
  3. if(isset($_POST['busiprof_settings_save_2']))
  4. {
  5. if($_POST['busiprof_settings_save_2'] == 1)
  6. {
  7. if ( empty($_POST) || !wp_verify_nonce($_POST['busiprof_gernalsetting_nonce_customization'],'busiprof_customization_nonce_gernalsetting') )
  8. {
  9. print 'Sorry, your nonce did not verify.';
  10. exit;
  11. }
  12. else
  13. {
  14. $current_options['home_project_heading_one'] = sanitize_text_field($_POST['home_project_heading_one']);
  15. $current_options['home_project_heading_two'] = sanitize_text_field($_POST['home_project_heading_two']);
  16. $current_options['project_tagline'] = sanitize_text_field($_POST['project_tagline']);
  17.  
  18. $current_options['project_title_one'] = sanitize_text_field($_POST['project_title_one']);
  19. $current_options['project_thumb_one'] = sanitize_text_field($_POST['project_thumb_one']);
  20. $current_options['project_text_one'] = sanitize_text_field($_POST['project_text_one']);
  21. $current_options['project_one_url'] = sanitize_text_field($_POST['project_one_url']);
  22.  
  23. $current_options['project_title_two'] = sanitize_text_field($_POST['project_title_two']);
  24. $current_options['project_thumb_two'] = sanitize_text_field($_POST['project_thumb_two']);
  25. $current_options['project_text_two'] = sanitize_text_field($_POST['project_text_two']);
  26. $current_options['project_two_url'] = sanitize_text_field($_POST['project_two_url']);
  27.  
  28. $current_options['project_title_three'] = sanitize_text_field($_POST['project_title_three']);
  29. $current_options['project_thumb_three'] = sanitize_text_field($_POST['project_thumb_three']);
  30. $current_options['project_text_three'] = sanitize_text_field($_POST['project_text_three']);
  31. $current_options['project_three_url'] = sanitize_text_field($_POST['project_three_url']);
  32.  
  33. $current_options['project_title_four'] = sanitize_text_field($_POST['project_title_four']);
  34. $current_options['project_thumb_four'] = sanitize_text_field($_POST['project_thumb_four']);
  35. $current_options['project_text_four'] = sanitize_text_field($_POST['project_text_four']);
  36. $current_options['project_four_url'] = sanitize_text_field($_POST['project_four_url']);
  37. // projects section enabled yes ya no
  38. if($_POST['enable_projects'])
  39. { echo $current_options['enable_projects']= sanitize_text_field($_POST['enable_projects']); }
  40. else { echo $current_options['enable_projects']="off"; }
  41.  
  42. update_option('busiprof_theme_options' , stripslashes_deep($current_options));
  43. }
  44. }
  45. if($_POST['busiprof_settings_save_2'] == 2)
  46. {
  47. do_action('Busiprof_restore_data', '2');
  48. }
  49. }
  50.  
  51.  
  52. ?>
  53. <form method="post" action = "" id="theme_options_home_2">
  54. <?php wp_nonce_field('busiprof_customization_nonce_gernalsetting','busiprof_gernalsetting_nonce_customization'); ?>
  55. <div class="postbox" id="home_page_project_1">
  56. <div title="Click to toggle" class="handlediv"><br></div>
  57. <h3 class="hndle">
  58. <span>
  59. <?php _e('Recent Projects','busi_prof');?>
  60. <span class="postbox-title-action">
  61. </h3>
  62. <div class="inside">
  63. <p><h4 class="heading"><?php _e('Enable Projects on Front-Page ','busi_prof');?><input type="checkbox" <?php if($current_options['enable_projects']=='on') echo "checked='checked'"; ?> id="enable_projects" name="enable_projects" >&nbsp;&nbsp;<span class="icon help"><span class="tooltip"><?php _e('Enable Projects On Home Page','busi_prof');?></span></span></h4>
  64. </p>
  65. <p><h4 class="heading"><?php _e('Home Project Heading One','busi_prof');?></h4>
  66. <input class="inputwidth" type="text" value="<?php if($current_options['home_project_heading_one']!='') { echo esc_attr($current_options['home_project_heading_one']); } ?>" id="home_project_heading_one" name="home_project_heading_one" size="36" />
  67. <span class="icon help">
  68. <span class="tooltip"><?php _e('Enter home project heading one','busi_prof');?></span></span>
  69. </span>
  70. </p>
  71. <p><h4 class="heading"><?php _e('Home Project Heading Two','busi_prof');?></h4>
  72. <input class="inputwidth" type="text" value="<?php if($current_options['home_project_heading_two']!='') { echo esc_attr($current_options['home_project_heading_two']); } ?>" id="home_project_heading_two" name="home_project_heading_two" size="36" />
  73. <span class="icon help">
  74. <span class="tooltip"><?php _e('Enter home project heading two','busi_prof');?></span></span>
  75. </span>
  76. </p>
  77. <p><h4 class="heading"><?php _e('Project Tagline','busi_prof');?></h4>
  78. <textarea rows="5" cols="75" name="project_tagline" id="project_tagline"><?php if($current_options['project_tagline']!='') { echo esc_attr($current_options['project_tagline']); } ?></textarea>
  79. <span class="icon help">
  80. <span class="tooltip"><?php _e('Enter home project tagline','busi_prof');?></span></span>
  81. </span>
  82. </p>
  83. </div>
  84. </div>
  85. <div class="postbox" id="home_page_project_2">
  86. <div title="Click to toggle" class="handlediv"><br></div>
  87. <h3 class="hndle">
  88. <span>
  89. <?php _e('Projects One','busi_prof');?>
  90. <span class="postbox-title-action">
  91. </h3>
  92. <div class="inside">
  93. <p><h4 class="heading"><?php _e('Projectt title one','busi_prof');?></h4>
  94. <input class="inputwidth" type="text" value="<?php if($current_options['project_title_one']!='') { echo esc_attr($current_options['project_title_one']); } ?>" id="project_title_one" name="project_title_one" size="36" />
  95. <span class="icon help">
  96. <span class="tooltip"><?php _e('Enter home project title one','busi_prof');?></span></span>
  97. </span>
  98. </p>
  99. <p><h4 class="heading"><?php _e('Project thumb one','busi_prof');?></h4>
  100. <input class="inputwidth" type="text" value="<?php if($current_options['project_thumb_one']!='') { echo esc_attr($current_options['project_thumb_one']); } ?>" id="project_thumb_one" name="project_thumb_one" size="36" />
  101. <input type="button" id="upload_button" value="Select Image" class="upload_image_button" />
  102. <span class="icon help">
  103. <span class="tooltip"><?php _e('Enter home project thumb one 495 x 265','busi_prof');?></span></span>
  104. </span>
  105. </p>
  106. <p><h4 class="heading"><?php _e('Project text ','busi_prof');?></h4>
  107. <textarea rows="5" cols="75" name="project_text_one" id="project_text_one"><?php if($current_options['project_text_one']!='') { echo esc_attr($current_options['project_text_one']); } ?></textarea>
  108. <span class="icon help">
  109. <span class="tooltip"><?php _e('Enter project description','busi_prof');?></span></span>
  110. </span>
  111. </p>
  112. <input class="inputwidth" type="hidden" value="<?php if($current_options['project_one_url']!='') { echo esc_attr($current_options['project_one_url']); } ?>" id="project_one_url" name="project_one_url" size="36" />
  113. </div>
  114. </div>
  115. <div class="postbox" id="home_page_project_3">
  116. <div title="Click to toggle" class="handlediv"><br></div>
  117. <h3 class="hndle">
  118. <span>
  119. <?php _e('Projects Two','busi_prof');?>
  120. <span class="postbox-title-action">
  121. </h3>
  122. <div class="inside">
  123. <p><h4 class="heading"><?php _e('Projectt title two','busi_prof');?></h4>
  124. <input class="inputwidth" type="text" value="<?php if($current_options['project_title_two']!='') { echo esc_attr($current_options['project_title_two']); } ?>" id="project_title_two" name="project_title_two" size="36" />
  125. <span class="icon help">
  126. <span class="tooltip"><?php _e('Enter project title','busi_prof');?></span></span>
  127. </span>
  128. </p>
  129. <p><h4 class="heading"><?php _e('Project thumb two','busi_prof');?></h4>
  130. <input class="inputwidth" type="text" value="<?php if($current_options['project_thumb_two']!='') { echo esc_attr($current_options['project_thumb_two']); } ?>" id="project_thumb_two" name="project_thumb_two" size="36" />
  131. <input type="button" id="upload_button" value="Select Image" class="upload_image_button" />
  132. <span class="icon help">
  133. <span class="tooltip"><?php _e('Enter project thumb 495 X 265','busi_prof');?></span></span>
  134. </span>
  135. </p>
  136. <p><h4 class="heading"><?php _e('Project text ','busi_prof');?></h4>
  137. <textarea rows="5" cols="75" name="project_text_two" id="project_text_two"><?php if($current_options['project_text_two']!='') { echo esc_attr($current_options['project_text_two']); } ?></textarea>
  138. <span class="icon help">
  139. <span class="tooltip"><?php _e('Enter description','busi_prof');?></span></span>
  140. </span>
  141. </p>
  142. <input class="inputwidth" type="hidden" value="<?php if($current_options['project_two_url']!='') { echo esc_attr($current_options['project_two_url']); } ?>" id="project_two_url" name="project_two_url" size="36" />
  143. <!--<p><h4 class="heading"><?php _e('Project Tagline','busi_prof');?></h4>
  144. <input class="inputwidth" type="text" value="<?php if($current_options['project_two_url']!='') { echo esc_attr($current_options['project_two_url']); } ?>" id="project_two_url" name="project_two_url" size="36" />
  145. <span id="explaincolor"><?php _e('Enter project teo url','busi_prof');?>.</span>
  146. </p> -->
  147. </div>
  148. </div>
  149. <div class="postbox" id="home_page_project_4">
  150. <div title="Click to toggle" class="handlediv"><br></div>
  151. <h3 class="hndle">
  152. <span>
  153. <?php _e('Projects Three','busi_prof');?>
  154. <span class="postbox-title-action">
  155. </h3>
  156. <div class="inside">
  157. <p><h4 class="heading"><?php _e('Projectt title three','busi_prof');?></h4>
  158. <input class="inputwidth" type="text" value="<?php if($current_options['project_title_three']!='') { echo esc_attr($current_options['project_title_three']); } ?>" id="project_title_three" name="project_title_three" size="36" />
  159. <span class="icon help">
  160. <span class="tooltip"><?php _e('Enter project title','busi_prof');?></span></span>
  161. </span>
  162. </p>
  163. <p><h4 class="heading"><?php _e('Project thumb three','busi_prof');?></h4>
  164. <input class="inputwidth" type="text" value="<?php if($current_options['project_thumb_three']!='') { echo esc_attr($current_options['project_thumb_three']); } ?>" id="project_thumb_three" name="project_thumb_three" size="36" />
  165. <input type="button" id="upload_button" value="Select Image" class="upload_image_button" />
  166. <span class="icon help">
  167. <span class="tooltip"><?php _e('Enter project thumb 495 x 265','busi_prof');?></span></span>
  168. </span>
  169. </p>
  170. <p><h4 class="heading"><?php _e('Project text ','busi_prof');?></h4>
  171. <textarea rows="5" cols="75" name="project_text_three" id="project_text_three"><?php if($current_options['project_text_three']!='') { echo esc_attr($current_options['project_text_three']); } ?></textarea>
  172. <span class="icon help">
  173. <span class="tooltip"><?php _e('Enter project description','busi_prof');?></span></span>
  174. </span>
  175. </p>
  176. <input class="inputwidth" type="hidden" value="<?php if($current_options['project_three_url']!='') { echo esc_attr($current_options['project_three_url']); } ?>" id="project_three_url" name="project_three_url" size="36" />
  177. <!--<p><h4 class="heading"><?php _e('Project Tagline','busi_prof');?></h4>
  178. <input class="inputwidth" type="text" value="<?php if($current_options['project_three_url']!='') { echo esc_attr($current_options['project_three_url']); } ?>" id="project_three_url" name="project_three_url" size="36" />
  179. <span id="explaincolor"><?php _e('Enter project teo url','busi_prof');?>.</span>
  180. </p> -->
  181. </div>
  182. </div>
  183. <div class="postbox" id="home_page_project_5">
  184. <div title="Click to toggle" class="handlediv"><br></div>
  185. <h3 class="hndle">
  186. <span>
  187. <?php _e('Projects Four','busi_prof');?>
  188. <span class="postbox-title-action">
  189. </h3>
  190. <div class="inside">
  191. <p><h4 class="heading"><?php _e('Projectt title four','busi_prof');?></h4>
  192. <input class="inputwidth" type="text" value="<?php if($current_options['project_title_four']!='') { echo esc_attr($current_options['project_title_four']); } ?>" id="project_title_four" name="project_title_four" size="36" />
  193. <span class="icon help">
  194. <span class="tooltip"><?php _e('Enter project title','busi_prof');?></span></span>
  195. </span>
  196. </p>
  197. <p><h4 class="heading"><?php _e('Project thumb four','busi_prof');?></h4>
  198. <input class="inputwidth" type="text" value="<?php if($current_options['project_thumb_four']!='') { echo esc_attr($current_options['project_thumb_four']); } ?>" id="project_thumb_four" name="project_thumb_four" size="36" />
  199. <input type="button" id="upload_button" value="Select Image" class="upload_image_button" />
  200. <span class="icon help">
  201. <span class="tooltip"><?php _e('Enter project thumb 495 x 262','busi_prof');?></span></span>
  202. </span>
  203. </p>
  204. <p><h4 class="heading"><?php _e('Project text ','busi_prof');?></h4>
  205. <textarea rows="5" cols="75" name="project_text_four" id="project_text_four"><?php if($current_options['project_text_four']!='') { echo esc_attr($current_options['project_text_four']); } ?></textarea>
  206. <span class="icon help">
  207. <span class="tooltip"><?php _e('Enter project description','busi_prof');?></span></span>
  208. </span>
  209. </p>
  210. <input class="inputwidth" type="hidden" value="<?php if($current_options['project_four_url']!='') { echo esc_attr($current_options['project_four_url']); } ?>" id="project_four_url" name="project_four_url" size="36" />
  211.  
  212. </div>
  213. </div>
  214. <!---DATA SAVE------>
  215. <div id="busiprof_optionsframework-submit">
  216. <input type="hidden" value="1" id="busiprof_settings_save_2" name="busiprof_settings_save_2" />
  217. <input type="button" class="button-primary" value= "<?php _e('Save Changes', 'busi_prof');?>" onclick="datasave_home('2')"/>
  218. <input type="button" class="reset-button button-secondary" value="<?php _e('Restore Defaults','busi_prof');?>" onclick="reset_data_home('2')" />
  219. </div>
  220. </form>
Advertisement
Add Comment
Please, Sign In to add comment