Shortcodes and extra features for Phlox theme - Version 1.4.2

Version Description

Download this release

Release Info

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

Code changes from version 1.4.1 to 1.4.2

README.txt CHANGED
@@ -6,7 +6,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: banner SEO, shortcode, page-builder, siteorigin, auxin, phlox, averta, framework, widget, element, fullwidth, masonry, timeline
7
  Requires at least: 4.6
8
  Tested up to: 4.8.0
9
- Stable tag: 1.4.1
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl.html
12
 
@@ -140,6 +140,10 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-ele
140
 
141
  == Changelog ==
142
 
 
 
 
 
143
  = Version 1.4.1 / (06.08.2017) =
144
  - [Improvement]: Custom CSS and JavaScript fields added to pages
145
 
@@ -200,6 +204,6 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-ele
200
 
201
  == Upgrade Notice ==
202
 
203
- = 1.4.0 =
204
- - [Improvement]: Applying some changes based on latest changes in auxin framework
205
 
6
  Tags: banner SEO, shortcode, page-builder, siteorigin, auxin, phlox, averta, framework, widget, element, fullwidth, masonry, timeline
7
  Requires at least: 4.6
8
  Tested up to: 4.8.0
9
+ Stable tag: 1.4.2
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl.html
12
 
140
 
141
  == Changelog ==
142
 
143
+ = Version 1.4.2 / (10.08.2017) =
144
+ - [New]: Changelog section added to welcome page
145
+ - [Improvement]: Some improvements in custom permalink structures for Phlox themes
146
+
147
  = Version 1.4.1 / (06.08.2017) =
148
  - [Improvement]: Custom CSS and JavaScript fields added to pages
149
 
204
 
205
  == Upgrade Notice ==
206
 
207
+ = 1.4.2 =
208
+ - [New]: Changelog section added to welcome page
209
 
