Plugin Directory

Changeset 2700170


Ignore:
Timestamp:
03/27/2022 07:03:44 AM (4 years ago)
Author:
softhopper
Message:

Adding version 1.0.8

Location:
softtemplates-for-elementor
Files:
267 added
9 edited

Legend:

Unmodified
Added
Removed
  • softtemplates-for-elementor/trunk/assets/css/soft-template-main.css

    r2625937 r2700170  
    1 .sfte-fixed-header {position: absolute;left: 0;right: 0;width: 100%;top: 0;}body.admin-bar .sfte-fixed-header {top: 32px;}header {-webkit-transition: all 0.25s ease-in-out;transition: all 0.25s ease-in-out;}header.stfe-sticky-header.enable-sticky {position: fixed;left: 0;right: 0;width: 100%;top: 0;}.stfe-fixed-footer {position: fixed;left: 0;right: 0;bottom: 0;width: 100%;}header ~ *:not(footer) {position: relative;z-index: 1;}#soft-template-page {overflow-x: hidden;}
     1.sfte-fixed-header {position: absolute;left: 0;right: 0;width: 100%;top: 0;}body.admin-bar .sfte-fixed-header {top: 32px;}header {-webkit-transition: all 0.25s ease-in-out;transition: all 0.25s ease-in-out;}header.stfe-sticky-header.enable-sticky {position: fixed;left: 0;right: 0;width: 100%;top: 0;}.stfe-fixed-footer {position: fixed;left: 0;right: 0;bottom: 0;width: 100%;}header ~ *:not(footer) {position: relative;z-index: 1;}#soft-template-page {overflow-x: hidden;}
     2.soft-template-cart-wrapper ul{margin:0;padding:0;list-style:none}.soft-template-cart-wrapper .soft-template-cart-button{display:inline}.soft-template-cart-wrapper .soft-template-cart-popup{position:absolute;left:0;z-index:999;display:none;overflow:hidden;padding:25px;width:350px;border-radius:3px;background-color:#fff;-webkit-box-shadow:0 1px 10px rgba(204,204,204,.5);box-shadow:0 1px 10px rgba(204,204,204,.5);text-align:left}.soft-template-cart-align-center .soft-template-cart-popup{right:auto;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.soft-template-cart-align-right .soft-template-cart-popup{right:0;left:auto;-webkit-transform:none;-ms-transform:none;transform:none}.soft-template-cart-wrapper .soft-template-cart-popup .blockOverlay{background-color:#fd6b6d!important}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-header{clear:both;overflow:hidden;text-align:center;line-height:1}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-header .soft-template-cart-popup-count-text-area{position:relative;z-index:999;display:inline-block;color:#465157;text-align:center;text-transform:uppercase;font-weight:600;font-size:13px;line-height:1}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-header .soft-template-cart-popup-count-text-area:after,.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-header .soft-template-cart-popup-count-text-area:before{position:absolute;top:50%;width:1200px;height:1px;border-top:1px solid #e8e8e8;border-right:0!important;border-bottom:0!important;border-left:0!important;content:"";-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-header .soft-template-cart-popup-count-text-area:after{left:100%;margin-left:15px}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-header .soft-template-cart-popup-count-text-area:before{right:100%;margin-right:15px}.soft-template-cart-wrapper .soft-template-cart-popup-body ul.woocommerce-mini-cart.cart_list.product_list_widget{overflow:auto;max-height:300px}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body ul li{position:relative;overflow:hidden;padding:20px 0;border-bottom:1px solid #e8e8e8}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body ul li a{display:block;margin-bottom:10px;color:#465157;font-weight:600;font-size:15px;line-height:18px}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body ul li a>img,.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body ul li>img{float:left;margin-right:15px;max-width:80px;width:80px}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body ul li a.remove{position:absolute;top:50%;right:6px;margin:0;width:24px;height:24px;border-radius:100px;background-color:#fff;color:#222;text-align:center;font-size:24px;line-height:24px;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body ul li a.remove:hover{background-color:#fd6b6d;color:#fff}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body ul li .quantity{display:block;color:#737373;font-size:13px;line-height:13px}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__total{overflow:hidden;margin:0;padding:20px 0;color:#465157;text-transform:uppercase;font-weight:600;font-size:15px}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__total .amount,.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__total strong{font-weight:700;font-size:17px}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__total .amount{float:right}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__buttons{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;margin:0}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__buttons .wc-forward,.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__buttons .wc-forward.checkout{display:inline-block;-webkit-box-flex:0;-webkit-flex:0 0 calc(50% - 5px);-ms-flex:0 0 calc(50% - 5px);flex:0 0 calc(50% - 5px);padding:10px 15px;max-width:calc(50% - 5px);border:2px solid #e8e8e8;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;text-align:center;text-transform:uppercase;font-weight:600;font-size:14px;line-height:1.2;-webkit-transition:all .3s;transition:all .3s}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__buttons .wc-forward{border-color:#e8e8e8;background-color:#fff;color:#222}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__buttons .wc-forward.checkout{border-color:#fd6b6d;background-color:#fd6b6d;color:#fff}.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__buttons .wc-forward.checkout:hover,.soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body .woocommerce-mini-cart__buttons .wc-forward:hover{border-color:#222;background-color:#222;color:#fff}.soft-template-cart-wrapper .soft-template-cart-inner{position:relative;display:inline-block}.soft-template-cart-wrapper .soft-template-cart-button{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;color:#222;font-weight:500;font-size:18px;cursor:pointer;-webkit-transition:all .03s;transition:all .03s}.soft-template-cart-wrapper .soft-template-cart-button:hover{color:#fd6b6d}.soft-template-cart-wrapper .soft-template-cart-count-area{position:relative}.soft-template-cart-wrapper .soft-template-cart-count{position:absolute;top:-10px;right:-14px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;width:18px;height:18px;border-radius:100%;background-color:#fd6b6d;color:#fff;text-align:center;font-size:12px;line-height:1}.soft-template-cart-wrapper .soft-template-cart-button:hover .soft-template-cart-count{background-color:#885cff}.soft-template-cart-wrapper .soft-template-cart-icon>svg{width:1em;height:auto;vertical-align:top;fill:currentColor}.soft-template-cart-subtotal-position-right .soft-template-cart-wrapper .soft-template-cart-button .soft-template-cart-total{margin-left:10px}.soft-template-cart-subtotal-position-left .soft-template-cart-wrapper .soft-template-cart-button .soft-template-cart-total{margin-right:10px}@media (max-width:1024px){.soft-template-cart-tablet-align-left .soft-template-cart-popup{right:auto;left:0;-webkit-transform:none;-ms-transform:none;transform:none}.soft-template-cart-tablet-align-center .soft-template-cart-popup{right:auto;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.soft-template-cart-tablet-align-right .soft-template-cart-popup{right:0;left:auto;-webkit-transform:none;-ms-transform:none;transform:none}}@media (max-width:767px){.soft-template-cart-mobile-align-left .soft-template-cart-popup{right:auto;left:0;-webkit-transform:none;-ms-transform:none;transform:none}.soft-template-cart-mobile-align-center .soft-template-cart-popup{right:auto;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.soft-template-cart-mobile-align-right .soft-template-cart-popup{right:0;left:auto;-webkit-transform:none;-ms-transform:none;transform:none}} .soft-template-cart-wrapper .soft-template-cart-popup .soft-template-cart-popup-body ul li { color: inherit }
  • softtemplates-for-elementor/trunk/assets/js/soft-template-search.js

    r2625937 r2700170  
    1 (function($){"use strict";$(window).on('elementor/frontend/init',function(){var testimonialCarousel=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments);this.wrapper=this.$element.find('.elementor-soft-template-search');this.run()},run:function(){const wrapper=this.wrapper;wrapper.magnificPopup({mainClass:'mfp-fade stfe-magnific-popup',delegate:'a.stfe-search-modal',removalDelay:500,midClick:!0,showCloseBtn:!0,closeBtnInside:!1,prependTo:wrapper,type:"inline",fixedContentPos:!0,fixedBgPos:!0,overflowY:"auto"})}});var handlersClassMap={'soft-template-search.default':testimonialCarousel};const addHandler=($element)=>{elementorFrontend.elementsHandler.addHandler(testimonialCarousel,{$element,})};elementorFrontend.hooks.addAction('frontend/element_ready/soft-template-search.default',addHandler)})})(jQuery)
     1( function( $ ) {
     2    "use strict";
     3
     4    $( window ).on( 'elementor/frontend/init', function () {
     5        var testimonialCarousel = elementorModules.frontend.handlers.Base.extend({
     6            onInit: function () {
     7                elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments);
     8                this.wrapper = this.$element.find('.elementor-soft-template-search');
     9                this.run();
     10            }, 
     11            run: function() {
     12                const wrapper = this.wrapper;
     13           
     14                wrapper.magnificPopup({
     15                    mainClass: 'mfp-fade stfe-magnific-popup',
     16                    delegate: 'a.stfe-search-modal',
     17                    removalDelay: 500,
     18                    midClick: true,
     19                    showCloseBtn: true,
     20                    closeBtnInside: false,
     21                    prependTo: wrapper,
     22                    type: "inline",     
     23                    fixedContentPos: true,
     24                    fixedBgPos: true,
     25                    overflowY: "auto"
     26                });
     27            }
     28        });
     29
     30        var handlersClassMap = {
     31            'soft-template-search.default': testimonialCarousel
     32        };
     33
     34        const addHandler = ( $element ) => {
     35            elementorFrontend.elementsHandler.addHandler( testimonialCarousel, {
     36                $element,
     37            } );
     38        };
     39
     40        elementorFrontend.hooks.addAction( 'frontend/element_ready/soft-template-search.default', addHandler );
     41    });
     42
     43} )( jQuery );
  • softtemplates-for-elementor/trunk/includes/ajax-handlers.php

    r2599076 r2700170  
    4545                add_action( 'wp_ajax_' . $tag, $callback );
    4646            }
     47        }
    4748
    48         }
     49
    4950
    5051        /**
  • softtemplates-for-elementor/trunk/includes/assets.php

    r2625932 r2700170  
    117117            wp_register_script('packery-mode', soft_template_core()->plugin_url( 'assets/js/packery-mode.pkgd.min.js' ), array( 'jquery' ), false, true );
    118118            wp_register_script('soft-template-post-archive', soft_template_core()->plugin_url( 'assets/js/soft-template-post-archive.js' ), array( 'jquery' ), false, true );
     119
     120            // Cart
     121            wp_register_script('soft-template-mini-cart', soft_template_core()->plugin_url( 'assets/js/soft-template-mini-cart.js' ), array( 'jquery' ), false, true );
    119122        }       
    120123       
  • softtemplates-for-elementor/trunk/includes/templates/post-type.php

    r2599076 r2700170  
    240240            );
    241241
    242             $title = isset( $_REQUEST['template_name'] ) ? sanitize_key( $_REQUEST['template_name'] ) : '';
     242            $title = isset( $_REQUEST['template_name'] ) ? esc_html( $_REQUEST['template_name'] ) : '';
    243243
    244244            if ( $title ) {
  • softtemplates-for-elementor/trunk/includes/utils.php

    r2625932 r2700170  
    552552
    553553        public static function get_authors() {
    554             $user_query = new \WP_User_Query(
    555                 [
    556                     'who'                 => 'authors',
    557                     'has_published_posts' => true,
    558                     'fields'              => [
    559                         'ID',
    560                         'display_name',
    561                     ],
    562                 ]
     554            $args = array(
     555                'has_published_posts' => true,
     556                'fields'              => [
     557                    'ID',
     558                    'display_name',
     559                ],
    563560            );
     561             
     562            // Capability queries were only introduced in WP 5.9.
     563            if ( version_compare( $GLOBALS['wp_version'], '5.9', '<' ) ) {
     564                $args['who'] = 'authors';
     565                unset( $args['capability'] );
     566            }
     567             
     568            $authors = get_users( $args );
    564569   
    565570            $authors = [];
    566571   
    567             foreach ( $user_query->get_results() as $result ) {
     572            foreach ( get_users( $args ) as $result ) {
    568573                $authors[ $result->ID ] = $result->display_name;
    569574            }
  • softtemplates-for-elementor/trunk/overrides/default-compat.php

    r2628396 r2700170  
    6868        public function override_header() {
    6969            require soft_template_core()->plugin_path('overrides/header-override.php');
     70           
    7071            $templates   = [];
    7172            $templates[] = 'header.php';
  • softtemplates-for-elementor/trunk/readme.txt

    r2632892 r2700170  
    44Tags: elementor, header builder, footer builder, single post builder, archive builder, elementor builder, elements, elementor addon,  page builder, visual editor, WordPress page builder
    55Requires at least: 4.7
    6 Tested up to: 5.8.2
    7 Stable tag: 1.0.7
     6Tested up to: 5.9.2
     7Stable tag: 1.0.8
    88Requires PHP: 7.0
    99Donate link: #
     
    4949- **Seach**.  Add search into your site header.
    5050- **Post Share**. Add post share into your post page.
     51- **Mini Cart(WooCommerce)**.  Add Mini cart in your site header.
     52- **Post Share**. Add post share into your post page.
    5153
    5254= Header/Footer Options Include =
  • softtemplates-for-elementor/trunk/soft-template-core.php

    r2632892 r2700170  
    44 * Plugin URI:  https://softhopper.net/plugins/
    55 * Description: Most powerful plugin created header, footer, single post, archive page template with elementor
    6  * Version:     1.0.7
     6 * Version:     1.0.8
    77 * Author:      SoftHopper
    88 * Author URI:  https://softhopper.net
     
    178178            do_action( 'soft-template-core/init', $this );
    179179
     180            // WooCommerce Minicart
     181            if ( function_exists( 'WC' ) ) {
     182                add_filter('woocommerce_add_to_cart_fragments', array($this, 'add_to_cart_fragment'));
     183                add_filter('woocommerce_add_to_cart_fragments', array($this, 'add_to_cart_price_fragment'));
     184                add_filter('woocommerce_add_to_cart_fragments', array($this, 'add_to_cart_fragment_popup'));
     185            }
     186
    180187        }
    181188
     
    344351                return false;
    345352            }
     353        }
     354
     355        /**
     356         * Ajax Mini Cart
     357         *
     358         * Mini cart will update in
     359         * the same page, without
     360         * reloading the current state.
     361         */
     362        public function add_to_cart_fragment($fragments) {
     363            ob_start(); ?>
     364                <span class="soft-template-cart-count">
     365                    <?php echo sprintf('%d', WC()->cart->cart_contents_count); ?>
     366                </span>
     367            <?php
     368            $fragments['.soft-template-cart-count'] = ob_get_clean();
     369            return $fragments;
     370        }           
     371       
     372        public function add_to_cart_fragment_popup($fragments) {
     373            ob_start(); ?>
     374                <span class="soft-template-cart-popup-count">
     375                    <?php echo sprintf('%d', WC()->cart->cart_contents_count); ?>
     376                </span>
     377            <?php
     378            $fragments['.soft-template-cart-popup-count'] = ob_get_clean();
     379            return $fragments;
     380        }       
     381       
     382        public function add_to_cart_price_fragment($fragments) {
     383            ob_start(); ?>
     384                <div class="soft-template-cart-total">
     385                    <?php echo wc_price(sprintf('%d', WC()->cart->total)); ?>
     386                </div>
     387            <?php
     388            $fragments['.soft-template-cart-total'] = ob_get_clean();
     389            return $fragments;
    346390        }
    347391
Note: See TracChangeset for help on using the changeset viewer.