| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly |
| 4 |
if (! defined('ABSPATH')) exit; |
| 5 |
|
| 6 |
/** |
| 7 |
* @package Admin |
| 8 |
* @sub-package Admin SEO Display |
| 9 |
*/ |
| 10 |
?> |
| 11 |
<?php include('header.php'); ?> |
| 12 |
<div id="seo"> |
| 13 |
<div class="content-wrapper"> |
| 14 |
<div class="header"> |
| 15 |
<h3><?php esc_html_e('SEO', 'catch-web-tools'); ?></h3> |
| 16 |
</div> <!-- .header --> |
| 17 |
<div class="content"> |
| 18 |
<form method="post" action="options.php"> |
| 19 |
<?php settings_fields('seo-settings-group'); ?> |
| 20 |
<?php $settings = catchwebtools_get_options('catchwebtools_seo'); ?> |
| 21 |
<div class="option-container"> |
| 22 |
<h3 class="option-toggle option-active"><a href="#"><?php esc_html_e('Enable SEO Module', '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('Enable SEO Module', 'catch-web-tools'); ?></th> |
| 28 |
<td> |
| 29 |
<?php |
| 30 |
$text = (! empty($settings['status']) && $settings['status']) ? 'checked' : ''; |
| 31 |
echo '<input type="checkbox" ' . esc_html($text) . ' name="catchwebtools_seo[status]" value="1"/> ' . esc_html__('Check to Enable', 'catch-web-tools'); |
| 32 |
echo '<p class="description">' . esc_html__('Please make sure you have disabled all the SEO plugins before activating Catch Work Tools SEO Module.', 'catch-web-tools') . '</p>'; |
| 33 |
echo '<p class="description">' . esc_html__('SEO for specific Pages or Posts, can be added via Catch Web Tools Custom Meta Box which shows up in Pages\' and Posts\' add/edit sections once this function is enabled. Same settings will show up in Categories\' add/edit pages.', 'catch-web-tools') . '</p>'; |
| 34 |
?> |
| 35 |
</td> |
| 36 |
</tr> |
| 37 |
</tbody> |
| 38 |
</table> |
| 39 |
<?php submit_button('Save Changes'); ?> |
| 40 |
</div> |
| 41 |
|
| 42 |
<h3 class="option-toggle"><a href="#"><?php esc_html_e('SEO Homepage Settings', 'catch-web-tools'); ?></a></h3> |
| 43 |
<div class="option-content inside"> |
| 44 |
<table class="form-table"> |
| 45 |
<tbody> |
| 46 |
<tr> |
| 47 |
<th scope="row"><?php esc_html_e('SEO Title', 'catch-web-tools'); ?></th> |
| 48 |
<td> |
| 49 |
<?php |
| 50 |
$text = (! empty($settings['title'])) ? esc_attr($settings['title']) : get_bloginfo('name'); |
| 51 |
echo '<input type="text" size="80" maxlength="70" id="catchwebtools_seo_title" name="catchwebtools_seo[title]" value="' . esc_html($text) . '" />'; |
| 52 |
echo '<p class="description">' . esc_html__('Title display in search engines is limited to 70 characters. ', 'catch-web-tools') . '<span id="catchwebtools_seo_title_left">70</span> ' . esc_html__('character(s) left.', 'catch-web-tools') . '</p>'; |
| 53 |
?> |
| 54 |
</td> |
| 55 |
</tr> |
| 56 |
|
| 57 |
<tr> |
| 58 |
<th scope="row"><?php esc_html_e('Meta Description', 'catch-web-tools'); ?></th> |
| 59 |
<td> |
| 60 |
<?php |
| 61 |
$text = (! empty($settings['description'])) ? esc_attr($settings['description']) : get_bloginfo('description'); |
| 62 |
echo '<textarea cols="80" rows="7" id="catchwebtools_seo_description" name="catchwebtools_seo[description]" maxlength="156" >' . esc_html($text) . '</textarea>'; |
| 63 |
echo '<p class="description">' . esc_html__('The meta description is limited to 156 characters. ', 'catch-web-tools') . '<span id="catchwebtools_seo_description_left">156</span> ' . esc_html__('character(s) left.', 'catch-web-tools') . '</p>'; |
| 64 |
?> |
| 65 |
</td> |
| 66 |
</tr> |
| 67 |
|
| 68 |
<tr> |
| 69 |
<th scope="row"><?php esc_html_e('Focus Keywords', 'catch-web-tools'); ?></th> |
| 70 |
<td> |
| 71 |
<?php |
| 72 |
$text = (! empty($settings['keywords'])) ? esc_attr($settings['keywords']) : ''; |
| 73 |
echo '<textarea cols="80" rows="7" name="catchwebtools_seo[keywords]">' . esc_attr($text) . '</textarea>'; |
| 74 |
?> |
| 75 |
</td> |
| 76 |
</tr> |
| 77 |
|
| 78 |
<tr> |
| 79 |
<th scope="row"><?php esc_html_e('Author', 'catch-web-tools'); ?></th> |
| 80 |
<td> |
| 81 |
<?php |
| 82 |
$text = (isset($settings['author']) && $settings['author'] != '') ? $settings['author'] : ''; |
| 83 |
wp_dropdown_users( |
| 84 |
array( |
| 85 |
'name' => 'catchwebtools_seo[author]', |
| 86 |
'selected' => $text, |
| 87 |
'show_option_none' => 'Disable', // string |
| 88 |
) |
| 89 |
); |
| 90 |
?> |
| 91 |
</td> |
| 92 |
</tr> |
| 93 |
</tbody> |
| 94 |
</table> |
| 95 |
<?php submit_button('Save Changes'); ?> |
| 96 |
</div> |
| 97 |
</div> |
| 98 |
</form> |
| 99 |
</div><!-- .content --> |
| 100 |
</div><!-- .content-wrapper --> |
| 101 |
</div><!-- #customcss --> |
| 102 |
|
| 103 |
<?php include('main-footer.php'); ?> |