| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package Admin |
| 4 |
* @sub-package Admin CatchIDs Display |
| 5 |
*/ |
| 6 |
?> |
| 7 |
<div id="catchwebtools" class="wrap"> |
| 8 |
<?php include ( 'header.php' ); ?> |
| 9 |
<?php include ( 'navigation.php' ); ?> |
| 10 |
<div id="dashboard"> |
| 11 |
<div id="plugin-description"> |
| 12 |
<h2><?php _e( 'Catch Web Tools', 'catchwebtools' ); ?></h2> |
| 13 |
<p> |
| 14 |
<?php _e( 'Catch Web Tools is a simple and lightweight WordPress plugin to help you manage your WordPress site. Power up your WordPress site with powerful features that were till now only available to Catch Themes users. We currently offer Webmaster Tools, Open Graph, Custom CSS, Social Icons, Catch IDs and basic SEO Optimization.', 'catchwebtools' ); ?> |
| 15 |
</p> |
| 16 |
</div><!-- .option-container --> |
| 17 |
|
| 18 |
<div id="module-container"> |
| 19 |
<div id="module-webmaster-tools" class="catch-modules short-desc"> |
| 20 |
<h3><?php _e( 'Webmaster Tools', 'catchwebtools' ); ?></h3> |
| 21 |
<p> |
| 22 |
<?php _e( 'Webmaster Tools gives you an option to add in the Site Verfication Code and Header and Footer Script required to manage your site.', 'catchwebtools' );?> |
| 23 |
</p> |
| 24 |
<div class="catch-actions"> |
| 25 |
<form method="post" action="options.php"> |
| 26 |
<?php |
| 27 |
settings_fields( 'webmaster-tools-group' ); |
| 28 |
|
| 29 |
$settings = get_catchwebtools_options( 'catchwebtools_webmaster' ); |
| 30 |
|
| 31 |
if( ! empty ( $settings['status'] ) && $settings['status'] ) { |
| 32 |
echo '<input type="hidden" value="0" name="catchwebtools_webmaster[status]"/>'; |
| 33 |
|
| 34 |
submit_button( __( 'Deactivate', 'catchwebtools' ), 'secondary', 'submit', false ); |
| 35 |
} |
| 36 |
else { |
| 37 |
echo '<input type="hidden" value="1" name="catchwebtools_webmaster[status]"/>'; |
| 38 |
|
| 39 |
submit_button( __( 'Activate', 'catchwebtools' ), 'primary', 'submit', false ); |
| 40 |
} |
| 41 |
?> |
| 42 |
|
| 43 |
<a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=catch-web-tools-webmasters' ); ?>"><?php _e( 'Configure', 'catchwebtools' );?></a> |
| 44 |
</form> |
| 45 |
</div> |
| 46 |
</div><!-- #module-webmaster-tools --> |
| 47 |
|
| 48 |
<div id="module-customcss" class="catch-modules short-desc"> |
| 49 |
<h3><?php _e( 'Custom CSS', 'catchwebtools' );?></h3> |
| 50 |
<p> |
| 51 |
<?php _e( 'Custom CSS gives you an option to add in your CSS to your WordPress site without building Child Theme. 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' ); ?> |
| 52 |
</p> |
| 53 |
<div class="catch-actions"> |
| 54 |
<a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=catch-web-tools-custom-css' ); ?>"><?php _e( 'Configure', 'catchwebtools' );?></a> |
| 55 |
</div> |
| 56 |
</div><!-- #module-customcss --> |
| 57 |
|
| 58 |
<div id="module-catchids" class="catch-modules short-desc"> |
| 59 |
<h3><?php _e( 'Catch IDs', 'catchwebtools' ); ?></h3> |
| 60 |
|
| 61 |
<p> |
| 62 |
<?php _e( 'Catch IDs will show Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and UserID in the respective admin section tables.', 'catchwebtools' );?> |
| 63 |
</p> |
| 64 |
|
| 65 |
<div class="catch-actions"> |
| 66 |
<form method="post" action="options.php"> |
| 67 |
<?php |
| 68 |
settings_fields( 'catchids-settings-group' ); |
| 69 |
|
| 70 |
$settings = get_catchwebtools_options( 'catchwebtools_catchids' ); |
| 71 |
|
| 72 |
if( ! empty ( $settings['status'] ) && $settings['status'] ) { |
| 73 |
echo '<input type="hidden" value="0" name="catchwebtools_catchids[status]"/>'; |
| 74 |
|
| 75 |
submit_button( __( 'Deactivate', 'catchwebtools' ), 'secondary', 'submit', false ); |
| 76 |
} |
| 77 |
else { |
| 78 |
echo '<input type="hidden" value="1" name="catchwebtools_catchids[status]"/>'; |
| 79 |
|
| 80 |
submit_button( __( 'Activate', 'catchwebtools' ), 'primary', 'submit', false ); |
| 81 |
} |
| 82 |
?> |
| 83 |
</form> |
| 84 |
</div><!-- .catch-actions --> |
| 85 |
</div><!-- #module-catchids --> |
| 86 |
|
| 87 |
<div id="module-socialicons" class="catch-modules long-desc"> |
| 88 |
<h3><?php _e( 'Social Icons', 'catchwebtools' );?></h3> |
| 89 |
<p> |
| 90 |
<?php _e( 'Social Icons gives you an option to add in your Social Profiles.', 'catchwebtools' );?> |
| 91 |
</p> |
| 92 |
<p> |
| 93 |
<?php _e( 'You can add Social Icons by adding in Widgets in your Sidebar or by adding in Shortcode in your Page/Post Content or by adding the function in your template files.', 'catchwebtools' );?> |
| 94 |
</p> |
| 95 |
<div class="catch-actions"> |
| 96 |
<form method="post" action="options.php"> |
| 97 |
<?php |
| 98 |
settings_fields( 'social-icons-group' ); |
| 99 |
|
| 100 |
$settings = get_catchwebtools_options( 'catchwebtools_social' ); |
| 101 |
|
| 102 |
if( ! empty ( $settings['status'] ) && $settings['status'] ) { |
| 103 |
echo '<input type="hidden" value="0" name="catchwebtools_social[status]"/>'; |
| 104 |
|
| 105 |
submit_button( __( 'Deactivate', 'catchwebtools' ), 'secondary', 'submit', false ); |
| 106 |
} |
| 107 |
else { |
| 108 |
echo '<input type="hidden" value="1" name="catchwebtools_social[status]"/>'; |
| 109 |
|
| 110 |
submit_button( __( 'Activate', 'catchwebtools' ), 'primary', 'submit', false ); |
| 111 |
} |
| 112 |
?> |
| 113 |
|
| 114 |
<a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=catch-web-tools-social-icons' ); ?>"><?php _e( 'Configure', 'catchwebtools' );?></a> |
| 115 |
</form> |
| 116 |
</div> |
| 117 |
</div><!-- #module-socialicons --> |
| 118 |
|
| 119 |
<div id="module-opengraph" class="catch-modules long-desc"> |
| 120 |
<h3><?php _e( 'Open Graph', 'catchwebtools' );?></h3> |
| 121 |
<p><?php _e( 'The Open Graph protocol enables your site to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.', 'catchwebtools' ); ?> |
| 122 |
</p> |
| 123 |
<div class="catch-actions"> |
| 124 |
<form method="post" action="options.php"> |
| 125 |
<?php |
| 126 |
settings_fields( 'opengraph-settings-group' ); |
| 127 |
|
| 128 |
$settings = get_catchwebtools_options( 'catchwebtools_opengraph' ); |
| 129 |
|
| 130 |
if( ! empty ( $settings['status'] ) && $settings['status'] ) { |
| 131 |
echo '<input type="hidden" value="0" name="catchwebtools_opengraph[status]"/>'; |
| 132 |
|
| 133 |
submit_button( __( 'Deactivate', 'catchwebtools' ), 'secondary', 'submit', false ); |
| 134 |
} |
| 135 |
else { |
| 136 |
echo '<input type="hidden" value="1" name="catchwebtools_opengraph[status]"/>'; |
| 137 |
|
| 138 |
submit_button( __( 'Activate', 'catchwebtools' ), 'primary', 'submit', false ); |
| 139 |
} |
| 140 |
?> |
| 141 |
|
| 142 |
<a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=catch-web-tools-opengraph' ); ?>"><?php _e( 'Configure', 'catchwebtools' );?></a> |
| 143 |
</form> |
| 144 |
</div> |
| 145 |
</div><!-- #module-opengraph --> |
| 146 |
|
| 147 |
<div id="module-seo" class="catch-modules long-desc"> |
| 148 |
<h3><?php _e( 'SEO ( BETA Version )', 'catchwebtools' );?></h3> |
| 149 |
<p> |
| 150 |
<?php _e( 'SEO is in beta version. SEO can be used to add SEO meta tags to Homepage, specific Pages or Posts and Categories page. This section adds SEO meta data to site\'s section.', 'catchwebtools' ); ?> |
| 151 |
</p> |
| 152 |
<div class="catch-actions"> |
| 153 |
<form method="post" action="options.php"> |
| 154 |
<?php |
| 155 |
settings_fields( 'seo-settings-group' ); |
| 156 |
|
| 157 |
$settings = get_catchwebtools_options( 'catchwebtools_seo' ); |
| 158 |
|
| 159 |
if( ! empty ( $settings['status'] ) && $settings['status'] ) { |
| 160 |
echo '<input type="hidden" value="0" name="catchwebtools_seo[status]"/>'; |
| 161 |
|
| 162 |
submit_button( __( 'Deactivate', 'catchwebtools' ), 'secondary', 'submit', false ); |
| 163 |
} |
| 164 |
else { |
| 165 |
echo '<input type="hidden" value="1" name="catchwebtools_seo[status]"/>'; |
| 166 |
|
| 167 |
submit_button( __( 'Activate', 'catchwebtools' ), 'primary', 'submit', false ); |
| 168 |
} |
| 169 |
?> |
| 170 |
|
| 171 |
<a class="button-secondary" href="<?php echo admin_url( 'admin.php?page=catch-web-tools-seo' ); ?>"><?php _e( 'Configure', 'catchwebtools' );?></a> |
| 172 |
</form> |
| 173 |
</div> |
| 174 |
</div><!-- #module-seo --> |
| 175 |
|
| 176 |
</div><!-- #module-container --> |
| 177 |
|
| 178 |
</div><!-- #dashboard --> |
| 179 |
</div><!-- .wrap --> |