| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package Admin |
| 4 |
* @sub-package Admin Custom CSS Display |
| 5 |
*/ |
| 6 |
?> |
| 7 |
<div id="catchwebtools" class="wrap"> |
| 8 |
<?php include ( 'header.php' ); ?> |
| 9 |
<?php include ( 'navigation.php' ); ?> |
| 10 |
<div id="customcss"> |
| 11 |
<form method="post" action="options.php"> |
| 12 |
<?php settings_fields( 'custom-css-settings-group' ); ?> |
| 13 |
<?php $settings = get_catchwebtools_options( 'catchwebtools_custom_css' ); ?> |
| 14 |
<div class="option-container"> |
| 15 |
<h3 class="option-toggle option-active"><a href="#"><?php _e( 'Custom Css Settings', 'catchwebtools' ); ?></a></h3> |
| 16 |
<div class="option-content inside open"> |
| 17 |
<table class="form-table"> |
| 18 |
<tbody> |
| 19 |
<tr> |
| 20 |
<th scope="row"><?php _e( 'Enter Custom Css', 'catchwebtools' ); ?></th> |
| 21 |
<td> |
| 22 |
<?php |
| 23 |
$text = ( ! empty ( $settings ) ) ? esc_html( $settings ): ''; |
| 24 |
echo '<textarea cols="80" rows="7" name="catchwebtools_custom_css">' .$text. '</textarea>'; |
| 25 |
echo '<p class="description">'. __( '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.', 'catchwebtools' ) . '<p class="description">'; |
| 26 |
?> |
| 27 |
</td> |
| 28 |
</tr> |
| 29 |
<tr> |
| 30 |
<th scope="row"><?php _e( 'CSS Tutorial from W3Schools.', 'catchwebtools' ); ?></th> |
| 31 |
<td> |
| 32 |
<a class="button" href="<?php echo esc_url( __( 'http://www.w3schools.com/css/default.asp', 'catchwebtools' ) ); ?>" title="<?php esc_attr_e( 'CSS Tutorial', 'catchwebtools' ); ?>" target="_blank"><?php _e( 'Click Here to Read', 'catchwebtools' );?></a> |
| 33 |
</td> |
| 34 |
</tr> |
| 35 |
</tbody> |
| 36 |
</table> |
| 37 |
<?php submit_button('Save Changes'); ?> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
</form> |
| 41 |
</div><!-- #customcss --> |
| 42 |
</div><!-- .wrap --> |