Plugin Directory

Changeset 3389198


Ignore:
Timestamp:
11/03/2025 10:04:33 PM (5 months ago)
Author:
rexdot
Message:

Version 3.2.4

Location:
portfolio-elementor
Files:
348 added
7 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • portfolio-elementor/trunk/assets/css/powerfolio_css.css

    r3318507 r3389198  
    122122}
    123123@media (max-width: 992px) {
     124  .elpt-portfolio-content.elpt-portfolio-columns-mobile-1 .portfolio-item-wrapper {
     125    width: 100%;
     126  }
     127}
     128@media (max-width: 992px) {
    124129  .elpt-portfolio-content.elpt-portfolio-columns-mobile-2 .portfolio-item-wrapper {
    125130    width: 50%;
     
    131136  }
    132137}
     138
     139/* Grid Builder Mobile Override - Forces specific column layouts */
     140@media (max-width: 992px) {
     141  /* Force 1 column mobile layout - overrides Grid Builder responsive controls */
     142  .elementor-widget-elpug .elpt-portfolio-content.elpt-portfolio-grid-builder.elpt-portfolio-columns-mobile-1 .portfolio-item-wrapper:nth-child(n) {
     143    width: 100% !important;
     144  }
     145 
     146  /* Force 2 columns mobile layout - overrides Grid Builder responsive controls */
     147  .elementor-widget-elpug .elpt-portfolio-content.elpt-portfolio-grid-builder.elpt-portfolio-columns-mobile-2 .portfolio-item-wrapper:nth-child(n) {
     148    width: 50% !important;
     149  }
     150 
     151  /* Force 3 columns mobile layout - overrides Grid Builder responsive controls */
     152  .elementor-widget-elpug .elpt-portfolio-content.elpt-portfolio-grid-builder.elpt-portfolio-columns-mobile-3 .portfolio-item-wrapper:nth-child(n) {
     153    width: 33.33% !important;
     154  }
     155}
     156
     157/* Grid Builder Mobile Override for Image Gallery Widget - Forces specific column layouts */
     158@media (max-width: 992px) {
     159  /* Force 1 column mobile layout - overrides Grid Builder responsive controls */
     160  .elementor-widget-powerfolio_gallery .elpt-portfolio-content.elpt-portfolio-grid-builder.elpt-portfolio-columns-mobile-1 .portfolio-item-wrapper:nth-child(n) {
     161    width: 100% !important;
     162  }
     163 
     164  /* Force 2 columns mobile layout - overrides Grid Builder responsive controls */
     165  .elementor-widget-powerfolio_gallery .elpt-portfolio-content.elpt-portfolio-grid-builder.elpt-portfolio-columns-mobile-2 .portfolio-item-wrapper:nth-child(n) {
     166    width: 50% !important;
     167  }
     168 
     169  /* Force 3 columns mobile layout - overrides Grid Builder responsive controls */
     170  .elementor-widget-powerfolio_gallery .elpt-portfolio-content.elpt-portfolio-grid-builder.elpt-portfolio-columns-mobile-3 .portfolio-item-wrapper:nth-child(n) {
     171    width: 33.33% !important;
     172  }
     173}
     174
     175/* Grid Builder Box-sizing Fix */
     176.elpt-portfolio-content.elpt-portfolio-grid-builder .portfolio-item-wrapper {
     177  box-sizing: border-box !important;
     178}
     179
    133180.elpt-portfolio-content.elpt-portfolio-margin .portfolio-item-wrapper {
    134181  padding: 0;
     
    17511798}
    17521799.elpt-portfolio-content.elpt-portfolio-grid-builder.elpt-portfolio-margin {
    1753   padding: 5px !important;
     1800  /* padding: 5px !important; */
    17541801  margin-bottom: 5px;
    17551802}
  • portfolio-elementor/trunk/classes/Powerfolio_Common_Settings.php

    r3379627 r3389198  
    3333    public static function get_column_mobile_options() {
    3434        $column_mobile_array = array(
    35             '1' => __( 'One (default)', 'portfolio-elementor' ),
    36             '2' => __( 'Two Columns', 'portfolio-elementor' ),
    37             '3' => __( 'Three Columns', 'portfolio-elementor' ),
     35            'custom' => __( 'Custom (Grid Builder)', 'portfolio-elementor' ),
     36            '1'      => __( 'One Column', 'portfolio-elementor' ),
     37            '2'      => __( 'Two Columns', 'portfolio-elementor' ),
     38            '3'      => __( 'Three Columns', 'portfolio-elementor' ),
    3839        );
    3940        return $column_mobile_array;
  • portfolio-elementor/trunk/classes/Powerfolio_Portfolio.php

    r3379627 r3389198  
    418418        if ( array_key_exists('columns_mobile', $settings) ) {
    419419
    420             if ( $settings['columns_mobile'] == '2') {
     420            // Skip class generation for 'custom' - let responsive controls handle it
     421            if ( $settings['columns_mobile'] == 'custom') {
     422                $portfoliocolumns_mobile = '';
     423            }
     424            else if ( $settings['columns_mobile'] == '1') {
     425                $portfoliocolumns_mobile = 'elpt-portfolio-columns-mobile-1';
     426            }
     427            else if ( $settings['columns_mobile'] == '2') {
    421428                $portfoliocolumns_mobile = 'elpt-portfolio-columns-mobile-2';
    422429            }
  • portfolio-elementor/trunk/elementor/elementor-widgets/image_gallery_widget.php

    r3379627 r3389198  
    281281                ),
    282282            ] );
    283             $this->add_control( $item, [
    284                 'label'      => __( 'Width (%)', 'portfolio-elementor' ),
     283            $this->add_responsive_control( $item, [
     284                'label'      => __( 'Width', 'portfolio-elementor' ),
    285285                'type'       => Controls_Manager::SLIDER,
    286                 'size_units' => ['%'],
     286                'size_units' => ['%', 'px'],
    287287                'default'    => [
    288288                    'unit' => '%',
     
    290290                ],
    291291                'range'      => [
    292                     '%' => [
     292                    '%'  => [
    293293                        'min'  => 10,
    294294                        'max'  => 100,
    295295                        'step' => 5,
     296                    ],
     297                    'px' => [
     298                        'min'  => 50,
     299                        'max'  => 1200,
     300                        'step' => 10,
    296301                    ],
    297302                ],
     
    305310                ),
    306311                'selectors'  => [
    307                     '{{WRAPPER}} .elpt-portfolio-content .portfolio-item-wrapper:nth-child(' . $i . ')' => 'width: {{SIZE}}{{UNIT}} !important;',
     312                    '{{WRAPPER}} .elpt-portfolio-content .portfolio-item-wrapper:nth-child(' . $i . ')' => 'width: {{SIZE}}{{UNIT}};',
    308313                ],
    309314            ] );
    310315            //height
    311316            $itemh = 'item_height_' . $i;
    312             $this->add_control( $itemh, [
     317            $this->add_responsive_control( $itemh, [
    313318                'label'      => __( 'Height (px)', 'portfolio-elementor' ),
    314319                'type'       => Controls_Manager::SLIDER,
     
    334339                ),
    335340                'selectors'  => [
    336                     '{{WRAPPER}} .elpt-portfolio-content .portfolio-item-wrapper:nth-child(' . $i . ') a' => 'height: {{SIZE}}{{UNIT}} !important;',
     341                    '{{WRAPPER}} .elpt-portfolio-content .portfolio-item-wrapper:nth-child(' . $i . ') a' => 'height: {{SIZE}}{{UNIT}};',
    337342                ],
    338343            ] );
  • portfolio-elementor/trunk/elementor/elementor-widgets/portfolio_widget.php

    r3379627 r3389198  
    252252                ),
    253253            ] );
    254             $this->add_control( $item, [
    255                 'label'      => __( 'Width (%)', 'portfolio-elementor' ),
     254            $this->add_responsive_control( $item, [
     255                'label'      => __( 'Width', 'portfolio-elementor' ),
    256256                'type'       => Controls_Manager::SLIDER,
    257                 'size_units' => ['%'],
     257                'size_units' => ['%', 'px'],
    258258                'default'    => [
    259259                    'unit' => '%',
     
    261261                ],
    262262                'range'      => [
    263                     '%' => [
     263                    '%'  => [
    264264                        'min'  => 10,
    265265                        'max'  => 100,
    266266                        'step' => 5,
     267                    ],
     268                    'px' => [
     269                        'min'  => 50,
     270                        'max'  => 1200,
     271                        'step' => 10,
    267272                    ],
    268273                ],
     
    280285                ),
    281286                'selectors'  => [
    282                     '{{WRAPPER}} .elpt-portfolio-content .portfolio-item-wrapper:nth-child(' . $i . ')' => 'width: {{SIZE}}{{UNIT}} !important;',
     287                    '{{WRAPPER}} .elpt-portfolio-content .portfolio-item-wrapper:nth-child(' . $i . ')' => 'width: {{SIZE}}{{UNIT}};',
    283288                ],
    284289            ] );
    285290            //height
    286291            $itemh = 'item_height_' . $i;
    287             $this->add_control( $itemh, [
     292            $this->add_responsive_control( $itemh, [
    288293                'label'      => __( 'Height (px)', 'portfolio-elementor' ),
    289294                'type'       => Controls_Manager::SLIDER,
     
    313318                ),
    314319                'selectors'  => [
    315                     '{{WRAPPER}} .elpt-portfolio-content .portfolio-item-wrapper:nth-child(' . $i . ') a' => 'height: {{SIZE}}{{UNIT}} !important;',
     320                    '{{WRAPPER}} .elpt-portfolio-content .portfolio-item-wrapper:nth-child(' . $i . ') a' => 'height: {{SIZE}}{{UNIT}};',
    316321                ],
    317322            ] );
     
    465470            'alpha'     => true,
    466471            'selectors' => [
    467                 '{{WRAPPER}} .elpt-portfolio-content .portfolio-item' => 'border-color: {{VALUE}} !important;',
     472                '{{WRAPPER}} .elpt-portfolio-content .portfolio-item' => 'border-color: {{VALUE}};',
    468473            ],
    469474        ] );
  • portfolio-elementor/trunk/portfolio-elementor.php

    r3379627 r3389198  
    99Text Domain: portfolio-elementor
    1010Domain Path: /languages
    11 Version: 3.2.3
     11Version: 3.2.4
    1212License: GPL v2 or later
    1313License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • portfolio-elementor/trunk/readme.txt

    r3379627 r3389198  
    66Tested up to: 6.8.3
    77Requires PHP: 7.4
    8 Stable tag: 3.2.3
     8Stable tag: 3.2.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1811813.2.2 - Removed Custom JS Feature / Updated Freemius SDK
    1821823.2.3 - Security Hotfix
     1833.2.4 - Added responsive controls for Grid Builder (PRO) / Added pixel support for border radius controls / Fixed Grid Builder mobile compatibility / Added Custom vs Automatic mobile layout modes / Improved CSS specificity and box-sizing for Grid Builder
Note: See TracChangeset for help on using the changeset viewer.