Catch IDs - Version 1.8

Version Description

(Released: May 31, 2019) = * Added: Option to turn off Catch Themes and Catch Plugin tabs * Updated: Compatibility to WordPress version 5.2 * Updated: Catch Themes and Catch Plugins tabs displaying code

Download this release

Release Info

Developer catchthemes
Plugin Icon 128x128 Catch IDs
Version 1.8
Comparing to
See all releases

Code changes from version 1.7 to 1.8

catch-ids.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: Catch IDs
16
  * Plugin URI: https://catchplugins.com/plugins/catch-ids/
17
  * 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.
18
- * Version: 1.7
19
  * Author: Catch Plugins
20
  * Author URI: catchplugins.com
21
  * License: GPL-3.0+
@@ -51,7 +51,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
51
 
52
 
53
  // Define Version
54
- define( 'CATCH_IDS_VERSION', '1.7' );
55
 
56
  // The URL of the directory that contains the plugin
57
  if ( !defined( 'CATCH_IDS_URL' ) ) {
@@ -242,6 +242,7 @@ function catchids_default_options( $option = null ) {
242
  $default_options['media'] = 1;
243
  $default_options['user'] = 1;
244
  $default_options['comment'] = 1;
 
245
 
246
  if ( null == $option ) {
247
  return apply_filters( 'catchids_options', $default_options );
@@ -361,10 +362,33 @@ function catchids_switch() {
361
  wp_die(); // this is required to terminate immediately and return a proper response
362
  }
363
  endif; // catchids_switch
364
- /* Adds Catch Themes tab in Add theme page and Themes by Catch Themes in Customizer's change theme option. */
365
- require plugin_dir_path( __FILE__ ) . 'includes/our-themes.php';
366
 
 
 
 
 
367
 
368
- /* Adds Catch Plugins tab in Add theme page. */
369
- require plugin_dir_path( __FILE__ ) . 'includes/our-plugins.php';
370
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  * Plugin Name: Catch IDs
16
  * Plugin URI: https://catchplugins.com/plugins/catch-ids/
17
  * 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.
18
+ * Version: 1.8
19
  * Author: Catch Plugins
20
  * Author URI: catchplugins.com
21
  * License: GPL-3.0+
51
 
52
 
53
  // Define Version
54
+ define( 'CATCH_IDS_VERSION', '1.8' );
55
 
56
  // The URL of the directory that contains the plugin
57
  if ( !defined( 'CATCH_IDS_URL' ) ) {
242
  $default_options['media'] = 1;
243
  $default_options['user'] = 1;
244
  $default_options['comment'] = 1;
245
+ $default_options['theme_plugin_tabs'] = 1;
246
 
247
  if ( null == $option ) {
248
  return apply_filters( 'catchids_options', $default_options );
362
  wp_die(); // this is required to terminate immediately and return a proper response
363
  }
364
  endif; // catchids_switch
 
 
365
 
366
+ add_action( 'wp_ajax_ctp_switch', 'ctp_switch' );
367
+ if ( ! function_exists( 'ctp_switch' ) ) :
368
+ function ctp_switch() {
369
+ $value = ( 'true' == $_POST['value'] ) ? 1 : 0;
370
 
371
+ $option_name = $_POST['option_name'];
 
372
 
373
+ $option_value = catchids_get_options( 'catchids_options' );
374
+
375
+ $option_value[$option_name] = $value;
376
+
377
+ if( update_option( 'catchids_options', $option_value ) ) {
378
+ echo $value;
379
+ } else {
380
+ esc_html_e( 'Connection Error. Please try again.', 'catch-ids' );
381
+ }
382
+
383
+ wp_die(); // this is required to terminate immediately and return a proper response
384
+ }
385
+ endif; // catchids_switch
386
+
387
+ $options = catchids_get_options();
388
+ //print_r($options); die();
389
+ if( 1 == $options['theme_plugin_tabs'] ) {
390
+ /* Adds Catch Themes tab in Add theme page and Themes by Catch Themes in Customizer's change theme option. */
391
+ if( ! class_exists( 'CatchThemesThemePlugin' ) && ! function_exists( 'add_our_plugins_tab' ) ) {
392
+ require plugin_dir_path( __FILE__ ) . 'includes/CatchThemesThemePlugin.php';
393
+ }
394
+ }
css/catch-ids.css CHANGED
@@ -461,6 +461,19 @@
461
  100% { transform: rotate(360deg); }
462
  }
463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  /*--------------------------------------------------------------
465
  # Other Products
466
  --------------------------------------------------------------*/
461
  100% { transform: rotate(360deg); }
462
  }
463
 
464
+ /* Catch Themes & Plugins switch */
465
+ #ctp-switch .switch {
466
+ position: relative;
467
+ display: inline-block;
468
+ width: 60px;
469
+ height: 34px;
470
+ top: 7px;
471
+ }
472
+
473
+ #ctp-switch.catchids-main .module-header {
474
+ background-color: transparent;
475
+ }
476
+
477
  /*--------------------------------------------------------------
478
  # Other Products
479
  --------------------------------------------------------------*/
