Version Description
Download this release
Release Info
Developer | averta |
Plugin | Premium Portfolio Features for Phlox theme |
Version | 0.9.7 |
Comparing to | |
See all releases |
Code changes from version 0.9.0 to 0.9.7
- README.txt +7 -4
- admin/includes/metaboxes/metabox-fields-portfolio-metadata.php +16 -16
- admin/includes/metaboxes/metabox-fields-portfolio.php +6 -6
- auxin-portfolio.php +3 -3
- includes/classes/class-auxin-dependency-sorting.php +83 -0
- includes/classes/class-auxin-plugin-requirements.php +40 -15
- includes/define.php +2 -1
- includes/elements/recent-portfolios.php +6 -6
- includes/general-hooks.php +30 -29
- public/includes/templates-post.php +2 -2
- public/templates/archive-portfolio.php +1 -1
- public/templates/single-portfolio.php +6 -6
- public/templates/taxonomy-portfolio-cat.php +1 -1
- public/templates/theme-parts/entry/portfolio-land.php +2 -2
- public/templates/theme-parts/loop-portfolio.php +2 -2
- public/templates/theme-parts/tax-portfolio.php +2 -2
README.txt
CHANGED
@@ -5,8 +5,8 @@ License: GPLv3
|
|
5 |
License URI: http://www.gnu.org/licenses/gpl.html
|
6 |
Tags: ajaxload, page-builder, siteorigin, auxin, phlox, averta, fullwidth, masonry, timeline, portfolio, projects, showcase, minimal, wix, flat
|
7 |
Requires at least: 4.6
|
8 |
-
Tested up to: 4.
|
9 |
-
Stable tag: 0.9.
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl.html
|
12 |
|
@@ -120,6 +120,9 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
123 |
= Version 0.9.0 / (21.06.2017) =
|
124 |
- New portfolio layouts added
|
125 |
- Dependency for auxin-elements plugin added
|
@@ -131,5 +134,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
131 |
|
132 |
== Upgrade Notice ==
|
133 |
|
134 |
-
= 0.9.
|
135 |
-
-
|
5 |
License URI: http://www.gnu.org/licenses/gpl.html
|
6 |
Tags: ajaxload, page-builder, siteorigin, auxin, phlox, averta, fullwidth, masonry, timeline, portfolio, projects, showcase, minimal, wix, flat
|
7 |
Requires at least: 4.6
|
8 |
+
Tested up to: 4.7.3
|
9 |
+
Stable tag: 0.9.7
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl.html
|
12 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= Version 0.9.7 / (21.06.2017) =
|
124 |
+
- [Improvement]: Applying some changes based on latest changes in auxin framework
|
125 |
+
|
126 |
= Version 0.9.0 / (21.06.2017) =
|
127 |
- New portfolio layouts added
|
128 |
- Dependency for auxin-elements plugin added
|
134 |
|
135 |
== Upgrade Notice ==
|
136 |
|
137 |
+
= 0.9.7 =
|
138 |
+
- [Improvement]: Applying some changes based on latest changes in auxin framework
|
admin/includes/metaboxes/metabox-fields-portfolio-metadata.php
CHANGED
@@ -58,23 +58,23 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
58 |
'choices' => array(
|
59 |
'default' => array(
|
60 |
'label' => __('Default', 'auxin-portfolio'),
|
61 |
-
'image' =>
|
62 |
),
|
63 |
'right' => array(
|
64 |
'label' => __('Right', 'auxin-portfolio'),
|
65 |
-
'image' =>
|
66 |
),
|
67 |
'left' => array(
|
68 |
'label' => __('Left', 'auxin-portfolio'),
|
69 |
-
'image' =>
|
70 |
),
|
71 |
'top' => array(
|
72 |
'label' => __('Top', 'auxin-portfolio'),
|
73 |
-
'image' =>
|
74 |
),
|
75 |
'bottom' => array(
|
76 |
'label' => __('Bottom', 'auxin-portfolio'),
|
77 |
-
'image' =>
|
78 |
)
|
79 |
)
|
80 |
),
|
@@ -89,15 +89,15 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
89 |
// 'choices' => array(
|
90 |
// 'default' => array(
|
91 |
// 'label' => __('Default', 'auxin-portfolio'),
|
92 |
-
// 'image' =>
|
93 |
// ),
|
94 |
// 'simple' => array(
|
95 |
// 'label' => __( 'Normal' , 'auxin-portfolio'),
|
96 |
-
// 'image' =>
|
97 |
// ),
|
98 |
// 'narrow' => array(
|
99 |
// 'label' => __( 'Narrow Content' , 'auxin-portfolio'),
|
100 |
-
// 'image' =>
|
101 |
// )
|
102 |
// ),
|
103 |
// 'transport' => 'postMessage',
|
@@ -134,31 +134,31 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
134 |
'choices' => array(
|
135 |
'default' => array(
|
136 |
'label' => __('Default', 'auxin-portfolio'),
|
137 |
-
'image' =>
|
138 |
),
|
139 |
'minimal' => array(
|
140 |
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
141 |
-
'image' =>
|
142 |
),
|
143 |
'thumb-arrow' => array(
|
144 |
'label' => __('Thumbnail with Arrow', 'auxin-portfolio'),
|
145 |
-
'image' =>
|
146 |
),
|
147 |
'thumb-no-arrow' => array(
|
148 |
'label' => __('Thumbnail without Arrow', 'auxin-portfolio'),
|
149 |
-
'image' =>
|
150 |
),
|
151 |
'boxed-image' => array(
|
152 |
'label' => __('Navigation with Light Background', 'auxin-portfolio'),
|
153 |
-
'image' =>
|
154 |
),
|
155 |
'boxed-image-dark' => array(
|
156 |
'label' => __('Navigation with Dark Background', 'auxin-portfolio'),
|
157 |
-
'image' =>
|
158 |
),
|
159 |
'thumb-arrow-sticky' => array(
|
160 |
'label' => __('Sticky Thumbnail with Arrow', 'auxin-portfolio'),
|
161 |
-
'image' =>
|
162 |
)
|
163 |
),
|
164 |
'type' => 'radio-image',
|
@@ -201,7 +201,7 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
201 |
'choices' => array(
|
202 |
'default' => __('Theme Default', 'auxin-portfolio'),
|
203 |
'yes' => __('Yes', 'auxin-portfolio'),
|
204 |
-
'no' => __('No', 'auxin-portfolio'),
|
205 |
),
|
206 |
),
|
207 |
|
58 |
'choices' => array(
|
59 |
'default' => array(
|
60 |
'label' => __('Default', 'auxin-portfolio'),
|
61 |
+
'image' => AUXIN_URL . 'images/visual-select/default4.svg'
|
62 |
),
|
63 |
'right' => array(
|
64 |
'label' => __('Right', 'auxin-portfolio'),
|
65 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic.svg'
|
66 |
),
|
67 |
'left' => array(
|
68 |
'label' => __('Left', 'auxin-portfolio'),
|
69 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
|
70 |
),
|
71 |
'top' => array(
|
72 |
'label' => __('Top', 'auxin-portfolio'),
|
73 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
|
74 |
),
|
75 |
'bottom' => array(
|
76 |
'label' => __('Bottom', 'auxin-portfolio'),
|
77 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
|
78 |
)
|
79 |
)
|
80 |
),
|
89 |
// 'choices' => array(
|
90 |
// 'default' => array(
|
91 |
// 'label' => __('Default', 'auxin-portfolio'),
|
92 |
+
// 'image' => AUXIN_URL . 'images/visual-select/default4.svg'
|
93 |
// ),
|
94 |
// 'simple' => array(
|
95 |
// 'label' => __( 'Normal' , 'auxin-portfolio'),
|
96 |
+
// 'image' => AUXIN_URL . 'images/visual-select/content-normal.svg'
|
97 |
// ),
|
98 |
// 'narrow' => array(
|
99 |
// 'label' => __( 'Narrow Content' , 'auxin-portfolio'),
|
100 |
+
// 'image' => AUXIN_URL . 'images/visual-select/content-less.svg'
|
101 |
// )
|
102 |
// ),
|
103 |
// 'transport' => 'postMessage',
|
134 |
'choices' => array(
|
135 |
'default' => array(
|
136 |
'label' => __('Default', 'auxin-portfolio'),
|
137 |
+
'image' => AUXIN_URL . 'images/visual-select/default4.svg'
|
138 |
),
|
139 |
'minimal' => array(
|
140 |
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
141 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-1.svg'
|
142 |
),
|
143 |
'thumb-arrow' => array(
|
144 |
'label' => __('Thumbnail with Arrow', 'auxin-portfolio'),
|
145 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-2.svg'
|
146 |
),
|
147 |
'thumb-no-arrow' => array(
|
148 |
'label' => __('Thumbnail without Arrow', 'auxin-portfolio'),
|
149 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-3.svg'
|
150 |
),
|
151 |
'boxed-image' => array(
|
152 |
'label' => __('Navigation with Light Background', 'auxin-portfolio'),
|
153 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-4.svg'
|
154 |
),
|
155 |
'boxed-image-dark' => array(
|
156 |
'label' => __('Navigation with Dark Background', 'auxin-portfolio'),
|
157 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-5.svg'
|
158 |
),
|
159 |
'thumb-arrow-sticky' => array(
|
160 |
'label' => __('Sticky Thumbnail with Arrow', 'auxin-portfolio'),
|
161 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
162 |
)
|
163 |
),
|
164 |
'type' => 'radio-image',
|
201 |
'choices' => array(
|
202 |
'default' => __('Theme Default', 'auxin-portfolio'),
|
203 |
'yes' => __('Yes', 'auxin-portfolio'),
|
204 |
+
'no' => __('No' , 'auxin-portfolio'),
|
205 |
),
|
206 |
),
|
207 |
|
admin/includes/metaboxes/metabox-fields-portfolio.php
CHANGED
@@ -19,14 +19,14 @@ if ( ! defined('ABSPATH') ) exit;
|
|
19 |
function auxin_push_metabox_models_portfolio( $models ){
|
20 |
|
21 |
// Load general metabox models
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
|
28 |
include_once( 'metabox-fields-portfolio-metadata.php' );
|
29 |
-
include_once( 'metabox-fields-portfolio-related.php'
|
30 |
|
31 |
// Attach general common metabox models to hub
|
32 |
$models[] = array(
|
19 |
function auxin_push_metabox_models_portfolio( $models ){
|
20 |
|
21 |
// Load general metabox models
|
22 |
+
locate_template( AUXIN_CON . 'admin/metaboxes/metabox-fields-general-slider-setting.php' , true, true );
|
23 |
+
locate_template( AUXIN_CON . 'admin/metaboxes/metabox-fields-general-bg-setting.php' , true, true );
|
24 |
+
locate_template( AUXIN_CON . 'admin/metaboxes/metabox-fields-general-title-setting.php' , true, true );
|
25 |
+
locate_template( AUXIN_CON . 'admin/metaboxes/metabox-fields-general-advanced.php' , true, true );
|
26 |
+
locate_template( AUXIN_CON . 'admin/metaboxes/metabox-fields-general-layout.php' , true, true );
|
27 |
|
28 |
include_once( 'metabox-fields-portfolio-metadata.php' );
|
29 |
+
include_once( 'metabox-fields-portfolio-related.php' );
|
30 |
|
31 |
// Attach general common metabox models to hub
|
32 |
$models[] = array(
|
auxin-portfolio.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Phlox Portfolio
|
13 |
* Plugin URI: http://averta.net/phlox/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
-
* Version: 0.9.
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* License: GPL2
|
@@ -51,7 +51,7 @@ if( is_admin() || false === get_transient( 'auxpfo_plugin_requirements_check' )
|
|
51 |
'name' => __('Phlox Core Elements', 'auxin-portfolio'), // The plugin name.
|
52 |
'basename' => 'auxin-elements/auxin-elements.php', // The plugin basename (typically the folder name and main php file)
|
53 |
'required' => true, // If true, the user will be notified with a notice to install the plugin.
|
54 |
-
'version' => '1.3.
|
55 |
'dependency' => true, // If true, and the plugin is activated, the plugin will be loaded before as a dependeny.
|
56 |
'is_callable' => 'AUXELS' // If set, this callable will be be checked for availability to determine if a plugin is active.
|
57 |
)
|
@@ -60,7 +60,7 @@ if( is_admin() || false === get_transient( 'auxpfo_plugin_requirements_check' )
|
|
60 |
'themes' => array(
|
61 |
array(
|
62 |
'name' => __('Phlox', 'auxin-portfolio'), // The theme name.
|
63 |
-
'version' => '1.6.
|
64 |
'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
|
65 |
'file_exists' => get_template_directory() . '/auxin/auxin-include/auxin.php' // If set, this file will be checked for availability to determine if a theme is active.
|
66 |
)
|
12 |
* Plugin Name: Phlox Portfolio
|
13 |
* Plugin URI: http://averta.net/phlox/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
+
* Version: 0.9.7
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* License: GPL2
|
51 |
'name' => __('Phlox Core Elements', 'auxin-portfolio'), // The plugin name.
|
52 |
'basename' => 'auxin-elements/auxin-elements.php', // The plugin basename (typically the folder name and main php file)
|
53 |
'required' => true, // If true, the user will be notified with a notice to install the plugin.
|
54 |
+
'version' => '1.3.14', // E.g. 1.0.0. If set, the active plugin must be this version or higher.
|
55 |
'dependency' => true, // If true, and the plugin is activated, the plugin will be loaded before as a dependeny.
|
56 |
'is_callable' => 'AUXELS' // If set, this callable will be be checked for availability to determine if a plugin is active.
|
57 |
)
|
60 |
'themes' => array(
|
61 |
array(
|
62 |
'name' => __('Phlox', 'auxin-portfolio'), // The theme name.
|
63 |
+
'version' => '1.6.18', // E.g. 1.0.0. If set, the active theme must be this version or higher.
|
64 |
'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
|
65 |
'file_exists' => get_template_directory() . '/auxin/auxin-include/auxin.php' // If set, this file will be checked for availability to determine if a theme is active.
|
66 |
)
|
includes/classes/class-auxin-dependency-sorting.php
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Dependency sorting/resolution algorithm for PHP
|
5 |
+
*
|
6 |
+
*/
|
7 |
+
class Auxin_Dependency_Sorting {
|
8 |
+
|
9 |
+
/**
|
10 |
+
* The sorted list of dependency graph items
|
11 |
+
*
|
12 |
+
* @var array
|
13 |
+
*/
|
14 |
+
public $sorted = array();
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Stores the list of checked nodes in dependency graph
|
18 |
+
*
|
19 |
+
* @var array
|
20 |
+
*/
|
21 |
+
protected $checked = array();
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Stores the input dependency graph
|
25 |
+
*
|
26 |
+
* @var array
|
27 |
+
*/
|
28 |
+
protected $graph = array();
|
29 |
+
|
30 |
+
|
31 |
+
function __construct(){}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Check and sort dependencies for each node
|
35 |
+
*
|
36 |
+
* @param string $name The node name
|
37 |
+
* @param array $ancestors The nodes that are already collected
|
38 |
+
* @return void
|
39 |
+
*/
|
40 |
+
private function node_check( $name, $ancestors = array() ){
|
41 |
+
$ancestors = (array) $ancestors;
|
42 |
+
|
43 |
+
$ancestors[] = $name;
|
44 |
+
$this->checked[ $name ] = true;
|
45 |
+
|
46 |
+
// sometimes a dependency is not in main nodes list
|
47 |
+
if( isset( $this->graph[ $name ] ) ){
|
48 |
+
|
49 |
+
foreach ( $this->graph[ $name ] as $dependency ) {
|
50 |
+
if( in_array( $dependency, $ancestors) ){
|
51 |
+
throw new Exception( "Circular dependency for following node detected: " . $name );
|
52 |
+
}
|
53 |
+
if( isset( $this->checked[ $dependency ] ) ){
|
54 |
+
continue;
|
55 |
+
}
|
56 |
+
$this->node_check( $dependency, $ancestors );
|
57 |
+
}
|
58 |
+
|
59 |
+
}
|
60 |
+
|
61 |
+
if( ! in_array( $name, $this->sorted ) ){
|
62 |
+
$this->sorted[] = $name;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Sorts and retrieves the list of sorted items based on defined dependencies
|
68 |
+
*
|
69 |
+
* @param array $graph The list of items and their dependencies
|
70 |
+
* @return array The sorted list of items based on defined dependencies
|
71 |
+
*/
|
72 |
+
public function resolve( $graph ) {
|
73 |
+
$this->graph = $graph;
|
74 |
+
|
75 |
+
foreach ( $this->graph as $main_node => $ancestors) {
|
76 |
+
$this->node_check( $main_node );
|
77 |
+
}
|
78 |
+
|
79 |
+
return $this->sorted;
|
80 |
+
}
|
81 |
+
|
82 |
+
}
|
83 |
+
|
includes/classes/class-auxin-plugin-requirements.php
CHANGED
@@ -32,6 +32,11 @@ if( ! class_exists( 'Auxin_Plugin_Requirements' ) ){
|
|
32 |
|
33 |
|
34 |
function __construct(){
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
if( is_admin() ){
|
37 |
add_action( 'admin_notices' , array( $this, 'admin_notices' ) );
|
@@ -74,7 +79,7 @@ if( ! class_exists( 'Auxin_Plugin_Requirements' ) ){
|
|
74 |
|
75 |
if( $this->requirements['config']['debug'] ){
|
76 |
$active_plugins = get_option( 'active_plugins' );
|
77 |
-
$the_notice .= "<pre>"; $the_notice .=
|
78 |
}
|
79 |
return $the_notice;
|
80 |
}
|
@@ -135,33 +140,53 @@ if( ! class_exists( 'Auxin_Plugin_Requirements' ) ){
|
|
135 |
|
136 |
if( $plugin_requirements = $this->requirements['plugins'] ){
|
137 |
|
138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
foreach ( $plugin_requirements as $plugin_requirement ) {
|
140 |
|
141 |
// Make sure if the plugin is expected to be loaded prior to our main plugin
|
142 |
if( ! empty( $plugin_requirement['dependency'] ) && true == $plugin_requirement['dependency'] && $this->is_plugin_active( $plugin_requirement['basename'] ) ){
|
143 |
-
//
|
144 |
-
$
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
$dependency_plugin_load_order = array_search( $plugin_requirement['basename'], $active_plugins );
|
149 |
-
|
150 |
-
// Replace the orders and update the order list
|
151 |
-
if( $dependency_plugin_load_order > $this_plugin_load_order ){
|
152 |
-
$sliced_basename = array_splice( $active_plugins, $this_plugin_load_order , 1 );
|
153 |
-
array_splice( $active_plugins, $dependency_plugin_load_order , 0, $sliced_basename );
|
154 |
-
update_option( 'active_plugins', $active_plugins );
|
155 |
-
}
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
}
|
158 |
|
|
|
159 |
}
|
160 |
|
161 |
}
|
162 |
|
163 |
}
|
164 |
|
|
|
165 |
/**
|
166 |
* Check plugin requirements
|
167 |
*
|
32 |
|
33 |
|
34 |
function __construct(){
|
35 |
+
global $auxin_plugins_dependency_map;
|
36 |
+
|
37 |
+
if( empty( $auxin_plugins_dependency_map ) ){
|
38 |
+
$auxin_plugins_dependency_map = array();
|
39 |
+
}
|
40 |
|
41 |
if( is_admin() ){
|
42 |
add_action( 'admin_notices' , array( $this, 'admin_notices' ) );
|
79 |
|
80 |
if( $this->requirements['config']['debug'] ){
|
81 |
$active_plugins = get_option( 'active_plugins' );
|
82 |
+
$the_notice .= "<pre>"; $the_notice .= print_r( $active_plugins, true ); $the_notice .= "</pre>";
|
83 |
}
|
84 |
return $the_notice;
|
85 |
}
|
140 |
|
141 |
if( $plugin_requirements = $this->requirements['plugins'] ){
|
142 |
|
143 |
+
global $auxin_plugins_dependency_map;
|
144 |
+
|
145 |
+
if( ! class_exists( 'Auxin_Dependency_Sorting' ) ){
|
146 |
+
require_once( 'class-auxin-dependency-sorting.php' );
|
147 |
+
}
|
148 |
+
|
149 |
+
// Whether new dependency to dependency graph added or not
|
150 |
+
$has_new_dependency = false;
|
151 |
+
|
152 |
+
// Walk through the plugins and collect the dependencies
|
153 |
foreach ( $plugin_requirements as $plugin_requirement ) {
|
154 |
|
155 |
// Make sure if the plugin is expected to be loaded prior to our main plugin
|
156 |
if( ! empty( $plugin_requirement['dependency'] ) && true == $plugin_requirement['dependency'] && $this->is_plugin_active( $plugin_requirement['basename'] ) ){
|
157 |
+
// Add current plugin dependencies to main plugins dependency graph
|
158 |
+
$auxin_plugins_dependency_map[ $this->requirements['config']['plugin_basename'] ][] = $plugin_requirement['basename'];
|
159 |
+
// If at least one plugin with required dependency detected
|
160 |
+
$has_new_dependency = true;
|
161 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
+
}
|
164 |
+
|
165 |
+
if( $has_new_dependency ){
|
166 |
+
|
167 |
+
// Sort the plugins based on the dependencies
|
168 |
+
$dependency_resolver = new Auxin_Dependency_Sorting();
|
169 |
+
$resolved_plugins_load_order = $dependency_resolver->resolve( $auxin_plugins_dependency_map );
|
170 |
+
|
171 |
+
// Get all activated plugins
|
172 |
+
$active_plugins = get_option( 'active_plugins' );
|
173 |
+
|
174 |
+
// Change the plugins load order
|
175 |
+
foreach ( $resolved_plugins_load_order as $plugin_basename ) {
|
176 |
+
if( ( $key = array_search( $plugin_basename, $active_plugins ) ) !== false ) {
|
177 |
+
unset( $active_plugins[ $key ] );
|
178 |
+
}
|
179 |
+
$active_plugins[] = $plugin_basename;
|
180 |
}
|
181 |
|
182 |
+
update_option( 'active_plugins', $active_plugins );
|
183 |
}
|
184 |
|
185 |
}
|
186 |
|
187 |
}
|
188 |
|
189 |
+
|
190 |
/**
|
191 |
* Check plugin requirements
|
192 |
*
|
includes/define.php
CHANGED
@@ -14,7 +14,8 @@ if( ! defined( 'THEME_NAME' ) ){
|
|
14 |
}
|
15 |
|
16 |
|
17 |
-
|
|
|
18 |
|
19 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
20 |
|
14 |
}
|
15 |
|
16 |
|
17 |
+
|
18 |
+
define( 'AUXPFO_VERSION' , '0.9.7' );
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
includes/elements/recent-portfolios.php
CHANGED
@@ -212,15 +212,15 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
212 |
'choices' => array (
|
213 |
'grid' => array(
|
214 |
'label' => __('Grid', 'auxin-portfolio'),
|
215 |
-
'image' =>
|
216 |
),
|
217 |
'masonry' => array(
|
218 |
'label' => __('Masonry', 'auxin-portfolio'),
|
219 |
-
'image' =>
|
220 |
),
|
221 |
'tiles' => array(
|
222 |
'label' => __('Tiles', 'auxin-portfolio'),
|
223 |
-
'image' =>
|
224 |
)
|
225 |
),
|
226 |
'admin_label' => true,
|
@@ -362,15 +362,15 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
362 |
'choices' => array(
|
363 |
'aux-left' => array(
|
364 |
'label' => __('Left' , 'auxin-portfolio'),
|
365 |
-
'image' =>
|
366 |
),
|
367 |
'aux-center' => array(
|
368 |
'label' => __('Center' , 'auxin-portfolio'),
|
369 |
-
'image' =>
|
370 |
),
|
371 |
'aux-right' => array(
|
372 |
'label' => __('Right' , 'auxin-portfolio'),
|
373 |
-
'image' =>
|
374 |
)
|
375 |
),
|
376 |
'dependency' => array(
|
212 |
'choices' => array (
|
213 |
'grid' => array(
|
214 |
'label' => __('Grid', 'auxin-portfolio'),
|
215 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-grid.svg'
|
216 |
),
|
217 |
'masonry' => array(
|
218 |
'label' => __('Masonry', 'auxin-portfolio'),
|
219 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-masonry.svg'
|
220 |
),
|
221 |
'tiles' => array(
|
222 |
'label' => __('Tiles', 'auxin-portfolio'),
|
223 |
+
'image' => AUXIN_URL . 'images/visual-select/blog-layout-11.svg'
|
224 |
)
|
225 |
),
|
226 |
'admin_label' => true,
|
362 |
'choices' => array(
|
363 |
'aux-left' => array(
|
364 |
'label' => __('Left' , 'auxin-portfolio'),
|
365 |
+
'image' => AUXIN_URL . 'images/visual-select/filter-left.svg'
|
366 |
),
|
367 |
'aux-center' => array(
|
368 |
'label' => __('Center' , 'auxin-portfolio'),
|
369 |
+
'image' => AUXIN_URL . 'images/visual-select/filter-mid.svg'
|
370 |
),
|
371 |
'aux-right' => array(
|
372 |
'label' => __('Right' , 'auxin-portfolio'),
|
373 |
+
'image' => AUXIN_URL . 'images/visual-select/filter-right.svg'
|
374 |
)
|
375 |
),
|
376 |
'dependency' => array(
|
includes/general-hooks.php
CHANGED
@@ -60,15 +60,15 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
60 |
'choices' => array(
|
61 |
'right' => array(
|
62 |
'label' => __('Right', 'auxin-portfolio'),
|
63 |
-
'image' =>
|
64 |
),
|
65 |
'left' => array(
|
66 |
'label' => __('Left', 'auxin-portfolio'),
|
67 |
-
'image' =>
|
68 |
),
|
69 |
'bottom' => array(
|
70 |
'label' => __('Bottom', 'auxin-portfolio'),
|
71 |
-
'image' =>
|
72 |
)
|
73 |
),
|
74 |
'default' => 'right',
|
@@ -151,15 +151,15 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
151 |
'choices' => array(
|
152 |
'simple' => array(
|
153 |
'label' => __( 'Simple' , 'auxin-portfolio'),
|
154 |
-
'image' =>
|
155 |
),
|
156 |
'border' => array(
|
157 |
'label' => __( 'Bordered Sidebar' , 'auxin-portfolio'),
|
158 |
-
'image' =>
|
159 |
),
|
160 |
'overlap' => array(
|
161 |
'label' => __( 'Overlap Background' , 'auxin-portfolio'),
|
162 |
-
'image' =>
|
163 |
)
|
164 |
),
|
165 |
'type' => 'radio-image',
|
@@ -176,11 +176,11 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
176 |
// 'choices' => array(
|
177 |
// 'simple' => array(
|
178 |
// 'label' => __( 'Default' , 'auxin-portfolio'),
|
179 |
-
// 'image' =>
|
180 |
// ),
|
181 |
// 'narrow' => array(
|
182 |
// 'label' => __( 'Narrow Content' , 'auxin-portfolio'),
|
183 |
-
// 'image' =>
|
184 |
// )
|
185 |
// ),
|
186 |
// 'transport' => 'postMessage',
|
@@ -217,27 +217,27 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
217 |
'choices' => array(
|
218 |
'minimal' => array(
|
219 |
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
220 |
-
'image' =>
|
221 |
),
|
222 |
'thumb-arrow' => array(
|
223 |
'label' => __('Thumbnail with Arrow', 'auxin-portfolio'),
|
224 |
-
'image' =>
|
225 |
),
|
226 |
'thumb-no-arrow' => array(
|
227 |
'label' => __('Thumbnail without Arrow', 'auxin-portfolio'),
|
228 |
-
'image' =>
|
229 |
),
|
230 |
'boxed-image' => array(
|
231 |
'label' => __('Navigation with Light Background', 'auxin-portfolio'),
|
232 |
-
'image' =>
|
233 |
),
|
234 |
'boxed-image-dark' => array(
|
235 |
'label' => __('Navigation with Dark Background', 'auxin-portfolio'),
|
236 |
-
'image' =>
|
237 |
),
|
238 |
'thumb-arrow-sticky' => array(
|
239 |
'label' => __('Sticky Thumbnail with Arrow', 'auxin-portfolio'),
|
240 |
-
'image' =>
|
241 |
)
|
242 |
),
|
243 |
'type' => 'radio-image',
|
@@ -379,7 +379,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
379 |
)
|
380 |
),
|
381 |
'transport' => 'postMessage',
|
382 |
-
'post_js' => '$(".single-portfolio .aux-widget-related-posts").closest(".container").toggleClass( "aux-fold", ! to );',
|
383 |
'default' => '0',
|
384 |
'type' => 'switch'
|
385 |
);
|
@@ -452,19 +452,19 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
452 |
// default template
|
453 |
'grid-1' => array(
|
454 |
'label' => __('Grid' , 'auxin-portfolio'),
|
455 |
-
'image' =>
|
456 |
),
|
457 |
'masonry-1' => array(
|
458 |
'label' => __('Masonry' , 'auxin-portfolio'),
|
459 |
-
'image' =>
|
460 |
),
|
461 |
'tiles-1' => array(
|
462 |
'label' => __('Tiles' , 'auxin-portfolio'),
|
463 |
-
'image' =>
|
464 |
),
|
465 |
'land-1' => array(
|
466 |
'label' => __('Land', 'auxin-portfolio'),
|
467 |
-
'image' =>
|
468 |
)
|
469 |
),
|
470 |
'type' => 'radio-image',
|
@@ -704,15 +704,15 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
704 |
'choices' => array(
|
705 |
'simple' => array(
|
706 |
'label' => __('Simple' , 'auxin-portfolio'),
|
707 |
-
'image' =>
|
708 |
),
|
709 |
'border' => array(
|
710 |
'label' => __('Bordered Sidebar' , 'auxin-portfolio'),
|
711 |
-
'image' =>
|
712 |
),
|
713 |
'overlap' => array(
|
714 |
'label' => __('Overlap Background' , 'auxin-portfolio'),
|
715 |
-
'image' =>
|
716 |
)
|
717 |
),
|
718 |
'type' => 'radio-image',
|
@@ -751,19 +751,19 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
751 |
// default template
|
752 |
'grid-1' => array(
|
753 |
'label' => __('Grid' , 'auxin-portfolio'),
|
754 |
-
'image' =>
|
755 |
),
|
756 |
'masonry-1' => array(
|
757 |
'label' => __('Masonry' , 'auxin-portfolio'),
|
758 |
-
'image' =>
|
759 |
),
|
760 |
'tiles-1' => array(
|
761 |
'label' => __('Tiles' , 'auxin-portfolio'),
|
762 |
-
'image' =>
|
763 |
),
|
764 |
'land-1' => array(
|
765 |
'label' => __('Land', 'auxin-portfolio'),
|
766 |
-
'image' =>
|
767 |
)
|
768 |
),
|
769 |
'type' => 'radio-image',
|
@@ -1006,15 +1006,15 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
1006 |
'choices' => array(
|
1007 |
'simple' => array(
|
1008 |
'label' => __('Simple' , 'auxin-portfolio'),
|
1009 |
-
'image' =>
|
1010 |
),
|
1011 |
'border' => array(
|
1012 |
'label' => __('Bordered Sidebar' , 'auxin-portfolio'),
|
1013 |
-
'image' =>
|
1014 |
),
|
1015 |
'overlap' => array(
|
1016 |
'label' => __('Overlap Background' , 'auxin-portfolio'),
|
1017 |
-
'image' =>
|
1018 |
)
|
1019 |
),
|
1020 |
'type' => 'radio-image',
|
@@ -1077,6 +1077,7 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
1077 |
'dependency' => array(),
|
1078 |
'transport' => 'postMessage',
|
1079 |
'post_js' => '$(".single-portfolio .entry-meta-data-container .aux-cta-button").html( to );',
|
|
|
1080 |
'default' => __( 'Launch Project', 'auxin-portfolio' )
|
1081 |
);
|
1082 |
|
60 |
'choices' => array(
|
61 |
'right' => array(
|
62 |
'label' => __('Right', 'auxin-portfolio'),
|
63 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic.svg'
|
64 |
),
|
65 |
'left' => array(
|
66 |
'label' => __('Left', 'auxin-portfolio'),
|
67 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
|
68 |
),
|
69 |
'bottom' => array(
|
70 |
'label' => __('Bottom', 'auxin-portfolio'),
|
71 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
|
72 |
)
|
73 |
),
|
74 |
'default' => 'right',
|
151 |
'choices' => array(
|
152 |
'simple' => array(
|
153 |
'label' => __( 'Simple' , 'auxin-portfolio'),
|
154 |
+
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-1.svg'
|
155 |
),
|
156 |
'border' => array(
|
157 |
'label' => __( 'Bordered Sidebar' , 'auxin-portfolio'),
|
158 |
+
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-2.svg'
|
159 |
),
|
160 |
'overlap' => array(
|
161 |
'label' => __( 'Overlap Background' , 'auxin-portfolio'),
|
162 |
+
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-3.svg'
|
163 |
)
|
164 |
),
|
165 |
'type' => 'radio-image',
|
176 |
// 'choices' => array(
|
177 |
// 'simple' => array(
|
178 |
// 'label' => __( 'Default' , 'auxin-portfolio'),
|
179 |
+
// 'image' => AUXIN_URL . 'images/visual-select/content-normal.svg'
|
180 |
// ),
|
181 |
// 'narrow' => array(
|
182 |
// 'label' => __( 'Narrow Content' , 'auxin-portfolio'),
|
183 |
+
// 'image' => AUXIN_URL . 'images/visual-select/content-less.svg'
|
184 |
// )
|
185 |
// ),
|
186 |
// 'transport' => 'postMessage',
|
217 |
'choices' => array(
|
218 |
'minimal' => array(
|
219 |
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
220 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-1.svg'
|
221 |
),
|
222 |
'thumb-arrow' => array(
|
223 |
'label' => __('Thumbnail with Arrow', 'auxin-portfolio'),
|
224 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-2.svg'
|
225 |
),
|
226 |
'thumb-no-arrow' => array(
|
227 |
'label' => __('Thumbnail without Arrow', 'auxin-portfolio'),
|
228 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-3.svg'
|
229 |
),
|
230 |
'boxed-image' => array(
|
231 |
'label' => __('Navigation with Light Background', 'auxin-portfolio'),
|
232 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-4.svg'
|
233 |
),
|
234 |
'boxed-image-dark' => array(
|
235 |
'label' => __('Navigation with Dark Background', 'auxin-portfolio'),
|
236 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-5.svg'
|
237 |
),
|
238 |
'thumb-arrow-sticky' => array(
|
239 |
'label' => __('Sticky Thumbnail with Arrow', 'auxin-portfolio'),
|
240 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
241 |
)
|
242 |
),
|
243 |
'type' => 'radio-image',
|
379 |
)
|
380 |
),
|
381 |
'transport' => 'postMessage',
|
382 |
+
'post_js' => '$(".single-portfolio .aux-widget-related-posts").closest(".aux-container").toggleClass( "aux-fold", ! to );',
|
383 |
'default' => '0',
|
384 |
'type' => 'switch'
|
385 |
);
|
452 |
// default template
|
453 |
'grid-1' => array(
|
454 |
'label' => __('Grid' , 'auxin-portfolio'),
|
455 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-grid.svg'
|
456 |
),
|
457 |
'masonry-1' => array(
|
458 |
'label' => __('Masonry' , 'auxin-portfolio'),
|
459 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-masonry.svg'
|
460 |
),
|
461 |
'tiles-1' => array(
|
462 |
'label' => __('Tiles' , 'auxin-portfolio'),
|
463 |
+
'image' => AUXIN_URL . 'images/visual-select/blog-layout-11.svg'
|
464 |
),
|
465 |
'land-1' => array(
|
466 |
'label' => __('Land', 'auxin-portfolio'),
|
467 |
+
'image' => AUXIN_URL . 'images/visual-select/blog-layout-10.svg'
|
468 |
)
|
469 |
),
|
470 |
'type' => 'radio-image',
|
704 |
'choices' => array(
|
705 |
'simple' => array(
|
706 |
'label' => __('Simple' , 'auxin-portfolio'),
|
707 |
+
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-1.svg'
|
708 |
),
|
709 |
'border' => array(
|
710 |
'label' => __('Bordered Sidebar' , 'auxin-portfolio'),
|
711 |
+
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-2.svg'
|
712 |
),
|
713 |
'overlap' => array(
|
714 |
'label' => __('Overlap Background' , 'auxin-portfolio'),
|
715 |
+
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-3.svg'
|
716 |
)
|
717 |
),
|
718 |
'type' => 'radio-image',
|
751 |
// default template
|
752 |
'grid-1' => array(
|
753 |
'label' => __('Grid' , 'auxin-portfolio'),
|
754 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-grid.svg'
|
755 |
),
|
756 |
'masonry-1' => array(
|
757 |
'label' => __('Masonry' , 'auxin-portfolio'),
|
758 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-masonry.svg'
|
759 |
),
|
760 |
'tiles-1' => array(
|
761 |
'label' => __('Tiles' , 'auxin-portfolio'),
|
762 |
+
'image' => AUXIN_URL . 'images/visual-select/blog-layout-11.svg'
|
763 |
),
|
764 |
'land-1' => array(
|
765 |
'label' => __('Land', 'auxin-portfolio'),
|
766 |
+
'image' => AUXIN_URL . 'images/visual-select/blog-layout-10.svg'
|
767 |
)
|
768 |
),
|
769 |
'type' => 'radio-image',
|
1006 |
'choices' => array(
|
1007 |
'simple' => array(
|
1008 |
'label' => __('Simple' , 'auxin-portfolio'),
|
1009 |
+
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-1.svg'
|
1010 |
),
|
1011 |
'border' => array(
|
1012 |
'label' => __('Bordered Sidebar' , 'auxin-portfolio'),
|
1013 |
+
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-2.svg'
|
1014 |
),
|
1015 |
'overlap' => array(
|
1016 |
'label' => __('Overlap Background' , 'auxin-portfolio'),
|
1017 |
+
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-3.svg'
|
1018 |
)
|
1019 |
),
|
1020 |
'type' => 'radio-image',
|
1077 |
'dependency' => array(),
|
1078 |
'transport' => 'postMessage',
|
1079 |
'post_js' => '$(".single-portfolio .entry-meta-data-container .aux-cta-button").html( to );',
|
1080 |
+
'type' => 'text',
|
1081 |
'default' => __( 'Launch Project', 'auxin-portfolio' )
|
1082 |
);
|
1083 |
|
public/includes/templates-post.php
CHANGED
@@ -56,7 +56,7 @@ function auxpfo_get_portfolio_related_posts( $args = array() ){
|
|
56 |
'carousel_loop' => 1,
|
57 |
'base_class' => 'aux-widget-recent-posts aux-widget-related-posts',
|
58 |
'text_alignment' => '',
|
59 |
-
'container_start_tag' => '<div class="container aux-fold">',
|
60 |
'container_end_tag' => '</div>'
|
61 |
);
|
62 |
|
@@ -73,7 +73,7 @@ function auxpfo_get_portfolio_related_posts( $args = array() ){
|
|
73 |
}
|
74 |
|
75 |
if( auxin_is_true( $full_width ) ){
|
76 |
-
$defaults['container_start_tag'] = '<div class="container">';
|
77 |
}
|
78 |
|
79 |
// whether to snap the items (0 space between the items)
|
56 |
'carousel_loop' => 1,
|
57 |
'base_class' => 'aux-widget-recent-posts aux-widget-related-posts',
|
58 |
'text_alignment' => '',
|
59 |
+
'container_start_tag' => '<div class="aux-container aux-fold">',
|
60 |
'container_end_tag' => '</div>'
|
61 |
);
|
62 |
|
73 |
}
|
74 |
|
75 |
if( auxin_is_true( $full_width ) ){
|
76 |
+
$defaults['container_start_tag'] = '<div class="aux-container">';
|
77 |
}
|
78 |
|
79 |
// whether to snap the items (0 space between the items)
|
public/templates/archive-portfolio.php
CHANGED
@@ -13,7 +13,7 @@ get_header();?>
|
|
13 |
|
14 |
<main id="main" <?php auxin_content_main_class(); ?> >
|
15 |
<div class="aux-wrapper">
|
16 |
-
<div class="container aux-fold clearfix">
|
17 |
|
18 |
<div id="primary" class="aux-primary">
|
19 |
<div class="content" role="main" data-target="archive">
|
13 |
|
14 |
<main id="main" <?php auxin_content_main_class(); ?> >
|
15 |
<div class="aux-wrapper">
|
16 |
+
<div class="aux-container aux-fold clearfix">
|
17 |
|
18 |
<div id="primary" class="aux-primary">
|
19 |
<div class="content" role="main" data-target="archive">
|
public/templates/single-portfolio.php
CHANGED
@@ -16,7 +16,7 @@ get_header(); ?>
|
|
16 |
|
17 |
<main id="main" <?php auxin_content_main_class(); ?> >
|
18 |
<div class="aux-wrapper">
|
19 |
-
<div class="container aux-fold">
|
20 |
|
21 |
<div id="primary" class="aux-primary" >
|
22 |
<div class="content" role="main" >
|
@@ -45,7 +45,7 @@ get_header(); ?>
|
|
45 |
$display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
|
46 |
}
|
47 |
$display_next_pre = auxin_is_true( $display_next_pre )? true: false;
|
48 |
-
|
49 |
if( $display_next_pre ) {
|
50 |
if( 'default' == $next_prev_skin = auxin_get_post_meta( $post->ID, '_next_prev_nav_skin', 'default' ) ){
|
51 |
$next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
|
@@ -67,7 +67,7 @@ get_header(); ?>
|
|
67 |
|
68 |
</div><!-- end container -->
|
69 |
|
70 |
-
<?php
|
71 |
// get display_related option
|
72 |
if( 'default' == $display_related = auxin_get_post_meta( $post->ID, '_display_related', 'default' ) ) {
|
73 |
$display_related = auxin_get_option( 'show_portfolio_related_posts', true );
|
@@ -101,8 +101,8 @@ get_header(); ?>
|
|
101 |
$display_categories = auxin_get_option( 'portfolio_related_posts_display_taxonomies', true );
|
102 |
}
|
103 |
$display_categories = auxin_is_true( $display_categories )? true: false;
|
104 |
-
|
105 |
-
|
106 |
// set arguments
|
107 |
$defaults = array(
|
108 |
'title' => $related_title_label,
|
@@ -111,7 +111,7 @@ get_header(); ?>
|
|
111 |
'extra_classes' => ( $extra_classes ) ? 'aux-text-align-center': '',
|
112 |
'display_categories' => $display_categories
|
113 |
);
|
114 |
-
echo auxpfo_get_portfolio_related_posts( $defaults );
|
115 |
}
|
116 |
?>
|
117 |
</div><!-- end wrapper -->
|
16 |
|
17 |
<main id="main" <?php auxin_content_main_class(); ?> >
|
18 |
<div class="aux-wrapper">
|
19 |
+
<div class="aux-container aux-fold">
|
20 |
|
21 |
<div id="primary" class="aux-primary" >
|
22 |
<div class="content" role="main" >
|
45 |
$display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
|
46 |
}
|
47 |
$display_next_pre = auxin_is_true( $display_next_pre )? true: false;
|
48 |
+
|
49 |
if( $display_next_pre ) {
|
50 |
if( 'default' == $next_prev_skin = auxin_get_post_meta( $post->ID, '_next_prev_nav_skin', 'default' ) ){
|
51 |
$next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
|
67 |
|
68 |
</div><!-- end container -->
|
69 |
|
70 |
+
<?php
|
71 |
// get display_related option
|
72 |
if( 'default' == $display_related = auxin_get_post_meta( $post->ID, '_display_related', 'default' ) ) {
|
73 |
$display_related = auxin_get_option( 'show_portfolio_related_posts', true );
|
101 |
$display_categories = auxin_get_option( 'portfolio_related_posts_display_taxonomies', true );
|
102 |
}
|
103 |
$display_categories = auxin_is_true( $display_categories )? true: false;
|
104 |
+
|
105 |
+
|
106 |
// set arguments
|
107 |
$defaults = array(
|
108 |
'title' => $related_title_label,
|
111 |
'extra_classes' => ( $extra_classes ) ? 'aux-text-align-center': '',
|
112 |
'display_categories' => $display_categories
|
113 |
);
|
114 |
+
echo auxpfo_get_portfolio_related_posts( $defaults );
|
115 |
}
|
116 |
?>
|
117 |
</div><!-- end wrapper -->
|
public/templates/taxonomy-portfolio-cat.php
CHANGED
@@ -14,7 +14,7 @@ get_header();?>
|
|
14 |
|
15 |
<main id="main" <?php auxin_content_main_class(); ?> >
|
16 |
<div class="aux-wrapper">
|
17 |
-
<div class="container aux-fold clearfix">
|
18 |
|
19 |
<div id="primary" class="aux-primary">
|
20 |
<div class="content" role="main" data-target="archive">
|
14 |
|
15 |
<main id="main" <?php auxin_content_main_class(); ?> >
|
16 |
<div class="aux-wrapper">
|
17 |
+
<div class="aux-container aux-fold clearfix">
|
18 |
|
19 |
<div id="primary" class="aux-primary">
|
20 |
<div class="content" role="main" data-target="archive">
|
public/templates/theme-parts/entry/portfolio-land.php
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
<div class="entry-media">
|
36 |
<div class="aux-media-frame aux-media-image">
|
37 |
<a href="<?php echo !empty( $the_link ) ? $the_link : get_permalink(); ?>">
|
38 |
-
<img src="<?php echo
|
39 |
</a>
|
40 |
</div>
|
41 |
</div>
|
@@ -63,7 +63,7 @@
|
|
63 |
|
64 |
if( has_excerpt() ) {
|
65 |
the_excerpt();
|
66 |
-
}
|
67 |
auxin_the_trimmed_string( auxin_strip_shortcodes( auxin_extract_text( $_overview ) ), 170 );
|
68 |
}
|
69 |
|
35 |
<div class="entry-media">
|
36 |
<div class="aux-media-frame aux-media-image">
|
37 |
<a href="<?php echo !empty( $the_link ) ? $the_link : get_permalink(); ?>">
|
38 |
+
<img src="<?php echo AUXIN_URL . 'images/welcome/image-frame.svg'; ?>" class="auxin-attachment auxin-featured-image attachment-1024x1024" alt="portfolio default image" >
|
39 |
</a>
|
40 |
</div>
|
41 |
</div>
|
63 |
|
64 |
if( has_excerpt() ) {
|
65 |
the_excerpt();
|
66 |
+
} elseif( ! empty( $_overview ) ){
|
67 |
auxin_the_trimmed_string( auxin_strip_shortcodes( auxin_extract_text( $_overview ) ), 170 );
|
68 |
}
|
69 |
|
public/templates/theme-parts/loop-portfolio.php
CHANGED
@@ -43,7 +43,7 @@ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
|
|
43 |
if( 'masonry' == $template_type ){
|
44 |
unset( $args['image_aspect_ratio'] );
|
45 |
|
46 |
-
}
|
47 |
unset( $args['image_aspect_ratio'] );
|
48 |
unset( $args['space'] );
|
49 |
unset( $args['desktop_cnum'] );
|
@@ -81,7 +81,7 @@ if( true === $result ){
|
|
81 |
endwhile; // end of the loop.
|
82 |
|
83 |
// if it is a shortcode base portfolio page
|
84 |
-
}
|
85 |
echo $result;
|
86 |
|
87 |
// if result not found
|
43 |
if( 'masonry' == $template_type ){
|
44 |
unset( $args['image_aspect_ratio'] );
|
45 |
|
46 |
+
} elseif( 'tiles' == $template_type ){
|
47 |
unset( $args['image_aspect_ratio'] );
|
48 |
unset( $args['space'] );
|
49 |
unset( $args['desktop_cnum'] );
|
81 |
endwhile; // end of the loop.
|
82 |
|
83 |
// if it is a shortcode base portfolio page
|
84 |
+
} elseif( ! empty( $result ) ){
|
85 |
echo $result;
|
86 |
|
87 |
// if result not found
|
public/templates/theme-parts/tax-portfolio.php
CHANGED
@@ -45,7 +45,7 @@ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
|
|
45 |
if( 'masonry' == $template_type ){
|
46 |
unset( $args['image_aspect_ratio'] );
|
47 |
|
48 |
-
}
|
49 |
unset( $args['image_aspect_ratio'] );
|
50 |
unset( $args['space'] );
|
51 |
unset( $args['desktop_cnum'] );
|
@@ -80,7 +80,7 @@ if( true === $result ){
|
|
80 |
endwhile; // end of the loop.
|
81 |
|
82 |
// if it is a shortcode base blog page
|
83 |
-
}
|
84 |
echo $result;
|
85 |
|
86 |
// if result not found
|
45 |
if( 'masonry' == $template_type ){
|
46 |
unset( $args['image_aspect_ratio'] );
|
47 |
|
48 |
+
} elseif( 'tiles' == $template_type ){
|
49 |
unset( $args['image_aspect_ratio'] );
|
50 |
unset( $args['space'] );
|
51 |
unset( $args['desktop_cnum'] );
|
80 |
endwhile; // end of the loop.
|
81 |
|
82 |
// if it is a shortcode base blog page
|
83 |
+
} elseif( ! empty( $result ) ){
|
84 |
echo $result;
|
85 |
|
86 |
// if result not found
|