Make WordPress Themes

Changeset 177435

Timestamp:
10/11/2022 01:47:29 AM (3 years ago)
Author:
themedropbox
Message:

New version of News Element - 1.0.2

Location:
news-element/1.0.2
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • news-element/1.0.2/inc/activation/class-welcome-notice.php

    r177116 r177435  
    2929 
    3030        // Install Plugins
    31         add_action( 'wp_ajax_tpt_install_active_elementor', [$this, 'install_activate_elementor'] );
    32         add_action( 'wp_ajax_nopriv_tpt_install_active_elementor', [$this, 'install_activate_elementor'] );
    33         add_action( 'wp_ajax_tpt_install_activate_news_element', [$this, 'install_activate_news_element_addon'] );
    34         add_action( 'wp_ajax_nopriv_tpt_install_activate_news_element', [$this, 'install_activate_news_element_addon'] );
    35 
    36         add_action( 'wp_ajax_tpt_prevent_elementor_redirect', [$this, 'tpt_prevent_elementor_redirect'] );
    37     }
    38 
    39     public function tpt_prevent_elementor_redirect() {
     31        add_action( 'wp_ajax_news_element_install_active_elementor', [$this, 'install_activate_elementor'] );
     32        add_action( 'wp_ajax_nopriv_news_element_install_active_elementor', [$this, 'install_activate_elementor'] );
     33        add_action( 'wp_ajax_news_element_install_activate_addon', [$this, 'install_activate_news_element_addon'] );
     34        add_action( 'wp_ajax_nopriv_news_element_install_activate_addon', [$this, 'install_activate_news_element_addon'] );
     35
     36        add_action( 'wp_ajax_news_element_prevent_elementor_redirect', [$this, 'news_element_prevent_elementor_redirect'] );
     37    }
     38
     39    public function news_element_prevent_elementor_redirect() {
    4040        exit;
    4141    }
     
    287287            if ( ! get_transient( $transient_name ) ) {
    288288                ?>
    289                 <div class="tpt-notice notice notice-success is-dismissible" data-notice="<?php echo esc_attr( $transient_name ); ?>">
     289                <div class="news-element-notice notice notice-success is-dismissible" data-notice="<?php echo esc_attr( $transient_name ); ?>">
    290290                    <button type="button" class="notice-dismiss"></button>
    291291
     
    369369        <script>
    370370            jQuery(function($) {
    371                 $( document ).on( 'click', '.tpt-notice .notice-dismiss', function () {
     371                $( document ).on( 'click', '.news-element-notice .notice-dismiss', function () {
    372372                    jQuery.post( 'ajax_url', {
    373373                        action: 'tpt_dismiss_handle',
    374                         notice: $( this ).closest( '.tpt-notice' ).data( 'notice' ),
     374                        notice: $( this ).closest( '.news-element-notice' ).data( 'notice' ),
    375375                    });
    376                     $( '.tpt-notice' ).hide();
     376                    $( '.news-element-notice' ).hide();
    377377                } );
    378378            });
     
    391391        wp_enqueue_script( 'welcome-notic-js', get_template_directory_uri() . '/inc/activation/js/welcome-notice.js', ['jquery'], false, true );
    392392
    393         wp_localize_script( 'welcome-notic-js', 'tpt_localize', [
     393        wp_localize_script( 'welcome-notic-js', 'news_element_localize', [
    394394            'ajax_url' => admin_url( 'admin-ajax.php' ),
    395395            'elementor_nonce' => wp_create_nonce( 'nonce' ),
  • news-element/1.0.2/inc/activation/css/welcome-notice.css

    r177012 r177435  
    1 .tpt-notice {
     1.news-element-notice {
    22  display: -webkit-box;
    33  display: -ms-flexbox;
     
    1111}
    1212
    13 .tpt-notice .welcome-message {
     13.news-element-notice .welcome-message {
    1414  max-width: 650px;
    1515}
    1616
    17 .tpt-notice .welcome-message h1 {
     17.news-element-notice .welcome-message h1 {
    1818  font-size: 36px;
    1919  font-weight: 600;
    2020}
    2121
    22 .tpt-notice .welcome-message p {
     22.news-element-notice .welcome-message p {
    2323  font-size: 14px;
    2424}
    2525
    26 .tpt-notice .welcome-message .action-buttons {
     26.news-element-notice .welcome-message .action-buttons {
    2727  margin-top: 30px;
    2828}
    2929
    30 .tpt-notice .welcome-message .action-buttons a {
     30.news-element-notice .welcome-message .action-buttons a {
    3131  padding: 7px 20px;
    3232  background-color: #6A4BFF;
     
    3434}
    3535
    36 .tpt-notice .welcome-message .action-buttons a:hover {
     36.news-element-notice .welcome-message .action-buttons a:hover {
    3737  background-color: #583ed7;
    3838}
    3939
    40 .tpt-notice .welcome-message .action-buttons a .dashicons {
     40.news-element-notice .welcome-message .action-buttons a .dashicons {
    4141  font-size: 12px;
    4242  line-height: 30px;
    4343}
    4444
    45 .tpt-notice .image-wrap {
     45.news-element-notice .image-wrap {
    4646  text-align: right;
    4747}
    4848
    49 .tpt-notice .image-wrap img {
     49.news-element-notice .image-wrap img {
    5050  display: inline-block;
    5151}
    5252
    5353@media screen and (max-width: 1366px) {
    54     .tpt-notice .image-wrap img {
     54    .news-element-notice .image-wrap img {
    5555      max-width: 90%;
    5656    }
    5757
    58   .tpt-notice .welcome-message p {
     58  .news-element-notice .welcome-message p {
    5959    font-size: 13px;
    6060  }
  • news-element/1.0.2/inc/activation/js/welcome-notice.js

    r177012 r177435  
    22    "use strict";
    33
    4     $(document).on('click', '.tpt-notice .button-primary', function( e ) {
     4    $(document).on('click', '.news-element-notice .button-primary', function( e ) {
    55     
    66        if ( 'install-activate' === $(this).data('action') && ! $( this ).hasClass('init') ) {
    77            var $self = $(this),
    88                $href = $self.attr('href');
    9 
    10             if ( 'true' === $self.data('freemius') ) {
    11                 $href.replace('wpr-addons','wpr-templates-kit')
    12             }
    139
    1410            $self.addClass('init');
     
    1713
    1814            var elementorData = {
    19                 'action' : 'tpt_install_active_elementor',
    20                 'nonce' : tpt_localize.elementor_nonce
     15                'action' : 'news_element_install_active_elementor',
     16                'nonce' : news_element_localize.elementor_nonce
    2117            };
    2218
    2319            // Send Request.
    24             $.post( tpt_localize.ajax_url, elementorData, function( response ) {
     20            $.post( news_element_localize.ajax_url, elementorData, function( response ) {
    2521
    2622                if ( response.success ) {
     
    4339
    4440                    var ThePackData = {
    45                         'action' : 'tpt_install_activate_news_element',
    46                         'nonce' : tpt_localize.news_element_addon_nonce
     41                        'action' : 'news_element_install_activate_addon',
     42                        'nonce' : news_element_localize.news_element_addon_nonce
    4743                    };
    4844
    49                     $.post( tpt_localize.ajax_url, ThePackData, function( response ) {
     45                    $.post( news_element_localize.ajax_url, ThePackData, function( response ) {
    5046                        if ( response.success ) {
    5147
    5248                            var elementorRedirect = {
    53                                 'action' : 'tpt_prevent_elementor_redirect',
     49                                'action' : 'news_element_prevent_elementor_redirect',
    5450                            };
    5551
    56                             $.post( tpt_localize.ajax_url, elementorRedirect, function( response ) {
     52                            $.post( news_element_localize.ajax_url, elementorRedirect, function( response ) {
    5753                                console.log('news element addon installed');
    5854
     
    7268
    7369            } ).fail( function( xhr, textStatus, e ) {
    74                 $(this).parent().after( `<div class="plugin-activation-warning">${tpt_localize.failed_message}</div>` );
     70                $(this).parent().after( `<div class="plugin-activation-warning">${news_element_localize.failed_message}</div>` );
    7571            } );
    7672
  • news-element/1.0.2/style.css

    r177116 r177435  
    55Author URI: https://webangon.com
    66Description: News Element for elementor page builder. It has header footer builder,mega menu and template library and 110+ custom widgets to create any sites.This theme gives you access to 270+ pre-made sections,30+ pages,22 header & footer.
    7 Version: 1.0.1
     7Version: 1.0.2
    88Requires at least: 4.7
    99Requires PHP: 5.2
     
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1313Text Domain: the-pack-element
    14 Tags: blog, e-commerce, one-column, custom-background, custom-colors, full-width-template, custom-menu, custom-logo, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
     14Tags: blog, one-column, custom-background, custom-colors, full-width-template, custom-menu, custom-logo, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
    1515*/
    1616
     
    124124    text-decoration: underline dotted;
    125125}
    126 
     126.site-title a:hover,
     127.site-title a:focus {
     128    text-decoration: underline;
     129}
    127130b,
    128131strong {
     
    662665}
    663666
    664 .menu-all-pages-container li:hover>.sub-menu {
     667.menu-all-pages-container li:hover>.sub-menu,.menu-all-pages-container li:focus-within>.sub-menu {
    665668    margin-top: 0px;
    666669    opacity: 1;
Note: See TracChangeset for help on using the changeset viewer.