Shortcodes and extra features for Phlox theme - Version 1.3.1

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Shortcodes and extra features for Phlox theme
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3.0 to 1.3.1

README.txt CHANGED
@@ -4,9 +4,9 @@ Donate link: http://averta.net/
4
  License: GPLv3
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: banner SEO, shortcode, page-builder, siteorigin, auxin, framework, widget, element, phlox, averta, fullwidth, masonry, timeline
7
- Requires at least: 4.3
8
- Tested up to: 4.6.1
9
- Stable tag: 1.3.0
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl.html
12
 
@@ -140,6 +140,13 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-ele
140
 
141
  == Changelog ==
142
 
 
 
 
 
 
 
 
143
  = Version 1.3.0 / (1.12.2016) =
144
  - [Improvement]: Improved image sizes in recent posts elements
145
  - [Improvement]: For responsiveness of grid table element
@@ -171,7 +178,6 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-ele
171
 
172
  == Upgrade Notice ==
173
 
174
- = 1.3.0 =
175
- - [New]: adding hover effect option for grid table layout
176
- - [New]: New options and styles for Text element added
177
- - [New]: New options and layout for recent grid post element added
4
  License: GPLv3
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: banner SEO, shortcode, page-builder, siteorigin, auxin, framework, widget, element, phlox, averta, fullwidth, masonry, timeline
7
+ Requires at least: 4.4
8
+ Tested up to: 4.7.0
9
+ Stable tag: 1.3.1
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl.html
12
 
140
 
141
  == Changelog ==
142
 
143
+ = Version 1.3.1 / (20.12.2016) =
144
+ - [Improvement]: New styles and options added to code element
145
+ - [Improvement]: Adding responsive options to row and column shortcodes
146
+ - [fix]: icon_size attribute added to text shortcode handler
147
+ - [Fix]: Fixed an issue that result in malfunction for gallery
148
+
149
+
150
  = Version 1.3.0 / (1.12.2016) =
151
  - [Improvement]: Improved image sizes in recent posts elements
152
  - [Improvement]: For responsiveness of grid table element
178
 
179
  == Upgrade Notice ==
180
 
181
+ = 1.3.1 =
182
+ - [Improvement]: New styles and options added to code element
183
+ - [Improvement]: Adding responsive options to row and column shortcodes
 
