PluginProbe
Catch Web Tools / 0.1
Catch Web Tools v0.1
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 / seo.php

seo.php in Catch Web Tools 0.1, at admin/modules/seo.php

92 lines 5.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Admin
4 * @sub-package Admin SEO Display
5 */
6 ?>
7 <div id="catchwebtools" class="wrap">
8 <?php include ( 'header.php' ); ?>
9 <?php include ( 'navigation.php' ); ?>
10 <div id="seo">
11 <form method="post" action="options.php">
12 <?php settings_fields( 'seo-settings-group' ); ?>
13 <?php $settings = get_catchwebtools_options( 'catchwebtools_seo' ); ?>
14 <div class="option-container">
15 <h3 class="option-toggle option-active"><a href="#"><?php _e( 'Enable SEO Module', '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( 'Enable SEO Module', 'catchwebtools' ); ?></th>
21 <td>
22 <?php
23 $text = ( ! empty ( $settings['status'] ) && $settings['status'] ) ? 'checked' : '';
24 echo '<input type="checkbox" ' .$text. ' name="catchwebtools_seo[status]" value="1"/>&nbsp;&nbsp;'. __( 'Check to Enable', 'catchwebtools' );
25 echo '<p class="description">'. __( 'Please make sure you have disabled all the SEO plugins before activating Catch Work Tools SEO Module.', 'catchwebtools' ) . '</p>';
26 echo '<p class="description">'. __( '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.', 'catchwebtools' ) . '</p>';
27 ?>
28 </td>
29 </tr>
30 </tbody>
31 </table>
32 <?php submit_button('Save Changes'); ?>
33 </div>
34
35 <h3 class="option-toggle"><a href="#"><?php _e( 'SEO Homepage Settings', 'catchwebtools' ); ?></a></h3>
36 <div class="option-content inside">
37 <table class="form-table">
38 <tbody>
39 <tr>
40 <th scope="row"><?php _e( 'SEO Title', 'catchwebtools' ); ?></th>
41 <td>
42 <?php
43 $text = ( ! empty ( $settings['title'] ) ) ? esc_attr( $settings['title'] ) : get_bloginfo ( 'name' );
44 echo '<input type="text" size="80" maxlength="70" id="catchwebtools_seo_title" name="catchwebtools_seo[title]" value="' .$text. '" />';
45 echo '<p class="description">'. __( 'Title display in search engines is limited to 70 characters. ', 'catchwebtools' ) . '<span id="catchwebtools_seo_title_left">70</span> ' . __( 'character(s) left.', 'catchwebtools' ) . '</p>';
46 ?>
47 </td>
48 </tr>
49
50 <tr>
51 <th scope="row"><?php _e( 'Meta Description', 'catchwebtools' ); ?></th>
52 <td>
53 <?php
54 $text = ( ! empty ( $settings['description'] ) ) ? esc_attr( $settings['description'] ) : get_bloginfo ( 'description' );
55 echo '<textarea cols="80" rows="7" id="catchwebtools_seo_description" name="catchwebtools_seo[description]" maxlength="156" >' .$text. '</textarea>';
56 echo '<p class="description">'. __( 'The meta description is limited to 156 characters. ', 'catchwebtools' ) . '<span id="catchwebtools_seo_description_left">156</span> ' . __( 'character(s) left.', 'catchwebtools' ) . '</p>';
57 ?>
58 </td>
59 </tr>
60
61 <tr>
62 <th scope="row"><?php _e( 'Focus Keywords', 'catchwebtools' ); ?></th>
63 <td>
64 <?php
65 $text = ( ! empty ( $settings['keywords'] ) ) ? esc_attr( $settings['keywords'] ) : '';
66 echo '<textarea cols="80" rows="7" name="catchwebtools_seo[keywords]">' .$text. '</textarea>';
67 ?>
68 </td>
69 </tr>
70
71 <tr>
72 <th scope="row"><?php _e( 'Author', 'catchwebtools' ); ?></th>
73 <td>
74 <?php
75 $text = ( isset ( $settings['author'] ) && $settings['author'] != '' ) ? $settings['author'] : '';
76 wp_dropdown_users(array(
77 'name' => 'catchwebtools_seo[author]',
78 'selected' => $text,
79 'show_option_none' => 'Disable', // string
80 )
81 );
82 ?>
83 </td>
84 </tr>
85 </tbody>
86 </table>
87 <?php submit_button('Save Changes'); ?>
88 </div>
89 </div>
90 </form>
91 </div><!-- #seo -->
92 </div><!-- .wrap -->