includes/{our-themes.php → CatchThemesThemePlugin.php} RENAMED
@@ -1,7 +1,27 @@
1
- <?php
2
- /* Adds Catch Themes tab in Add Theme page to show all themes by Catch Themes in wordpress.org */
3
- if( ! function_exists( 'wp_ajax_custom_query_themes' ) ) {
4
- function wp_ajax_custom_query_themes() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  global $themes_allowedtags, $theme_field_defaults;
6
 
7
  if ( ! current_user_can( 'install_themes' ) ) {
@@ -75,47 +95,34 @@ if( ! function_exists( 'wp_ajax_custom_query_themes' ) ) {
75
 
76
  wp_send_json_success( $api );
77
  }
78
- remove_action( 'wp_ajax_query-themes', 'wp_ajax_query_themes', 1 );
79
- add_action( 'wp_ajax_query-themes', 'wp_ajax_custom_query_themes', 1 );
80
- }
81
-
82
- if( ! function_exists( 'catchthemes_our_themes_script' ) ) {
83
- function catchthemes_our_themes_script( $hook_suffix ) {
84
 
85
  if( 'theme-install.php' == $hook_suffix ) {
86
- wp_enqueue_script( 'our-themes-script', CATCH_IDS_URL . '/js/our-themes.js', array( 'jquery' ), '2018-05-16' );
87
  }
88
  }
89
- add_action( 'admin_enqueue_scripts', 'catchthemes_our_themes_script' );
90
- }
91
-
92
-
93
- /* Add Catch Themes Section in Theme in Customizer */
94
- if( ! function_exists( 'catchthemes_customize_register' ) ) {
95
- function catchthemes_customize_register($wp_customize) {
96
  $wp_customize->add_section( new WP_Customize_Themes_Section( $wp_customize, 'catchthemes', array(
97
- 'title' => __( 'Themes by CatchThemes', 'catch-web-tools' ),
98
  'action' => 'catchthemes',
99
  'capability' => 'install_themes',
100
  'panel' => 'themes',
101
  'priority' => 6,
102
  ) ) );
103
  }
104
- if ( ! is_multisite() ) {
105
- add_action( 'customize_register', 'catchthemes_customize_register' );
106
- }
107
- }
108
 
109
- if( ! function_exists( 'catchthemes_handle_load_themes_request' ) ) {
110
- global $wp_customize;
111
- remove_action( 'wp_ajax_customize_load_themes', array( $wp_customize, 'handle_load_themes_request' ) );
112
- add_action( 'wp_ajax_customize_load_themes', 'catchthemes_handle_load_themes_request' );
113
  /**
114
  * Load themes into the theme browsing/installation UI.
115
  * taken from wp-includes/cllass-wp-customize-manager.php
116
  * @since 4.9.0
117
  */
118
- function catchthemes_handle_load_themes_request() {
119
  check_ajax_referer( 'switch_themes', 'nonce' );
120
  if ( ! current_user_can( 'switch_themes' ) ) {
121
  wp_die( -1 );
@@ -229,9 +236,9 @@ if( ! function_exists( 'catchthemes_handle_load_themes_request' ) ) {
229
  $theme->tags = implode( ', ', $theme->tags );
230
  $theme->stars = wp_star_rating( array(
231
  'rating' => $theme->rating,
232
- 'type' => 'percent',
233
  'number' => $theme->num_ratings,
234
- 'echo' => false,
235
  ) );
236
  $theme->num_ratings = number_format_i18n( $theme->num_ratings );
237
  $theme->preview_url = set_url_scheme( $theme->preview_url );
@@ -270,17 +277,17 @@ if( ! function_exists( 'catchthemes_handle_load_themes_request' ) ) {
270
  // Arguments for all queries.
271
  $wporg_args = array(
272
  'per_page' => 100,
273
- 'fields' => array(
274
  'screenshot_url' => true,
275
- 'description' => true,
276
- 'rating' => true,
277
- 'downloaded' => true,
278
- 'downloadlink' => true,
279
- 'last_updated' => true,
280
- 'homepage' => true,
281
- 'num_ratings' => true,
282
- 'tags' => true,
283
- 'parent' => true,
284
  // 'extended_author' => true, @todo: WordPress.org throws a 500 server error when this is here.
285
  ),
286
  );
@@ -302,10 +309,10 @@ if( ! function_exists( 'catchthemes_handle_load_themes_request' ) ) {
302
  array( 'a', 'abbr', 'acronym', 'code', 'pre', 'em', 'strong', 'div', 'p', 'ul', 'ol', 'li', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img' ),
303
  array()
304
  );
305
- $themes_allowedtags['a'] = array_fill_keys( array( 'href', 'title', 'target' ), true );
306
  $themes_allowedtags['acronym']['title'] = true;
307
- $themes_allowedtags['abbr']['title'] = true;
308
- $themes_allowedtags['img'] = array_fill_keys( array( 'src', 'class', 'alt' ), true );
309
 
310
  // Prepare a list of installed themes to check against before the loop.
311
  $installed_themes = array();
@@ -329,9 +336,9 @@ if( ! function_exists( 'catchthemes_handle_load_themes_request' ) ) {
329
  $theme->tags = implode( ', ', $theme->tags );
330
  $theme->stars = wp_star_rating( array(
331
  'rating' => $theme->rating,
332
- 'type' => 'percent',
333
  'number' => $theme->num_ratings,
334
- 'echo' => false,
335
  ) );
336
  $theme->num_ratings = number_format_i18n( $theme->num_ratings );
337
  $theme->preview_url = set_url_scheme( $theme->preview_url );
@@ -383,4 +390,59 @@ if( ! function_exists( 'catchthemes_handle_load_themes_request' ) ) {
383
 
384
  wp_send_json_success( $themes );
385
  }
386
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ Class CatchThemesThemePlugin {
4
+ public function __construct(){
5
+ remove_action( 'wp_ajax_query-themes', array( $this, 'wp_ajax_query_themes' ), 1 );
6
+ add_action( 'wp_ajax_query-themes', array( $this, 'wp_ajax_custom_query_themes' ), 1 );
7
+
8
+ add_action( 'admin_enqueue_scripts', array( $this, 'our_themes_script' ) );
9
+
10
+ if ( ! is_multisite() ) {
11
+ add_action( 'customize_register', array( $this, 'customize_register' ) );
12
+ }
13
+
14
+ global $wp_customize;
15
+ remove_action( 'wp_ajax_customize_load_themes', array( $wp_customize, 'handle_load_themes_request' ) );
16
+ add_action( 'wp_ajax_customize_load_themes', array( $this, 'handle_load_themes_request' ) );
17
+
18
+ add_filter( 'install_plugins_tabs', array( $this, 'add_our_plugins_tab' ), 1 );
19
+ add_filter( "install_plugins_table_api_args_catchplugins", array( $this, 'catchplugins' ), 1 );
20
+ add_action( 'install_plugins_catchplugins', array( $this, 'plugins_table' ) );
21
+ }
22
+
23
+ /* Adds Catch Themes tab in Add Theme page to show all themes by Catch Themes in wordpress.org */
24
+ public function wp_ajax_custom_query_themes() {
25
  global $themes_allowedtags, $theme_field_defaults;
26
 
27
  if ( ! current_user_can( 'install_themes' ) ) {
95
 
96
  wp_send_json_success( $api );
97
  }
98
+
99
+ public function our_themes_script( $hook_suffix ) {
 
 
 
 
100
 
101
  if( 'theme-install.php' == $hook_suffix ) {
102
+ wp_enqueue_script( 'our-themes-script', plugin_dir_url( __FILE__ ) . '../js/our-themes.js', array( 'jquery' ), '2018-05-16' );
103
  }
104
  }
105
+
106
+ /* Add Catch Themes Section in Theme in Customizer */
107
+ public function customize_register($wp_customize) {
 
 
 
 
108
  $wp_customize->add_section( new WP_Customize_Themes_Section( $wp_customize, 'catchthemes', array(
109
+ 'title' => __( 'Themes by CatchThemes', 'catch-themes-demo-import' ),
110
  'action' => 'catchthemes',
111
  'capability' => 'install_themes',
112
  'panel' => 'themes',
113
  'priority' => 6,
114
  ) ) );
115
  }
116
+
 
 
 
117
 
118
+
119
+
 
 
120
  /**
121
  * Load themes into the theme browsing/installation UI.
122
  * taken from wp-includes/cllass-wp-customize-manager.php
123
  * @since 4.9.0
124
  */
125
+ public function handle_load_themes_request() {
126
  check_ajax_referer( 'switch_themes', 'nonce' );
127
  if ( ! current_user_can( 'switch_themes' ) ) {
128
  wp_die( -1 );
236
  $theme->tags = implode( ', ', $theme->tags );
237
  $theme->stars = wp_star_rating( array(
238
  'rating' => $theme->rating,
239
+ 'type' => 'percent',
240
  'number' => $theme->num_ratings,
241
+ 'echo' => false,
242
  ) );
243
  $theme->num_ratings = number_format_i18n( $theme->num_ratings );
244
  $theme->preview_url = set_url_scheme( $theme->preview_url );
277
  // Arguments for all queries.
278
  $wporg_args = array(
279
  'per_page' => 100,
280
+ 'fields' => array(
281
  'screenshot_url' => true,
282
+ 'description' => true,
283
+ 'rating' => true,
284
+ 'downloaded' => true,
285
+ 'downloadlink' => true,
286
+ 'last_updated' => true,
287
+ 'homepage' => true,
288
+ 'num_ratings' => true,
289
+ 'tags' => true,
290
+ 'parent' => true,
291
  // 'extended_author' => true, @todo: WordPress.org throws a 500 server error when this is here.
292
  ),
293
  );
309
  array( 'a', 'abbr', 'acronym', 'code', 'pre', 'em', 'strong', 'div', 'p', 'ul', 'ol', 'li', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img' ),
310
  array()
311
  );
312
+ $themes_allowedtags['a'] = array_fill_keys( array( 'href', 'title', 'target' ), true );
313
  $themes_allowedtags['acronym']['title'] = true;
314
+ $themes_allowedtags['abbr']['title'] = true;
315
+ $themes_allowedtags['img'] = array_fill_keys( array( 'src', 'class', 'alt' ), true );
316
 
317
  // Prepare a list of installed themes to check against before the loop.
318
  $installed_themes = array();
336
  $theme->tags = implode( ', ', $theme->tags );
337
  $theme->stars = wp_star_rating( array(
338
  'rating' => $theme->rating,
339
+ 'type' => 'percent',
340
  'number' => $theme->num_ratings,
341
+ 'echo' => false,
342
  ) );
343
  $theme->num_ratings = number_format_i18n( $theme->num_ratings );
344
  $theme->preview_url = set_url_scheme( $theme->preview_url );
390
 
391
  wp_send_json_success( $themes );
392
  }
393
+
394
+ /* Plugins */
395
+ /* Adds Catch Plugins tab in Add Plugin page to show all plugins by Catch Plugins in wordpress.org */
396
+ public function add_our_plugins_tab($tabs) {
397
+ // Add our filter here
398
+ $tabs['catchplugins'] = _x( 'Catch Plugins', 'Plugin Installer' );
399
+
400
+ return $tabs;
401
+ }
402
+
403
+ public function catchplugins() {
404
+ /* From CORE Start */
405
+ global $paged, $tab;
406
+ wp_reset_vars( array( 'tab' ) );
407
+
408
+ $defined_class = new WP_Plugin_Install_List_Table();
409
+ $paged = $defined_class->get_pagenum();
410
+
411
+ $per_page = 30;
412
+ //$installed_plugins = catch_get_installed_plugins();
413
+
414
+ $args = array(
415
+ 'page' => $paged,
416
+ 'per_page' => $per_page,
417
+ 'fields' => array(
418
+ 'last_updated' => true,
419
+ 'icons' => true,
420
+ 'active_installs' => true
421
+ ),
422
+ // Send the locale and installed plugin slugs to the API so it can provide context-sensitive results.
423
+ 'locale' => get_user_locale(),
424
+ //'installed_plugins' => array_keys( $installed_plugins ),
425
+ );
426
+ /* From CORE End */
427
+
428
+ // Add author filter for our plugins
429
+ $args['author'] = 'catchplugins';
430
+
431
+ return $args;
432
+ }
433
+
434
+ public function plugins_table() {
435
+ global $wp_list_table;
436
+ printf(
437
+ '<p class="catch-plugins-list">' . __( 'You can use any of our free plugins or premium plugins from <a href="%s" target="_blank">Catch Plugins</a>' ) . '.</p>',
438
+ 'https://catchplugins.com/'
439
+ );
440
+ ?>
441
+ <form id="plugin-filter" method="post">
442
+ <?php $wp_list_table->display(); ?>
443
+ </form>
444
+ <?php
445
+ }
446
+ }
447
+
448
+ $catchthemes_theme_plugin = new CatchThemesThemePlugin();
includes/our-plugins.php DELETED
@@ -1,61 +0,0 @@
1
- <?php
2
- /* Adds Catch Plugins tab in Add Plugin page to show all plugins by Catch Plugins in wordpress.org */
3
- if( ! function_exists( 'add_our_plugins_tab' ) ) {
4
- function add_our_plugins_tab($tabs) {
5
- // Add our filter here
6
- $tabs['catchplugins'] = _x( 'Catch Plugins', 'Plugin Installer' );
7
-
8
- return $tabs;
9
- }
10
- add_filter( 'install_plugins_tabs', 'add_our_plugins_tab', 1 );
11
- }
12
-
13
- if( ! function_exists( 'catchplugins' ) ) {
14
- function catchplugins() {
15
- /* From CORE Start */
16
- global $paged, $tab;
17
- wp_reset_vars( array( 'tab' ) );
18
-
19
- $defined_class = new WP_Plugin_Install_List_Table();
20
- $paged = $defined_class->get_pagenum();
21
-
22
- $per_page = 30;
23
- //$installed_plugins = catch_get_installed_plugins();
24
-
25
- $args = array(
26
- 'page' => $paged,
27
- 'per_page' => $per_page,
28
- 'fields' => array(
29
- 'last_updated' => true,
30
- 'icons' => true,
31
- 'active_installs' => true
32
- ),
33
- // Send the locale and installed plugin slugs to the API so it can provide context-sensitive results.
34
- 'locale' => get_user_locale(),
35
- //'installed_plugins' => array_keys( $installed_plugins ),
36
- );
37
- /* From CORE End */
38
-
39
- // Add author filter for our plugins
40
- $args['author'] = 'catchplugins';
41
-
42
- return $args;
43
- }
44
- add_filter( "install_plugins_table_api_args_catchplugins", 'catchplugins', 1 );
45
- }
46
-
47
- if( ! function_exists( 'cathcplugins_plugins_table' ) ) {
48
- add_action( 'install_plugins_catchplugins', 'cathcplugins_plugins_table' );
49
- function cathcplugins_plugins_table() {
50
- global $wp_list_table;
51
- printf(
52
- '<p class="catch-plugins-list">' . __( 'You can use any of our free plugins or premium plugins from <a href="%s" target="_blank">Catch Plugins</a>' ) . '.</p>',
53
- 'https://catchplugins.com/'
54
- );
55
- ?>
56
- <form id="plugin-filter" method="post">
57
- <?php $wp_list_table->display(); ?>
58
- </form>
59
- <?php
60
- }
61
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/catch-ids.js CHANGED
@@ -33,6 +33,36 @@
33
  });
34
  });
35
  /* For Input Switch End */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  });
37
 
38
  $(function() {
33
  });
34
  });
35
  /* For Input Switch End */
36
+
37
+ /* CPT switch */
38
+ $( '.ctp-switch' ).on( 'click', function() {
39
+ var loader = $( this ).parent().next();
40
+
41
+ loader.show();
42
+
43
+ var main_control = $( this );
44
+ var data = {
45
+ 'action' : 'ctp_switch',
46
+ 'value' : this.checked,
47
+ 'option_name' : main_control.attr( 'rel' )
48
+ };
49
+
50
+ $.post( ajaxurl, data, function( response ) {
51
+ response = $.trim( response );
52
+
53
+ if ( '1' == response ) {
54
+ main_control.parent().parent().addClass( 'active' );
55
+ main_control.parent().parent().removeClass( 'inactive' );
56
+ } else if( '0' == response ) {
57
+ main_control.parent().parent().addClass( 'inactive' );
58
+ main_control.parent().parent().removeClass( 'active' );
59
+ } else {
60
+ alert( response );
61
+ }
62
+ loader.hide();
63
+ });
64
+ });
65
+ /* CPT switch End */
66
  });
67
 
68
  $(function() {
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: 2019-02-21 22:42-0500\n"
9
  "PO-Revision-Date: 2016-12-07 22:52-0500\n"
10
  "Last-Translator: Pratik Shrestha <pratik@catchplugins.com>\n"
11
  "Language-Team: Catch Plugins <info@catchplugins.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.2.1\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"
@@ -24,30 +24,40 @@ msgstr ""
24
  msgid "ID"
25
  msgstr ""
26
 
27
- #: ../catch-ids.php:259 ../catch-ids.php:260
28
  msgid "Catch IDs"
29
  msgstr ""
30
 
31
- #: ../catch-ids.php:276
32
  msgid "You do not have sufficient permissions to access this page."
33
  msgstr ""
34
 
35
- #: ../catch-ids.php:311
36
  msgid "Settings"
37
  msgstr ""
38
 
39
- #: ../includes/our-plugins.php:6
 
 
 
 
40
  msgctxt "Plugin Installer"
41
  msgid "Catch Plugins"
42
  msgstr ""
43
 
44
- #: ../includes/our-plugins.php:52
45
  #, php-format
46
  msgid ""
47
  "You can use any of our free plugins or premium plugins from <a href="
48
  "\"%s\" target=\"_blank\">Catch Plugins</a>"
49
  msgstr ""
50
 
51
- #: ../includes/our-themes.php:97
52
- msgid "Themes by CatchThemes"
 
 
 
 
 
 
53
  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: 2019-05-31 00:18-0400\n"
9
  "PO-Revision-Date: 2016-12-07 22:52-0500\n"
10
  "Last-Translator: Pratik Shrestha <pratik@catchplugins.com>\n"
11
  "Language-Team: Catch Plugins <info@catchplugins.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.2.3\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"
24
  msgid "ID"
25
  msgstr ""
26
 
27
+ #: ../catch-ids.php:260 ../catch-ids.php:261
28
  msgid "Catch IDs"
29
  msgstr ""
30
 
31
+ #: ../catch-ids.php:277
32
  msgid "You do not have sufficient permissions to access this page."
33
  msgstr ""
34
 
35
+ #: ../catch-ids.php:312
36
  msgid "Settings"
37
  msgstr ""
38
 
39
+ #: ../includes/CatchThemesThemePlugin.php:109
40
+ msgid "Themes by CatchThemes"
41
+ msgstr ""
42
+
43
+ #: ../includes/CatchThemesThemePlugin.php:398
44
  msgctxt "Plugin Installer"
45
  msgid "Catch Plugins"
46
  msgstr ""
47
 
48
+ #: ../includes/CatchThemesThemePlugin.php:437
49
  #, php-format
50
  msgid ""
51
  "You can use any of our free plugins or premium plugins from <a href="
52
  "\"%s\" target=\"_blank\">Catch Plugins</a>"
53
  msgstr ""
54
 
55
+ #: ../partials/catch-ids-display.php:40
56
+ msgid ""
57
+ "If you want to turn off Catch Themes & Catch Plugins tabs option in "
58
+ "Add Themes and Add Plugins page, please uncheck the following option."
59
+ msgstr ""
60
+
61
+ #: ../partials/catch-ids-display.php:45
62
+ msgid "Turn On Catch Themes & Catch Plugin tabs"
63
  msgstr ""
partials/catch-ids-display.php CHANGED
@@ -30,6 +30,35 @@
30
 
31
  <?php require_once plugin_dir_path( dirname( __FILE__ ) ) . '/partials/display-dashboard.php'; ?>
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  </div><!-- .dashboard -->
34
 
35
  <div id="features" class="wpcatchtab save">
30
 
31
  <?php require_once plugin_dir_path( dirname( __FILE__ ) ) . '/partials/display-dashboard.php'; ?>
32
 
33
+ <div id="ctp-switch" class="content-wrapper col-3 catchids-main">
34
+ <div class="header">
35
+ <h2><?php esc_html_e( 'Catch Themes & Catch Plugins Tabs', 'catch-ids' ); ?></h2>
36
+ </div> <!-- .Header -->
37
+
38
+ <div class="content">
39
+
40
+ <p><?php echo esc_html__( 'If you want to turn off Catch Themes & Catch Plugins tabs option in Add Themes and Add Plugins page, please uncheck the following option.', 'catch-ids' ); ?>
41
+ </p>
42
+ <table>
43
+ <tr>
44
+ <td>
45
+ <?php echo esc_html__( 'Turn On Catch Themes & Catch Plugin tabs', 'catch-ids' ); ?>
46
+ </td>
47
+ <td>
48
+ <div class="module-header <?php echo $options['theme_plugin_tabs'] ? 'active' : 'inactive'; ?>">
49
+ <div class="switch">
50
+ <input type="checkbox" id="catchids_options[theme_plugin_tabs]" class="ctp-switch" rel="theme_plugin_tabs" <?php checked( true, $options['theme_plugin_tabs'] ); ?> >
51
+ <label for="catchids_options[theme_plugin_tabs]"></label>
52
+ </div>
53
+ <div class="loader"></div>
54
+ </div>
55
+ </td>
56
+ </tr>
57
+ </table>
58
+
59
+ </div>
60
+ </div><!-- .content-wrapper -->
61
+
62
  </div><!-- .dashboard -->
63
 
64
  <div id="features" class="wpcatchtab save">
partials/display-dashboard.php CHANGED
@@ -87,6 +87,7 @@
87
  </div><!-- .catch-modules -->
88
 
89
  </div><!-- .module-container -->
 
90
  </div><!-- .content -->
91
  </div> <!-- .content-wrapper -->
92
  </div> <!-- Main Content-->
87
  </div><!-- .catch-modules -->
88
 
89
  </div><!-- .module-container -->
90
+
91
  </div><!-- .content -->
92
  </div> <!-- .content-wrapper -->
93
  </div> <!-- Main Content-->
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: catchplugins, catchthemes, sakinshrestha, pratikshrestha, maheshma
3
  Donate link: https://catchplugins.com/plugins/catch-ids/
4
  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
5
  Requires at least: 4.5
6
- Tested up to: 5.1
7
  Stable tag: trunk
8
  License: GNU General Public License, version 3 (GPLv3)
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
@@ -50,6 +50,11 @@ Not so easy way (via FTP) :
50
 
51
 
52
  == Changelog ==
 
 
 
 
 
53
  = 1.7 (Released: February 21, 2019) =
54
  * Compatibility check up to version 5.1
55
 
3
  Donate link: https://catchplugins.com/plugins/catch-ids/
4
  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
5
  Requires at least: 4.5
6
+ Tested up to: 5.2
7
  Stable tag: trunk
8
  License: GNU General Public License, version 3 (GPLv3)
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
50
 
51
 
52
  == Changelog ==
53
+ = 1.8 (Released: May 31, 2019) =
54
+ * Added: Option to turn off Catch Themes and Catch Plugin tabs
55
+ * Updated: Compatibility to WordPress version 5.2
56
+ * Updated: Catch Themes and Catch Plugins tabs displaying code
57
+
58
  = 1.7 (Released: February 21, 2019) =
59
  * Compatibility check up to version 5.1
60