Essential Content Types - Version 1.9.1

Version Description

(Released: October 06, 2021) = * Bug Fixed: Uniform default layout adjusted for Portfolio

Download this release

Release Info

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

Code changes from version 1.9 to 1.9.1

README.txt CHANGED
@@ -201,6 +201,9 @@ Not so easy way (via FTP) :
201
 
202
  == Changelog ==
203
 
 
 
 
204
  = 1.9 (Released: September 18, 2021) =
205
  * Bug Fixed: Security issue on ajax calls
206
 
201
 
202
  == Changelog ==
203
 
204
+ = 1.9.1 (Released: October 06, 2021) =
205
+ * Bug Fixed: Uniform default layout adjusted for Portfolio
206
+
207
  = 1.9 (Released: September 18, 2021) =
208
  * Bug Fixed: Security issue on ajax calls
209
 
admin/class-portfolio.php CHANGED
@@ -505,9 +505,9 @@ class Essential_Content_Jetpack_Portfolio {
505
  'show_filter' => false,
506
  'include_type' => false,
507
  'include_tag' => false,
508
- 'columns' => 2,
509
  'showposts' => -1,
510
- 'order' => 'asc',
511
  'orderby' => 'date',
512
  ), $atts, 'portfolio' );
513
 
@@ -549,9 +549,9 @@ class Essential_Content_Jetpack_Portfolio {
549
  if ( $atts['order'] ) {
550
  $atts['order'] = urldecode( $atts['order'] );
551
  $atts['order'] = strtoupper( $atts['order'] );
552
- if ( 'DESC' != $atts['order'] ) {
553
  $atts['order'] = 'ASC';
554
- }
555
  }
556
 
557
  if ( $atts['orderby'] ) {
@@ -633,7 +633,7 @@ class Essential_Content_Jetpack_Portfolio {
633
  * @todo add theme color styles
634
  * @return html
635
  */
636
-
637
  static function portfolio_shortcode_html( $atts ) {
638
 
639
  $query = self::portfolio_query( $atts );
@@ -643,7 +643,7 @@ class Essential_Content_Jetpack_Portfolio {
643
  // If we have posts, create the html
644
  // with hportfolio markup
645
  if ( $query->have_posts() ) {
646
-
647
 
648
  /**
649
  * Hook: ect_before_portfolio_loop.
@@ -653,7 +653,7 @@ class Essential_Content_Jetpack_Portfolio {
653
  $layout = ect_get_layout();
654
  do_action( 'ect_before_portfolio_loop', $layout[$atts['columns']] );
655
  ?>
656
- <?php
657
  //ect_portfolio_loop_start( $layout[$atts['columns']] );
658
  while ( $query->have_posts() ) {
659
  $query->the_post();
@@ -666,8 +666,8 @@ class Essential_Content_Jetpack_Portfolio {
666
  }
667
  wp_reset_postdata();
668
  //ect_portfolio_loop_end();
669
- ?>
670
- <?php
671
 
672
  /**
673
  * Hook: ect_after_portfolio_loop.
@@ -839,7 +839,7 @@ if( ! function_exists( 'essential_content_portfolio_section_open' ) ):
839
  function essential_content_portfolio_section_open( $layout ) {
840
  echo '<div class="ect-portfolio ect-section">';
841
  echo '<div class="ect-wrapper">';
842
- }
843
  endif;
844
  add_action( 'ect_before_portfolio_loop', 'essential_content_portfolio_section_open', 10, 1 );
845
 
@@ -877,6 +877,6 @@ if( ! function_exists( 'essential_content_portfolio_section_close' ) ):
877
  function essential_content_portfolio_section_close() {
878
  echo '</div><!-- .ect-wrapper -->';
879
  echo '</div><!-- .ect-section -->';
880
- }
881
  endif;
882
  add_action( 'ect_after_portfolio_loop', 'essential_content_portfolio_section_close', 20 );
505
  'show_filter' => false,
506
  'include_type' => false,
507
  'include_tag' => false,
508
+ 'columns' => 3,
509
  'showposts' => -1,
510
+ 'order' => 'DESC',
511
  'orderby' => 'date',
512
  ), $atts, 'portfolio' );
513
 
549
  if ( $atts['order'] ) {
550
  $atts['order'] = urldecode( $atts['order'] );
551
  $atts['order'] = strtoupper( $atts['order'] );
552
+ /* if ( 'DESC' != $atts['order'] ) {
553
  $atts['order'] = 'ASC';
554
+ } */
555
  }
556
 
557
  if ( $atts['orderby'] ) {
633
  * @todo add theme color styles
634
  * @return html
635
  */
636
+
637
  static function portfolio_shortcode_html( $atts ) {
638
 
639
  $query = self::portfolio_query( $atts );
643
  // If we have posts, create the html
644
  // with hportfolio markup
645
  if ( $query->have_posts() ) {
646
+
647
 
648
  /**
649
  * Hook: ect_before_portfolio_loop.
653
  $layout = ect_get_layout();
654
  do_action( 'ect_before_portfolio_loop', $layout[$atts['columns']] );
655
  ?>
656
+ <?php
657
  //ect_portfolio_loop_start( $layout[$atts['columns']] );
658
  while ( $query->have_posts() ) {
659
  $query->the_post();
666
  }
667
  wp_reset_postdata();
668
  //ect_portfolio_loop_end();
669
+ ?>
670
+ <?php
671
 
672
  /**
673
  * Hook: ect_after_portfolio_loop.
839
  function essential_content_portfolio_section_open( $layout ) {
840
  echo '<div class="ect-portfolio ect-section">';
841
  echo '<div class="ect-wrapper">';
842
+ }
843
  endif;
844
  add_action( 'ect_before_portfolio_loop', 'essential_content_portfolio_section_open', 10, 1 );
845
 
877
  function essential_content_portfolio_section_close() {
878
  echo '</div><!-- .ect-wrapper -->';
879
  echo '</div><!-- .ect-section -->';
880
+ }
881
  endif;
882
  add_action( 'ect_after_portfolio_loop', 'essential_content_portfolio_section_close', 20 );
admin/css/portfolio-shortcode.css CHANGED
@@ -18,7 +18,6 @@ html {
18
  -moz-box-sizing: inherit;
19
  box-sizing: inherit;
20
  }
21
-
22
 
23
  /*--------------------------------------------------------------
24
  # Padding/Margin
@@ -62,7 +61,6 @@ html {
62
  padding: 0 30px;
63
  }
64
 
65
-
66
  /*--------------------------------------------------------------
67
  # Clearings
68
  --------------------------------------------------------------*/
@@ -77,7 +75,7 @@ html {
77
  .entry-content:after,
78
  .entry-summary:before,
79
  .entry-summary:after {
80
- content: "";
81
  display: table;
82
  }
83
 
@@ -158,7 +156,7 @@ html {
158
 
159
  /*--------------------------------------------------------------
160
  # >= 667px
161
- --------------------------------------------------------------*/
162
 
163
  @media screen and (min-width: 41.6875em) {
164
  .featured-content-wrapper.layout-four,
@@ -189,12 +187,12 @@ html {
189
  padding: 0 15px;
190
  }
191
 
192
- .featured-content-wrapper.layout-two .hentry:nth-child(2n+1),
193
- .featured-content-wrapper.layout-four .hentry:nth-child(2n+1),
194
- .portfolio-content-wrapper.layout-two .hentry:nth-child(2n+1),
195
- .portfolio-content-wrapper.layout-four .hentry:nth-child(2n+1),
196
- .service-content-wrapper.layout-two .hentry:nth-child(2n+1),
197
- .service-content-wrapper.layout-four .hentry:nth-child(2n+1) {
198
  clear: both;
199
  }
200
 
@@ -202,7 +200,7 @@ html {
202
  width: 50%;
203
  }
204
 
205
- #testimonial-content-section.layout-two .hentry:nth-child(2n+1) {
206
  clear: both;
207
  }
208
 
@@ -241,29 +239,28 @@ html {
241
  .portfolio-content-wrapper.layout-three .hentry-inner .entry-container,
242
  .service-content-wrapper.layout-three .hentry-inner .entry-container {
243
  display: block;
244
- width: 100%;
245
  }
246
 
247
- .featured-content-wrapper.layout-six .hentry:nth-child(3n+1),
248
- .portfolio-content-wrapper.layout-six .hentry:nth-child(3n+1),
249
- .service-content-wrapper.layout-six .hentry:nth-child(3n+1),
250
- .featured-content-wrapper.layout-three .hentry:nth-child(3n+1),
251
- .portfolio-content-wrapper.layout-three .hentry:nth-child(3n+1),
252
- .service-content-wrapper.layout-three .hentry:nth-child(3n+1) {
253
  clear: both;
254
- }
255
  }
256
 
257
-
258
  /*--------------------------------------------------------------
259
  # >= 1024px
260
- --------------------------------------------------------------*/
261
 
262
  @media screen and (min-width: 64em) {
263
- .featured-content-wrapper,
264
- .portfolio-content-wrapper,
265
  .service-content-wrapper {
266
- padding: 0 25px;
267
  }
268
 
269
  .featured-content-wrapper.layout-four .hentry,
@@ -275,7 +272,7 @@ html {
275
  .featured-content-wrapper.layout-two .hentry,
276
  .portfolio-content-wrapper.layout-two .hentry,
277
  .service-content-wrapper.layout-two .hentry {
278
- padding: 0 25px;
279
  }
280
 
281
  .featured-content-wrapper.layout-six,
@@ -286,42 +283,41 @@ html {
286
  .service-content-wrapper.layout-four,
287
  .featured-content-wrapper.layout-three,
288
  .portfolio-content-wrapper.layout-three,
289
- .service-content-wrapper.layout-three
290
- .featured-content-wrapper.layout-two,
291
  .portfolio-content-wrapper.layout-two,
292
  .service-content-wrapper.layout-two {
293
  margin-left: 0;
294
- margin-right: 0;
295
  }
296
 
297
- .featured-content-wrapper.layout-four .hentry:nth-child(2n+1),
298
- .portfolio-content-wrapper.layout-four .hentry:nth-child(2n+1),
299
- .service-content-wrapper.layout-four .hentry:nth-child(2n+1) {
300
  clear: none;
301
  }
302
 
303
- .featured-content-wrapper.layout-four .hentry:nth-child(4n+1),
304
- .portfolio-content-wrapper.layout-four .hentry:nth-child(4n+1),
305
- .service-content-wrapper.layout-four .hentry:nth-child(4n+1) {
306
  clear: both;
307
  }
308
 
309
- .featured-content-wrapper.layout-six .hentry:nth-child(3n+1),
310
- .portfolio-content-wrapper.layout-six .hentry:nth-child(3n+1),
311
- .service-content-wrapper.layout-six .hentry:nth-child(3n+1) {
312
- clear: none;
313
  }
314
 
315
- .featured-content-wrapper.layout-five .hentry:nth-child(5n+1),
316
- .portfolio-content-wrapper.layout-five .hentry:nth-child(5n+1),
317
- .service-content-wrapper.layout-five .hentry:nth-child(5n+1) {
318
- clear: both;
319
- }
320
 
321
- .featured-content-wrapper.layout-six .hentry:nth-child(6n+1),
322
- .portfolio-content-wrapper.layout-six .hentry:nth-child(6n+1),
323
- .service-content-wrapper.layout-six .hentry:nth-child(6n+1) {
324
- clear: both;
325
  }
326
 
327
  .featured-content-wrapper.layout-four .hentry,
@@ -348,4 +344,14 @@ html {
348
  #testimonial-content-section .hentry {
349
  padding: 0 25px 56px;
350
  }
351
- }
 
 
 
 
 
 
 
 
 
 
18
  -moz-box-sizing: inherit;
19
  box-sizing: inherit;
20
  }
 
21
 
22
  /*--------------------------------------------------------------
23
  # Padding/Margin
61
  padding: 0 30px;
62
  }
63
 
 
64
  /*--------------------------------------------------------------
65
  # Clearings
66
  --------------------------------------------------------------*/
75
  .entry-content:after,
76
  .entry-summary:before,
77
  .entry-summary:after {
78
+ content: '';
79
  display: table;
80
  }
81
 
156
 
157
  /*--------------------------------------------------------------
158
  # >= 667px
159
+ --------------------------------------------------------------*/
160
 
161
  @media screen and (min-width: 41.6875em) {
162
  .featured-content-wrapper.layout-four,
187
  padding: 0 15px;
188
  }
189
 
190
+ .featured-content-wrapper.layout-two .hentry:nth-child(2n + 1),
191
+ .featured-content-wrapper.layout-four .hentry:nth-child(2n + 1),
192
+ .portfolio-content-wrapper.layout-two .hentry:nth-child(2n + 1),
193
+ .portfolio-content-wrapper.layout-four .hentry:nth-child(2n + 1),
194
+ .service-content-wrapper.layout-two .hentry:nth-child(2n + 1),
195
+ .service-content-wrapper.layout-four .hentry:nth-child(2n + 1) {
196
  clear: both;
197
  }
198
 
200
  width: 50%;
201
  }
202
 
203
+ #testimonial-content-section.layout-two .hentry:nth-child(2n + 1) {
204
  clear: both;
205
  }
206
 
239
  .portfolio-content-wrapper.layout-three .hentry-inner .entry-container,
240
  .service-content-wrapper.layout-three .hentry-inner .entry-container {
241
  display: block;
242
+ width: 100%;
243
  }
244
 
245
+ .featured-content-wrapper.layout-six .hentry:nth-child(3n + 1),
246
+ .portfolio-content-wrapper.layout-six .hentry:nth-child(3n + 1),
247
+ .service-content-wrapper.layout-six .hentry:nth-child(3n + 1),
248
+ .featured-content-wrapper.layout-three .hentry:nth-child(3n + 1),
249
+ .portfolio-content-wrapper.layout-three .hentry:nth-child(3n + 1),
250
+ .service-content-wrapper.layout-three .hentry:nth-child(3n + 1) {
251
  clear: both;
252
+ }
253
  }
254
 
 
255
  /*--------------------------------------------------------------
256
  # >= 1024px
257
+ --------------------------------------------------------------*/
258
 
259
  @media screen and (min-width: 64em) {
260
+ .featured-content-wrapper,
261
+ .portfolio-content-wrapper,
262
  .service-content-wrapper {
263
+ padding: 0px;
264
  }
265
 
266
  .featured-content-wrapper.layout-four .hentry,
272
  .featured-content-wrapper.layout-two .hentry,
273
  .portfolio-content-wrapper.layout-two .hentry,
274
  .service-content-wrapper.layout-two .hentry {
275
+ padding: 0 15px;
276
  }
277
 
278
  .featured-content-wrapper.layout-six,
283
  .service-content-wrapper.layout-four,
284
  .featured-content-wrapper.layout-three,
285
  .portfolio-content-wrapper.layout-three,
286
+ .service-content-wrapper.layout-three .featured-content-wrapper.layout-two,
 
287
  .portfolio-content-wrapper.layout-two,
288
  .service-content-wrapper.layout-two {
289
  margin-left: 0;
290
+ margin-right: 0;
291
  }
292
 
293
+ .featured-content-wrapper.layout-four .hentry:nth-child(2n + 1),
294
+ .portfolio-content-wrapper.layout-four .hentry:nth-child(2n + 1),
295
+ .service-content-wrapper.layout-four .hentry:nth-child(2n + 1) {
296
  clear: none;
297
  }
298
 
299
+ .featured-content-wrapper.layout-four .hentry:nth-child(4n + 1),
300
+ .portfolio-content-wrapper.layout-four .hentry:nth-child(4n + 1),
301
+ .service-content-wrapper.layout-four .hentry:nth-child(4n + 1) {
302
  clear: both;
303
  }
304
 
305
+ .featured-content-wrapper.layout-six .hentry:nth-child(3n + 1),
306
+ .portfolio-content-wrapper.layout-six .hentry:nth-child(3n + 1),
307
+ .service-content-wrapper.layout-six .hentry:nth-child(3n + 1) {
308
+ clear: none;
309
  }
310
 
311
+ .featured-content-wrapper.layout-five .hentry:nth-child(5n + 1),
312
+ .portfolio-content-wrapper.layout-five .hentry:nth-child(5n + 1),
313
+ .service-content-wrapper.layout-five .hentry:nth-child(5n + 1) {
314
+ clear: both;
315
+ }
316
 
317
+ .featured-content-wrapper.layout-six .hentry:nth-child(6n + 1),
318
+ .portfolio-content-wrapper.layout-six .hentry:nth-child(6n + 1),
319
+ .service-content-wrapper.layout-six .hentry:nth-child(6n + 1) {
320
+ clear: both;
321
  }
322
 
323
  .featured-content-wrapper.layout-four .hentry,
344
  #testimonial-content-section .hentry {
345
  padding: 0 25px 56px;
346
  }
347
+ }
348
+
349
+ .single .site-main .ect-section .entry-header {
350
+ margin-bottom: 0;
351
+ }
352
+ .single .site-main .ect-section .entry-header h2.entry-title,
353
+ .singular-content-wrap .ect-section .entry-header h2.entry-title {
354
+ font-size: 24px !important;
355
+ font-size: 1.5rem !important;
356
+ margin-bottom: 0;
357
+ }
essential-content-types.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Essential Content Types
17
  * Plugin URI: https://catchplugins.com/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.9
20
  * Author: Catch Plugins
21
  * Author URI: https://catchplugins.com
22
  * License: GPL-3.0+
@@ -31,7 +31,7 @@ if ( ! defined( 'WPINC' ) ) {
31
  }
32
 
33
  // Define Version
34
- define( 'ESSENTIAL_CONTENT_TYPES_VERSION', '1.9' );
35
 
36
  /**
37
  * The code that runs during plugin activation.
16
  * Plugin Name: Essential Content Types
17
  * Plugin URI: https://catchplugins.com/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.9.1
20
  * Author: Catch Plugins
21
  * Author URI: https://catchplugins.com
22
  * License: GPL-3.0+
31
  }
32
 
33
  // Define Version
34
+ define( 'ESSENTIAL_CONTENT_TYPES_VERSION', '1.9.1' );
35
 
36
  /**
37
  * The code that runs during plugin activation.
languages/essential-content-types-fr_FR.mo CHANGED
Binary file
languages/essential-content-types-fr_FR.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Essential Content Types\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
7
- "POT-Creation-Date: 2021-09-18 00:25-0700\n"
8
- "PO-Revision-Date: 2021-09-18 00:25-0700\n"
9
  "Last-Translator: Charles Girardin <girardin.charles.57@gmail.com>\n"
10
  "Language-Team: Catch Plugins <info@catchplugins.com>\n"
11
  "Language: fr_FR\n"
4
  msgstr ""
5
  "Project-Id-Version: Essential Content Types\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
7
+ "POT-Creation-Date: 2021-10-05 23:13-0700\n"
8
+ "PO-Revision-Date: 2021-10-05 23:13-0700\n"
9
  "Last-Translator: Charles Girardin <girardin.charles.57@gmail.com>\n"
10
  "Language-Team: Catch Plugins <info@catchplugins.com>\n"
11
  "Language: fr_FR\n"
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: 2021-09-18 00:25-0700\n"
9
  "PO-Revision-Date: 2016-12-12 09:23-0500\n"
10
  "Last-Translator: Sakin Shrestha <info@catchplugins.com>\n"
11
  "Language-Team: Catch Plugins <info@catchplugins.com>\n"
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: 2021-10-05 23:13-0700\n"
9
  "PO-Revision-Date: 2016-12-12 09:23-0500\n"
10
  "Last-Translator: Sakin Shrestha <info@catchplugins.com>\n"
11
  "Language-Team: Catch Plugins <info@catchplugins.com>\n"