admin/assets/js/tinymce/plugins/auxin-btns.js CHANGED
@@ -143,7 +143,7 @@
143
  menu : [ {
144
  text : 'Phlox Text',
145
  onclick : function() {
146
- editor.insertContent('[aux_text title_link="" text_align="left" icon="auxicon-bow-tie" image_position="top" icon_color="#888" title="title" extra_classes=""]Insert your quote here[/aux_text]');
147
  },
148
 
149
  }, // end of Phlox Text
143
  menu : [ {
144
  text : 'Phlox Text',
145
  onclick : function() {
146
+ editor.insertContent('[aux_text title_link="" text_align="left" icon="auxicon-bow-tie" icon_size="large" image_position="top" icon_color="#888" title="title" extra_classes=""]Insert your text here[/aux_text]');
147
  },
148
 
149
  }, // end of Phlox Text
auxin-elements.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Auxin Essential Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Powerful and comprehensive plugin that extends the functionality of Phlox theme by adding new shortcodes, widgets and options
15
- * Version: 1.3.0
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
12
  * Plugin Name: Auxin Essential Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Powerful and comprehensive plugin that extends the functionality of Phlox theme by adding new shortcodes, widgets and options
15
+ * Version: 1.3.1
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '1.3.0' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
  define( 'AUXELS_TEXT_DOMAIN' , 'auxin-elements' );
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '1.3.1' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
  define( 'AUXELS_TEXT_DOMAIN' , 'auxin-elements' );
includes/elements/code.php CHANGED
@@ -69,16 +69,17 @@ function auxin_get_code_master_array( $master_array ) {
69
  'group' => '' ,
70
  'edit_field_class' => ''
71
  ),
72
- array( // @TODO: language option does not work here
73
  'heading' => __('Language','auxin-elements' ),
74
  'description' => '',
75
  'param_name' => 'language',
76
  'type' => 'dropdown',
77
  'def_value' => 'javascript ',
78
  'value' => array(
79
- 'javascript ' => __('javascript' , 'auxin-elements' ) ,
80
- 'html' => __('html' , 'auxin-elements' ),
81
- 'xml' => __('xml' , 'auxin-elements' )
 
82
  ),
83
  'holder' => 'dropdown',
84
  'class' => 'language',
@@ -89,17 +90,24 @@ function auxin_get_code_master_array( $master_array ) {
89
  'edit_field_class' => ''
90
  ),
91
  array(
92
- 'heading' => __('Theme','auxin-elements' ),
93
  'description' => __('Specifies the theme for code element.','auxin-elements' ),
94
  'param_name' => 'theme',
95
  'type' => 'dropdown',
 
96
  'value' => array(
97
- 'tomorrow ' => __('tomorrow' , 'auxin-elements' ) ,
98
- 'dark' => __('Dark' , 'auxin-elements' ),
99
- 'far' => __('far' , 'auxin-elements' ),
100
- 'googlecode' => __('googlecode' , 'auxin-elements' ),
101
- 'github.com' => __('github' , 'auxin-elements' ),
102
- 'monokai' => __('monokai' , 'auxin-elements' )
 
 
 
 
 
 
103
  ),
104
  'holder' => 'dropdown',
105
  'class' => 'theme',
@@ -167,36 +175,28 @@ function auxin_widget_code_callback( $atts, $shortcode_content = null ){
167
  echo $result['widget_title'];
168
 
169
  $themes = array(
 
 
 
170
  'default',
171
- 'dark',
172
- 'far',
173
- 'github.com',
174
  'googlecode',
175
- 'idea',
176
- 'magula',
177
- 'monokai',
178
- 'rainbow',
179
- 'sunburst',
180
- 'tomorrow-night-bright',
181
- 'tomorrow-night-eighties',
182
  'tomorrow-night',
183
  'tomorrow',
184
  'vs',
185
- 'xcode',
186
  'zenburn'
187
  );
 
188
  if( ! in_array( $theme, $themes ) ){
189
  $theme = 'default';
190
  }
191
- // @TODO: it seems highlight already enqoue in page since it merges with othe scripts
192
- // wp_enqueue_script('highlightjs');
193
-
194
- wp_enqueue_style ('highlightjs', THEME_URL . 'css/other/highlightjs/' . $theme . '.css' , NULL, '7.2');
195
- //wp_register_script('highlightjs' , THEME_URL . 'js/libs/modules/highlight.pack.js', null, '7.2', TRUE);
196
 
197
- echo '<pre class="aux-widget-code ' . $extra_classes . '">' .
198
- '<code class="' . $language . '">' . do_shortcode($content) .
199
- '</code></pre>';
 
200
 
201
  // widget footer ------------------------------
202
  echo $result['widget_footer'];
69
  'group' => '' ,
70
  'edit_field_class' => ''
71
  ),
72
+ array(
73
  'heading' => __('Language','auxin-elements' ),
74
  'description' => '',
75
  'param_name' => 'language',
76
  'type' => 'dropdown',
77
  'def_value' => 'javascript ',
78
  'value' => array(
79
+ 'javascript ' => __('JavaScript' , 'auxin-elements' ) ,
80
+ 'html' => __('HTML' , 'auxin-elements' ),
81
+ 'xml' => __('XML' , 'auxin-elements' ),
82
+ 'php' => __('PHP' , 'auxin-elements' )
83
  ),
84
  'holder' => 'dropdown',
85
  'class' => 'language',
90
  'edit_field_class' => ''
91
  ),
92
  array(
93
+ 'heading' => __('Style', 'auxin-elements' ),
94
  'description' => __('Specifies the theme for code element.','auxin-elements' ),
95
  'param_name' => 'theme',
96
  'type' => 'dropdown',
97
+ 'def_value' => 'tomorrow',
98
  'value' => array(
99
+ 'default' => __('Default' , 'auxin-elements' ),
100
+ 'androidstudio' => __('AndroidStudio' , 'auxin-elements' ),
101
+ 'atom-one-dark' => __('Atom Dark' , 'auxin-elements' ),
102
+ 'atom-one-light'=> __('Atom Light' , 'auxin-elements' ),
103
+ 'github' => __('Github' , 'auxin-elements' ),
104
+ 'googlecode' => __('Google Code' , 'auxin-elements' ),
105
+ 'railscasts' => __('RailsCasts' , 'auxin-elements' ),
106
+ 'solarized-light' => __('Solarized Light' , 'auxin-elements' ),
107
+ 'tomorrow-night' => __('Tomorrow Night' , 'auxin-elements' ),
108
+ 'tomorrow' => __('Tomorrow' , 'auxin-elements' ),
109
+ 'vs' => __('VisualStudio' , 'auxin-elements' ),
110
+ 'zenburn' => __('ZenBurn' , 'auxin-elements' )
111
  ),
112
  'holder' => 'dropdown',
113
  'class' => 'theme',
175
  echo $result['widget_title'];
176
 
177
  $themes = array(
178
+ 'androidstudio',
179
+ 'atom-one-dark',
180
+ 'atom-one-light',
181
  'default',
182
+ 'github',
 
 
183
  'googlecode',
184
+ 'railscasts',
185
+ 'solarized-light',
 
 
 
 
 
186
  'tomorrow-night',
187
  'tomorrow',
188
  'vs',
 
189
  'zenburn'
190
  );
191
+
192
  if( ! in_array( $theme, $themes ) ){
193
  $theme = 'default';
194
  }
 
 
 
 
 
195
 
196
+ echo '<div class="hljs-'. $theme .'">' .
197
+ '<pre class="aux-widget-code ' . $extra_classes . '">' .
198
+ '<code class="' . $language . '">' . do_shortcode( $content ) .
199
+ '</code></pre></div>';
200
 
201
  // widget footer ------------------------------
202
  echo $result['widget_footer'];
includes/elements/gallery.php CHANGED
@@ -323,7 +323,7 @@ function auxin_widget_gallery_callback( $attr, $shortcode_content = null ){
323
  'icontag' => $html5 ? 'div' : 'dt',
324
  'captiontag' => $html5 ? 'figcaption' : 'dd',
325
  'columns' => 4,
326
- 'space' => '10',
327
  'size' => 'medium',
328
  'hardcrop' => "yes",
329
  'layout' => 'grid', // grid, masonry, justify-rows, packery
@@ -331,8 +331,8 @@ function auxin_widget_gallery_callback( $attr, $shortcode_content = null ){
331
  'exclude' => '',
332
  'link' => 'lightbox', // none, file, empty(attachment), lightbox
333
  'perpage' => 24,
334
- 'pagination' => '0',
335
- 'lazyload' => '0',
336
  'gutter' => '1',
337
 
338
  'title' => '', // header title
@@ -542,10 +542,10 @@ function auxin_widget_gallery_callback( $attr, $shortcode_content = null ){
542
  if ( empty( $image_alt ) )
543
  $image_alt = trim( strip_tags( $attachment->post_title ) ); // Finally, use the title
544
 
545
- $loading_class = $atts['lazyload'] ? '' : 'aux-loading';
546
 
547
  $item_inner = "
548
- <{$icontag} class='aux-image-holder {$orientation}'>
549
  <img src='$image_src'
550
  data-original-src-width='{$image_meta['width']}'
551
  data-original-src-height='{$image_meta['height']}'
@@ -565,18 +565,22 @@ function auxin_widget_gallery_callback( $attr, $shortcode_content = null ){
565
  }
566
 
567
  if ( 'lightbox' === $atts['link'] ) {
568
- $item_inner = "<a href='$url' class='aux-lightbox-btn'><span class='aux-plus'></span> <span class='aux-plus-bg'></span>$item_inner</a>";
 
 
 
 
 
569
  } elseif ( 'none' != $atts['link'] ) {
570
  $item_inner = "<a href='$url'>$item_inner</a>";
571
  }
572
 
573
  if ( $atts['pagination'] && ++$index > $atts['perpage'] ) {
574
- $item .= "<{$itemtag} class='gallery-item aux-iso-item aux-iso-hidden $loading_class {$grid_col_class}' data-width='{$image_width}' data-height='{$image_height}'>$item_inner</{$itemtag}>";
575
  } else {
576
- $item .= "<{$itemtag} class='gallery-item aux-iso-item {$grid_col_class} $loading_class' data-width='{$image_width}' data-height='{$image_height}'>$item_inner</{$itemtag}>";
577
  }
578
 
579
-
580
  if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
581
  $item .= '<br style="clear: both" />';
582
  }
323
  'icontag' => $html5 ? 'div' : 'dt',
324
  'captiontag' => $html5 ? 'figcaption' : 'dd',
325
  'columns' => 4,
326
+ 'space' => 10,
327
  'size' => 'medium',
328
  'hardcrop' => "yes",
329
  'layout' => 'grid', // grid, masonry, justify-rows, packery
331
  'exclude' => '',
332
  'link' => 'lightbox', // none, file, empty(attachment), lightbox
333
  'perpage' => 24,
334
+ 'pagination' => false,
335
+ 'lazyload' => false,
336
  'gutter' => '1',
337
 
338
  'title' => '', // header title
542
  if ( empty( $image_alt ) )
543
  $image_alt = trim( strip_tags( $attachment->post_title ) ); // Finally, use the title
544
 
545
+ $loading_class = $atts['lazyload'] ? 'aux-loading' : '';
546
 
547
  $item_inner = "
548
+ <{$icontag} class='aux-frame-mask aux-frame-darken {$orientation}'>
549
  <img src='$image_src'
550
  data-original-src-width='{$image_meta['width']}'
551
  data-original-src-height='{$image_meta['height']}'
565
  }
566
 
567
  if ( 'lightbox' === $atts['link'] ) {
568
+ $item_inner = "<a href='$url' class='aux-lightbox-btn'>
569
+ <div class='aux-hover-scale-circle-plus'>
570
+ <span class='aux-symbol-plus'></span>
571
+ <span class='aux-symbol-circle'></span>
572
+ </div>
573
+ $item_inner</a>";
574
  } elseif ( 'none' != $atts['link'] ) {
575
  $item_inner = "<a href='$url'>$item_inner</a>";
576
  }
577
 
578
  if ( $atts['pagination'] && ++$index > $atts['perpage'] ) {
579
+ $item .= "<{$itemtag} class='gallery-item aux-hover-active aux-iso-item aux-iso-hidden $loading_class {$grid_col_class}' data-width='{$image_width}' data-height='{$image_height}'>$item_inner</{$itemtag}>";
580
  } else {
581
+ $item .= "<{$itemtag} class='gallery-item aux-hover-active aux-iso-item {$grid_col_class} $loading_class' data-width='{$image_width}' data-height='{$image_height}'>$item_inner</{$itemtag}>";
582
  }
583
 
 
584
  if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
585
  $item .= '<br style="clear: both" />';
586
  }
includes/elements/image.php CHANGED
@@ -189,7 +189,7 @@ function auxin_get_image_master_array( $master_array ) {
189
  'description' => __('Open in new page or this page.','auxin-elements' ),
190
  'param_name' => 'target',
191
  'type' => 'dropdown',
192
- 'def_value' => 'curve',
193
  'value' => array(
194
  '_self' => __('Self' , 'auxin-elements' ) ,
195
  '_blank' => __('Blank' , 'auxin-elements' )
@@ -280,7 +280,7 @@ function auxin_widget_image_callback( $atts, $shortcode_content = null ){
280
  // hover effect
281
  $hover_class = '';
282
  if ( !empty($anchor_link) ) {
283
- $hover_class = 'aux-active-hover-effect';
284
  }
285
 
286
  // add alignment class on main element
@@ -294,7 +294,7 @@ function auxin_widget_image_callback( $atts, $shortcode_content = null ){
294
 
295
  // widget output -----------------------
296
  ?>
297
- <div class="aux-media-hint-frame">
298
  <div class="aux-media-frame aux-media-image aux-lightbox-frame <?php echo $hover_class; ?>" >
299
 
300
  <?php if( !empty($anchor_link) ) { ?>
@@ -302,8 +302,10 @@ function auxin_widget_image_callback( $atts, $shortcode_content = null ){
302
  <?php } ?>
303
 
304
  <?php if( 'plus' == $icon ) { ?>
305
- <span class="aux-plus"></span>
306
- <span class="aux-plus-bg"></span>
 
 
307
  <?php } ?>
308
 
309
  <?php if ( !empty( $image_secondary ) ) { ?>
@@ -312,7 +314,7 @@ function auxin_widget_image_callback( $atts, $shortcode_content = null ){
312
  <?php echo $image_secondary; ?>
313
  </div>
314
  <?php } else { ?>
315
- <div class="aux-image-holder">
316
  <?php echo $image_primary; ?>
317
  </div>
318
  <?php } ?>
189
  'description' => __('Open in new page or this page.','auxin-elements' ),
190
  'param_name' => 'target',
191
  'type' => 'dropdown',
192
+ 'def_value' => '_self',
193
  'value' => array(
194
  '_self' => __('Self' , 'auxin-elements' ) ,
195
  '_blank' => __('Blank' , 'auxin-elements' )
280
  // hover effect
281
  $hover_class = '';
282
  if ( !empty($anchor_link) ) {
283
+ $hover_class = 'aux-hover-active';
284
  }
285
 
286
  // add alignment class on main element
294
 
295
  // widget output -----------------------
296
  ?>
297
+ <div class="aux-media-hint-frame ">
298
  <div class="aux-media-frame aux-media-image aux-lightbox-frame <?php echo $hover_class; ?>" >
299
 
300
  <?php if( !empty($anchor_link) ) { ?>
302
  <?php } ?>
303
 
304
  <?php if( 'plus' == $icon ) { ?>
305
+ <div class='aux-hover-scale-circle-plus'>
306
+ <span class='aux-symbol-plus'></span>
307
+ <span class='aux-symbol-circle'></span>
308
+ </div>
309
  <?php } ?>
310
 
311
  <?php if ( !empty( $image_secondary ) ) { ?>
314
  <?php echo $image_secondary; ?>
315
  </div>
316
  <?php } else { ?>
317
+ <div class="aux-frame-mask aux-frame-darken">
318
  <?php echo $image_primary; ?>
319
  </div>
320
  <?php } ?>
includes/elements/recent-posts-grid-carousel.php CHANGED
@@ -141,7 +141,7 @@ function auxin_get_recent_posts_master_array( $master_array ) {
141
  'edit_field_class' => ''
142
  ),
143
  array(
144
- 'heading' => __('Exclude qoute and link post formats','auxin-elements' ),
145
  'description' => '',
146
  'param_name' => 'exclude_qoute_link',
147
  'type' => 'aux_switch',
141
  'edit_field_class' => ''
142
  ),
143
  array(
144
+ 'heading' => __('Exclude quote and link post formats','auxin-elements' ),
145
  'description' => '',
146
  'param_name' => 'exclude_qoute_link',
147
  'type' => 'aux_switch',
includes/elements/recent-posts-land-style.php CHANGED
@@ -67,7 +67,7 @@ function auxin_get_recent_posts_land_master_array( $master_array ) {
67
  'group' => '' ,
68
  'edit_field_class' => ''
69
  ),
70
-
71
  // array(
72
  // 'param_name' => 'post_type',
73
  // 'type' => 'dropdown',
@@ -142,7 +142,7 @@ function auxin_get_recent_posts_land_master_array( $master_array ) {
142
  'edit_field_class' => ''
143
  ),
144
  array(
145
- 'heading' => __('Exclude qoute and link post formats','auxin-elements' ),
146
  'description' => '',
147
  'param_name' => 'exclude_qoute_link',
148
  'type' => 'aux_switch',
@@ -423,7 +423,7 @@ function auxin_widget_recent_posts_land_style_callback( $atts, $shortcode_conten
423
  'exclude_custom_post_formats' => 0,
424
  'exclude_qoute_link' => 0,
425
  'show_media' => true,
426
- 'show_excerpt' => true,
427
  'excerpt_len' => '160',
428
  'display_title' => true,
429
  'display_like' => true,
@@ -531,9 +531,9 @@ function auxin_widget_recent_posts_land_style_callback( $atts, $shortcode_conten
531
  $post_counter --;
532
  continue;
533
  }
534
-
535
- include( locate_template( 'templates/theme-parts/entry/post-column.php' ) );
536
-
537
  }
538
  ?> </div> <?php
539
  }
67
  'group' => '' ,
68
  'edit_field_class' => ''
69
  ),
70
+
71
  // array(
72
  // 'param_name' => 'post_type',
73
  // 'type' => 'dropdown',
142
  'edit_field_class' => ''
143
  ),
144
  array(
145
+ 'heading' => __('Exclude quote and link post formats','auxin-elements' ),
146
  'description' => '',
147
  'param_name' => 'exclude_qoute_link',
148
  'type' => 'aux_switch',
423
  'exclude_custom_post_formats' => 0,
424
  'exclude_qoute_link' => 0,
425
  'show_media' => true,
426
+ 'show_excerpt' => true,
427
  'excerpt_len' => '160',
428
  'display_title' => true,
429
  'display_like' => true,
531
  $post_counter --;
532
  continue;
533
  }
534
+
535
+ include( locate_template( 'templates/theme-parts/entry/post-column.php' ) );
536
+
537
  }
538
  ?> </div> <?php
539
  }
includes/elements/recent-posts-masonry.php CHANGED
@@ -141,7 +141,7 @@ function auxin_get_recent_posts_masonry_master_array( $master_array ) {
141
  'edit_field_class' => ''
142
  ),
143
  array(
144
- 'heading' => __('Exclude qoute and link post formats','auxin-elements' ),
145
  'description' => '',
146
  'param_name' => 'exclude_qoute_link',
147
  'type' => 'aux_switch',
141
  'edit_field_class' => ''
142
  ),
143
  array(
144
+ 'heading' => __('Exclude quote and link post formats','auxin-elements' ),
145
  'description' => '',
146
  'param_name' => 'exclude_qoute_link',
147
  'type' => 'aux_switch',
includes/elements/recent-posts-tiles.php CHANGED
@@ -146,7 +146,7 @@ function auxin_get_recent_posts_tiles_master_array( $master_array ) {
146
  ),
147
 
148
  array(
149
- 'heading' => __('Exclude qoute and link post formats','auxin-elements' ),
150
  'description' => '',
151
  'param_name' => 'exclude_qoute_link',
152
  'type' => 'aux_switch',
146
  ),
147
 
148
  array(
149
+ 'heading' => __('Exclude quote and link post formats','auxin-elements' ),
150
  'description' => '',
151
  'param_name' => 'exclude_qoute_link',
152
  'type' => 'aux_switch',
includes/elements/recent-posts-timeline.php CHANGED
@@ -168,7 +168,7 @@ function auxin_get_recent_posts_timeline_master_array( $master_array ) {
168
  'edit_field_class' => ''
169
  ),
170
  array(
171
- 'heading' => __('Exclude qoute and link post formats','auxin-elements' ),
172
  'description' => '',
173
  'param_name' => 'exclude_qoute_link',
174
  'type' => 'aux_switch',
@@ -361,29 +361,19 @@ function auxin_get_recent_posts_timeline_master_array( $master_array ) {
361
  'edit_field_class' => ''
362
  ),
363
  array(
364
- 'heading' => __('Insert read more button','auxin-elements' ),
365
- 'description' => '',
366
- 'param_name' => 'show_readmore',
367
- 'type' => 'aux_switch',
368
- 'value' => '1',
369
- 'class' => '',
370
- 'admin_label' => true,
371
- 'weight' => '',
372
- 'group' => '' ,
373
- 'edit_field_class' => ''
374
- ),
375
- array(
376
- 'heading' => __('Insert author name in bottom side','auxin-elements' ),
377
- 'description' => '',
378
- 'param_name' => 'show_author_footer',
379
- 'type' => 'aux_switch',
380
- 'value' => '1',
381
- 'class' => '',
382
- 'dependency' => array(
383
- 'element' => 'show_readmore',
384
- 'value' => '0'
385
  ),
386
- 'admin_label' => false,
 
387
  'weight' => '',
388
  'group' => '' ,
389
  'edit_field_class' => ''
@@ -447,8 +437,7 @@ function auxin_widget_recent_posts_timeline_callback( $atts, $shortcode_content
447
  'image_aspect_ratio' => 0.75,
448
  'display_title' => true,
449
  'show_info' => true,
450
- 'show_readmore' => true,
451
- 'show_author_footer' => false,
452
  'timeline_alignment' => 'center',
453
  'display_like' => true,
454
  'tag' => '',
@@ -462,6 +451,14 @@ function auxin_widget_recent_posts_timeline_callback( $atts, $shortcode_content
462
  $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
463
  extract( $result['parsed_atts'] );
464
 
 
 
 
 
 
 
 
 
465
  ob_start();
466
 
467
  global $wp_query;
168
  'edit_field_class' => ''
169
  ),
170
  array(
171
+ 'heading' => __('Exclude quote and link post formats','auxin-elements' ),
172
  'description' => '',
173
  'param_name' => 'exclude_qoute_link',
174
  'type' => 'aux_switch',
361
  'edit_field_class' => ''
362
  ),
363
  array(
364
+ 'heading' => __('Display author or read more', 'auxin-elements'),
365
+ 'description' => __('Specifies whether to show author or read more on each post.', 'auxin-elements'),
366
+ 'param_name' => 'author_or_readmore',
367
+ 'type' => 'dropdown',
368
+ 'def_value' => 'readmore',
369
+ 'holder' => 'dropdown',
370
+ 'class' => 'author_or_readmore',
371
+ 'value' =>array (
372
+ 'readmore' => __('Read More', 'auxin-elements'),
373
+ 'author' => __('Author Name', 'auxin-elements'),
 
 
 
 
 
 
 
 
 
 
 
374
  ),
375
+ 'admin_label' => true,
376
+ 'dependency' => '',
377
  'weight' => '',
378
  'group' => '' ,
379
  'edit_field_class' => ''
437
  'image_aspect_ratio' => 0.75,
438
  'display_title' => true,
439
  'show_info' => true,
440
+ 'author_or_readmore' => 'readmore',
 
441
  'timeline_alignment' => 'center',
442
  'display_like' => true,
443
  'tag' => '',
451
  $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
452
  extract( $result['parsed_atts'] );
453
 
454
+ if( $author_or_readmore == 'readmore') {
455
+ $show_readmore = true;
456
+ $show_author_footer = false;
457
+ } else {
458
+ $show_author_footer = true;
459
+ $show_readmore = false;
460
+ }
461
+
462
  ob_start();
463
 
464
  global $wp_query;
includes/elements/recent-posts-widget.php CHANGED
@@ -188,8 +188,8 @@ function auxin_get_recent_post_widget_master_array( $master_array ) {
188
  'edit_field_class' => ''
189
  ),
190
  array(
191
- 'heading' => __('Categorie', 'auxin-elements'),
192
- 'description' => __('Specify a category that you want.', 'auxin-elements' ),
193
  'param_name' => 'cat',
194
  'type' => 'dropdown',
195
  'def_value' => 'default',
188
  'edit_field_class' => ''
189
  ),
190
  array(
191
+ 'heading' => __('Categories', 'auxin-elements'),
192
+ 'description' => __('Specifies a category that you want to show posts from it.', 'auxin-elements' ),
193
  'param_name' => 'cat',
194
  'type' => 'dropdown',
195
  'def_value' => 'default',
includes/elements/text.php CHANGED
@@ -125,12 +125,21 @@ function auxin_get_text_master_array( $master_array ) {
125
  'heading' => __('Wrapper style','auxin-elements'),
126
  'description' => '',
127
  'param_name' => 'wrapper_style',
128
- 'type' => 'dropdown',
129
  'def_value' => 'simple',
130
- 'value' => array (
131
- 'simple' => __( 'Simple' , 'auxin-elements' ),
132
- 'outline' => __( 'Outlined', 'auxin-elements' ),
133
- 'box' => __( 'Boxed' , 'auxin-elements' )
 
 
 
 
 
 
 
 
 
134
  ),
135
  'holder' => 'dropdown',
136
  'class' => 'wrapper_style',
@@ -209,14 +218,29 @@ function auxin_get_text_master_array( $master_array ) {
209
  'heading' => __('Icon background shape','auxin-elements'),
210
  'description' => '',
211
  'param_name' => 'icon_shape',
212
- 'type' => 'dropdown',
213
  'def_value' => 'circle',
214
- 'value' => array (
215
- 'circle' => __( 'Circle' , 'auxin-elements' ),
216
- 'semi-circle' => __( 'Semi-Circle' , 'auxin-elements' ),
217
- 'round-rect' => __( 'Round Rectangle' , 'auxin-elements' ),
218
- 'cross-rect' => __( 'Cross Rectangle' , 'auxin-elements' ),
219
- 'rect' => __( 'Rectangle' , 'auxin-elements' )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  ),
221
  'holder' => 'dropdown',
222
  'class' => 'icon_shape',
125
  'heading' => __('Wrapper style','auxin-elements'),
126
  'description' => '',
127
  'param_name' => 'wrapper_style',
128
+ 'type' => 'aux_visual_select',
129
  'def_value' => 'simple',
130
+ 'choices' => array(
131
+ 'simple' => array(
132
+ 'label' => __('Simple', 'auxin-elements'),
133
+ 'image' => AUX_URL . 'images/visual-select/text-normal.svg'
134
+ ),
135
+ 'outline' => array(
136
+ 'label' => __('Outlined', 'auxin-elements'),
137
+ 'image' => AUX_URL . 'images/visual-select/text-outline.svg'
138
+ ),
139
+ 'box' => array(
140
+ 'label' => __('Boxed', 'auxin-elements'),
141
+ 'image' => AUX_URL . 'images/visual-select/text-boxed.svg'
142
+ )
143
  ),
144
  'holder' => 'dropdown',
145
  'class' => 'wrapper_style',
218
  'heading' => __('Icon background shape','auxin-elements'),
219
  'description' => '',
220
  'param_name' => 'icon_shape',
221
+ 'type' => 'aux_visual_select',
222
  'def_value' => 'circle',
223
+ 'choices' => array(
224
+ 'circle' => array(
225
+ 'label' => __('Circle', 'auxin-elements'),
226
+ 'image' => AUX_URL . 'images/visual-select/icon-style-circle.svg'
227
+ ),
228
+ 'semi-circle' => array(
229
+ 'label' => __('Semi-Circle', 'auxin-elements'),
230
+ 'image' => AUX_URL . 'images/visual-select/icon-style-semi-circle.svg'
231
+ ),
232
+ 'round-rect' => array(
233
+ 'label' => __('Round Rectangle', 'auxin-elements'),
234
+ 'image' => AUX_URL . 'images/visual-select/icon-style-round-rectangle.svg'
235
+ ),
236
+ 'cross-rect' => array(
237
+ 'label' => __('Cross Rectangle', 'auxin-elements'),
238
+ 'image' => AUX_URL . 'images/visual-select/icon-style-cross-rectangle.svg'
239
+ ),
240
+ 'rect' => array(
241
+ 'label' => __('Rectangle', 'auxin-elements'),
242
+ 'image' => AUX_URL . 'images/visual-select/icon-style-rectangle.svg'
243
+ )
244
  ),
245
  'holder' => 'dropdown',
246
  'class' => 'icon_shape',
includes/general-shortcodes.php CHANGED
@@ -370,17 +370,36 @@ function auxin_shortcode_timeline( $atts, $content = null ) {
370
  */
371
  function auxin_aux_row_shortcode( $atts , $content = null ) {
372
 
 
 
 
 
373
  // parse attributes
374
- $atts = shortcode_atts(
375
  array(
376
- 'columns' => 2
 
 
377
  ),
378
  $atts,
379
  'aux_row'
380
  );
381
 
 
 
 
 
 
 
 
 
 
 
 
 
 
382
  // Return code
383
- return '<div class="aux-row aux-col'. $atts['columns'] .'">'. do_shortcode( $content ) .'</div>';
384
  }
385
  add_shortcode( 'aux_row', 'auxin_aux_row_shortcode' );
386
 
370
  */
371
  function auxin_aux_row_shortcode( $atts , $content = null ) {
372
 
373
+ if( empty( $atts['tablet-columns'] ) && ! empty( $atts['columns'] ) ){
374
+ $atts['tablet-columns'] = ceil( (int)$atts['columns'] / 2 );
375
+ }
376
+
377
  // parse attributes
378
+ $parsed_atts = shortcode_atts(
379
  array(
380
+ 'columns' => 3,
381
+ 'tablet-columns' => '',
382
+ 'mobile-columns' => 1
383
  ),
384
  $atts,
385
  'aux_row'
386
  );
387
 
388
+ // collect custom layout css classes
389
+ $classes = '';
390
+
391
+ if( $parsed_atts['columns'] ){
392
+ $classes .= esc_attr( 'aux-col' . $parsed_atts['columns'] ) . ' ';
393
+ }
394
+ if( $parsed_atts['tablet-columns'] ){
395
+ $classes .= esc_attr( 'aux-tb-col' . $parsed_atts['tablet-columns'] ) . ' ';
396
+ }
397
+ if( $parsed_atts['mobile-columns'] ){
398
+ $classes .= esc_attr( 'aux-mb-col' . $parsed_atts['mobile-columns'] ) . ' ';
399
+ }
400
+
401
  // Return code
402
+ return '<div class="aux-row '. trim( $classes ) .'">'. do_shortcode( $content ) .'</div>';
403
  }
404
  add_shortcode( 'aux_row', 'auxin_aux_row_shortcode' );
405