Premium Portfolio Features for Phlox theme - Version 1.9.0

Version Description

Download this release

Release Info

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

Code changes from version 1.8.6 to 1.9.0

README.txt CHANGED
@@ -7,7 +7,7 @@ Tags: phlox, gallery, elementor, siteorigin, portfolio, averta, auxin, fullwidth
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 5.3.3
10
- Stable tag: 1.8.6
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 5.3.3
10
+ Stable tag: 1.9.0
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
auxin-portfolio.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Phlox Portfolio
13
  * Plugin URI: http://phlox.pro/
14
  * Description: Showcase your projects beautifully in Phlox theme
15
- * Version: 1.8.6
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * License: GPL2
12
  * Plugin Name: Phlox Portfolio
13
  * Plugin URI: http://phlox.pro/
14
  * Description: Showcase your projects beautifully in Phlox theme
15
+ * Version: 1.9.0
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * License: GPL2
includes/classes/class-auxpfo-template-loader.php CHANGED
@@ -45,7 +45,7 @@ class Auxpfo_Template_Loader {
45
 
46
  if ( is_tax( 'portfolio-cat' ) || is_tax( 'portfolio-tag' ) ) {
47
  $file = 'taxonomy-' . $term->taxonomy . '.php';
48
- } else {
49
  $file = 'archive-portfolio.php';
50
  }
51
 
@@ -53,7 +53,7 @@ class Auxpfo_Template_Loader {
53
  $find[] = AUXPFO()->template_path() . 'taxonomy-' . $term->taxonomy . '.php';
54
  $find[] = AUXPFO()->template_path() . $file;
55
 
56
- } elseif ( is_post_type_archive( 'portfolio' ) ) {
57
 
58
  $find[] = AUXPFO()->template_path() . 'archive-portfolio.php';
59
  }
45
 
46
  if ( is_tax( 'portfolio-cat' ) || is_tax( 'portfolio-tag' ) ) {
47
  $file = 'taxonomy-' . $term->taxonomy . '.php';
48
+ } elseif ( !is_search() ) {
49
  $file = 'archive-portfolio.php';
50
  }
51
 
53
  $find[] = AUXPFO()->template_path() . 'taxonomy-' . $term->taxonomy . '.php';
54
  $find[] = AUXPFO()->template_path() . $file;
55
 
56
+ } elseif ( is_post_type_archive( 'portfolio' ) && !is_search() ) {
57
 
58
  $find[] = AUXPFO()->template_path() . 'archive-portfolio.php';
59
  }
