PageRenderTime 23ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/www/wp-content/themes/agenciaabear/library/includes/cpanel/theme-options/general.php

https://gitlab.com/digaotinfo/agenciaabear.com.br
PHP | 225 lines | 176 code | 34 blank | 15 comment | 2 complexity | e49364592e392b27dd0440d3686fe6d8 MD5 | raw file
  1. <div class="kopa-content-box tab-content tab-content-1" id="tab-general">
  2. <!--tab-logo-favicon-icon-->
  3. <div class="kopa-box-head">
  4. <i class="icon-hand-right"></i>
  5. <span class="kopa-section-title"><?php _e('Logo, Favicon, Apple Icon', kopa_get_domain()); ?></span>
  6. </div><!--kopa-box-head-->
  7. <div class="kopa-box-body">
  8. <div class="kopa-element-box kopa-theme-options">
  9. <span class="kopa-component-title"><?php _e('Logo', kopa_get_domain()); ?></span>
  10. <p class="kopa-desc"><?php _e('Upload your own logo.', kopa_get_domain()); ?></p>
  11. <div class="clearfix">
  12. <input class="left" type="text" value="<?php echo get_option('kopa_theme_options_logo_url'); ?>" id="kopa_theme_options_logo_url" name="kopa_theme_options_logo_url">
  13. <button class="left btn btn-success upload_image_button" alt="kopa_theme_options_logo_url"><i class="icon-circle-arrow-up"></i><?php _e('Upload', kopa_get_domain()); ?></button>
  14. </div>
  15. <p class="kopa-desc"><?php _e('Logo margin', kopa_get_domain()); ?></p>
  16. <label class="kopa-label"><?php _e('Top margin:', kopa_get_domain()); ?> </label>
  17. <input type="text" value="<?php echo get_option('kopa_theme_options_logo_margin_top'); ?>" id="kopa_theme_options_logo_margin_top" name="kopa_theme_options_logo_margin_top" class=" kopa-short-input">
  18. <label class="kopa-label"><?php _e('px', kopa_get_domain()); ?></label>
  19. <span class="kopa-spacer"></span>
  20. <label class="kopa-label"><?php _e('Left margin:', kopa_get_domain()); ?> </label>
  21. <input type="text" value="<?php echo get_option('kopa_theme_options_logo_margin_left'); ?>" id="kopa_theme_options_logo_margin_left" name="kopa_theme_options_logo_margin_left" class=" kopa-short-input">
  22. <label class="kopa-label"><?php _e('px', kopa_get_domain()); ?></label>
  23. <span class="kopa-spacer"></span>
  24. <label class="kopa-label"><?php _e('Right margin:', kopa_get_domain()); ?> </label>
  25. <input type="text" value="<?php echo get_option('kopa_theme_options_logo_margin_right'); ?>" id="kopa_theme_options_logo_margin_right" name="kopa_theme_options_logo_margin_right" class=" kopa-short-input">
  26. <label class="kopa-label"><?php _e('px', kopa_get_domain()); ?></label>
  27. <span class="kopa-spacer"></span>
  28. <label class="kopa-label"><?php _e('Bottom margin:', kopa_get_domain()); ?> </label>
  29. <input type="text" value="<?php echo get_option('kopa_theme_options_logo_margin_bottom'); ?>" id="kopa_theme_options_logo_margin_bottom" name="kopa_theme_options_logo_margin_bottom" class=" kopa-short-input">
  30. <label class="kopa-label"><?php _e('px', kopa_get_domain()); ?></label>
  31. </div><!--kopa-element-box-->
  32. <?php
  33. /**
  34. * Footer logo
  35. */
  36. ?>
  37. <div class="kopa-element-box kopa-theme-options">
  38. <span class="kopa-component-title"><?php _e('Footer menu logo', kopa_get_domain()); ?></span>
  39. <p class="kopa-desc"><?php _e('Upload your own logo.', kopa_get_domain()); ?></p>
  40. <div class="clearfix">
  41. <input class="left" type="text" value="<?php echo get_option('kopa_theme_options_footer_logo'); ?>" id="kopa_theme_options_footer_logo" name="kopa_theme_options_footer_logo">
  42. <button class="left btn btn-success upload_image_button" alt="kopa_theme_options_footer_logo"><i class="icon-circle-arrow-up"></i><?php _e('Upload', kopa_get_domain()); ?></button>
  43. </div>
  44. </div><!--kopa-element-box-->
  45. <div class="kopa-element-box kopa-theme-options">
  46. <span class="kopa-component-title"><?php _e('Favicon', kopa_get_domain()); ?></span>
  47. <p class="kopa-desc"><?php _e('Upload your own favicon.', kopa_get_domain()); ?></p>
  48. <div class="clearfix">
  49. <input class="left" type="text" value="<?php echo get_option('kopa_theme_options_favicon_url'); ?>" id="kopa_theme_options_favicon_url" name="kopa_theme_options_favicon_url">
  50. <button class="left btn btn-success upload_image_button" alt="kopa_theme_options_favicon_url"><i class="icon-circle-arrow-up"></i><?php _e('Upload', kopa_get_domain()); ?></button>
  51. </div>
  52. </div><!--kopa-element-box-->
  53. <div class="kopa-element-box kopa-theme-options">
  54. <span class="kopa-component-title"><?php _e('Apple Icons', kopa_get_domain()); ?></span>
  55. <p class="kopa-desc"><?php _e('Iphone (57px - 57px)', kopa_get_domain()); ?></p>
  56. <div class="clearfix">
  57. <input class="left" type="text" value="<?php echo get_option('kopa_theme_options_apple_iphone_icon_url'); ?>" id="kopa_theme_options_apple_iphone_icon_url" name="kopa_theme_options_apple_iphone_icon_url">
  58. <button class="left btn btn-success upload_image_button" alt="kopa_theme_options_apple_iphone_icon_url"><i class="icon-circle-arrow-up"></i><?php _e('Upload', kopa_get_domain()); ?></button>
  59. </div>
  60. <p class="kopa-desc"><?php _e('Iphone Retina (114px - 114px)', kopa_get_domain()); ?></p>
  61. <div class="clearfix">
  62. <input class="left" type="text" value="<?php echo get_option('kopa_theme_options_apple_iphone_retina_icon_url'); ?>" id="kopa_theme_options_apple_iphone_retina_icon_url" name="kopa_theme_options_apple_iphone_retina_icon_url">
  63. <button class="left btn btn-success upload_image_button" alt="kopa_theme_options_apple_iphone_retina_icon_url"><i class="icon-circle-arrow-up"></i><?php _e('Upload', kopa_get_domain()); ?></button>
  64. </div>
  65. <p class="kopa-desc"><?php _e('Ipad (72px - 72px)', kopa_get_domain()); ?></p>
  66. <div class="clearfix">
  67. <input class="left" type="text" value="<?php echo get_option('kopa_theme_options_apple_ipad_icon_url'); ?>" id="kopa_theme_options_apple_ipad_icon_url" name="kopa_theme_options_apple_ipad_icon_url">
  68. <button class="left btn btn-success upload_image_button" alt="kopa_theme_options_apple_ipad_icon_url"><i class="icon-circle-arrow-up"></i><?php _e('Upload', kopa_get_domain()); ?></button>
  69. </div>
  70. <p class="kopa-desc"><?php _e('Ipad Retina (144px - 144px)', kopa_get_domain()); ?></p>
  71. <div class="clearfix">
  72. <input class="left" type="text" value="<?php echo get_option('kopa_theme_options_apple_ipad_retina_icon_url'); ?>" id="kopa_theme_options_apple_ipad_retina_icon_url" name="kopa_theme_options_apple_ipad_retina_icon_url">
  73. <button class="btn btn-success upload_image_button" alt="kopa_theme_options_apple_ipad_retina_icon_url"><i class="icon-circle-arrow-up"></i><?php _e('Upload', kopa_get_domain()); ?></button>
  74. </div>
  75. </div><!--kopa-element-box-->
  76. </div><!--tab-logo-favicon-icon-->
  77. <?php
  78. /**
  79. * Top Banner: Google Adsense, BSA, Advertising Code
  80. */
  81. ?>
  82. <div class="kopa-box-head">
  83. <i class="icon-hand-right"></i>
  84. <span class="kopa-section-title"><?php _e('Top Banner', kopa_get_domain()); ?></span>
  85. </div><!--kopa-box-head-->
  86. <div class="kopa-box-body">
  87. <div class="kopa-element-box kopa-theme-options">
  88. <span class="kopa-component-title"><?php _e('Top Banner', kopa_get_domain()); ?></span>
  89. <p class="kopa-desc"><?php _e('Paste your Adsense, BSA or other ad code here to show ads on top banner.', kopa_get_domain()); ?></p>
  90. <textarea class="" rows="6" id="kopa_theme_options_top_banner_code" name="kopa_theme_options_top_banner_code"><?php echo htmlspecialchars_decode(stripslashes(get_option('kopa_theme_options_top_banner_code'))); ?></textarea>
  91. </div><!--kopa-element-box-->
  92. </div>
  93. <?php
  94. /**
  95. * Header ticker
  96. */
  97. ?>
  98. <div class="kopa-box-head">
  99. <i class="icon-hand-right"></i>
  100. <span class="kopa-section-title"><?php _e('Header Headline', kopa_get_domain()); ?></span>
  101. </div><!--kopa-box-head-->
  102. <div class="kopa-box-body">
  103. <div class="kopa-element-box kopa-theme-options">
  104. <span class="kopa-component-title"><?php _e('Header headline:', kopa_get_domain()); ?></span>
  105. <?php
  106. $kopa_header_headline_status = array(
  107. 'show' => __('Show', kopa_get_domain()),
  108. 'hide' => __('Hide', kopa_get_domain())
  109. );
  110. $kopa_header_headline_name = "kopa_theme_options_display_headline_status";
  111. foreach ($kopa_header_headline_status as $value => $label) {
  112. $kopa_header_headline_status_id = $kopa_header_headline_name . "_{$value}";
  113. ?>
  114. <label for="<?php echo $kopa_header_headline_status_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_header_headline_status_id; ?>" name="<?php echo $kopa_header_headline_name; ?>" <?php echo ($value == get_option($kopa_header_headline_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
  115. <?php
  116. } // end foreach
  117. ?>
  118. </div>
  119. <div class="kopa-element-box kopa-theme-options">
  120. <!-- bold title -->
  121. <span class="kopa-component-title"><?php _e('Headline title:', kopa_get_domain()); ?></span>
  122. <input type="text" value="<?php echo get_option('kopa_theme_options_headline_title', __( 'Breaking News', kopa_get_domain() )); ?>" id="kopa_theme_options_headline_title" name="kopa_theme_options_headline_title">
  123. </div>
  124. <div class="kopa-element-box kopa-theme-options">
  125. <span class="kopa-component-title"><?php _e('Headline category:', kopa_get_domain()); ?></span>
  126. <p class="kopa-desc"><?php _e( 'Choose category to display posts in headline', kopa_get_domain() ); ?></p>
  127. <select name="kopa_theme_options_headline_category_id" id="kopa_theme_options_headline_category_id">
  128. <option value="">--<?php _e( 'Latest Posts', kopa_get_domain() ); ?>--</option>
  129. <?php
  130. $kopa_current_headline_category_id = get_option( 'kopa_theme_options_headline_category_id' );
  131. $kopa_headline_categories = get_terms( 'category' );
  132. foreach ( $kopa_headline_categories as $kopa_headline_category ) { ?>
  133. <option value="<?php echo $kopa_headline_category->term_id; ?>" <?php selected( $kopa_headline_category->term_id, $kopa_current_headline_category_id ); ?>><?php echo $kopa_headline_category->name; ?></option>
  134. <?php } // endforeach ?>
  135. </select>
  136. </div>
  137. <div class="kopa-element-box kopa-theme-options">
  138. <!-- bold title -->
  139. <span class="kopa-component-title"><?php _e('Number of posts:', kopa_get_domain()); ?></span>
  140. <input type="number" min="2" value="<?php echo get_option('kopa_theme_options_headline_posts_number', 10); ?>" id="kopa_theme_options_headline_posts_number" name="kopa_theme_options_headline_posts_number">
  141. </div>
  142. </div>
  143. <?php
  144. /**
  145. * Show/hide breadcrumb
  146. */
  147. ?>
  148. <div class="kopa-box-head">
  149. <i class="icon-hand-right"></i>
  150. <span class="kopa-section-title"><?php _e('Breadcrumb', kopa_get_domain()); ?></span>
  151. </div><!--kopa-box-head-->
  152. <div class="kopa-box-body">
  153. <div class="kopa-element-box kopa-theme-options">
  154. <span class="kopa-component-title"><?php _e('Show/Hide Breadcrumb:', kopa_get_domain()); ?></span>
  155. <?php
  156. $kopa_breadcrumb_status = array(
  157. 'show' => __('Show', kopa_get_domain()),
  158. 'hide' => __('Hide', kopa_get_domain())
  159. );
  160. $kopa_breadcrumb_status_name = "kopa_theme_options_breadcrumb_status";
  161. foreach ($kopa_breadcrumb_status as $value => $label) {
  162. $kopa_breadcrumb_id = $kopa_breadcrumb_status_name . "_{$value}";
  163. ?>
  164. <label for="<?php echo $kopa_breadcrumb_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_breadcrumb_id; ?>" name="<?php echo $kopa_breadcrumb_status_name; ?>" <?php echo ($value == get_option($kopa_breadcrumb_status_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
  165. <?php
  166. } // end foreach
  167. ?>
  168. </div>
  169. </div>
  170. <?php
  171. /**
  172. * Footer
  173. */
  174. ?>
  175. <div class="kopa-box-head">
  176. <i class="icon-hand-right"></i>
  177. <span class="kopa-section-title"><?php _e('Footer', kopa_get_domain()); ?></span>
  178. </div><!--kopa-box-head-->
  179. <div class="kopa-box-body">
  180. <div class="kopa-element-box kopa-theme-options">
  181. <span class="kopa-component-title"><?php _e('Custom Left Footer', kopa_get_domain()); ?></span>
  182. <p class="kopa-desc"><?php _e('Enter the content you want to display in your left footer (e.g. copyright text).', kopa_get_domain()); ?></p>
  183. <textarea class="" rows="6" id="kopa_setting_copyrights" name="kopa_theme_options_copyright"><?php echo htmlspecialchars_decode(stripslashes(get_option('kopa_theme_options_copyright', __( 'Copyright &copy; 2013 . All Rights Reserved. Designed by kopatheme.com.', kopa_get_domain() )))); ?></textarea>
  184. </div><!--kopa-element-box-->
  185. <div class="kopa-element-box kopa-theme-options">
  186. <span class="kopa-component-title"><?php _e('Google Analytics', kopa_get_domain()); ?></span>
  187. <p class="kopa-desc"><?php _e('Enter Google Analytics code. This should be something like: &ltscript type="text/javascript"&gt; ... &lt;/script&gt;', kopa_get_domain()); ?></p>
  188. <textarea class="" id="kopa_setting_tracking_code" rows="10" name="kopa_theme_options_tracking_code"><?php echo htmlspecialchars_decode(stripslashes(get_option('kopa_theme_options_tracking_code'))); ?></textarea>
  189. </div><!--kopa-element-box-->
  190. </div>
  191. </div><!--kopa-content-box-->