PluginProbe
Catch Web Tools / 3.2
Catch Web Tools v3.2
trunk 0.1 0.2 0.3 0.4 1.0 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.6 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 All 58 releases
catch-web-tools / admin / modules / custom-css.php

custom-css.php in Catch Web Tools 3.2, at admin/modules/custom-css.php

52 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly
4 if (! defined('ABSPATH')) exit;
5
6 /**
7 * @package Admin
8 * @sub-package Admin Custom CSS Display
9 */
10 ?>
11 <?php include('header.php'); ?>
12 <div id="customcss">
13 <div class="content-wrapper">
14 <div class="header">
15 <h3><?php esc_html_e('Custom CSS', 'catch-web-tools'); ?></h3>
16 </div> <!-- .header -->
17 <div class="content">
18 <form method="post" action="options.php">
19 <?php settings_fields('custom-css-settings-group'); ?>
20 <?php $settings = catchwebtools_get_options('catchwebtools_custom_css'); ?>
21 <div class="option-container">
22 <h3 class="option-toggle option-active"><a href="#"><?php esc_html_e('Custom Css Settings', 'catch-web-tools'); ?></a></h3>
23 <div class="option-content inside open">
24 <table class="form-table">
25 <tbody>
26 <tr>
27 <th scope="row"><?php esc_html_e('Enter Custom Css', 'catch-web-tools'); ?></th>
28 <td>
29 <?php
30 $text = (! empty($settings)) ? esc_html($settings) : '';
31 echo '<textarea cols="80" rows="7" name="catchwebtools_custom_css">' . esc_html($text) . '</textarea>';
32 echo '<p class="description">' . esc_html__('You can just add your Custom CSS and save, it will show up in the frontend head section. Leave it blank if it is not needed.', 'catch-web-tools') . '<p class="description">';
33 ?>
34 </td>
35 </tr>
36 <tr>
37 <th scope="row"><?php esc_html_e('CSS Tutorial from W3Schools.', 'catch-web-tools'); ?></th>
38 <td>
39 <a class="button" href="<?php echo esc_url('http://www.w3schools.com/css/default.asp'); ?>" title="<?php esc_attr_e('CSS Tutorial', 'catch-web-tools'); ?>" target="_blank"><?php esc_html_e('Click Here to Read', 'catch-web-tools'); ?></a>
40 </td>
41 </tr>
42 </tbody>
43 </table>
44 <?php submit_button('Save Changes'); ?>
45 </div>
46 </div>
47 </form>
48 </div><!-- .container -->
49 </div><!-- .content-wrapper -->
50 </div><!-- #customcss -->
51
52 <?php include('main-footer.php'); ?>