Essential Content Types - Version 1.0.7

Version Description

  • Added: Action links in plugin page
  • Added: Restrict activation if Pro version is active
  • Updated: Plugin page and reivew links
Download this release

Release Info

Developer catchthemes
Plugin Icon Essential Content Types
Version 1.0.7
Comparing to
See all releases

Code changes from version 1.0.5 to 1.0.7

README.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Essential Content Types ===
2
  Contributors: catchthemes, sakinshrestha, pratikshrestha, maheshmaharjan
3
  Donate link: https://catchthemes.com/donate/
4
- Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types, custom content types, testimonial, portfolio, featured content
5
  Requires at least: 4.5
6
  Tested up to: 4.8
7
  Stable tag: trunk
@@ -19,9 +19,10 @@ Content is at the forefront of any website. Changing the layout of your importan
19
  Additionally, switching themes changes your website layout completely. Therefore, to keep things looking spic-and- span in your website, we bring you Essential Content.
20
 
21
  Essential Content allows you to add up to three content/post types:
22
- * Portfolio – Create and display your portfolio on your website’s Frontpage
23
- * Testimonials – Add customer testimonials to your website’s Frontpage
24
- * Featured Content – Display the content you want as featured content on the Frontpage to attract visitors' attention
 
25
 
26
  Features of Essential Content:
27
  * Enable/Disable any content/post type as needed
@@ -136,9 +137,25 @@ The example will display up to ten featured content in two columns, in ascending
136
 
137
  == Installation ==
138
 
139
- 1. Upload `essential-content-types.zip` folder to the `/wp-content/plugins/` directory
140
- 2. Activate the plugin through the 'Plugins' menu in WordPress
141
- 3. Use Shortcodes in your posts/pages/templates
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
 
143
  == Screenshots ==
144
 
@@ -146,9 +163,20 @@ The example will display up to ten featured content in two columns, in ascending
146
  2. Customizer: Portfolio Archive Options
147
  3. Customizer: Testimonial Archive Options
148
  4. Customizer: Featured Content Archive Options
 
149
 
150
  == Changelog ==
151
 
 
 
 
 
 
 
 
 
 
 
152
  = 1.0.5 =
153
  * Added: Custom Post Type: Service
154
  * Added: Position in Testimonials
1
  === Essential Content Types ===
2
  Contributors: catchthemes, sakinshrestha, pratikshrestha, maheshmaharjan
3
  Donate link: https://catchthemes.com/donate/
4
+ Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types, custom content types, testimonial, portfolio, featured content, service
5
  Requires at least: 4.5
6
  Tested up to: 4.8
7
  Stable tag: trunk
19
  Additionally, switching themes changes your website layout completely. Therefore, to keep things looking spic-and- span in your website, we bring you Essential Content.
20
 
21
  Essential Content allows you to add up to three content/post types:
22
+ * Portfolio – Create and display your portfolio on your website
23
+ * Testimonials – Add customer testimonials to your website
24
+ * Featured Content – Display the content you want as featured content on your website to attract visitors' attention
25
+ * Services – Add your services on your website
26
 
27
  Features of Essential Content:
28
  * Enable/Disable any content/post type as needed
137
 
138
  == Installation ==
139
 