includes/define.php CHANGED
@@ -15,7 +15,7 @@ if( ! defined( 'THEME_NAME' ) ){
15
 
16
 
17
 
18
- define( 'AUXPFO_VERSION' , '1.8.6' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
15
 
16
 
17
 
18
+ define( 'AUXPFO_VERSION' , '1.9.0' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
includes/elements/elementor/recent-portfolios-grid.php CHANGED
@@ -400,8 +400,8 @@ class Recent_Portfolios_Grid extends Widget_Base {
400
  $this->add_control(
401
  'filter_align',
402
  array(
403
- 'label' => __('Filter Control Alignment', 'auxin-portfolio'),
404
- 'description' => __('Filter by categories or tags', 'auxin-portfolio' ),
405
  'type' => Controls_Manager::CHOOSE,
406
  'style_items' => 'max-width:30%;',
407
  'default' => 'aux-left',
@@ -433,7 +433,6 @@ class Recent_Portfolios_Grid extends Widget_Base {
433
  'description' => __('Style of filter buttons.', 'auxin-portfolio' ),
434
  'type' => 'aux-visual-select',
435
  'default' => 'aux-slideup',
436
- 'style_items' => 'max-width:200px;',
437
  'options' => array(
438
  'aux-slideup' => array(
439
  'label' => __('Slide up' , 'auxin-portfolio'),
@@ -474,7 +473,14 @@ class Recent_Portfolios_Grid extends Widget_Base {
474
  )
475
  );
476
 
477
- $this->start_controls_tabs( 'filters_colors' );
 
 
 
 
 
 
 
478
 
479
  $this->start_controls_tab(
480
  'filters_color_normal',
@@ -489,7 +495,28 @@ class Recent_Portfolios_Grid extends Widget_Base {
489
  'label' => __( 'Color', 'auxin-portfolio' ),
490
  'type' => Controls_Manager::COLOR,
491
  'selectors' => array(
492
- '{{WRAPPER}} .aux-filters li > a span:before' => 'color: {{VALUE}};',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  )
494
  )
495
  );
@@ -509,36 +536,77 @@ class Recent_Portfolios_Grid extends Widget_Base {
509
  'label' => __( 'Color', 'auxin-portfolio' ),
510
  'type' => Controls_Manager::COLOR,
511
  'selectors' => array(
512
- '{{WRAPPER}} .aux-filters li > a span:before:hover' => 'color:{{VALUE}};',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
513
  )
514
  )
515
  );
516
 
517
  $this->end_controls_tab();
518
 
519
- $this->end_controls_tabs();
 
 
 
 
 
520
 
 
 
 
 
 
 
 
 
 
 
 
521
  $this->add_group_control(
522
  Group_Control_Typography::get_type(),
523
  array(
524
- 'name' => 'filters_typography',
525
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
526
- 'selector' => '{{WRAPPER}} .aux-filters li > a'
527
  )
528
  );
529
 
530
  $this->add_responsive_control(
531
- 'filters_padding',
532
  array(
533
  'label' => __( 'Padding', 'auxin-portfolio' ),
534
  'type' => Controls_Manager::DIMENSIONS,
535
  'size_units' => array( 'px', '%' ),
536
  'selectors' => array(
537
- '{{WRAPPER}} .aux-filters li > a > span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
538
  )
539
  )
540
  );
541
 
 
 
 
 
542
  $this->end_controls_section();
543
 
544
  /* Transition Section
400
  $this->add_control(
401
  'filter_align',
402
  array(
403
+ 'label' => __('Alignment', 'auxin-portfolio'),
404
+ 'description' => __('Set the alignment for filters', 'auxin-portfolio' ),
405
  'type' => Controls_Manager::CHOOSE,
406
  'style_items' => 'max-width:30%;',
407
  'default' => 'aux-left',
433
  'description' => __('Style of filter buttons.', 'auxin-portfolio' ),
434
  'type' => 'aux-visual-select',
435
  'default' => 'aux-slideup',
 
436
  'options' => array(
437
  'aux-slideup' => array(
438
  'label' => __('Slide up' , 'auxin-portfolio'),
473
  )
474
  );
475
 
476
+ $this->start_controls_tabs(
477
+ 'filters_colors',
478
+ array(
479
+ 'condition' => array(
480
+ 'filter_style!' => 'aux-dropdown-filter',
481
+ )
482
+ )
483
+ );
484
 
485
  $this->start_controls_tab(
486
  'filters_color_normal',
495
  'label' => __( 'Color', 'auxin-portfolio' ),
496
  'type' => Controls_Manager::COLOR,
497
  'selectors' => array(
498
+ '{{WRAPPER}} .aux-filters:not(.aux-slideup) li > a span, {{WRAPPER}} .aux-filters.aux-slideup li > a span:before' => 'color: {{VALUE}};',
499
+ )
500
+ )
501
+ );
502
+
503
+ $this->add_group_control(
504
+ Group_Control_Typography::get_type(),
505
+ array(
506
+ 'name' => 'filters_typography',
507
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
508
+ 'selector' => '{{WRAPPER}} .aux-filters li > a'
509
+ )
510
+ );
511
+
512
+ $this->add_responsive_control(
513
+ 'filters_padding',
514
+ array(
515
+ 'label' => __( 'Padding', 'auxin-portfolio' ),
516
+ 'type' => Controls_Manager::DIMENSIONS,
517
+ 'size_units' => array( 'px', '%' ),
518
+ 'selectors' => array(
519
+ '{{WRAPPER}} .aux-filters li > a > span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
520
  )
521
  )
522
  );
536
  'label' => __( 'Color', 'auxin-portfolio' ),
537
  'type' => Controls_Manager::COLOR,
538
  'selectors' => array(
539
+ '{{WRAPPER}} .aux-filters:not(.aux-slideup) li:hover > a span, {{WRAPPER}} .aux-filters.aux-slideup li:hover > a span:before' => 'color: {{VALUE}};',
540
+ )
541
+ )
542
+ );
543
+
544
+ $this->add_group_control(
545
+ Group_Control_Typography::get_type(),
546
+ array(
547
+ 'name' => 'filters_hover_typography',
548
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
549
+ 'selector' => '{{WRAPPER}} .aux-filters li:hover > a'
550
+ )
551
+ );
552
+
553
+ $this->add_responsive_control(
554
+ 'filters_hover_padding',
555
+ array(
556
+ 'label' => __( 'Padding', 'auxin-portfolio' ),
557
+ 'type' => Controls_Manager::DIMENSIONS,
558
+ 'size_units' => array( 'px', '%' ),
559
+ 'selectors' => array(
560
+ '{{WRAPPER}} .aux-filters li:hover > a > span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
561
  )
562
  )
563
  );
564
 
565
  $this->end_controls_tab();
566
 
567
+ $this->start_controls_tab(
568
+ 'filters_color_active',
569
+ array(
570
+ 'label' => __( 'Active' , 'auxin-portfolio' )
571
+ )
572
+ );
573
 
574
+ $this->add_control(
575
+ 'filters_active_color',
576
+ array(
577
+ 'label' => __( 'Color', 'auxin-portfolio' ),
578
+ 'type' => Controls_Manager::COLOR,
579
+ 'selectors' => array(
580
+ '{{WRAPPER}} .aux-filters li > a.aux-selected span:after, {{WRAPPER}} .aux-filters:not(.aux-slideup) li > a.aux-selected span' => 'color: {{VALUE}};',
581
+ )
582
+ )
583
+ );
584
+
585
  $this->add_group_control(
586
  Group_Control_Typography::get_type(),
587
  array(
588
+ 'name' => 'filters_active_typography',
589
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
590
+ 'selector' => '{{WRAPPER}} .aux-filters li > a.aux-selected'
591
  )
592
  );
593
 
594
  $this->add_responsive_control(
595
+ 'filters_active_padding',
596
  array(
597
  'label' => __( 'Padding', 'auxin-portfolio' ),
598
  'type' => Controls_Manager::DIMENSIONS,
599
  'size_units' => array( 'px', '%' ),
600
  'selectors' => array(
601
+ '{{WRAPPER}} .aux-filters li > a.aux-selected > span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
602
  )
603
  )
604
  );
605
 
606
+ $this->end_controls_tab();
607
+
608
+ $this->end_controls_tabs();
609
+
610
  $this->end_controls_section();
611
 
612
  /* Transition Section
includes/elements/recent-portfolios.php CHANGED
@@ -910,6 +910,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
910
  'reset_query' => true,
911
  'use_wp_query' => false, // true to use the global wp_query, false to use internal custom query
912
  'wp_query_args' => array(), // additional wp_query args
 
913
  'loadmore_type' => '', // 'next' (more button), 'scroll', 'next-prev'
914
  'loadmore_label' => 'text',
915
  'loadmore_per_page' => '',
910
  'reset_query' => true,
911
  'use_wp_query' => false, // true to use the global wp_query, false to use internal custom query
912
  'wp_query_args' => array(), // additional wp_query args
913
+ 'custom_wp_query' => '',
914
  'loadmore_type' => '', // 'next' (more button), 'scroll', 'next-prev'
915
  'loadmore_label' => 'text',
916
  'loadmore_per_page' => '',
includes/general-hooks.php CHANGED
@@ -1023,20 +1023,10 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
1023
  );
1024
 
1025
  $options[] = array(
1026
- 'title' => __( 'Breadcrumb Separator', 'auxin-portfolio' ),
1027
- 'description' => __( 'Enable it to display separator between breadcrumb parts.', 'auxin-portfolio' ),
1028
- 'id' => 'portfolio_title_bar_bread_sep_style',
1029
- 'section' => 'portfolio-section-single-titlebar',
1030
- 'transport' => 'postMessage',
1031
- 'partial' => array(
1032
- 'selector' => '.single-portfolio .aux-customizer-page-title-container',
1033
- 'container_inclusive' => false,
1034
- 'render_callback' => function(){
1035
- auxin_the_main_title_section( array( 'has_helper_wrapper' => false ) );
1036
- }
1037
- ),
1038
- 'type' => 'radio-image',
1039
- 'default' => 'gt',
1040
  'dependency' => array(
1041
  array(
1042
  'id' => 'portfolio_title_bar_show',
@@ -1054,20 +1044,16 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
1054
  'operator'=> '=='
1055
  )
1056
  ),
1057
- 'choices' => array(
1058
- 'gt' => array(
1059
- 'label' => esc_html__( 'Greater Than (>)', 'auxin-portfolio' ),
1060
- 'css_class' => 'axiAdminIcon-breadcrumb-divider2'
1061
- ),
1062
- 'slash' => array(
1063
- 'label' => __( 'Slash', 'auxin-portfolio' ),
1064
- 'css_class' => 'axiAdminIcon-breadcrumb-divider1',
1065
- ),
1066
- 'arrow' => array(
1067
- 'label' => __( 'Arrow', 'auxin-portfolio' ),
1068
- 'css_class' => 'axiAdminIcon-breadcrumb-divider3'
1069
- )
1070
- )
1071
  );
1072
 
1073
  $options[] = array(
@@ -1563,6 +1549,22 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
1563
  'type' => 'switch'
1564
  );
1565
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1566
  $options[] = array(
1567
  'title' => __('Label of Related Section', 'auxin-portfolio'),
1568
  'description' => __('Specifies the label of related items section.', 'auxin-portfolio'),
@@ -1581,6 +1583,23 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
1581
  'type' => 'text'
1582
  );
1583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1584
  $options[] = array(
1585
  'title' => __( 'Image aspect ratio', 'auxin-portfolio' ),
1586
  'description' => '',
@@ -1717,6 +1736,27 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
1717
  'type' => 'switch'
1718
  );
1719
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1720
  $options[] = array(
1721
  'title' => __('Display The Button Under Related Items', 'auxin-portfolio'),
1722
  'description' => __('You can specific to show the button under related items', 'auxin-portfolio'),
@@ -1813,6 +1853,39 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
1813
  'default' => __( "Browse All Projects", 'auxin-portfolio' )
1814
  );
1815
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1816
  /*$options[] = array( 'title' => __('View All button link', 'auxin-portfolio'),
1817
  'description' => __('Specifies a link for "view all" button to portfolio listing page (the button that comes at the end of latest from portfolio element ) ', 'auxin-portfolio'),
1818
  'id' => 'portfolio_view_all_btn_link',
@@ -2952,6 +3025,81 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
2952
  'default' => '[{"id":"url", "label":"Project URL", "value":"Project URL"},{"id":"client", "label":"Client", "value":"Client"},{"id":"release_date", "label":"Release Date", "value":"Release Date"}]'
2953
  );
2954
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2955
  return array( 'fields' => $options, 'sections' => $sections );
2956
  }
2957
 
1023
  );
1024
 
1025
  $options[] = array(
1026
+ 'title' => __( 'Breadcrumb Separator Icon', 'auxin-portfolio' ),
1027
+ 'description' => '',
1028
+ 'id' => 'portfolio_title_bar_bread_sep_style',
1029
+ 'section' => 'portfolio-section-single-titlebar',
 
 
 
 
 
 
 
 
 
 
1030
  'dependency' => array(
1031
  array(
1032
  'id' => 'portfolio_title_bar_show',
1044
  'operator'=> '=='
1045
  )
1046
  ),
1047
+ 'default' => 'auxicon-arrow',
1048
+ 'transport' => 'postMessage',
1049
+ 'partial' => array(
1050
+ 'selector' => '.single-portfolio .aux-customizer-page-title-container',
1051
+ 'container_inclusive' => false,
1052
+ 'render_callback' => function(){
1053
+ auxin_the_main_title_section( array( 'has_helper_wrapper' => false ) );
1054
+ }
1055
+ ),
1056
+ 'type' => 'icon'
 
 
 
 
1057
  );
1058
 
1059
  $options[] = array(
1549
  'type' => 'switch'
1550
  );
1551
 
1552
+ $options[] = array(
1553
+ 'title' => __( 'Title Typography', 'auxin-portfolio' ),
1554
+ 'id' => 'portfolio_related_posts_title_typography',
1555
+ 'section' => 'portfolio-section-single-related',
1556
+ 'type' => 'group_typography',
1557
+ 'selectors' => '.single-portfolio .aux-widget-related-posts .hentry .entry-title a',
1558
+ 'dependency' => array(
1559
+ array(
1560
+ 'id' => 'show_portfolio_related_posts',
1561
+ 'value' => array('1'),
1562
+ 'operator'=> ''
1563
+ )
1564
+ ),
1565
+ 'transport' => 'postMessage',
1566
+ );
1567
+
1568
  $options[] = array(
1569
  'title' => __('Label of Related Section', 'auxin-portfolio'),
1570
  'description' => __('Specifies the label of related items section.', 'auxin-portfolio'),
1583
  'type' => 'text'
1584
  );
1585
 
1586
+ $options[] = array(
1587
+ 'title' => __( 'Label Typography', 'auxin-portfolio' ),
1588
+ 'id' => 'portfolio_related_posts_label_typography',
1589
+ 'section' => 'portfolio-section-single-related',
1590
+ 'type' => 'group_typography',
1591
+ 'selectors' => '.single-portfolio .aux-widget-related-posts .widget-title',
1592
+ 'dependency' => array(
1593
+ array(
1594
+ 'id' => 'show_portfolio_related_posts',
1595
+ 'value' => array('1'),
1596
+ 'operator'=> ''
1597
+ )
1598
+ ),
1599
+ 'transport' => 'postMessage',
1600
+ );
1601
+
1602
+
1603
  $options[] = array(
1604
  'title' => __( 'Image aspect ratio', 'auxin-portfolio' ),
1605
  'description' => '',
1736
  'type' => 'switch'
1737
  );
1738
 
1739
+ $options[] = array(
1740
+ 'title' => __( 'Category Terms Typography', 'auxin-portfolio' ),
1741
+ 'id' => 'portfolio_related_posts_terms_typography',
1742
+ 'section' => 'portfolio-section-single-related',
1743
+ 'type' => 'group_typography',
1744
+ 'selectors' => '.single-portfolio .aux-widget-related-posts .hentry .entry-tax a',
1745
+ 'dependency' => array(
1746
+ array(
1747
+ 'id' => 'show_portfolio_related_posts',
1748
+ 'value' => array('1'),
1749
+ 'operator'=> ''
1750
+ ),
1751
+ array(
1752
+ 'id' => 'portfolio_related_posts_display_taxonomies',
1753
+ 'value' => array('1'),
1754
+ 'operator'=> ''
1755
+ )
1756
+ ),
1757
+ 'transport' => 'postMessage',
1758
+ );
1759
+
1760
  $options[] = array(
1761
  'title' => __('Display The Button Under Related Items', 'auxin-portfolio'),
1762
  'description' => __('You can specific to show the button under related items', 'auxin-portfolio'),
1853
  'default' => __( "Browse All Projects", 'auxin-portfolio' )
1854
  );
1855
 
1856
+ $options[] = array(
1857
+ 'title' => __( 'Button Typography', 'auxin-portfolio' ),
1858
+ 'id' => 'portfolio_related_posts_button_typography',
1859
+ 'section' => 'portfolio-section-single-related',
1860
+ 'type' => 'group_typography',
1861
+ 'selectors' => '.single-portfolio .aux-related-container-more .aux-related-btn-more',
1862
+ 'dependency' => array(
1863
+ array(
1864
+ 'id' => 'show_portfolio_related_posts',
1865
+ 'value' => array('1'),
1866
+ 'operator'=> ''
1867
+ ),
1868
+ array(
1869
+ 'id' => 'portfolio_single_all_related_items_btn_display',
1870
+ 'value' => array('1'),
1871
+ 'operator'=> ''
1872
+ )
1873
+ ),
1874
+ 'transport' => 'postMessage',
1875
+ );
1876
+
1877
+ $options[] = array(
1878
+ 'title' => __( 'Button Background', 'auxin-portfolio' ),
1879
+ 'id' => 'portfolio_related_posts_button_bg',
1880
+ 'section' => 'portfolio-section-single-related',
1881
+ 'transport' => 'postMessage',
1882
+ 'selectors' => array(
1883
+ '.single-portfolio .aux-related-container-more .aux-related-btn-more' => 'background-image:{{VALUE}};'
1884
+ ),
1885
+ 'default' => '',
1886
+ 'type' => 'gradient'
1887
+ );
1888
+
1889
  /*$options[] = array( 'title' => __('View All button link', 'auxin-portfolio'),
1890
  'description' => __('Specifies a link for "view all" button to portfolio listing page (the button that comes at the end of latest from portfolio element ) ', 'auxin-portfolio'),
1891
  'id' => 'portfolio_view_all_btn_link',
3025
  'default' => '[{"id":"url", "label":"Project URL", "value":"Project URL"},{"id":"client", "label":"Client", "value":"Client"},{"id":"release_date", "label":"Release Date", "value":"Release Date"}]'
3026
  );
3027
 
3028
+ // -------------------------------------------------------------------------
3029
+
3030
+ $sections[] = array(
3031
+ 'id' => 'portfolio-section-single-appearance',
3032
+ 'parent' => 'portfolio-section', // section parent's id
3033
+ 'title' => __( 'Single Portfolio Appearance', 'auxin-portfolio'),
3034
+ 'description' => __( 'Single Portfolio Appearance', 'auxin-portfolio')
3035
+ );
3036
+
3037
+ $options[] = array(
3038
+ 'title' => __( 'Content', 'auxin-portfolio' ),
3039
+ 'id' => 'single_portfolio_content_typography',
3040
+ 'section' => 'portfolio-section-single-appearance',
3041
+ 'type' => 'group_typography',
3042
+ 'selectors' => '.aux-single .type-portfolio .entry-content',
3043
+ 'transport' => 'postMessage',
3044
+ );
3045
+
3046
+ $options[] = array(
3047
+ 'title' => __( 'Overview Title', 'auxin-portfolio' ),
3048
+ 'id' => 'single_portfolio_overview_title_typography',
3049
+ 'section' => 'portfolio-section-single-appearance',
3050
+ 'type' => 'group_typography',
3051
+ 'selectors' => '.aux-single .type-portfolio .entry-side-title > h1',
3052
+ 'transport' => 'postMessage',
3053
+ );
3054
+
3055
+ $options[] = array(
3056
+ 'title' => __( 'Overview Content', 'auxin-portfolio' ),
3057
+ 'id' => 'single_portfolio_overview_content_typography',
3058
+ 'section' => 'portfolio-section-single-appearance',
3059
+ 'type' => 'group_typography',
3060
+ 'selectors' => '.aux-single .type-portfolio .entry-side-overview',
3061
+ 'transport' => 'postMessage',
3062
+ );
3063
+
3064
+ $options[] = array(
3065
+ 'title' => __( 'Meta', 'auxin-portfolio' ),
3066
+ 'id' => 'single_portfolio_meta_typography',
3067
+ 'section' => 'portfolio-section-single-appearance',
3068
+ 'type' => 'group_typography',
3069
+ 'selectors' => '.aux-single .type-portfolio .entry-meta-data dt',
3070
+ 'transport' => 'postMessage',
3071
+ );
3072
+
3073
+ $options[] = array(
3074
+ 'title' => __( 'Meta Terms', 'auxin-portfolio' ),
3075
+ 'id' => 'single_portfolio_meta_terms_typography',
3076
+ 'section' => 'portfolio-section-single-appearance',
3077
+ 'type' => 'group_typography',
3078
+ 'selectors' => '.aux-single .type-portfolio .entry-meta-data dd, .aux-single .type-portfolio .entry-meta-data .entry-tax > a',
3079
+ 'transport' => 'postMessage',
3080
+ );
3081
+
3082
+ $options[] = array(
3083
+ 'title' => __( 'Launch Button', 'auxin-portfolio' ),
3084
+ 'id' => 'single_portfolio_lunch_btn_typography',
3085
+ 'section' => 'portfolio-section-single-appearance',
3086
+ 'type' => 'group_typography',
3087
+ 'selectors' => '.aux-single .type-portfolio .entry-meta-data .aux-button',
3088
+ 'transport' => 'postMessage',
3089
+ );
3090
+
3091
+ $options[] = array(
3092
+ 'title' => __( 'Launch Button Background', 'auxin-portfolio' ),
3093
+ 'id' => 'single_portfolio_lunch_btn_bg',
3094
+ 'section' => 'portfolio-section-single-appearance',
3095
+ 'transport' => 'postMessage',
3096
+ 'selectors' => array(
3097
+ '.aux-single .type-portfolio .entry-meta-data .aux-button' => 'background-image:{{VALUE}};'
3098
+ ),
3099
+ 'default' => '',
3100
+ 'type' => 'gradient'
3101
+ );
3102
+
3103
  return array( 'fields' => $options, 'sections' => $sections );
3104
  }
3105
 
public/assets/js/portfolio.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Auxin portfolio - v1.8.5 (2020-02-10)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
1
+ /*! Auxin portfolio - v1.9.0 (2020-03-09)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
public/templates/elements/recent-portfolio.php CHANGED
@@ -56,7 +56,8 @@ function auxin_recent_portfolio( $args= array() ) {
56
  'query_args' => array(),
57
  'reset_query' => true,
58
  'use_wp_query' => false, // true to use the global wp_query, false to use internal custom query
59
- 'wp_query_args' => array(), // additional wp_query args
 
60
  'loadmore_type' => '', // 'next' (more button), 'scroll', 'next-prev'
61
  'loadmore_label' => 'text',
62
  'loadmore_per_page' => '',
@@ -250,7 +251,11 @@ function auxin_recent_portfolio( $args= array() ) {
250
  );
251
 
252
  // pass the args through the auxin query parser
253
- $wp_query = new WP_Query( auxin_parse_query_args( $query_arg ) );
 
 
 
 
254
  $have_posts = $wp_query->have_posts();
255
 
256
  if( $have_posts ){
56
  'query_args' => array(),
57
  'reset_query' => true,
58
  'use_wp_query' => false, // true to use the global wp_query, false to use internal custom query
59
+ 'wp_query_args' => array(), // additional wp_query args,
60
+ 'custom_wp_query' => '',
61
  'loadmore_type' => '', // 'next' (more button), 'scroll', 'next-prev'
62
  'loadmore_label' => 'text',
63
  'loadmore_per_page' => '',
251
  );
252
 
253
  // pass the args through the auxin query parser
254
+ if ( $custom_wp_query) {
255
+ $wp_query = $custom_wp_query;
256
+ } else {
257
+ $wp_query = new WP_Query( auxin_parse_query_args( $query_arg ) );
258
+ }
259
  $have_posts = $wp_query->have_posts();
260
 
261
  if( $have_posts ){