Premium Portfolio Features for Phlox theme - Version 1.6.7

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Premium Portfolio Features for Phlox theme
Version 1.6.7
Comparing to
See all releases

Code changes from version 1.6.6 to 1.6.7

README.txt CHANGED
@@ -1,13 +1,13 @@
1
  === Premium Portfolio Features for Phlox theme ===
2
- Contributors: averta
3
- Donate link: http://phlox.pro/go/
4
  License: GPLv3
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
- Tags: page-builder, elementor, siteorigin, auxin, phlox, averta, fullwidth, masonry, timeline, portfolio, projects, showcase, minimal, wix, flat
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 4.9.7
10
- Stable tag: 1.6.6
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
@@ -16,24 +16,40 @@ Showcase your projects beautifully in Phlox theme
16
  == Description ==
17
 
18
  = Overview =
19
- When using a theme with auxin framework (like [Phlox Theme](http://phlox.pro "Phlox Theme")), this plugin adds portfolio and corresponding theme options that makes you able to showcase and present your projects in an elegant way.
20
 
21
 
22
- >[Demo on Phlox Theme](http://phlox.pro "Live demo of Phlox Portfolio") | [Documentation](http://support.averta.net/en/e-item/phlox-wordpress-theme/?utm_source=wporg&utm_medium=phlox-portfolio&utm_content=portfolio-doc&utm_term=documentation "Phlox Portfolio documentation") | [Video tutorials](http://support.averta.net/en/videos/phlox-video-tutorials/ "Watch all video tutorials") | [Support forum](http://support.averta.net/en/item/phlox/?utm_source=wporg&utm_medium=phlox-portfolio&utm_content=portfolio-supp&utm_term=support "Free support")
23
 
24
 
25
  = Features =
 
 
26
  * Portfolio in Grid Layout
27
  * Portfolio in Grid Layout With Filter Options
28
  * Portfolio in Masonry Layout
29
  * Portfolio in Masonry Layout With Filter Options
30
  * Portfolio in Tiles Layout
31
- * Siteorigin Page builder support
32
- * Page builder Elements
33
-
34
-
35
- = Some Samples =
36
- * [Portfolio](http://demo.phlox.pro/portfolio/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  = Compatible Browsers =
39
  * IE9+
@@ -46,7 +62,7 @@ When using a theme with auxin framework (like [Phlox Theme](http://phlox.pro "Ph
46
 
47
 
48
  = Documentations =
49
- If you have any question about working with "Auxin Portfolio", you can take a look at [online documentations](http://docs.averta.net/display/PD/Phlox+Documentation)
50
 
51
  = Translation =
52
  You can start translating this plugin from here: [online translation service](https://translate.wordpress.org/projects/wp-plugins/auxin-portfolio/).
@@ -56,7 +72,7 @@ You can start translating this plugin from here: [online translation service](ht
56
 
57
  = Minimum Requirements =
58
 
59
- * WordPress 4.3 or greater
60
  * PHP version 5.6.0 or greater
61
  * MySQL version 5.0 or greater
62
 
@@ -66,9 +82,9 @@ You can start translating this plugin from here: [online translation service](ht
66
 
67
  = Automatic installation (easiest way) =
68
 
69
- To do an automatic install of Auxin Portfolio, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
70
 
71
- In the search field type "Auxin Portfolio" and click Search Plugins. Once you have found it you can install it by simply clicking "Install Now".
72
 
73
 
74
  = Manual installation =
@@ -100,18 +116,18 @@ You can use automatic update to update the plugin safely.
100
 
101
  == Frequently Asked Questions ==
102
 
103
- = Where can I find Auxin Portfolio documentation and user guides =
104
 
105
- If you have any question about working with "Auxin Portfolio", you can take a look at [online documentations](http://docs.averta.net/display/PD/Phlox+Documentation)
106
 
107
- If you get stuck you can follow these [steps to get support](http://docs.averta.net/display/PD/Support).
108
 
109
 
110
- = Will Auxin Portfolio work with my theme? =
111
  No, this plugin only works on [Phlox Theme](http://phlox.pro/)
112
 
113
  = Where can I report bugs? =
114
- Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-portfolio).
115
 
116
 
117
 
@@ -120,6 +136,10 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
120
 
121
  == Changelog ==
122
 
 
 
 
 
123
  = Version 1.6.6 / (27.06.2018) =
124
  - [New]: Introducing 4 New portfolio elements for Elementor page builder.
125
  - [Fix]: Minor bugs fixed.
@@ -202,6 +222,6 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
202
 
203
  == Upgrade Notice ==
204
 
205
- = 1.6.6 =
206
- - [New]: Introducing 4 New portfolio elements for Elementor page builder.
207
  - [Fix]: Minor bugs fixed.
1
  === Premium Portfolio Features for Phlox theme ===
2
+ Contributors: averta, averta_support
3
+ Donate link: http://phlox.pro/go/?utm_medium=donate-phlox&ref=averta&utm_source=wporg-auxin-portfolio
4
  License: GPLv3
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
+ Tags: phlox, gallery, elementor, siteorigin, portfolio, averta, auxin, fullwidth, masonry, timeline, projects, showcase, minimal, wix, flat
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 4.9.7
10
+ Stable tag: 1.6.7
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
16
  == Description ==
17
 
18
  = Overview =
19
+ This plugin adds plenty of premium portfolio functionalities to Phlox theme that makes you able to showcase and present your projects in an elegant way.
20
 
21
 
22
+ >[Demo on Phlox Theme](http://phlox.pro "Live demo of Phlox Portfolio") | [Documentation](http://support.averta.net/en/e-item/phlox-wordpress-theme/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_content=auxin-portfolio-doc&utm_term=documentation "Phlox Portfolio documentation") | [Video tutorials](http://support.averta.net/en/videos/phlox-video-tutorials/ "Watch all video tutorials") | [Support forum](http://support.averta.net/en/item/phlox/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_content=auxin-portfolio-supp&utm_term=support "Free support")
23
 
24
 
25
  = Features =
26
+ * Elementor Page builder support (6 Exclusive Portfolio Elements)
27
+ * Siteorigin Page builder support (6 Exclusive Portfolio Elements)
28
  * Portfolio in Grid Layout
29
  * Portfolio in Grid Layout With Filter Options
30
  * Portfolio in Masonry Layout
31
  * Portfolio in Masonry Layout With Filter Options
32
  * Portfolio in Tiles Layout
33
+ * Customizable Portfolio Archive pages
34
+ * Sticky Header
35
+ * Sticky Footer
36
+ * Fully Responsive
37
+ * Cross Browser IE9+ and Other Modern Browsers
38
+
39
+ = Some demo sites by Phlox theme =
40
+ * [Minimal Portfolio](http://demo.phlox.pro/portfolio-minimal/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=25)
41
+ * [Modern Shop](http://demo.phlox.pro/free-shop/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=29)
42
+ * [Real State](http://demo.phlox.pro/realstate/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=44)
43
+ * [The Architect](http://demo.phlox.pro/architect/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=41)
44
+ * [Minimal Photography](http://demo.phlox.pro/minimal-photography/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=28)
45
+ * [Journey Blog](http://demo.phlox.pro/journey/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=6)
46
+ * [Classic Blog](http://demo.phlox.pro/classic-blog/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=7)
47
+ * [Portfolio Vivid](http://demo.phlox.pro/portfolio/vivid/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=32)
48
+ * [Classic Portfolio](http://demo.phlox.pro/portfolio/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=10)
49
+ * [Food Blog](http://demo.phlox.pro/food/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=2)
50
+ * [Default](http://demo.phlox.pro/default/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=8)
51
+ * [Coming Soon Red](http://demo.phlox.pro/coming-soon-1/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=37)
52
+ * [Coming Soon Galaxy](http://demo.phlox.pro/coming-soon-2/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_campaign=wporg-profile&utm_term=38)
53
 
54
  = Compatible Browsers =
55
  * IE9+
62
 
63
 
64
  = Documentations =
65
+ If you have any question about working with "Phlox Portfolio", you can take a look at [online documentations](http://support.averta.net/en/e-item/phlox-wordpress-theme/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_content=auxin-portfolio-doc&utm_term=documentation)
66
 
67
  = Translation =
68
  You can start translating this plugin from here: [online translation service](https://translate.wordpress.org/projects/wp-plugins/auxin-portfolio/).
72
 
73
  = Minimum Requirements =
74
 
75
+ * WordPress 4.6 or greater
76
  * PHP version 5.6.0 or greater
77
  * MySQL version 5.0 or greater
78
 
82
 
83
  = Automatic installation (easiest way) =
84
 
85
+ To do an automatic install of Phlox Portfolio, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
86
 
87
+ In the search field type "Phlox Portfolio" and click Search Plugins. Once you have found it you can install it by simply clicking "Install Now".
88
 
89
 
90
  = Manual installation =
116
 
117
  == Frequently Asked Questions ==
118
 
119
+ = Where can I find Phlox Portfolio documentation and user guides =
120
 
121
+ If you have any question about working with "Phlox Portfolio", you can take a look at [online documentations](http://support.averta.net/en/e-item/phlox-wordpress-theme/?utm_source=wporg-auxin-portfolio&utm_medium=wporg&utm_content=auxin-portfolio-doc&utm_term=documentation)
122
 
123
+ If you get stuck you can [ask your question here](http://support.averta.net/en/item/phlox/).
124
 
125
 
126
+ = Will Phlox Portfolio work with my theme? =
127
  No, this plugin only works on [Phlox Theme](http://phlox.pro/)
128
 
129
  = Where can I report bugs? =
130
+ Bugs can be reported in our [support forums](http://support.averta.net/en/item/phlox/).
131
 
132
 
133
 
136
 
137
  == Changelog ==
138
 
139
+ = Version 1.6.7 / (05.07.2018) =
140
+ - [New]: Adding custom CSS field to elementor elements.
141
+ - [Fix]: Minor bugs fixed.
142
+
143
  = Version 1.6.6 / (27.06.2018) =
144
  - [New]: Introducing 4 New portfolio elements for Elementor page builder.
145
  - [Fix]: Minor bugs fixed.
222
 
223
  == Upgrade Notice ==
224
 
225
+ = 1.6.7 =
226
+ - [New]: Adding custom CSS field to elementor elements.
227
  - [Fix]: Minor bugs fixed.
auxin-portfolio.php CHANGED
@@ -10,16 +10,16 @@
10
  * @copyright (c) 2010-2018
11
  *
12
  * Plugin Name: Phlox Portfolio
13
- * Plugin URI: http://averta.net/phlox/
14
  * Description: Showcase your projects beautifully in Phlox theme
15
- * Version: 1.6.6
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * License: GPL2
19
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
20
  * Text Domain: auxin-portfolio
21
  * Domain Path: /languages
22
- * Tested up to: 5.0.0
23
  */
24
 
25
  // If this file is called directly, abort.
@@ -61,7 +61,7 @@ if( is_admin() || false === get_transient( 'auxpfo_plugin_requirements_check' )
61
  array(
62
  'name' => __('Phlox Pro', 'auxin-portfolio'), // The theme name.
63
  'id' => 'phlox-pro', // The theme id name.
64
- 'version' => '4.4.8', // E.g. 1.0.0. If set, the active theme must be this version or higher.
65
  'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
66
  'theme_requires_const' => 'AUXPFO_REQUIRED_VERSION',
67
  'file_required' => array( get_template_directory() . '/auxin-content/init/dependency.php', get_template_directory() . '/auxin-content/init/constant.php' )
@@ -70,7 +70,7 @@ if( is_admin() || false === get_transient( 'auxpfo_plugin_requirements_check' )
70
  'name' => __('Phlox', 'auxin-portfolio'), // The theme name.
71
  'id' => 'phlox', // The theme id name.
72
  'update_link' => 'themes.php?theme=phlox',
73
- 'version' => '2.2.5', // E.g. 1.0.0. If set, the active theme must be this version or higher.
74
  'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
75
  'theme_requires_const' => 'AUXPFO_REQUIRED_VERSION',
76
  'file_required' => array( get_template_directory() . '/auxin-content/init/dependency.php', get_template_directory() . '/auxin-content/init/constant.php' )
10
  * @copyright (c) 2010-2018
11
  *
12
  * Plugin Name: Phlox Portfolio
13
+ * Plugin URI: http://phlox.pro/
14
  * Description: Showcase your projects beautifully in Phlox theme
15
+ * Version: 1.6.7
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * License: GPL2
19
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
20
  * Text Domain: auxin-portfolio
21
  * Domain Path: /languages
22
+ * Tested up to: 4.9.7
23
  */
24
 
25
  // If this file is called directly, abort.
61
  array(
62
  'name' => __('Phlox Pro', 'auxin-portfolio'), // The theme name.
63
  'id' => 'phlox-pro', // The theme id name.
64
+ 'version' => '4.4.9', // E.g. 1.0.0. If set, the active theme must be this version or higher.
65
  'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
66
  'theme_requires_const' => 'AUXPFO_REQUIRED_VERSION',
67
  'file_required' => array( get_template_directory() . '/auxin-content/init/dependency.php', get_template_directory() . '/auxin-content/init/constant.php' )
70
  'name' => __('Phlox', 'auxin-portfolio'), // The theme name.
71
  'id' => 'phlox', // The theme id name.
72
  'update_link' => 'themes.php?theme=phlox',
73
+ 'version' => '2.2.7', // E.g. 1.0.0. If set, the active theme must be this version or higher.
74
  'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
75
  'theme_requires_const' => 'AUXPFO_REQUIRED_VERSION',
76
  'file_required' => array( get_template_directory() . '/auxin-content/init/dependency.php', get_template_directory() . '/auxin-content/init/constant.php' )
includes/define.php CHANGED
@@ -15,7 +15,7 @@ if( ! defined( 'THEME_NAME' ) ){
15
 
16
 
17
 
18
- define( 'AUXPFO_VERSION' , '1.6.6' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
15
 
16
 
17
 
18
+ define( 'AUXPFO_VERSION' , '1.6.7' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
includes/elements/elementor/recent-portfolios-grid.php CHANGED
@@ -955,38 +955,8 @@ class Recent_Portfolios_Grid extends Widget_Base {
955
 
956
  $this->end_controls_section();
957
 
958
- /* Custom Css Section
959
- /*-------------------------------------*/
960
-
961
- $this->start_controls_section(
962
- 'custom_css_section',
963
- array(
964
- 'label' => __( 'Custom Css', 'auxin-portfolio' ),
965
- 'tab' => Controls_Manager::TAB_STYLE
966
- )
967
- );
968
-
969
- $this->add_control(
970
- 'custom_css',
971
- array(
972
- 'type' => Controls_Manager::CODE,
973
- 'label' => __( 'Custom CSS', 'auxin-portfolio' ),
974
- 'label_block' => true,
975
- 'language' => 'css'
976
- )
977
- );
978
-
979
- $this->add_control(
980
- 'custom_css_description',
981
- array(
982
- 'raw' => __( 'Use "selector" to target wrapper element. Examples:<br>selector {color: red;} // For main element<br>selector .child-element {margin: 10px;} // For child element<br>.my-class {text-align: center;} // Or use any custom selector', 'auxin-portfolio' ),
983
- 'type' => Controls_Manager::RAW_HTML,
984
- 'content_classes' => 'elementor-descriptor',
985
- 'separator' => 'none'
986
- )
987
- );
988
-
989
- $this->end_controls_section();
990
  }
991
 
992
  /**
@@ -1040,17 +1010,6 @@ class Recent_Portfolios_Grid extends Widget_Base {
1040
  'loadmore_label' => $settings['loadmore_label']
1041
  );
1042
 
1043
- if( ! empty( $settings['custom_css'] ) ){
1044
- $custom_css = trim( $settings['custom_css'] );
1045
- $post_css = new Post_CSS_File( get_the_ID() );
1046
- if ( ! empty( $custom_css ) ) {
1047
- $custom_css = str_replace( 'selector', $post_css->get_element_unique_selector( $this ), $custom_css );
1048
- // Add a css comment
1049
- echo sprintf( '<style>/* Start custom CSS for %s, class: %s */', $this->get_name(), $this->get_unique_selector() ) . $custom_css . '/* End custom CSS */</style>';
1050
- // $post_css->get_stylesheet()->add_raw_css( $custom_css );
1051
- }
1052
- }
1053
-
1054
  echo auxin_widget_recent_portfolios_grid_callback( $args );
1055
  }
1056
 
955
 
956
  $this->end_controls_section();
957
 
958
+ // Auxin hook for registering general controls
959
+ do_action( 'auxin/elementor/register_controls', $this );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
960
  }
961
 
962
  /**
1010
  'loadmore_label' => $settings['loadmore_label']
1011
  );
1012
 
 
 
 
 
 
 
 
 
 
 
 
1013
  echo auxin_widget_recent_portfolios_grid_callback( $args );
1014
  }
1015
 
includes/elements/elementor/recent-portfolios-masonry.php CHANGED
@@ -958,39 +958,8 @@ class Recent_Portfolios_Masonry extends Widget_Base {
958
 
959
  $this->end_controls_section();
960
 
961
- /* Custom Css Section
962
- /*-------------------------------------*/
963
-
964
- $this->start_controls_section(
965
- 'custom_css_section',
966
- array(
967
- 'label' => __( 'Custom Css', 'auxin-portfolio' ),
968
- 'tab' => Controls_Manager::TAB_STYLE
969
- )
970
- );
971
-
972
- $this->add_control(
973
- 'custom_css',
974
- array(
975
- 'type' => Controls_Manager::CODE,
976
- 'label' => __( 'Custom CSS', 'auxin-portfolio' ),
977
- 'label_block' => true,
978
- 'language' => 'css'
979
- )
980
- );
981
-
982
- $this->add_control(
983
- 'custom_css_description',
984
- array(
985
- 'raw' => __( 'Use "selector" to target wrapper element. Examples:<br>selector {color: red;} // For main element<br>selector .child-element {margin: 10px;} // For child element<br>.my-class {text-align: center;} // Or use any custom selector', 'auxin-portfolio' ),
986
- 'type' => Controls_Manager::RAW_HTML,
987
- 'content_classes' => 'elementor-descriptor',
988
- 'separator' => 'none'
989
- )
990
- );
991
-
992
- $this->end_controls_section();
993
-
994
  }
995
 
996
  /**
@@ -1044,17 +1013,6 @@ class Recent_Portfolios_Masonry extends Widget_Base {
1044
  'loadmore_label' => $settings['loadmore_label']
1045
  );
1046
 
1047
- if( ! empty( $settings['custom_css'] ) ){
1048
- $custom_css = trim( $settings['custom_css'] );
1049
- $post_css = new Post_CSS_File( get_the_ID() );
1050
- if ( ! empty( $custom_css ) ) {
1051
- $custom_css = str_replace( 'selector', $post_css->get_element_unique_selector( $this ), $custom_css );
1052
- // Add a css comment
1053
- echo sprintf( '<style>/* Start custom CSS for %s, class: %s */', $this->get_name(), $this->get_unique_selector() ) . $custom_css . '/* End custom CSS */</style>';
1054
- // $post_css->get_stylesheet()->add_raw_css( $custom_css );
1055
- }
1056
- }
1057
-
1058
  echo auxin_widget_recent_portfolios_grid_callback( $args );
1059
  }
1060
 
958
 
959
  $this->end_controls_section();
960
 
961
+ // Auxin hook for registering general controls
962
+ do_action( 'auxin/elementor/register_controls', $this );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
963
  }
964
 
965
  /**
1013
  'loadmore_label' => $settings['loadmore_label']
1014
  );
1015
 
 
 
 
 
 
 
 
 
 
 
 
1016
  echo auxin_widget_recent_portfolios_grid_callback( $args );
1017
  }
1018
 
includes/elements/elementor/recent-portfolios-tile-carousel.php CHANGED
@@ -764,39 +764,8 @@ class Recent_Portfolios_Tile_Carousel_Carousel extends Widget_Base {
764
 
765
  $this->end_controls_section();
766
 
767
- /* Custom Css Section
768
- /*-------------------------------------*/
769
-
770
- $this->start_controls_section(
771
- 'custom_css_section',
772
- array(
773
- 'label' => __( 'Custom Css', 'auxin-portfolio' ),
774
- 'tab' => Controls_Manager::TAB_STYLE
775
- )
776
- );
777
-
778
- $this->add_control(
779
- 'custom_css',
780
- array(
781
- 'type' => Controls_Manager::CODE,
782
- 'label' => __( 'Custom CSS', 'auxin-portfolio' ),
783
- 'label_block' => true,
784
- 'language' => 'css'
785
- )
786
- );
787
-
788
- $this->add_control(
789
- 'custom_css_description',
790
- array(
791
- 'raw' => __( 'Use "selector" to target wrapper element. Examples:<br>selector {color: red;} // For main element<br>selector .child-element {margin: 10px;} // For child element<br>.my-class {text-align: center;} // Or use any custom selector', 'auxin-portfolio' ),
792
- 'type' => Controls_Manager::RAW_HTML,
793
- 'content_classes' => 'elementor-descriptor',
794
- 'separator' => 'none'
795
- )
796
- );
797
-
798
- $this->end_controls_section();
799
-
800
  }
801
 
802
  /**
@@ -844,17 +813,6 @@ class Recent_Portfolios_Tile_Carousel_Carousel extends Widget_Base {
844
 
845
  );
846
 
847
- if( ! empty( $settings['custom_css'] ) ){
848
- $custom_css = trim( $settings['custom_css'] );
849
- $post_css = new Post_CSS_File( get_the_ID() );
850
- if ( ! empty( $custom_css ) ) {
851
- $custom_css = str_replace( 'selector', $post_css->get_element_unique_selector( $this ), $custom_css );
852
- // Add a css comment
853
- echo sprintf( '<style>/* Start custom CSS for %s, class: %s */', $this->get_name(), $this->get_unique_selector() ) . $custom_css . '/* End custom CSS */</style>';
854
- // $post_css->get_stylesheet()->add_raw_css( $custom_css );
855
- }
856
- }
857
-
858
  echo auxin_widget_recent_portfolios_tiles_carousel_callback( $args );
859
  }
860
 
764
 
765
  $this->end_controls_section();
766
 
767
+ // Auxin hook for registering general controls
768
+ do_action( 'auxin/elementor/register_controls', $this );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
769
  }
770
 
771
  /**
813
 
814
  );
815
 
 
 
 
 
 
 
 
 
 
 
 
816
  echo auxin_widget_recent_portfolios_tiles_carousel_callback( $args );
817
  }
818
 
includes/elements/elementor/recent-portfolios-tile.php CHANGED
@@ -919,38 +919,8 @@ class Recent_Portfolios_Tile extends Widget_Base {
919
 
920
  $this->end_controls_section();
921
 
922
- /* Custom Css Section
923
- /*-------------------------------------*/
924
-
925
- $this->start_controls_section(
926
- 'custom_css_section',
927
- array(
928
- 'label' => __( 'Custom Css', 'auxin-portfolio' ),
929
- 'tab' => Controls_Manager::TAB_STYLE
930
- )
931
- );
932
-
933
- $this->add_control(
934
- 'custom_css',
935
- array(
936
- 'type' => Controls_Manager::CODE,
937
- 'label' => __( 'Custom CSS', 'auxin-portfolio' ),
938
- 'label_block' => true,
939
- 'language' => 'css'
940
- )
941
- );
942
-
943
- $this->add_control(
944
- 'custom_css_description',
945
- array(
946
- 'raw' => __( 'Use "selector" to target wrapper element. Examples:<br>selector {color: red;} // For main element<br>selector .child-element {margin: 10px;} // For child element<br>.my-class {text-align: center;} // Or use any custom selector', 'auxin-portfolio' ),
947
- 'type' => Controls_Manager::RAW_HTML,
948
- 'content_classes' => 'elementor-descriptor',
949
- 'separator' => 'none'
950
- )
951
- );
952
-
953
- $this->end_controls_section();
954
  }
955
 
956
  /**
@@ -1004,17 +974,6 @@ class Recent_Portfolios_Tile extends Widget_Base {
1004
  'loadmore_label' => $settings['loadmore_label']
1005
  );
1006
 
1007
- if( ! empty( $settings['custom_css'] ) ){
1008
- $custom_css = trim( $settings['custom_css'] );
1009
- $post_css = new Post_CSS_File( get_the_ID() );
1010
- if ( ! empty( $custom_css ) ) {
1011
- $custom_css = str_replace( 'selector', $post_css->get_element_unique_selector( $this ), $custom_css );
1012
- // Add a css comment
1013
- echo sprintf( '<style>/* Start custom CSS for %s, class: %s */', $this->get_name(), $this->get_unique_selector() ) . $custom_css . '/* End custom CSS */</style>';
1014
- // $post_css->get_stylesheet()->add_raw_css( $custom_css );
1015
- }
1016
- }
1017
-
1018
  echo auxin_widget_recent_portfolios_grid_callback( $args );
1019
  }
1020
 
919
 
920
  $this->end_controls_section();
921
 
922
+ // Auxin hook for registering general controls
923
+ do_action( 'auxin/elementor/register_controls', $this );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
924
  }
925
 
926
  /**
974
  'loadmore_label' => $settings['loadmore_label']
975
  );
976
 
 
 
 
 
 
 
 
 
 
 
 
977
  echo auxin_widget_recent_portfolios_grid_callback( $args );
978
  }
979
 
includes/general-hooks.php CHANGED
@@ -122,7 +122,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
122
  ),
123
  'post_js' => '$( "body.single-portfolio" ).removeClass( "aux-nd aux-hd aux-xhd aux-s-fhd aux-fhd" ).addClass( "aux-" + to ); $(window).trigger("resize");',
124
  'default' => ''
125
- );
126
 
127
  $options[] = array(
128
  'title' => __('Overview Alignment', 'auxin-portfolio'),
@@ -1602,7 +1602,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
1602
  ),
1603
  'transport' => 'refresh',
1604
  'default' => '0.56',
1605
- );
1606
 
1607
  $options[] = array(
1608
  'title' => __('Related Items Type', 'auxin-portfolio'),
@@ -1732,7 +1732,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
1732
  )
1733
  ),
1734
  'type' => 'switch',
1735
- 'default' => '1'
1736
  );
1737
 
1738
  $options[] = array(
@@ -2077,7 +2077,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
2077
  ),
2078
  'post_js' => '$( "body.post-type-archive-portfolio" ).removeClass( "aux-nd aux-hd aux-xhd aux-s-fhd aux-fhd" ).addClass( "aux-" + to ); $(window).trigger("resize");',
2079
  'default' => ''
2080
- );
2081
 
2082
  $options[] = array(
2083
  'title' => __('Number of Columns in Tablet', 'auxin-portfolio'),
@@ -3014,7 +3014,7 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php' ) ) {
3014
  function auxpfo_respond_for_liked_data( $value, $id ) {
3015
 
3016
  if( get_post_type( $id ) === 'portfolio' ){
3017
- return __( 'Like', 'auxin-portfolio' ) . ' (' . $value . ')' ;
3018
  } else {
3019
  return $value;
3020
  }
@@ -3022,18 +3022,19 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php' ) ) {
3022
  }
3023
  add_filter( 'wp_ulike_respond_for_liked_data' , 'auxpfo_respond_for_liked_data', 10 , 2 );
3024
  add_filter( 'wp_ulike_respond_for_not_liked_data' , 'auxpfo_respond_for_liked_data', 10 , 2 );
 
3025
 
3026
 
3027
- function auxpfo_respond_for_unliked_data( $value, $id ) {
3028
 
3029
- if( get_post_type( $id ) === 'portfolio' ){
3030
- return __( 'Unlike', 'auxin-portfolio' ) . ' (' . $value . ')' ;
3031
- } else {
3032
- return $value;
3033
- }
3034
 
3035
- }
3036
- add_filter( 'wp_ulike_respond_for_unliked_data' , 'auxpfo_respond_for_unliked_data', 10 , 2 );
3037
 
3038
  }
3039
 
@@ -3047,7 +3048,7 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php' ) ) {
3047
  function auxpfo_add_single_portfolio_actions( $show_like_btn, $show_share_btn ){
3048
 
3049
  if( function_exists( 'wp_ulike' ) && $show_like_btn ){
3050
- wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'wrapper_class' => 'aux-wpulike' ) );
3051
  }
3052
  if( $show_share_btn ) {
3053
  ?>
122
  ),
123
  'post_js' => '$( "body.single-portfolio" ).removeClass( "aux-nd aux-hd aux-xhd aux-s-fhd aux-fhd" ).addClass( "aux-" + to ); $(window).trigger("resize");',
124
  'default' => ''
125
+ );
126
 
127
  $options[] = array(
128
  'title' => __('Overview Alignment', 'auxin-portfolio'),
1602
  ),
1603
  'transport' => 'refresh',
1604
  'default' => '0.56',
1605
+ );
1606
 
1607
  $options[] = array(
1608
  'title' => __('Related Items Type', 'auxin-portfolio'),
1732
  )
1733
  ),
1734
  'type' => 'switch',
1735
+ 'default' => '0'
1736
  );
1737
 
1738
  $options[] = array(
2077
  ),
2078
  'post_js' => '$( "body.post-type-archive-portfolio" ).removeClass( "aux-nd aux-hd aux-xhd aux-s-fhd aux-fhd" ).addClass( "aux-" + to ); $(window).trigger("resize");',
2079
  'default' => ''
2080
+ );
2081
 
2082
  $options[] = array(
2083
  'title' => __('Number of Columns in Tablet', 'auxin-portfolio'),
3014
  function auxpfo_respond_for_liked_data( $value, $id ) {
3015
 
3016
  if( get_post_type( $id ) === 'portfolio' ){
3017
+ return __( 'Likes', 'auxin-portfolio' ) . ' (' . $value . ')' ;
3018
  } else {
3019
  return $value;
3020
  }
3022
  }
3023
  add_filter( 'wp_ulike_respond_for_liked_data' , 'auxpfo_respond_for_liked_data', 10 , 2 );
3024
  add_filter( 'wp_ulike_respond_for_not_liked_data' , 'auxpfo_respond_for_liked_data', 10 , 2 );
3025
+ add_filter( 'wp_ulike_respond_for_unliked_data' , 'auxpfo_respond_for_liked_data', 10 , 2 );
3026
 
3027
 
3028
+ // function auxpfo_respond_for_unliked_data( $value, $id ) {
3029
 
3030
+ // if( get_post_type( $id ) === 'portfolio' ){
3031
+ // return __( 'Unlike', 'auxin-portfolio' ) . ' (' . $value . ')' ;
3032
+ // } else {
3033
+ // return $value;
3034
+ // }
3035
 
3036
+ // }
3037
+ // add_filter( 'wp_ulike_respond_for_unliked_data' , 'auxpfo_respond_for_unliked_data', 10 , 2 );
3038
 
3039
  }
3040
 
3048
  function auxpfo_add_single_portfolio_actions( $show_like_btn, $show_share_btn ){
3049
 
3050
  if( function_exists( 'wp_ulike' ) && $show_like_btn ){
3051
+ wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike' ) );
3052
  }
3053
  if( $show_share_btn ) {
3054
  ?>
public/templates/theme-parts/entry/portfolio-column.php CHANGED
@@ -53,7 +53,7 @@
53
  <?php } ?>
54
  <?php
55
  if( $display_like && function_exists('wp_ulike') ){
56
- wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'wrapper_class' => 'aux-wpulike' ) );
57
  }
58
  ?>
59
  <?php if( $show_info ) { ?>
53
  <?php } ?>
54
  <?php
55
  if( $display_like && function_exists('wp_ulike') ){
56
+ wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike' ) );
57
  }
58
  ?>
59
  <?php if( $show_info ) { ?>
public/templates/theme-parts/entry/portfolio-land.php CHANGED
@@ -99,7 +99,7 @@
99
  if( function_exists('wp_ulike') && auxin_get_option( 'show_portfolio_archive_like_button' ) ) { ?>
100
  <div class="comments-iconic">
101
  <?php
102
- wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'wrapper_class' => 'aux-wpulike' ) );
103
  ?>
104
  </div>
105
  <?php } ?>
99
  if( function_exists('wp_ulike') && auxin_get_option( 'show_portfolio_archive_like_button' ) ) { ?>
100
  <div class="comments-iconic">
101
  <?php
102
+ wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike' ) );
103
  ?>
104
  </div>
105
  <?php } ?>
public/templates/theme-parts/entry/portfolio.php CHANGED
@@ -33,7 +33,7 @@
33
  <?php
34
  if( $display_like && function_exists('wp_ulike') ){
35
  echo '<div class="comments-iconic">';
36
- wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'wrapper_class' => 'aux-wpulike' ) );
37
  echo '</div>';
38
  }
39
  ?>
33
  <?php
34
  if( $display_like && function_exists('wp_ulike') ){
35
  echo '<div class="comments-iconic">';
36
+ wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike' ) );
37
  echo '</div>';
38
  }
39
  ?>