140
+ The easy way (via Dashboard) :
141
+
142
+ * Go to Plugins > Add New
143
+ * Type in the **Essential Content Types** in Search Plugins box
144
+ * Click Install Now to install the plugin
145
+ * After Installation click activate to start using the **Essential Content Types**
146
+ * Go to **Essential Content Types** from Dashboard menu
147
+ * Use Shortcodes in your posts/pages/templates
148
+
149
+ Not so easy way (via FTP) :
150
+
151
+ * Download the **Essential Content Types**
152
+ * Unarchive **Essential Content Types** plugin
153
+ * Copy folder with `essential-content-types.zip`
154
+ * Open the ftp `\wp-content\plugins\`
155
+ * Paste the plug-ins folder in the folder
156
+ * Go to admin panel => open item "Plugins" => activate **Essential Content Types**
157
+ * Go to **Essential Content Types** from Dashboard menu
158
+ * Use Shortcodes in your posts/pages/templates
159
 
160
  == Screenshots ==
161
 
163
  2. Customizer: Portfolio Archive Options
164
  3. Customizer: Testimonial Archive Options
165
  4. Customizer: Featured Content Archive Options
166
+ 5. Customizer: Sevices Archive Options
167
 
168
  == Changelog ==
169
 
170
+ = 1.0.7 =
171
+ * Added: Action links in plugin page
172
+ * Added: Restrict activation if Pro version is active
173
+ * Updated: Plugin page and reivew links
174
+
175
+ = 1.0.6 =
176
+ * Added: Screenshots: Services Archive Option
177
+ * Bug Fixed: Services Archive option in Customizer
178
+ * Bug Fixed: Link to Services Archive option in Dashboard
179
+
180
  = 1.0.5 =
181
  * Added: Custom Post Type: Service
182
  * Added: Position in Testimonials
admin/class-essential-content-types-admin.php CHANGED
@@ -153,6 +153,23 @@ class Essential_Content_Types_Admin {
153
 
154
  }
155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  /**
157
  * Add settings menu
158
  */
153
 
154
  }
155
 
156
+ /**
157
+ * Essential Content Types: action_links
158
+ * Essential Content Types Settings Link function callback
159
+ *
160
+ * @param arrray $links Link url.
161
+ *
162
+ * @param arrray $file File name.
163
+ */
164
+ public function action_links( $links, $file ) {
165
+ if ( $file === $this->plugin_name . '/' . $this->plugin_name . '.php' ) {
166
+ $settings_link = '<a href="' . esc_url( admin_url( 'admin.php?page=essential-content-types' ) ) . '">' . esc_html__( 'Settings', 'essential-content-types' ) . '</a>';
167
+
168
+ array_unshift( $links, $settings_link );
169
+ }
170
+ return $links;
171
+ }
172
+
173
  /**
174
  * Add settings menu
175
  */
admin/class-service.php CHANGED
@@ -280,7 +280,7 @@ class Essential_Content_Service {
280
  ) );
281
 
282
  $wp_customize->add_control( 'ect_service_title', array(
283
- 'section' => 'ect_ect_service',
284
  'label' => esc_html__( 'Service Archive Title', 'essential-content-types' ),
285
  'type' => 'text',
286
  ) );
@@ -293,7 +293,7 @@ class Essential_Content_Service {
293
  ) );
294
 
295
  $wp_customize->add_control( 'ect_service_content', array(
296
- 'section' => 'ect_ect_service',
297
  'label' => esc_html__( 'Service Archive Content', 'essential-content-types' ),
298
  'type' => 'textarea',
299
  ) );
280
  ) );
281
 
282
  $wp_customize->add_control( 'ect_service_title', array(
283
+ 'section' => 'ect_service',
284
  'label' => esc_html__( 'Service Archive Title', 'essential-content-types' ),
285
  'type' => 'text',
286
  ) );
293
  ) );
294
 
295
  $wp_customize->add_control( 'ect_service_content', array(
296
+ 'section' => 'ect_service',
297
  'label' => esc_html__( 'Service Archive Content', 'essential-content-types' ),
298
  'type' => 'textarea',
299
  ) );
admin/partials/dashboard-display.php CHANGED
@@ -122,7 +122,7 @@
122
 
123
  <p><?php esc_html_e( 'Once enabled, Service Post Type options will appear on Dashboard Menu', 'essential-content-types' ); ?></p>
124
 
125
- <p><?php printf( esc_html__( '%1$sClick here%2$s to view Service Archive Options.', 'essential-content-types' ) , '<a href ="' . esc_url( admin_url( 'customize.php?autofocus[control]=service_title' ) ) . '" target="_blank">', '</a>' ); ?></p>
126
 
127
  <p>For more information on <strong>How to use Service Shortcodes</strong>, <a href="https://catchthemes.com/blog/essential-content-types-plugin/#Service" title="Essential Content Type: Service Shortcode" target="_blank">Click here</a></p>
128
  </div>
122
 
123
  <p><?php esc_html_e( 'Once enabled, Service Post Type options will appear on Dashboard Menu', 'essential-content-types' ); ?></p>
124
 
125
+ <p><?php printf( esc_html__( '%1$sClick here%2$s to view Service Archive Options.', 'essential-content-types' ) , '<a href ="' . esc_url( admin_url( 'customize.php?autofocus[control]=ect_service_title' ) ) . '" target="_blank">', '</a>' ); ?></p>
126
 
127
  <p>For more information on <strong>How to use Service Shortcodes</strong>, <a href="https://catchthemes.com/blog/essential-content-types-plugin/#Service" title="Essential Content Type: Service Shortcode" target="_blank">Click here</a></p>
128
  </div>
admin/partials/footer.php CHANGED
@@ -25,21 +25,21 @@
25
  <li>
26
  <a href="https://catchthemes.com/support-forum" target="_blank"><?php esc_html_e( 'Support Forum', 'essential-content-types' ) ; ?></a>
27
  </li>
28
-
29
  <li>
30
- <a href="https://catchthemes.com/wp-plugins/essential-content-types" target="_blank"><?php esc_html_e( 'Plugin Details', 'essential-content-types' ) ; ?></a>
31
  </li>
32
-
33
  <li>
34
  <a href="https://facebook.com/catchthemes" target="_blank"><?php esc_html_e( 'Facebook', 'essential-content-types' ) ; ?></a>
35
  </li>
36
-
37
  <li>
38
  <a href="https://twitter.com/catchthemes" target="_blank"><?php esc_html_e( 'Twitter', 'essential-content-types' ) ; ?></a>
39
  </li>
40
-
41
  <li>
42
- <a href="https://wordpress.org/support/plugin/to-top/reviews/?rate=5#new-post" target="_blank"><?php esc_html_e( '5 Star Rating', 'essential-content-types' ) ; ?></a>
43
  </li>
44
  </ul><!-- .menu-footer -->
45
  </div><!-- .menu-footer-container -->
25
  <li>
26
  <a href="https://catchthemes.com/support-forum" target="_blank"><?php esc_html_e( 'Support Forum', 'essential-content-types' ) ; ?></a>
27
  </li>
28
+
29
  <li>
30
+ <a href="https://catchthemes.com/plugins/essential-content-types" target="_blank"><?php esc_html_e( 'Plugin Details', 'essential-content-types' ) ; ?></a>
31
  </li>
32
+
33
  <li>
34
  <a href="https://facebook.com/catchthemes" target="_blank"><?php esc_html_e( 'Facebook', 'essential-content-types' ) ; ?></a>
35
  </li>
36
+
37
  <li>
38
  <a href="https://twitter.com/catchthemes" target="_blank"><?php esc_html_e( 'Twitter', 'essential-content-types' ) ; ?></a>
39
  </li>
40
+
41
  <li>
42
+ <a href="https://wordpress.org/support/plugin/essential-content-types/reviews/?rate=5#new-post" target="_blank"><?php esc_html_e( '5 Star Rating', 'essential-content-types' ) ; ?></a>
43
  </li>
44
  </ul><!-- .menu-footer -->
45
  </div><!-- .menu-footer-container -->
admin/partials/header.php CHANGED
@@ -16,7 +16,7 @@
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/wp-plugins/essential-content-types" target="_blank">ESSENTIAL <span class="site-title-additional">CONTENT TYPES</span></a></h1>
20
  </div>
21
- </div><!-- .wrapper-->
22
  </header> <!-- #masthead -->
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/essential-content-types" target="_blank">ESSENTIAL <span class="site-title-additional">CONTENT TYPES</span></a></h1>
20
  </div>
21
+ </div><!-- .wrapper-->
22
  </header> <!-- #masthead -->
essential-content-types.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Essential Content Types
17
  * Plugin URI: https://catchthemes.com/wp-plugins/essential-content-types/
18
  * Description: Essential Content Types allows you to feature the impressive content through different content/post types on your website just the way you want it. These content/post types are missed by the themes in WordPress Theme Directory as the feature falls more towards the plugins’ territory.
19
- * Version: 1.0.5
20
  * Author: Catch Themes
21
  * Author URI: https://catchthemes.com
22
  * License: GPL-3.0+
@@ -35,6 +35,12 @@ if ( ! defined( 'WPINC' ) ) {
35
  * This action is documented in includes/class-essential-content-types-activator.php
36
  */
37
  function activate_essential_content_types() {
 
 
 
 
 
 
38
  require_once plugin_dir_path( __FILE__ ) . 'includes/class-essential-content-types-activator.php';
39
  Essential_Content_Types_Activator::activate();
40
  }
16
  * Plugin Name: Essential Content Types
17
  * Plugin URI: https://catchthemes.com/wp-plugins/essential-content-types/
18
  * Description: Essential Content Types allows you to feature the impressive content through different content/post types on your website just the way you want it. These content/post types are missed by the themes in WordPress Theme Directory as the feature falls more towards the plugins’ territory.
19
+ * Version: 1.0.7
20
  * Author: Catch Themes
21
  * Author URI: https://catchthemes.com
22
  * License: GPL-3.0+
35
  * This action is documented in includes/class-essential-content-types-activator.php
36
  */
37
  function activate_essential_content_types() {
38
+ $required = 'essential-content-types-pro/essential-content-types-pro.php';
39
+ if ( is_plugin_active( $required ) ) {
40
+ $message = esc_html__( 'Sorry, Pro plugin is already active. No need to activate Free version. %1$s&laquo; Return to Plugins%2$s.', 'essential-content-types' );
41
+ $message = sprintf( $message, '<br><a href="' . esc_url( admin_url( 'plugins.php' ) ) . '">', '</a>' );
42
+ wp_die( $message );
43
+ }
44
  require_once plugin_dir_path( __FILE__ ) . 'includes/class-essential-content-types-activator.php';
45
  Essential_Content_Types_Activator::activate();
46
  }
includes/class-essential-content-types.php CHANGED
@@ -69,7 +69,7 @@ class Essential_Content_Types {
69
  public function __construct() {
70
 
71
  $this->plugin_name = 'essential-content-types';
72
- $this->version = '1.0.0';
73
 
74
  $this->load_dependencies();
75
  $this->set_locale();
@@ -149,8 +149,10 @@ class Essential_Content_Types {
149
 
150
  $this->loader->add_action( 'admin_menu', $plugin_admin, 'settings_menu' );
151
 
152
- ////Add ajax request handler for dashbaoard switch
153
  $this->loader->add_action( 'wp_ajax_ect_dashboard_switch', $plugin_admin, 'dashboard_switch' );
 
 
154
  }
155
 
156
  /**
69
  public function __construct() {
70
 
71
  $this->plugin_name = 'essential-content-types';
72
+ $this->version = '1.0.7';
73
 
74
  $this->load_dependencies();
75
  $this->set_locale();
149
 
150
  $this->loader->add_action( 'admin_menu', $plugin_admin, 'settings_menu' );
151
 
152
+ // Add ajax request handler for dashbaoard switch.
153
  $this->loader->add_action( 'wp_ajax_ect_dashboard_switch', $plugin_admin, 'dashboard_switch' );
154
+
155
+ $this->loader->add_filter( 'plugin_action_links', $plugin_admin, 'action_links', 10, 2 );
156
  }
157
 
158
  /**
languages/essential-content-types.pot CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Essential Content Types\n"
7
  "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
8
- "POT-Creation-Date: 2017-08-23 23:24+0545\n"
9
  "PO-Revision-Date: 2016-12-12 09:23-0500\n"
10
  "Last-Translator: Sakin Shrestha <info@catchthemes.com>\n"
11
  "Language-Team: Catch Themes <info@catchthemes.com>\n"
@@ -22,16 +22,20 @@ msgstr ""
22
  "X-Poedit-SourceCharset: UTF-8\n"
23
  "X-Poedit-SearchPath-0: ..\n"
24
 
25
- #: ../admin/class-essential-content-types-admin.php:162
26
- #: ../admin/class-essential-content-types-admin.php:163
 
 
 
 
27
  msgid "Essential Content Types"
28
  msgstr ""
29
 
30
- #: ../admin/class-essential-content-types-admin.php:177
31
  msgid "You do not have sufficient permissions to access this page."
32
  msgstr ""
33
 
34
- #: ../admin/class-essential-content-types-admin.php:195
35
  msgid "Connection Error. Please try again."
36
  msgstr ""
37
 
@@ -1076,3 +1080,10 @@ msgstr ""
1076
  #: ../admin/partials/other-products.php:49
1077
  msgid "Free Themes"
1078
  msgstr ""
 
 
 
 
 
 
 
5
  msgstr ""
6
  "Project-Id-Version: Essential Content Types\n"
7
  "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
8
+ "POT-Creation-Date: 2017-09-21 12:29+0545\n"
9
  "PO-Revision-Date: 2016-12-12 09:23-0500\n"
10
  "Last-Translator: Sakin Shrestha <info@catchthemes.com>\n"
11
  "Language-Team: Catch Themes <info@catchthemes.com>\n"
22
  "X-Poedit-SourceCharset: UTF-8\n"
23
  "X-Poedit-SearchPath-0: ..\n"
24
 
25
+ #: ../admin/class-essential-content-types-admin.php:166
26
+ msgid "Settings"
27
+ msgstr ""
28
+
29
+ #: ../admin/class-essential-content-types-admin.php:179
30
+ #: ../admin/class-essential-content-types-admin.php:180
31
  msgid "Essential Content Types"
32
  msgstr ""
33
 
34
+ #: ../admin/class-essential-content-types-admin.php:194
35
  msgid "You do not have sufficient permissions to access this page."
36
  msgstr ""
37
 
38
+ #: ../admin/class-essential-content-types-admin.php:212
39
  msgid "Connection Error. Please try again."
40
  msgstr ""
41
 
1080
  #: ../admin/partials/other-products.php:49
1081
  msgid "Free Themes"
1082
  msgstr ""
1083
+
1084
+ #: ../essential-content-types.php:40
1085
+ #, php-format
1086
+ msgid ""
1087
+ "Sorry, Pro plugin is already active. No need to activate Free version. "
1088
+ "%1$s&laquo; Return to Plugins%2$s."
1089
+ msgstr ""