Version Description
Download this release
Release Info
Developer | catchthemes |
Plugin | Catch IDs |
Version | 1.4.8 |
Comparing to | |
See all releases |
Code changes from version 1.4.7 to 1.4.8
- catch-ids.php +188 -21
- css/catch-ids.css +746 -0
- js/catch-ids.js +38 -0
- languages/catch-ids.pot +14 -2
- partials/dashboard-display.php +103 -0
- partials/footer.php +48 -0
- partials/header.php +22 -0
- readme.txt +22 -13
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- uninstall.php +38 -0
catch-ids.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Catch IDs
|
4 |
Plugin URI: https://catchthemes.com/wp-plugins/catch-ids/
|
5 |
Description: Catch IDs is a simple and light weight plugin to show the Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and User ID in the Admin Section Table. This plugin was initially develop to support our themes features slider. Then we thought that this will be helpful to all the WordPress Admin Users. Just activate and catch IDs in your page, post, category, tag and media pages.
|
6 |
-
Version: 1.4.
|
7 |
License: GNU General Public License, version 3 (GPLv3)
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
Author: Catch Themes
|
@@ -49,7 +49,7 @@ if ( ! function_exists( 'catchids_column' ) ):
|
|
49 |
/**
|
50 |
* Prepend the new column to the columns array
|
51 |
*/
|
52 |
-
function catchids_column($cols) {
|
53 |
$column_id = array( 'catchids' => __( 'ID', 'catch-ids' ) );
|
54 |
$cols = array_slice( $cols, 0, 1, true ) + $column_id + array_slice( $cols, 1, NULL, true );
|
55 |
return $cols;
|
@@ -105,9 +105,12 @@ if ( ! function_exists( 'catchids_add' ) ) :
|
|
105 |
* Actions/Filters for various tables and the css output
|
106 |
*/
|
107 |
function catchids_add() {
|
|
|
108 |
// For Media Management
|
109 |
-
|
110 |
-
|
|
|
|
|
111 |
|
112 |
// For Link Management
|
113 |
add_action( 'manage_link_custom_column', 'catchids_value', 10, 2 );
|
@@ -119,34 +122,198 @@ function catchids_add() {
|
|
119 |
|
120 |
// For Category, Tags and other custom taxonomies Management
|
121 |
foreach( get_taxonomies() as $taxonomy ) {
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
|
|
|
|
126 |
}
|
127 |
}
|
128 |
|
129 |
foreach( get_post_types() as $ptype ) {
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
|
|
|
|
134 |
}
|
135 |
}
|
136 |
|
137 |
// For User Management
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
|
|
|
|
142 |
}
|
143 |
|
144 |
// For Comment Management
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
|
|
|
|
149 |
}
|
150 |
}
|
151 |
endif; // catchids_add
|
152 |
-
add_action( 'admin_init', 'catchids_add' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
Plugin Name: Catch IDs
|
4 |
Plugin URI: https://catchthemes.com/wp-plugins/catch-ids/
|
5 |
Description: Catch IDs is a simple and light weight plugin to show the Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and User ID in the Admin Section Table. This plugin was initially develop to support our themes features slider. Then we thought that this will be helpful to all the WordPress Admin Users. Just activate and catch IDs in your page, post, category, tag and media pages.
|
6 |
+
Version: 1.4.8
|
7 |
License: GNU General Public License, version 3 (GPLv3)
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
Author: Catch Themes
|
49 |
/**
|
50 |
* Prepend the new column to the columns array
|
51 |
*/
|
52 |
+
function catchids_column( $cols ) {
|
53 |
$column_id = array( 'catchids' => __( 'ID', 'catch-ids' ) );
|
54 |
$cols = array_slice( $cols, 0, 1, true ) + $column_id + array_slice( $cols, 1, NULL, true );
|
55 |
return $cols;
|
105 |
* Actions/Filters for various tables and the css output
|
106 |
*/
|
107 |
function catchids_add() {
|
108 |
+
$options = catchids_get_options();
|
109 |
// For Media Management
|
110 |
+
if( is_array( $options ) && array_key_exists( 'media', $options ) && ( 1 == $options['media'] ) ) {
|
111 |
+
add_action( "manage_media_columns" , 'catchids_column' );
|
112 |
+
add_filter( "manage_media_custom_column" , 'catchids_value' , 10 , 3 );
|
113 |
+
}
|
114 |
|
115 |
// For Link Management
|
116 |
add_action( 'manage_link_custom_column', 'catchids_value', 10, 2 );
|
122 |
|
123 |
// For Category, Tags and other custom taxonomies Management
|
124 |
foreach( get_taxonomies() as $taxonomy ) {
|
125 |
+
if( is_array( $options ) && array_key_exists ( 'category', $options ) && ( 1 == $options['category'] ) ) {
|
126 |
+
add_action( "manage_edit-${taxonomy}_columns" , 'catchids_column' );
|
127 |
+
add_filter( "manage_${taxonomy}_custom_column" , 'catchids_return_value' , 10 , 3 );
|
128 |
+
if( version_compare($GLOBALS['wp_version'], '3.0.999', '>') ) {
|
129 |
+
add_filter( "manage_edit-${taxonomy}_sortable_columns" , 'catchids_column' );
|
130 |
+
}
|
131 |
}
|
132 |
}
|
133 |
|
134 |
foreach( get_post_types() as $ptype ) {
|
135 |
+
if( is_array( $options ) && array_key_exists ( $ptype, $options ) && ( 1 == $options[$ptype] ) ){
|
136 |
+
add_action( "manage_edit-${ptype}_columns" , 'catchids_column' );
|
137 |
+
add_filter( "manage_${ptype}_posts_custom_column" , 'catchids_value' , 10 , 3 );
|
138 |
+
if( version_compare($GLOBALS['wp_version'], '3.0.999', '>') ) {
|
139 |
+
add_filter( "manage_edit-${ptype}_sortable_columns" , 'catchids_column' );
|
140 |
+
}
|
141 |
}
|
142 |
}
|
143 |
|
144 |
// For User Management
|
145 |
+
if( is_array( $options ) && array_key_exists ( 'user', $options ) && ( 1 == $options['user'] ) ){
|
146 |
+
add_action( 'manage_users_columns', 'catchids_column' );
|
147 |
+
add_filter( 'manage_users_custom_column', 'catchids_return_value', 10, 3 );
|
148 |
+
if( version_compare($GLOBALS['wp_version'], '3.0.999', '>') ) {
|
149 |
+
add_filter( "manage_users_sortable_columns" , 'catchids_column' );
|
150 |
+
}
|
151 |
}
|
152 |
|
153 |
// For Comment Management
|
154 |
+
if( is_array( $options ) && array_key_exists ( 'comment', $options ) && ( 1 == $options['comment'] ) ){
|
155 |
+
add_action( 'manage_edit-comments_columns', 'catchids_column' );
|
156 |
+
add_action( 'manage_comments_custom_column', 'catchids_value', 10, 2 );
|
157 |
+
if( version_compare($GLOBALS['wp_version'], '3.0.999', '>') ) {
|
158 |
+
add_filter( "manage_edit-comments_sortable_columns" , 'catchids_column' );
|
159 |
+
}
|
160 |
}
|
161 |
}
|
162 |
endif; // catchids_add
|
163 |
+
add_action( 'admin_init', 'catchids_add' );
|
164 |
+
|
165 |
+
|
166 |
+
if ( ! function_exists( 'catchids_get_all_post_types' ) ) :
|
167 |
+
function catchids_get_all_post_types() {
|
168 |
+
$post_types = get_post_types( array( 'public' => true ) );
|
169 |
+
$post_type_list = array();
|
170 |
+
foreach ( $post_types as $key => $value ) {
|
171 |
+
if( 'attachment' != $key ) {
|
172 |
+
$data = str_replace('-', ' ', $value);
|
173 |
+
$data = str_replace('_', ' ', $data);
|
174 |
+
$post_type_list[$key] = ucwords( $data );
|
175 |
+
}
|
176 |
+
}
|
177 |
+
return $post_type_list;
|
178 |
+
}
|
179 |
+
endif; // catchids_get_all_post_types
|
180 |
+
|
181 |
+
|
182 |
+
if ( ! function_exists( 'catchids_get_options' ) ) :
|
183 |
+
function catchids_get_options() {
|
184 |
+
$defaults = catchids_default_options();
|
185 |
+
$options = get_option( 'catchids_options', $defaults );
|
186 |
+
|
187 |
+
return wp_parse_args( $options, $defaults ) ;
|
188 |
+
}
|
189 |
+
endif; // catchids_get_options
|
190 |
+
|
191 |
+
|
192 |
+
if ( ! function_exists( 'catchids_default_options' ) ) :
|
193 |
+
/**
|
194 |
+
* Return array of default options
|
195 |
+
*
|
196 |
+
* @since 1.0
|
197 |
+
* @return array default options.
|
198 |
+
*/
|
199 |
+
function catchids_default_options( $option = null ) {
|
200 |
+
$types = catchids_get_all_post_types();
|
201 |
+
foreach( $types as $key => $value ) {
|
202 |
+
$default_options[$key] = 1;
|
203 |
+
}
|
204 |
+
$default_options['category'] = 1;
|
205 |
+
$default_options['media'] = 1;
|
206 |
+
$default_options['user'] = 1;
|
207 |
+
$default_options['comment'] = 1;
|
208 |
+
|
209 |
+
if ( null == $option ) {
|
210 |
+
return apply_filters( 'catchids_options', $default_options );
|
211 |
+
}
|
212 |
+
else {
|
213 |
+
return $default_options[ $option ];
|
214 |
+
}
|
215 |
+
}
|
216 |
+
endif; // catchids_default_options
|
217 |
+
|
218 |
+
|
219 |
+
if ( ! function_exists( 'catchids_add_plugin_settings_menu' ) ) :
|
220 |
+
function catchids_add_plugin_settings_menu() {
|
221 |
+
add_menu_page(
|
222 |
+
esc_html__( 'Catch IDs', 'catch-ids' ), //page title
|
223 |
+
esc_html__( 'Catch IDs', 'catch-ids' ), //menu title
|
224 |
+
'edit_posts', //capability needed
|
225 |
+
'catch-ids', //menu slug (and page query url)
|
226 |
+
'catchids_settings',
|
227 |
+
'dashicons-editor-ol',
|
228 |
+
'99.01564'
|
229 |
+
);
|
230 |
+
}
|
231 |
+
endif; // catchids_add_plugin_settings_menu
|
232 |
+
add_action( 'admin_menu', 'catchids_add_plugin_settings_menu' );
|
233 |
+
|
234 |
+
|
235 |
+
if ( ! function_exists( 'catchids_settings' ) ) :
|
236 |
+
function catchids_settings() {
|
237 |
+
$child_theme = false;
|
238 |
+
if ( ! current_user_can( 'edit_posts' ) ) {
|
239 |
+
wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'catch-ids' ) );
|
240 |
+
}
|
241 |
+
|
242 |
+
require_once plugin_dir_path( __FILE__ ) . 'partials/dashboard-display.php';
|
243 |
+
}
|
244 |
+
endif; // catchids_settings
|
245 |
+
|
246 |
+
|
247 |
+
if ( ! function_exists( 'catchids_register_settings' ) ) :
|
248 |
+
/**
|
249 |
+
* Catch IDs: register_settings
|
250 |
+
* Catch IDs Register Settings
|
251 |
+
*/
|
252 |
+
function catchids_register_settings() {
|
253 |
+
register_setting(
|
254 |
+
'catchids-group',
|
255 |
+
'catchids_options',
|
256 |
+
'catchids_sanitize_callback'
|
257 |
+
);
|
258 |
+
}
|
259 |
+
endif; // catchids_register_settings
|
260 |
+
add_action( 'admin_init', 'catchids_register_settings' );
|
261 |
+
|
262 |
+
|
263 |
+
if ( ! function_exists( 'catchids_action_links' ) ) :
|
264 |
+
/**
|
265 |
+
* Catch_IDs: catchids_action_links
|
266 |
+
* Catch_IDs Settings Link function callback
|
267 |
+
*
|
268 |
+
* @param arrray $links Link url.
|
269 |
+
*
|
270 |
+
* @param arrray $file File name.
|
271 |
+
*/
|
272 |
+
function catchids_action_links( $links, $file ) {
|
273 |
+
if ( $file === 'catch-ids/catch-ids.php' ) {
|
274 |
+
$settings_link = '<a href="' . esc_url( admin_url( 'admin.php?page=catch-ids' ) ) . '">' . esc_html__( 'Settings', 'catch-ids' ) . '</a>';
|
275 |
+
|
276 |
+
array_unshift( $links, $settings_link );
|
277 |
+
}
|
278 |
+
return $links;
|
279 |
+
}
|
280 |
+
endif; // catchids_action_links
|
281 |
+
add_filter( 'plugin_action_links', 'catchids_action_links', 10, 2 );
|
282 |
+
|
283 |
+
|
284 |
+
if ( ! function_exists( 'catchids_enqueue_styles' ) ) :
|
285 |
+
function catchids_enqueue_styles() {
|
286 |
+
wp_enqueue_style( 'catchids-styles', plugin_dir_url( __FILE__ ) . 'css/catch-ids.css', array(), '1.0', 'all' );
|
287 |
+
}
|
288 |
+
endif; // catchids_enqueue_styles
|
289 |
+
add_action( 'admin_enqueue_scripts', 'catchids_enqueue_styles' );
|
290 |
+
|
291 |
+
|
292 |
+
if ( ! function_exists( 'catchids_enqueue_scripts' ) ) :
|
293 |
+
function catchids_enqueue_scripts() {
|
294 |
+
wp_enqueue_script( 'catchids-scripts', plugin_dir_url( __FILE__ ) . 'js/catch-ids.js', array('jquery'), '1.0', false );
|
295 |
+
}
|
296 |
+
endif; // catchids_enqueue_scripts
|
297 |
+
add_action( 'admin_enqueue_scripts', 'catchids_enqueue_scripts' );
|
298 |
+
|
299 |
+
|
300 |
+
add_action( 'wp_ajax_catchids_switch', 'catchids_switch' );
|
301 |
+
if ( ! function_exists( 'catchids_switch' ) ) :
|
302 |
+
function catchids_switch() {
|
303 |
+
$value = ( 'true' == $_POST['value'] ) ? 1 : 0;
|
304 |
+
|
305 |
+
$option_name = $_POST['option_name'];
|
306 |
+
|
307 |
+
$option_value = catchids_get_options( 'catchids_options' );
|
308 |
+
|
309 |
+
$option_value[$option_name] = $value;
|
310 |
+
|
311 |
+
if( update_option( 'catchids_options', $option_value ) ) {
|
312 |
+
echo $value;
|
313 |
+
} else {
|
314 |
+
esc_html_e( 'Connection Error. Please try again.', 'catch-ids' );
|
315 |
+
}
|
316 |
+
|
317 |
+
wp_die(); // this is required to terminate immediately and return a proper response
|
318 |
+
}
|
319 |
+
endif; // catchids_switch
|
css/catch-ids.css
ADDED
@@ -0,0 +1,746 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* All of the CSS for your admin-specific functionality should be
|
3 |
+
* included in this file.
|
4 |
+
*/
|
5 |
+
/*--------------------------------------------------------------
|
6 |
+
>>> TABLE OF CONTENTS:
|
7 |
+
----------------------------------------------------------------
|
8 |
+
# Typography
|
9 |
+
# Layout
|
10 |
+
# Clearing
|
11 |
+
# Lists
|
12 |
+
# Media
|
13 |
+
# Links
|
14 |
+
# Header
|
15 |
+
# Content
|
16 |
+
# Toggle Switch
|
17 |
+
# Other Products
|
18 |
+
# Footer
|
19 |
+
# Media Queries
|
20 |
+
## >= 320px
|
21 |
+
## >= 768px
|
22 |
+
## >= 1024px
|
23 |
+
## >= 1280px
|
24 |
+
--------------------------------------------------------------*/
|
25 |
+
|
26 |
+
/*--------------------------------------------------------------
|
27 |
+
# Typography
|
28 |
+
--------------------------------------------------------------*/
|
29 |
+
.catchids-main,
|
30 |
+
.catchids-main button,
|
31 |
+
.catchids-main input,
|
32 |
+
.catchids-main selcatchids,
|
33 |
+
.catchids-main textarea,
|
34 |
+
.catchids-main p {
|
35 |
+
color: #1a1a1a;
|
36 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
37 |
+
font-size: 16px;
|
38 |
+
font-size: 1rem;
|
39 |
+
font-weight: 400;
|
40 |
+
line-height: 1.5;
|
41 |
+
word-wrap: break-word;
|
42 |
+
-webkit-hyphens: auto;
|
43 |
+
-moz-hyphens: auto;
|
44 |
+
-ms-hyphens: auto;
|
45 |
+
hyphens: auto;
|
46 |
+
}
|
47 |
+
|
48 |
+
.catchids-main h1,
|
49 |
+
.catchids-main h2,
|
50 |
+
.catchids-main h3,
|
51 |
+
.catchids-main h4,
|
52 |
+
.catchids-main h5,
|
53 |
+
.catchids-main h6 {
|
54 |
+
clear: both;
|
55 |
+
font-weight: 700;
|
56 |
+
line-height: 1.3;
|
57 |
+
margin: 0;
|
58 |
+
text-rendering: optimizeLegibility;
|
59 |
+
}
|
60 |
+
|
61 |
+
.catchids-main h1 {
|
62 |
+
font-size: 24px;
|
63 |
+
font-size: 1.5rem;
|
64 |
+
}
|
65 |
+
|
66 |
+
.catchids-main h2 {
|
67 |
+
font-size: 20px;
|
68 |
+
font-size: 1.25rem;
|
69 |
+
}
|
70 |
+
|
71 |
+
.catchids-main h3 {
|
72 |
+
font-size: 18px;
|
73 |
+
font-size: 1.125rem;
|
74 |
+
}
|
75 |
+
|
76 |
+
.catchids-main h4 {
|
77 |
+
font-size: 16px;
|
78 |
+
font-size: 1rem;
|
79 |
+
}
|
80 |
+
|
81 |
+
.catchids-main h5 {
|
82 |
+
font-size: 14px;
|
83 |
+
font-size: 0.875rem;
|
84 |
+
}
|
85 |
+
|
86 |
+
.catchids-main h6 {
|
87 |
+
font-size: 13px;
|
88 |
+
font-size: 0.8125rem;
|
89 |
+
}
|
90 |
+
|
91 |
+
.catchids-main p {
|
92 |
+
margin: 0 0 1.5em;
|
93 |
+
}
|
94 |
+
|
95 |
+
/*--------------------------------------------------------------
|
96 |
+
# Layout
|
97 |
+
--------------------------------------------------------------*/
|
98 |
+
.catchids-main {
|
99 |
+
-webkit-box-sizing: border-box;
|
100 |
+
-moz-box-sizing: border-box;
|
101 |
+
box-sizing: border-box;
|
102 |
+
}
|
103 |
+
|
104 |
+
.catchids-main *,
|
105 |
+
.catchids-main *:before,
|
106 |
+
.catchids-main *:after {
|
107 |
+
-webkit-box-sizing: inherit;
|
108 |
+
-moz-box-sizing: inherit;
|
109 |
+
box-sizing: inherit;
|
110 |
+
}
|
111 |
+
|
112 |
+
.catchids-main * {
|
113 |
+
padding: 0;
|
114 |
+
margin: 0;
|
115 |
+
}
|
116 |
+
|
117 |
+
.catchids-main {
|
118 |
+
background-color: #fff;
|
119 |
+
}
|
120 |
+
|
121 |
+
.catchids-main .container {
|
122 |
+
padding: 20px 20px 0;
|
123 |
+
}
|
124 |
+
|
125 |
+
.catchids-main #dashboard {
|
126 |
+
max-width: 1220px;
|
127 |
+
margin: 0 auto;
|
128 |
+
}
|
129 |
+
|
130 |
+
/*--------------------------------------------------------------
|
131 |
+
# Clearing
|
132 |
+
--------------------------------------------------------------*/
|
133 |
+
.catchids-main .clear:before,
|
134 |
+
.catchids-main .clear:after {
|
135 |
+
content: "";
|
136 |
+
display: table;
|
137 |
+
}
|
138 |
+
|
139 |
+
.catchids-main .clear:after {
|
140 |
+
clear: both;
|
141 |
+
}
|
142 |
+
|
143 |
+
/*--------------------------------------------------------------
|
144 |
+
# Lists
|
145 |
+
--------------------------------------------------------------*/
|
146 |
+
.catchids-main .ul,
|
147 |
+
.catchids-main ol {
|
148 |
+
margin: 0 0 1.5em 2em;
|
149 |
+
padding: 0;
|
150 |
+
}
|
151 |
+
|
152 |
+
.catchids-main li {
|
153 |
+
margin: 0;
|
154 |
+
}
|
155 |
+
|
156 |
+
.catchids-main ul {
|
157 |
+
list-style: disc;
|
158 |
+
}
|
159 |
+
|
160 |
+
.catchids-main ol {
|
161 |
+
list-style: decimal;
|
162 |
+
}
|
163 |
+
|
164 |
+
.catchids-main li > ul,
|
165 |
+
.catchids-main li > ol {
|
166 |
+
margin-top: 0.55em;
|
167 |
+
margin-left: 1.5em;
|
168 |
+
margin-bottom: 0;
|
169 |
+
}
|
170 |
+
|
171 |
+
.catchids-main li {
|
172 |
+
margin-bottom: 0.55em;
|
173 |
+
}
|
174 |
+
|
175 |
+
.catchids-main dt {
|
176 |
+
font-weight: 700;
|
177 |
+
}
|
178 |
+
|
179 |
+
.catchids-main dd {
|
180 |
+
margin: 0 1.5em 1.5em;
|
181 |
+
}
|
182 |
+
|
183 |
+
|
184 |
+
/*--------------------------------------------------------------
|
185 |
+
# Media
|
186 |
+
--------------------------------------------------------------*/
|
187 |
+
.catchids-main img {
|
188 |
+
height: auto; /* Make sure images are scaled corrcatchidsly. */
|
189 |
+
max-width: 100%; /* Adhere to container width. */
|
190 |
+
vertical-align: middle;
|
191 |
+
}
|
192 |
+
|
193 |
+
|
194 |
+
/*--------------------------------------------------------------
|
195 |
+
# Links
|
196 |
+
--------------------------------------------------------------*/
|
197 |
+
.catchids-main a {
|
198 |
+
color: #0085c3;
|
199 |
+
cursor: pointer;
|
200 |
+
text-decoration: none;
|
201 |
+
}
|
202 |
+
|
203 |
+
.catchids-main a:hover,
|
204 |
+
.catchids-main a:focus,
|
205 |
+
.catchids-main a:active {
|
206 |
+
color: #444;
|
207 |
+
text-decoration: underline;
|
208 |
+
}
|
209 |
+
|
210 |
+
.catchids-main a:focus {
|
211 |
+
outline: thin dotted;
|
212 |
+
}
|
213 |
+
|
214 |
+
.catchids-main a:hover,
|
215 |
+
.catchids-main a:active {
|
216 |
+
outline: 0;
|
217 |
+
}
|
218 |
+
|
219 |
+
/*--------------------------------------------------------------
|
220 |
+
# Header
|
221 |
+
--------------------------------------------------------------*/
|
222 |
+
.catchids-main #masthead {
|
223 |
+
background: #00618d;
|
224 |
+
background: -webkit-radial-gradient(circle farthest-side at center bottom, #0085c3, #00618d 110%);
|
225 |
+
background: -o-radial-gradient(circle farthest-side at center bottom, #0085c3, #00618d 110%);
|
226 |
+
background: -moz-radial-gradient(circle farthest-side at center bottom, #0085c3, #00618d 110%);
|
227 |
+
background: radial-gradient(circle farthest-side at center bottom, #0085c3, #00618d 110%);
|
228 |
+
}
|
229 |
+
|
230 |
+
.catchids-main #masthead .wrapper {
|
231 |
+
display: -webkit-box;
|
232 |
+
display: -ms-flexbox;
|
233 |
+
display: flex;
|
234 |
+
-ms-flex-flow: column wrap;
|
235 |
+
flex-flow : column wrap;
|
236 |
+
}
|
237 |
+
|
238 |
+
.catchids-main #plugin-description {
|
239 |
+
margin: 0 auto;
|
240 |
+
max-width: 960px;
|
241 |
+
padding-bottom: 20px;
|
242 |
+
text-align: center;
|
243 |
+
}
|
244 |
+
|
245 |
+
.catchids-main #plugin-description p:last-child {
|
246 |
+
margin-bottom: 0;
|
247 |
+
}
|
248 |
+
|
249 |
+
.catchids-main #site-branding {
|
250 |
+
display: block;
|
251 |
+
order: 1;
|
252 |
+
padding: 30px 20px;
|
253 |
+
text-align: center;
|
254 |
+
width: 100%;
|
255 |
+
}
|
256 |
+
|
257 |
+
.catchids-main .site-title {
|
258 |
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
|
259 |
+
text-transform: capitalize;
|
260 |
+
}
|
261 |
+
|
262 |
+
.catchids-main .site-title a {
|
263 |
+
color: #fff;
|
264 |
+
}
|
265 |
+
|
266 |
+
.catchids-main .site-title a:hover,
|
267 |
+
.catchids-main .site-title a:focus {
|
268 |
+
text-decoration: none;
|
269 |
+
}
|
270 |
+
|
271 |
+
.catchids-main .site-title-additional {
|
272 |
+
color: #006ea4;
|
273 |
+
}
|
274 |
+
|
275 |
+
.catchids-main .setting {
|
276 |
+
padding: 0 7px;
|
277 |
+
color: #fff;
|
278 |
+
}
|
279 |
+
|
280 |
+
/*--------------------------------------------------------------
|
281 |
+
# Content
|
282 |
+
--------------------------------------------------------------*/
|
283 |
+
.catchids-main .container {
|
284 |
+
display: -webkit-box;
|
285 |
+
display: -ms-flexbox;
|
286 |
+
display: flex;
|
287 |
+
-ms-flex-flow: column wrap;
|
288 |
+
flex-flow: column wrap;
|
289 |
+
justify-content: center;
|
290 |
+
margin: 0 auto;
|
291 |
+
max-width: 680px;
|
292 |
+
}
|
293 |
+
|
294 |
+
.catchids-main .module-container {
|
295 |
+
display: -webkit-box;
|
296 |
+
display: -ms-flexbox;
|
297 |
+
display: flex;
|
298 |
+
-ms-flex-flow: column wrap;
|
299 |
+
flex-flow: column wrap;
|
300 |
+
-webkit-box-pack: flex-start;
|
301 |
+
-ms-flex-pack: flex-start;
|
302 |
+
justify-content:flex-start;
|
303 |
+
}
|
304 |
+
|
305 |
+
.catchids-main .module-header {
|
306 |
+
background-color: #0685c3 ;
|
307 |
+
cursor: pointer;
|
308 |
+
display: -webkit-box;
|
309 |
+
display: -ms-flexbox;
|
310 |
+
display: flex;
|
311 |
+
-ms-flex-flow: column wrap;
|
312 |
+
flex-flow: column wrap;
|
313 |
+
margin: -2px -2px 0;
|
314 |
+
padding: 11px 25px;
|
315 |
+
position: relative;
|
316 |
+
}
|
317 |
+
|
318 |
+
.catchids-main .module-header.active {
|
319 |
+
background-color: #0685c3;
|
320 |
+
-webkit-transition: all 0.2s ease;
|
321 |
+
-moz-transition: all 0.2s ease;
|
322 |
+
o-transition: all 0.2s ease;
|
323 |
+
transition: all 0.2s ease;
|
324 |
+
}
|
325 |
+
|
326 |
+
.catchids-main .module-header.inactive {
|
327 |
+
background-color:#00618d;
|
328 |
+
-webkit-transition: all 0.2s ease;
|
329 |
+
-moz-transition: all 0.2s ease;
|
330 |
+
o-transition: all 0.2s ease;
|
331 |
+
transition: all 0.2s ease;
|
332 |
+
}
|
333 |
+
|
334 |
+
.catchids-main .module-title,
|
335 |
+
.catchids-main .other-catchthemes-products .module-content {
|
336 |
+
color: #fff;
|
337 |
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
|
338 |
+
font-weight: normal;
|
339 |
+
}
|
340 |
+
|
341 |
+
.catchids-main .catch-modules {
|
342 |
+
background-color: #f9f9f9;
|
343 |
+
border-radius: 3px;
|
344 |
+
border: 2px solid #ccc;
|
345 |
+
border-top: 0;
|
346 |
+
display: -webkit-box;
|
347 |
+
display: -ms-flexbox;
|
348 |
+
display: flex;
|
349 |
+
-ms-flex-flow: column wrap;
|
350 |
+
flex-flow: column wrap;
|
351 |
+
margin-bottom: 20px;
|
352 |
+
}
|
353 |
+
|
354 |
+
.catchids-main .catch-module-long {
|
355 |
+
background-color: #f9f9f9;
|
356 |
+
border-radius: 3px;
|
357 |
+
border: 2px solid #ccc;
|
358 |
+
border-top: 0;
|
359 |
+
display: -webkit-box;
|
360 |
+
display: -ms-flexbox;
|
361 |
+
display: flex;
|
362 |
+
-ms-flex-flow: column wrap;
|
363 |
+
flex-flow:column wrap;
|
364 |
+
}
|
365 |
+
|
366 |
+
.catchids-main .module-content {
|
367 |
+
padding: 15px;
|
368 |
+
}
|
369 |
+
|
370 |
+
.catchids-main .module-content p:last-child {
|
371 |
+
margin-bottom: 0;
|
372 |
+
}
|
373 |
+
|
374 |
+
.catchids-main #main-nav .dashicons {
|
375 |
+
line-height: 2.7;
|
376 |
+
}
|
377 |
+
|
378 |
+
/*--------------------------------------------------------------
|
379 |
+
# Toggle Switch
|
380 |
+
--------------------------------------------------------------*/
|
381 |
+
.catchids-main .switch {
|
382 |
+
-webkit-box-flex: 0;
|
383 |
+
-webkit-flex-grow: 0;
|
384 |
+
-moz-box-flex: 0;
|
385 |
+
-ms-flex-positive: 0;
|
386 |
+
flex-grow: 0;
|
387 |
+
-webkit-flex-shrink: 0;
|
388 |
+
-ms-flex-negative: 0;
|
389 |
+
flex-shrink: 0;
|
390 |
+
position: relative;
|
391 |
+
float: none;
|
392 |
+
right: 0;
|
393 |
+
}
|
394 |
+
|
395 |
+
.catchids-main .module-title.active {
|
396 |
+
background-color: #0085c3;
|
397 |
+
}
|
398 |
+
|
399 |
+
.catchids-main .switch label {
|
400 |
+
background-color: #fff;
|
401 |
+
border-radius: 11px;
|
402 |
+
cursor: pointer;
|
403 |
+
height: 21px;
|
404 |
+
left:0;
|
405 |
+
position: absolute;
|
406 |
+
top: 0;
|
407 |
+
width: 41px;
|
408 |
+
}
|
409 |
+
|
410 |
+
.catchids-main .switch input[type="checkbox"] {
|
411 |
+
visibility: hidden;
|
412 |
+
}
|
413 |
+
|
414 |
+
.catchids-main .switch label:after {
|
415 |
+
background-color: #00618d;
|
416 |
+
border-radius: 100%;
|
417 |
+
content: '';
|
418 |
+
height: 17px;
|
419 |
+
left: 2px;
|
420 |
+
position: absolute;
|
421 |
+
-webkit-transition: all 0.2s ease-in-out;
|
422 |
+
-moz-transition: all 0.2s ease-in-out;
|
423 |
+
o-transition: all 0.2s ease-in-out;
|
424 |
+
transition: all 0.2s ease-in-out;
|
425 |
+
top: 2px;
|
426 |
+
width: 17px;
|
427 |
+
}
|
428 |
+
|
429 |
+
.catchids-main .switch input[type="checkbox"]:checked + label:after {
|
430 |
+
left: 22px;
|
431 |
+
background-color: #0085c3;
|
432 |
+
}
|
433 |
+
|
434 |
+
.catchids-main .loader {
|
435 |
+
border: 5px solid #00618d;
|
436 |
+
border-radius: 50%;
|
437 |
+
border-top: 2px solid transparent;
|
438 |
+
width: 20px;
|
439 |
+
height: 20px;
|
440 |
+
-webkit-animation: spin 2s linear infinite;
|
441 |
+
animation: spin 2s linear infinite;
|
442 |
+
position: absolute;
|
443 |
+
top: -20px;
|
444 |
+
right: 20px;
|
445 |
+
display: none;
|
446 |
+
}
|
447 |
+
|
448 |
+
@-webkit-keyframes spin {
|
449 |
+
0% { -webkit-transform: rotate(0deg); }
|
450 |
+
100% { -webkit-transform: rotate(360deg); }
|
451 |
+
}
|
452 |
+
|
453 |
+
@keyframes spin {
|
454 |
+
0% { transform: rotate(0deg); }
|
455 |
+
100% { transform: rotate(360deg); }
|
456 |
+
}
|
457 |
+
|
458 |
+
/*--------------------------------------------------------------
|
459 |
+
# Other Products
|
460 |
+
--------------------------------------------------------------*/
|
461 |
+
.catchids-main .other-catchthemes-products {
|
462 |
+
background-color: #f9f9f9;
|
463 |
+
clear: both;
|
464 |
+
display: block;
|
465 |
+
}
|
466 |
+
|
467 |
+
.catchids-main .other-catchthemes-products .module-content {
|
468 |
+
border: none;
|
469 |
+
padding: 0;
|
470 |
+
position: relative;
|
471 |
+
text-align: center;
|
472 |
+
}
|
473 |
+
|
474 |
+
.catchids-main .other-catchthemes-products .catch-modules {
|
475 |
+
background-color: #fff;
|
476 |
+
border: 1px solid #dedede;
|
477 |
+
}
|
478 |
+
|
479 |
+
.catchids-main .other-catchthemes-products .catch-modules a {
|
480 |
+
color: #444;
|
481 |
+
display: block;
|
482 |
+
padding: 1em;
|
483 |
+
}
|
484 |
+
|
485 |
+
.catchids-main .other-catchthemes-products .catch-modules a:hover,
|
486 |
+
.catchids-main .other-catchthemes-products .catch-modules a:focus {
|
487 |
+
color: #0085c3;
|
488 |
+
text-decoration: none;
|
489 |
+
}
|
490 |
+
|
491 |
+
.catchids-main .other-catchthemes-products .catch-modules .more-details {
|
492 |
+
background-color: #00618d;
|
493 |
+
color: #fff;
|
494 |
+
padding: 16px;
|
495 |
+
position: absolute;
|
496 |
+
left: 25%;
|
497 |
+
font-size: 15px;
|
498 |
+
font-size: 0.9375rem;
|
499 |
+
right: 25%;
|
500 |
+
text-align: center;
|
501 |
+
top: 35%;
|
502 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
503 |
+
opacity: 0;
|
504 |
+
-webkit-transition: opacity 0.1s ease-in-out;
|
505 |
+
transition: opacity 0.1s ease-in-out;
|
506 |
+
}
|
507 |
+
|
508 |
+
.catchids-main .other-catchthemes-products .module-content:hover .more-details,
|
509 |
+
.catchids-main .other-catchthemes-products .module-content:focus .more-details {
|
510 |
+
color: #fff;
|
511 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
512 |
+
opacity: 1;
|
513 |
+
text-decoration: none;
|
514 |
+
}
|
515 |
+
|
516 |
+
.catchids-main .other-catchthemes-products .catch-modules .modules-thumbnail {
|
517 |
+
padding: 0;
|
518 |
+
}
|
519 |
+
|
520 |
+
/*--------------------------------------------------------------
|
521 |
+
# Footer
|
522 |
+
--------------------------------------------------------------*/
|
523 |
+
.catchids-main .footer-navigation {
|
524 |
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
|
525 |
+
}
|
526 |
+
|
527 |
+
.catchids-main .menu-footer-container {
|
528 |
+
padding: 10px 20px 30px;
|
529 |
+
}
|
530 |
+
|
531 |
+
.catchids-main .footer-navigation ul {
|
532 |
+
list-style: none;
|
533 |
+
}
|
534 |
+
|
535 |
+
.catchids-main .footer-navigation a {
|
536 |
+
color: #444;
|
537 |
+
text-transform: capitalize;
|
538 |
+
padding: 10px 8px 10px 6px;
|
539 |
+
display: block;
|
540 |
+
}
|
541 |
+
|
542 |
+
.catchids-main .footer-navigation a:hover,
|
543 |
+
.catchids-main .footer-navigation a:focus {
|
544 |
+
color: #0085c3;
|
545 |
+
text-decoration: none;
|
546 |
+
}
|
547 |
+
|
548 |
+
.catchids-main .site-footer .menu-footer {
|
549 |
+
display: -webkit-box;
|
550 |
+
display: -ms-flexbox;
|
551 |
+
display: flex;
|
552 |
+
-ms-flex-flow: row wrap;
|
553 |
+
flex-flow: row wrap;
|
554 |
+
-webkit-box-pack: center;
|
555 |
+
-ms-flex-pack: center;
|
556 |
+
justify-content: center;
|
557 |
+
align-items: center;
|
558 |
+
margin: 0;
|
559 |
+
}
|
560 |
+
|
561 |
+
.catchids-main .site-footer .menu-footer li {
|
562 |
+
margin: 0;
|
563 |
+
}
|
564 |
+
|
565 |
+
/*--------------------------------------------------------------
|
566 |
+
# Media Queries
|
567 |
+
--------------------------------------------------------------*/
|
568 |
+
|
569 |
+
/*--------------------------------------------------------------
|
570 |
+
## >= 320px
|
571 |
+
--------------------------------------------------------------*/
|
572 |
+
@media screen and (min-width: 20em) {
|
573 |
+
.catchids-main .module-header {
|
574 |
+
display: -webkit-box;
|
575 |
+
display: -ms-flexbox;
|
576 |
+
display: flex;
|
577 |
+
-ms-flex-flow: row wrap;
|
578 |
+
flex-flow: row wrap;
|
579 |
+
-webkit-box-pack: space-between;
|
580 |
+
-ms-flex-pack: space-between;
|
581 |
+
justify-content: space-between;
|
582 |
+
}
|
583 |
+
|
584 |
+
.catchids-main .module-title {
|
585 |
+
margin-bottom: 0;
|
586 |
+
}
|
587 |
+
|
588 |
+
.catchids-main .switch {
|
589 |
+
margin-right: 25px;
|
590 |
+
}
|
591 |
+
}
|
592 |
+
|
593 |
+
/*--------------------------------------------------------------
|
594 |
+
## >= 768px
|
595 |
+
--------------------------------------------------------------*/
|
596 |
+
@media screen and (min-width: 48em) {
|
597 |
+
.catchids-main .container {
|
598 |
+
padding: 30px;
|
599 |
+
max-width: 100%;
|
600 |
+
}
|
601 |
+
|
602 |
+
.catchids-main .module-container {
|
603 |
+
-ms-flex-flow: row wrap;
|
604 |
+
flex-flow: row wrap;
|
605 |
+
-webkit-box-pack: space-between;
|
606 |
+
-ms-flex-pack: space-between;
|
607 |
+
justify-content: space-between;
|
608 |
+
}
|
609 |
+
|
610 |
+
.catchids-main #plugin-description {
|
611 |
+
padding-bottom: 30px;
|
612 |
+
}
|
613 |
+
|
614 |
+
.catchids-main .catch-modules {
|
615 |
+
flex: 0 1 31.5%;
|
616 |
+
}
|
617 |
+
|
618 |
+
.catchids-main .module-content {
|
619 |
+
padding: 20px;
|
620 |
+
}
|
621 |
+
|
622 |
+
.catchids-main .menu-footer-container {
|
623 |
+
padding: 10px 40px 30px;
|
624 |
+
}
|
625 |
+
}
|
626 |
+
|
627 |
+
/*--------------------------------------------------------------
|
628 |
+
## >= 1024px
|
629 |
+
--------------------------------------------------------------*/
|
630 |
+
@media screen and (min-width: 64em) {
|
631 |
+
.catchids-main h1 {
|
632 |
+
font-size: 32px;
|
633 |
+
font-size: 2rem;
|
634 |
+
}
|
635 |
+
|
636 |
+
.catchids-main h2 {
|
637 |
+
font-size: 22px;
|
638 |
+
font-size: 1.375rem;
|
639 |
+
}
|
640 |
+
|
641 |
+
.catchids-main #site-branding {
|
642 |
+
padding: 40px;
|
643 |
+
}
|
644 |
+
|
645 |
+
.catchids-main .module-container {
|
646 |
+
-webkit-box-pack: flex-start;
|
647 |
+
-ms-flex-pack: flex-start;
|
648 |
+
justify-content: flex-start;
|
649 |
+
}
|
650 |
+
|
651 |
+
.catchids-main .module-container .wrapper {
|
652 |
+
display: -webkit-box;
|
653 |
+
display: -ms-flexbox;
|
654 |
+
display: flex;
|
655 |
+
-webkit-flex-wrap:wrap;
|
656 |
+
-ms-flex-wrap: wrap;
|
657 |
+
flex-wrap: wrap;
|
658 |
+
-webkit-box-pack: flex-start;
|
659 |
+
-ms-flex-pack: flex-start;
|
660 |
+
justify-content: flex-start;
|
661 |
+
}
|
662 |
+
|
663 |
+
.catchids-main .catch-modules {
|
664 |
+
-ms-flex: 31.33%;
|
665 |
+
-webkit-flex: 31.33%;
|
666 |
+
flex: 0 1 31.33%;
|
667 |
+
margin: 0 1%;
|
668 |
+
}
|
669 |
+
|
670 |
+
.catchids-main #dashboard .catch-modules {
|
671 |
+
-ms-flex: 31%;
|
672 |
+
-webkit-flex: 31%;
|
673 |
+
flex: 0 1 31%;
|
674 |
+
margin: 10px 1%;
|
675 |
+
}
|
676 |
+
|
677 |
+
.catchids-main .menu-footer-container {
|
678 |
+
padding: 25px 40px;
|
679 |
+
}
|
680 |
+
|
681 |
+
.catchids-main .footer-navigation a {
|
682 |
+
padding: 10px;
|
683 |
+
}
|
684 |
+
}
|
685 |
+
|
686 |
+
/*--------------------------------------------------------------
|
687 |
+
## >= 1280px
|
688 |
+
--------------------------------------------------------------*/
|
689 |
+
@media screen and (min-width: 80em) {
|
690 |
+
.catchids-main,
|
691 |
+
.catchids-main button,
|
692 |
+
.catchids-main input,
|
693 |
+
.catchids-main selcatchids,
|
694 |
+
.catchids-main textarea,
|
695 |
+
.catchids-main p {
|
696 |
+
font-size: 18px;
|
697 |
+
font-size: 1.1875rem;
|
698 |
+
}
|
699 |
+
|
700 |
+
.catchids-main h1 {
|
701 |
+
font-size: 48px;
|
702 |
+
font-size: 3rem;
|
703 |
+
}
|
704 |
+
|
705 |
+
.catchids-main h2 {
|
706 |
+
font-size: 24px;
|
707 |
+
font-size: 1.5rem;
|
708 |
+
}
|
709 |
+
|
710 |
+
.catchids-main h3 {
|
711 |
+
font-size: 20px;
|
712 |
+
font-size: 1.25rem;
|
713 |
+
}
|
714 |
+
|
715 |
+
.catchids-main .container {
|
716 |
+
padding: 60px 40px;
|
717 |
+
}
|
718 |
+
|
719 |
+
.catchids-main #plugin-description {
|
720 |
+
padding-bottom: 40px;
|
721 |
+
}
|
722 |
+
|
723 |
+
.catchids-main #site-branding {
|
724 |
+
padding: 50px;
|
725 |
+
}
|
726 |
+
|
727 |
+
.catchids-main .module-content {
|
728 |
+
padding: 25px;
|
729 |
+
}
|
730 |
+
|
731 |
+
.catchids-main .footer-navigation a {
|
732 |
+
padding: 10px 10px 10px 13px;
|
733 |
+
}
|
734 |
+
}
|
735 |
+
|
736 |
+
@font-face {
|
737 |
+
font-family: "Indie Flower";
|
738 |
+
font-style: normal;
|
739 |
+
font-weight: 400;
|
740 |
+
src: url("https://fonts.gstatic.com/l/font?kit=clhLqOv7MXn459PTh0gXYFEHbhLjyjCbE9uPlVOhIZAljegwSeDbtiHKgT6kSuH8OhAwGXnQZ2fim__WzpJMvT-ot7WhoQNhxW9XSHPUr95hxaMfyGAgGEujUXva07BSgdd4-sq5HMlny4sZVjdTld9skCzI2cONrJHJwHS-uezk6pKNm_c00YwqyD4WJhTB&skey=d59d8f871dbcf35e&v=v6") format("woff2");
|
741 |
+
}
|
742 |
+
|
743 |
+
.pro {
|
744 |
+
color: #ff0000;
|
745 |
+
font-family: 'Indie Flower', sans-serif;
|
746 |
+
}
|
js/catch-ids.js
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function( $ ) {
|
2 |
+
'use strict';
|
3 |
+
|
4 |
+
$(function() {
|
5 |
+
|
6 |
+
/* For Input Switch */
|
7 |
+
$( '.catchids-input-switch' ).on( 'click', function() {
|
8 |
+
var loader = $( this ).parent().next();
|
9 |
+
|
10 |
+
loader.show();
|
11 |
+
|
12 |
+
var main_control = $( this );
|
13 |
+
var data = {
|
14 |
+
'action' : 'catchids_switch',
|
15 |
+
'value' : this.checked,
|
16 |
+
'option_name' : main_control.attr( 'rel' )
|
17 |
+
};
|
18 |
+
|
19 |
+
$.post( ajaxurl, data, function( response ) {
|
20 |
+
response = $.trim( response );
|
21 |
+
|
22 |
+
if ( '1' == response ) {
|
23 |
+
main_control.parent().parent().addClass( 'active' );
|
24 |
+
main_control.parent().parent().removeClass( 'inactive' );
|
25 |
+
} else if( '0' == response ) {
|
26 |
+
main_control.parent().parent().addClass( 'inactive' );
|
27 |
+
main_control.parent().parent().removeClass( 'active' );
|
28 |
+
} else {
|
29 |
+
alert( response );
|
30 |
+
}
|
31 |
+
|
32 |
+
loader.hide();
|
33 |
+
});
|
34 |
+
});
|
35 |
+
/* For Input Switch End */
|
36 |
+
});
|
37 |
+
|
38 |
+
})( jQuery );
|
languages/catch-ids.pot
CHANGED
@@ -5,7 +5,7 @@ msgid ""
|
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: Catch Ids\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/tags/catch-ids\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"PO-Revision-Date: 2016-12-07 22:52-0500\n"
|
10 |
"Last-Translator: Pratik Shrestha <pratik@catchthemes.com>\n"
|
11 |
"Language-Team: Catch Themes <info@catchthemes.com>\n"
|
@@ -14,7 +14,7 @@ msgstr ""
|
|
14 |
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
-
"X-Generator: Poedit 2.0.
|
18 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;"
|
19 |
"esc_html__\n"
|
20 |
"X-Poedit-Basepath: .\n"
|
@@ -23,3 +23,15 @@ msgstr ""
|
|
23 |
#: ../catch-ids.php:53
|
24 |
msgid "ID"
|
25 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: Catch Ids\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/tags/catch-ids\n"
|
8 |
+
"POT-Creation-Date: 2018-02-28 17:08+0545\n"
|
9 |
"PO-Revision-Date: 2016-12-07 22:52-0500\n"
|
10 |
"Last-Translator: Pratik Shrestha <pratik@catchthemes.com>\n"
|
11 |
"Language-Team: Catch Themes <info@catchthemes.com>\n"
|
14 |
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
+
"X-Generator: Poedit 2.0.6\n"
|
18 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;"
|
19 |
"esc_html__\n"
|
20 |
"X-Poedit-Basepath: .\n"
|
23 |
#: ../catch-ids.php:53
|
24 |
msgid "ID"
|
25 |
msgstr ""
|
26 |
+
|
27 |
+
#: ../catch-ids.php:222 ../catch-ids.php:223
|
28 |
+
msgid "Catch IDs"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: ../catch-ids.php:239
|
32 |
+
msgid "You do not have sufficient permissions to access this page."
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: ../catch-ids.php:274
|
36 |
+
msgid "Settings"
|
37 |
+
msgstr ""
|
partials/dashboard-display.php
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Provide a admin area dashboard view for the plugin
|
5 |
+
*
|
6 |
+
* This file is used to markup the admin-facing aspects of the plugin.
|
7 |
+
*
|
8 |
+
* @link https://catchthemes.com
|
9 |
+
* @since 1.0.0
|
10 |
+
*
|
11 |
+
* @package Generate_Child_Theme
|
12 |
+
* @subpackage Generate_Child_Theme/admin/partials
|
13 |
+
*/
|
14 |
+
?>
|
15 |
+
|
16 |
+
<div id="catch-ids" class="catchids-main" aria-label="Main Content">
|
17 |
+
<?php
|
18 |
+
//Add header
|
19 |
+
require_once plugin_dir_path( dirname( __FILE__ ) ) . '/partials/header.php';
|
20 |
+
?>
|
21 |
+
|
22 |
+
<div id="dashboard">
|
23 |
+
<div class="container">
|
24 |
+
<div id="plugin-description">
|
25 |
+
<p><?php esc_html_e( 'Catch IDs is a simple and light weight plugin to show the Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and User ID in the Admin Section Table.', 'generate-child-theme' ); ?></p>
|
26 |
+
</div>
|
27 |
+
<div class="module-container">
|
28 |
+
<?php
|
29 |
+
$options = catchids_get_options();
|
30 |
+
$post_types = catchids_get_all_post_types();
|
31 |
+
foreach ( $post_types as $key => $value ) :
|
32 |
+
?>
|
33 |
+
<!-- Custom Post Types -->
|
34 |
+
<div id="module-<?php echo $key; ?>" class="catch-modules">
|
35 |
+
<div class="module-header <?php echo $options[$key] ? 'active' : 'inactive'; ?>">
|
36 |
+
<h3 class="module-title"><?php esc_html_e( $value, 'catch-ids' ); ?></h3>
|
37 |
+
<div class="switch">
|
38 |
+
<input type="checkbox" id="catchids_options[<?php echo $key; ?>]" class="catchids-input-switch" rel="<?php echo $key; ?>" <?php checked( true, $options[$key] ); ?> >
|
39 |
+
<label for="catchids_options[<?php echo $key; ?>]"></label>
|
40 |
+
</div>
|
41 |
+
<div class="loader"></div>
|
42 |
+
</div><!-- .module-header -->
|
43 |
+
</div><!-- .catch-modules -->
|
44 |
+
<?php endforeach; ?>
|
45 |
+
|
46 |
+
<!-- Media -->
|
47 |
+
<div id="module-<?php echo 'media'; ?>" class="catch-modules">
|
48 |
+
<div class="module-header <?php echo $options['media'] ? 'active' : 'inactive'; ?>">
|
49 |
+
<h3 class="module-title"><?php esc_html_e( 'Media', 'catch-ids' ); ?></h3>
|
50 |
+
<div class="switch">
|
51 |
+
<input type="checkbox" id="catchids_options[media]" class="catchids-input-switch" rel="media" <?php checked( true, $options['media'] ); ?> >
|
52 |
+
<label for="catchids_options[media]"></label>
|
53 |
+
</div>
|
54 |
+
<div class="loader"></div>
|
55 |
+
</div><!-- .module-header -->
|
56 |
+
</div><!-- .catch-modules -->
|
57 |
+
|
58 |
+
<!-- Categories -->
|
59 |
+
<div id="module-<?php echo 'category'; ?>" class="catch-modules">
|
60 |
+
<div class="module-header <?php echo $options['category'] ? 'active' : 'inactive'; ?>">
|
61 |
+
<h3 class="module-title"><?php esc_html_e( 'Categories', 'catch-ids' ); ?></h3>
|
62 |
+
<div class="switch">
|
63 |
+
<input type="checkbox" id="catchids_options[category]" class="catchids-input-switch" rel="category" <?php checked( true, $options['category'] ); ?> >
|
64 |
+
<label for="catchids_options[category]"></label>
|
65 |
+
</div>
|
66 |
+
<div class="loader"></div>
|
67 |
+
</div><!-- .module-header -->
|
68 |
+
</div><!-- .catch-modules -->
|
69 |
+
|
70 |
+
<!-- Users -->
|
71 |
+
<div id="module-<?php echo 'user'; ?>" class="catch-modules">
|
72 |
+
<div class="module-header <?php echo $options['user'] ? 'active' : 'inactive'; ?>">
|
73 |
+
<h3 class="module-title"><?php esc_html_e( 'Users', 'catch-ids' ); ?></h3>
|
74 |
+
<div class="switch">
|
75 |
+
<input type="checkbox" id="catchids_options[user]" class="catchids-input-switch" rel="user" <?php checked( true, $options['user'] ); ?> >
|
76 |
+
<label for="catchids_options[user]"></label>
|
77 |
+
</div>
|
78 |
+
<div class="loader"></div>
|
79 |
+
</div><!-- .module-header -->
|
80 |
+
</div><!-- .catch-modules -->
|
81 |
+
|
82 |
+
<!-- Comments -->
|
83 |
+
<div id="module-<?php echo 'comment'; ?>" class="catch-modules">
|
84 |
+
<div class="module-header <?php echo $options['comment'] ? 'active' : 'inactive'; ?>">
|
85 |
+
<h3 class="module-title"><?php esc_html_e( 'Comments', 'catch-ids' ); ?></h3>
|
86 |
+
<div class="switch">
|
87 |
+
<input type="checkbox" id="catchids_options[comment]" class="catchids-input-switch" rel="comment" <?php checked( true, $options['comment'] ); ?> >
|
88 |
+
<label for="catchids_options[comment]"></label>
|
89 |
+
</div>
|
90 |
+
<div class="loader"></div>
|
91 |
+
</div><!-- .module-header -->
|
92 |
+
</div><!-- .catch-modules -->
|
93 |
+
|
94 |
+
</div><!-- .module-container -->
|
95 |
+
|
96 |
+
</div><!-- .container -->
|
97 |
+
</div> <!-- #dashboard -->
|
98 |
+
|
99 |
+
<?php
|
100 |
+
//Add footer
|
101 |
+
require_once plugin_dir_path( dirname( __FILE__ ) ) . '/partials/footer.php';
|
102 |
+
?>
|
103 |
+
</div> <!-- Main Content-->
|
partials/footer.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Provide a admin area common footer view for the plugin
|
5 |
+
*
|
6 |
+
* This file is used to markup the admin-facing aspects of the plugin.
|
7 |
+
*
|
8 |
+
* @link https://catchthemes.com
|
9 |
+
* @since 1.0.0
|
10 |
+
*
|
11 |
+
* @package Generate_Child_Theme
|
12 |
+
* @subpackage Generate_Child_Theme/admin/partials
|
13 |
+
*/
|
14 |
+
?>
|
15 |
+
|
16 |
+
<footer id="colophon" class="site-footer" role="content-info">
|
17 |
+
<div class="footer-container">
|
18 |
+
<nav class="footer-navigation" role="navigation" aria-label="Footer Menu">
|
19 |
+
<div class="menu-footer-container">
|
20 |
+
<ul class="menu-footer">
|
21 |
+
<li>
|
22 |
+
<a href="https://catchthemes.com/donate" target="_blank"><?php esc_html_e( 'Donate', 'generate-child-theme' ) ; ?></a>
|
23 |
+
</li>
|
24 |
+
|
25 |
+
<li>
|
26 |
+
<a href="https://catchthemes.com/support-forum" target="_blank"><?php esc_html_e( 'Support Forum', 'generate-child-theme' ) ; ?></a>
|
27 |
+
</li>
|
28 |
+
|
29 |
+
<li>
|
30 |
+
<a href="https://catchthemes.com/plugins/generate-child-theme" target="_blank"><?php esc_html_e( 'Plugin Details', 'generate-child-theme' ) ; ?></a>
|
31 |
+
</li>
|
32 |
+
|
33 |
+
<li>
|
34 |
+
<a href="https://facebook.com/catchthemes" target="_blank"><?php esc_html_e( 'Facebook', 'generate-child-theme' ) ; ?></a>
|
35 |
+
</li>
|
36 |
+
|
37 |
+
<li>
|
38 |
+
<a href="https://twitter.com/catchthemes" target="_blank"><?php esc_html_e( 'Twitter', 'generate-child-theme' ) ; ?></a>
|
39 |
+
</li>
|
40 |
+
|
41 |
+
<li>
|
42 |
+
<a href="https://wordpress.org/support/plugin/generate-child-theme/reviews/?rate=5#new-post" target="_blank"><?php esc_html_e( '5 Star Rating', 'generate-child-theme' ) ; ?></a>
|
43 |
+
</li>
|
44 |
+
</ul><!-- .menu-footer -->
|
45 |
+
</div><!-- .menu-footer-container -->
|
46 |
+
</nav><!-- .footer-navigation -->
|
47 |
+
</div><!-- .footer-container -->
|
48 |
+
</footer><!-- #colophon -->
|
partials/header.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Provide a admin area common header view for the plugin
|
5 |
+
*
|
6 |
+
* This file is used to markup the admin-facing aspects of the plugin.
|
7 |
+
*
|
8 |
+
* @link https://catchthemes.com
|
9 |
+
* @since 1.0.0
|
10 |
+
*
|
11 |
+
* @package Catch_Ids
|
12 |
+
* @subpackage Catch_Ids/partials
|
13 |
+
*/
|
14 |
+
?>
|
15 |
+
|
16 |
+
<header id="masthead" class="site-header" role="banner">
|
17 |
+
<div class="wrapper">
|
18 |
+
<div id="site-branding">
|
19 |
+
<h1 class="site-title"><a href="https://catchthemes.com/plugins/generate-child-theme" target="_blank">Catch IDs</a></h1>
|
20 |
+
</div>
|
21 |
+
</div><!-- .wrapper-->
|
22 |
+
</header> <!-- #masthead -->
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://catchthemes.com/wp-plugins/catch-ids/
|
|
5 |
Tags: catch-ids, simple, admin, wp-admin, show, ids, post, page, category, media, links, tag, user, id, post id, page id, category id, tag id, media id
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 4.9
|
8 |
-
Stable tag: 1.4.
|
9 |
License: GNU General Public License, version 3 (GPLv3)
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
11 |
|
@@ -20,19 +20,24 @@ Check out our new modular plugin [Catch Web Tools](https://wordpress.org/plugins
|
|
20 |
|
21 |
== Installation ==
|
22 |
|
23 |
-
|
24 |
-
1. Go to "Plugins => Add New"
|
25 |
-
2. In Search Box type in "Catch IDs" and Search Plugins
|
26 |
-
3. You will get "Catch IDs" in search result
|
27 |
-
4. Click on "Install Now" and then "Activate"
|
28 |
-
5. Installation Completed. Now you will get ID's column in your post, page, category, tag and media panel
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
== Screenshots ==
|
38 |
|
@@ -47,6 +52,10 @@ Manual Installation through FTP access
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
|
|
|
|
|
|
|
|
50 |
= 1.4.7
|
51 |
* Compatibility check up to version 4.9
|
52 |
|
5 |
Tags: catch-ids, simple, admin, wp-admin, show, ids, post, page, category, media, links, tag, user, id, post id, page id, category id, tag id, media id
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 4.9
|
8 |
+
Stable tag: 1.4.8
|
9 |
License: GNU General Public License, version 3 (GPLv3)
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
11 |
|
20 |
|
21 |
== Installation ==
|
22 |
|
23 |
+
The easy way (via Dashboard) :
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
+
* Go to Plugins > Add New
|
26 |
+
* Type in the **Catch IDs** in Search Plugins box
|
27 |
+
* Click Install Now to install the plugin
|
28 |
+
* After Installation click activate to start using the **Catch IDs**
|
29 |
+
* Go to **Catch IDs** from Dashboard menu
|
30 |
+
* Now you will get ID's column in your post, page, category, tag and media panel
|
31 |
+
|
32 |
+
Not so easy way (via FTP) :
|
33 |
+
|
34 |
+
* Download the **Catch IDs**
|
35 |
+
* Unarchive **Catch IDs** plugin
|
36 |
+
* Copy folder with catch-ids.zip
|
37 |
+
* Open the ftp \wp-content\plugins\
|
38 |
+
* Paste the plug-ins folder in the folder
|
39 |
+
* Go to admin panel => open item "Plugins" => activate **Catch IDs**
|
40 |
+
* Go to **Catch IDs** from Dashboard menu
|
41 |
|
42 |
== Screenshots ==
|
43 |
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.4.8
|
56 |
+
* Compatibility check up to version 4.9.4
|
57 |
+
* Added: Toggle ID column option to display in selected pages
|
58 |
+
|
59 |
= 1.4.7
|
60 |
* Compatibility check up to version 4.9
|
61 |
|
screenshot-1.png
DELETED
Binary file
|
screenshot-2.png
DELETED
Binary file
|
screenshot-3.png
DELETED
Binary file
|
uninstall.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Fired when the plugin is uninstalled.
|
5 |
+
*
|
6 |
+
* When populating this file, consider the following flow
|
7 |
+
* of control:
|
8 |
+
*
|
9 |
+
* - This method should be static
|
10 |
+
* - Check if the $_REQUEST content actually is the plugin name
|
11 |
+
* - Run an admin referrer check to make sure it goes through authentication
|
12 |
+
* - Verify the output of $_GET makes sense
|
13 |
+
* - Repeat with other user roles. Best directly by using the links/query string parameters.
|
14 |
+
* - Repeat things for multisite. Once for a single site in the network, once sitewide.
|
15 |
+
*
|
16 |
+
* This file may be updated more in future version of the Boilerplate; however, this is the
|
17 |
+
* general skeleton and outline for how the file should work.
|
18 |
+
*
|
19 |
+
* For more information, see the following discussion:
|
20 |
+
* https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
|
21 |
+
*
|
22 |
+
* @link catchthemes.com
|
23 |
+
* @since 1.0.0
|
24 |
+
*
|
25 |
+
* @package Catch_Ids
|
26 |
+
*/
|
27 |
+
|
28 |
+
// If uninstall not called from WordPress, then exit.
|
29 |
+
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
30 |
+
exit;
|
31 |
+
}
|
32 |
+
|
33 |
+
$option_name = 'catchids_options';
|
34 |
+
|
35 |
+
delete_option( $option_name );
|
36 |
+
|
37 |
+
// For site options in Multisite.
|
38 |
+
delete_site_option( $option_name );
|