admin/includes/admin-hooks.php CHANGED
@@ -225,6 +225,48 @@ function auxin_add_metabox_field_to_title_setting_tab( $fields, $id, $type ){
225
  add_filter( 'auxin_metabox_fields', 'auxin_add_metabox_field_to_title_setting_tab', 10, 3 );
226
 
227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  /*-----------------------------------------------------------------------------------*/
229
  /* Adds Custom JavaScript meta field to 'Advanced setting' tab
230
  /*-----------------------------------------------------------------------------------*/
@@ -247,6 +289,66 @@ function auxin_add_metabox_field_to_advanced_setting_tab( $fields, $id, $type ){
247
  add_filter( 'auxin_metabox_fields', 'auxin_add_metabox_field_to_advanced_setting_tab', 10, 3 );
248
 
249
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  /*-----------------------------------------------------------------------------------*/
251
  /* Adding fallback for deprecated theme option name
252
  /*-----------------------------------------------------------------------------------*/
225
  add_filter( 'auxin_metabox_fields', 'auxin_add_metabox_field_to_title_setting_tab', 10, 3 );
226
 
227
 
228
+ /**
229
+ * Display changelogs on welcome page
230
+ *
231
+ * @param string $theme_id The theme ID that we intent to display the it's changelog
232
+ * @return void
233
+ */
234
+ function auxels_add_changelog_to_welcome_page( $theme_id ){
235
+
236
+
237
+ if( function_exists('auxin_get_remote_changelog') ){
238
+
239
+ // sanitize the theme id
240
+ $theme_id = esc_sql( $theme_id );
241
+
242
+ // get remote changelog
243
+ if( false === $changelog_info = get_transient( "auxin_{$theme_id}_remote_changelog" ) ){
244
+
245
+ $changelog = auxin_get_remote_changelog( $theme_id );
246
+
247
+ if( is_wp_error( $changelog ) ){
248
+ echo $changelog->get_error_message();
249
+ } else {
250
+ $changelog_info = json_decode( $changelog, true );
251
+ set_transient( "auxin_{$theme_id}_remote_changelog", $changelog_info, 2 * HOUR_IN_SECONDS );
252
+ }
253
+
254
+ }
255
+
256
+ // print the changelog
257
+ if( $changelog_info && ! empty( $changelog_info['version'] ) && ! empty( $changelog_info['changelog'] ) ){
258
+ echo '<a href="http://support.averta.net/en/changelog/'.$theme_id.'/" target="_blank"><h2 class="aux-featur">' . __( "What's New in version", 'auxin-elements') . ' '. $changelog_info['version'] . '</h2></a>';
259
+ echo '<div class="welcome-changelog">';
260
+ echo str_replace("\n", "<br />", $changelog_info['changelog'] );
261
+ echo '</div>';
262
+ }
263
+
264
+ }
265
+
266
+ }
267
+
268
+ add_action( 'auxin_welcome_page_after_feature_section', 'auxels_add_changelog_to_welcome_page' );
269
+
270
  /*-----------------------------------------------------------------------------------*/
271
  /* Adds Custom JavaScript meta field to 'Advanced setting' tab
272
  /*-----------------------------------------------------------------------------------*/
289
  add_filter( 'auxin_metabox_fields', 'auxin_add_metabox_field_to_advanced_setting_tab', 10, 3 );
290
 
291
 
292
+
293
+ /*-----------------------------------------------------------------------------------*/
294
+ /* Define demo info list / for auxin-element plugin
295
+ /*-----------------------------------------------------------------------------------*/
296
+
297
+ /**
298
+ * Retrieves the list of available demos for current theme
299
+ *
300
+ * @return array List of demos
301
+ */
302
+ function auxels_add_to_demo_info_list( $default_demos ){
303
+
304
+ $demos_list = array(
305
+ 'the-journey' => array(
306
+ 'id' => 'the-journey',
307
+ 'title' => __('The Journey', THEME_DOMAIN),
308
+ 'desc' => __('Create your awesome Journey Website using this demo as a starter. Best choice for adventure looks.', THEME_DOMAIN),
309
+ 'preview_url' => 'http://averta.net/phlox/demo/journey/',
310
+ 'thumb_url' => AUXELS_URL . '/embeds/demos/journey-blog/banner.jpg',
311
+ 'file' => AUXELS_DIR . '/embeds/demos/journey-blog/data.xml'
312
+ ),
313
+ 'classic-blog' => array(
314
+ 'id' => 'classic-blog',
315
+ 'title' => __('Classic Blog', THEME_DOMAIN),
316
+ 'desc' => __('Create your classic good looking Blog using this demo as a starter. Best choice for a classic blogger.', THEME_DOMAIN),
317
+ 'preview_url' => 'http://averta.net/phlox/demo/classic-blog/',
318
+ 'thumb_url' => AUXELS_URL . '/embeds/demos/classic-blog/banner.jpg',
319
+ 'file' => AUXELS_DIR . '/embeds/demos/classic-blog/data.xml'
320
+ ),
321
+ 'food-blog' => array(
322
+ 'id' => 'food-blog',
323
+ 'title' => __('Food Blog', THEME_DOMAIN),
324
+ 'desc' => __('Create your awesome Food Website using this demo as a starter. Best choice for restaurant looks.', THEME_DOMAIN),
325
+ 'preview_url' => 'http://averta.net/phlox/demo/food/',
326
+ 'thumb_url' => AUXELS_URL . '/embeds/demos/food-blog/banner.jpg',
327
+ 'file' => AUXELS_DIR . '/embeds/demos/food-blog/data.xml'
328
+ ),
329
+ 'portfolio' => array(
330
+ 'id' => 'portfolio',
331
+ 'title' => __('Protfolio', THEME_DOMAIN),
332
+ 'desc' => __('A stunning demo for Phlox portfolio that represents your projects in a modern and stylish way.', THEME_DOMAIN),
333
+ 'preview_url' => 'http://averta.net/phlox/demo/portfolio/',
334
+ 'thumb_url' => AUXELS_URL . '/embeds/demos/portfolio/banner.jpg',
335
+ 'file' => AUXELS_DIR . '/embeds/demos/food-blog/data.xml'
336
+ ),
337
+ 'default' => array(
338
+ 'id' => 'default',
339
+ 'title' => __('Default', THEME_DOMAIN),
340
+ 'desc' => __('An excellent example to get familiar with all available layouts, elements, shortcodes and other features of Phlox.', THEME_DOMAIN),
341
+ 'preview_url' => 'http://averta.net/phlox/demo/default/',
342
+ 'thumb_url' => AUXELS_URL . '/embeds/demos/default/banner.jpg',
343
+ 'file' => AUXELS_DIR . '/embeds/demos/default/data.xml'
344
+ )
345
+ );
346
+
347
+ return array_merge( $default_demos, $demos_list );
348
+ }
349
+
350
+ add_filter( 'auxin_get_demo_info_list', 'auxels_add_to_demo_info_list' );
351
+
352
  /*-----------------------------------------------------------------------------------*/
353
  /* Adding fallback for deprecated theme option name
354
  /*-----------------------------------------------------------------------------------*/
auxin-elements.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Phlox Core 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.4.1
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
12
  * Plugin Name: Phlox Core 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.4.2
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
embeds/demos/classic-blog/banner.jpg ADDED
Binary file
embeds/demos/classic-blog/data.xml ADDED
@@ -0,0 +1,8083 @@