Plugin Directory

Changeset 2971132 for modal-window


Ignore:
Timestamp:
09/25/2023 08:10:13 AM (19 months ago)
Author:
Wpcalc
Message:

Update to version 5.3.6

Location:
modal-window
Files:
175 added
22 edited

Legend:

Unmodified
Added
Removed
  • modal-window/trunk/README.txt

    r2948366 r2971132  
    66Tested up to: 6.3
    77Requires PHP: 5.6
    8 Stable tag: 5.3.5
     8Stable tag: 5.3.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    218218
    219219== Changelog ==
     220= 5.3.6 =
     221* Fixed: issue in escaping shortcode attributes
     222
    220223= 5.3.5 =
    221224* Fixed: minor bug in wow-plugin
  • modal-window/trunk/admin/assets/css/custom.css

    r2772063 r2971132  
    482482}
    483483
     484.wowp-header {
     485    position: relative;
     486    border-top: 5px solid #2C0242;
     487    border-bottom: 1px solid #c3c4c7;
     488    padding: 20px 0;
     489    margin-left: -20px;
     490    background: #fff;
     491    margin-bottom: 32px;
     492}
     493.wowp-links {
     494    position: absolute;
     495    top: 0;
     496    right: 20px;
     497    display: flex;
     498    gap: 0.75rem;
     499    padding: 5px 10px;
     500    border-radius: 0 0 4px 4px;
     501    border: 2px solid #88C0D0;
     502    border-top: none;
     503    background-color: #E9F4F6;
     504}
     505.wowp-link {
     506    text-decoration: none;
     507    color: #222222;
     508    font-size: 0.85rem;
     509}
     510.wowp-header-wrapper {
     511    display: flex;
     512    gap: 1.5rem;
     513    align-items: center;
     514    padding: 0 20px;
     515}
     516.wowp-header-wrapper .page-title-action.button {
     517    margin-left: 25px;
     518}
     519.wowp-heading-inline {
     520    position: relative;
     521    display: flex;
     522    align-items: center;
     523    gap: 1rem;
     524    color: #1d2327;
     525    font-size: 2em;
     526}
     527.wowp-heading-inline img {
     528    width: 40px;
     529}
     530.wowp-heading-inline sup {
     531    position: absolute;
     532    top: 0;
     533    right: 0;
     534    font-weight: 300;
     535    font-size: 12px;
     536    transform: translateX(110%);
     537
     538}
     539.wowp-heading-separator {
     540    position: relative;
     541}
     542.wowp-heading-separator:before {
     543    content: "";
     544    height: 20px;
     545    border-right: 2px solid #e7e7e7;
     546    font-size: 20px;
     547}
  • modal-window/trunk/admin/class-admin.php

    r2772063 r2971132  
    108108        $parent     = 'wow-company';
    109109        $title      = $this->plugin['name'] . ' version ' . $this->plugin['version'];
    110         $menu_title = $this->plugin['menu'];
     110        $menu_title = '<img src="' . esc_url( $this->plugin['url'] ) . 'admin/assets/img/modal-window-logo.png" alt="">' . $this->plugin['menu'];
    111111        $capability = 'manage_options';
    112112        $slug       = $this->plugin['slug'];
     
    133133        $page = 'wow-plugins_page_' . $this->plugin['slug'];
    134134
    135         if ( $page != $hook ) {
    136             return;
    137         }
    138 
    139135        $slug       = $this->plugin['slug'];
    140136        $version    = $this->plugin['version'];
    141137        $url_assets = plugin_dir_url( __FILE__ ) . 'assets/';
    142138        $pre_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
     139
     140        wp_enqueue_style( 'wowp-admin-general', $url_assets . 'css/admin-general.css', false, $version );
     141
     142
     143        if ( $page != $hook ) {
     144            return;
     145        }
     146
     147
    143148
    144149        wp_enqueue_style( $slug . '-admin', $url_assets . 'css/main' . $pre_suffix . '.css', false, $version );
  • modal-window/trunk/admin/fields/checkbox.php

    r2758642 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/fields/color.php

    r2758642 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/fields/date.php

    r2758642 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/fields/editor.php

    r2765688 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/fields/input.php

    r2758642 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/fields/number.php

    r2758642 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/fields/select.php

    r2758642 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/fields/textarea.php

    r2758642 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/fields/time.php

    r2758642 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/fields/title.php

    r2758642 r2971132  
    44 *
    55 * @package     Wow_Plugin
    6  * @copyright   Wow-Company <helper@wow-company.com>
     6 * @copyright   Wow-Company <yoda@@wow-company.com>
    77 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
    88 * @since       1.0
  • modal-window/trunk/admin/page-extension.php

    r2772063 r2971132  
    6565                    <div class="fa-stack fa-2x has-text-orange-light">
    6666                        <i class="fas fa-circle fa-stack-2x"></i>
    67                         <i class="far fa-external-link-alt fa-stack-1x fa-inverse has-text-orange-dark"></i>
     67                        <i class="fas fa-external-link-alt fa-stack-1x fa-inverse has-text-orange-dark"></i>
    6868                    </div>
    6969                </div>
     
    9494                    <div class="fa-stack fa-2x has-text-orange-light">
    9595                        <i class="fas fa-circle fa-stack-2x"></i>
    96                         <i class="far fa-swatchbook fa-stack-1x fa-inverse has-text-orange-dark"></i>
     96                        <i class="fas fa-swatchbook fa-stack-1x fa-inverse has-text-orange-dark"></i>
    9797                    </div>
    9898                </div>
     
    136136                    <div class="fa-stack fa-2x has-text-orange-light">
    137137                        <i class="fas fa-circle fa-stack-2x"></i>
    138                         <i class="far fa-greater-than-equal fa-stack-1x fa-inverse has-text-orange-dark"></i>
     138                        <i class="fas fa-greater-than-equal fa-stack-1x fa-inverse has-text-orange-dark"></i>
    139139                    </div>
    140140                </div>
     
    148148                    <div class="fa-stack fa-2x has-text-orange-light">
    149149                        <i class="fas fa-circle fa-stack-2x"></i>
    150                         <i class="far fa-toggle-on fa-stack-1x fa-inverse has-text-orange-dark"></i>
     150                        <i class="fas fa-toggle-on fa-stack-1x fa-inverse has-text-orange-dark"></i>
    151151                    </div>
    152152                </div>
     
    160160                    <div class="fa-stack fa-2x has-text-orange-light">
    161161                        <i class="fas fa-circle fa-stack-2x"></i>
    162                         <i class="far fa-shapes fa-stack-1x fa-inverse has-text-orange-dark"></i>
     162                        <i class="fas fa-shapes fa-stack-1x fa-inverse has-text-orange-dark"></i>
    163163                    </div>
    164164                </div>
     
    190190                    <div class="fa-stack fa-2x has-text-orange-light">
    191191                        <i class="fas fa-circle fa-stack-2x"></i>
    192                         <i class="far fa-palette fa-stack-1x fa-inverse has-text-orange-dark"></i>
     192                        <i class="fas fa-palette fa-stack-1x fa-inverse has-text-orange-dark"></i>
    193193                    </div>
    194194                </div>
     
    219219                    <div class="fa-stack fa-2x has-text-orange-light">
    220220                        <i class="fas fa-circle fa-stack-2x"></i>
    221                         <i class="far fa-users fa-stack-1x fa-inverse has-text-orange-dark"></i>
     221                        <i class="fas fa-users fa-stack-1x fa-inverse has-text-orange-dark"></i>
    222222                    </div>
    223223                </div>
     
    258258                    <div class="fa-stack fa-2x has-text-orange-light">
    259259                        <i class="fas fa-circle fa-stack-2x"></i>
    260                         <i class="far fa-language fa-stack-1x fa-inverse has-text-orange-dark"></i>
     260                        <i class="fas fa-language fa-stack-1x fa-inverse has-text-orange-dark"></i>
    261261                    </div>
    262262                </div>
  • modal-window/trunk/admin/page-main.php

    r2758642 r2971132  
    6464
    6565?>
     66
     67    <div class="wowp-header">
     68        <div class="wowp-header-wrapper">
     69            <h1 class="wowp-heading-inline">
     70                <img src="<?php echo esc_url( $this->plugin['url'] ); ?>admin/assets/img/modal-window-logo.png" alt="">
     71                <span><?php echo esc_attr( $this->plugin['name'] ); ?>
     72                <sup> <?php echo esc_attr( $this->plugin['version'] ); ?></sup></span>
     73            </h1>
     74            <a href="?page=<?php echo esc_attr( $this->plugin['slug'] ); ?>&tab=settings" class="page-title-action button ">
     75                <?php esc_attr_e( 'Add New', 'modal-window' ); ?>
     76            </a>
     77        </div>
     78    </div>
     79
    6680    <div class="wrap">
    67         <h1 class="wp-heading-inline"><?php echo esc_html($this->plugin['name']); ?>
    68             v. <?php echo esc_html($this->plugin['version']); ?></h1>
    69         <a href="?page=<?php echo esc_attr($this->plugin['slug']); ?>&tab=settings" class="page-title-action">
    70             <?php esc_html_e( 'Add New', 'modal-window' ); ?></a>
    7181        <hr class="wp-header-end">
    7282        <?php if ( get_option( 'wow_' . $this->plugin['prefix'] . '_message' ) != 'read' ) : ?>
  • modal-window/trunk/admin/page-support.php

    r2758642 r2971132  
    2727                <p>To get your support related question answered in the fastest timing, please send a message via the
    2828                    form below
    29                     or write to us on email <a href="mailto:helper@wow-company.com">helper@wow-company.com</a>.</p>
     29                    or write to us on email <a href="mailto:yoda@@wow-company.com">yoda@@wow-company.com</a>.</p>
    3030
    3131                <p>Also, you can send us your ideas and suggestions for improving the plugin.</p>
     
    8181                                </html>';
    8282                            $subject = $type . ': ' . $subject;
    83                             wp_mail( 'helper@wow-company.com', $subject, $message, $headers );
     83                            wp_mail( 'yoda@@wow-company.com', $subject, $message, $headers );
    8484                            echo '<div class="notice notice-success is-dismissible"><p>'
    8585                                 . esc_attr__( 'Your Message sent to the Support.', 'modal-window' ) . '</p></div>';
     
    8787                    } else {
    8888                        echo '<div class="notice notice-warning is-dismissible"><p>'
    89                              . esc_attr__( 'Sorry, but message did not send. Please, contact us helper@wow-company.com',
     89                             . esc_attr__( 'Sorry, but message did not send. Please, contact us yoda@@wow-company.com',
    9090                                'modal-window' ) . ' </p></div>';
    9191                    }
  • modal-window/trunk/admin/page-tools.php

    r2623560 r2971132  
    66 * @package     Wow_Plugin
    77 * @subpackage  Admin/Main_page
    8  * @author      Wow-Company <helper@wow-company.com>
     8 * @author      Wow-Company <yoda@@wow-company.com>
    99 * @copyright   2019 Wow-Company
    1010 * @license     GNU Public License
  • modal-window/trunk/includes/class-wow-company.php

    r2758642 r2971132  
    99 * @license     GNU Public License
    1010 * @version     1.0
    11 
    1211 */
    1312
     
    2423 */
    2524final class Wow_Company {
    26    
     25
    2726    public function __construct() {
    28        
    2927        // Functions for Class
    3028        add_action( 'admin_menu', array( $this, 'add_menu' ) );
    3129        add_action( 'plugins_loaded', array( $this, 'plugin_check' ) );
    32         add_action('admin_enqueue_scripts', array( $this, 'admin_style') );
     30        add_action( 'admin_enqueue_scripts', array( $this, 'admin_style' ) );
    3331    }
    3432
    35     public function admin_style($hook) {
     33    public function admin_style( $hook ) {
     34        wp_enqueue_style( 'wow-page', plugin_dir_url( __FILE__ ) . 'about/style.css' );
     35    }
    3636
    37         wp_enqueue_style( 'wow-page', plugin_dir_url(__FILE__) .'about/style.css');
    38 
    39     }
    40    
    4137    /**
    4238     * Register the plugin menu on sidebar menu in admin panel.
     
    5147            'main_page',
    5248        ), $icon );
    53         add_submenu_page( 'wow-company', 'Welcome to Wow-Company', 'Welcome', 'manage_options', 'wow-company' );
     49        $menu_logo  = $this->menu_logo();
     50        $menu_title = $menu_logo . __( 'Welcome', 'modal-window' );
     51
     52        add_submenu_page( 'wow-company', 'Welcome to Wow-Company', $menu_title, 'manage_options', 'wow-company' );
    5453    }
    55    
     54
     55    private function menu_logo() {
     56        return '<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
     57 width="15" height="15" viewBox="0 0 512.000000 512.000000"
     58 preserveAspectRatio="xMidYMid meet" class="wowp-menu-logo">
     59
     60<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
     61fill="currentColor" stroke="none">
     62<path d="M2493 5105 c-18 -8 -42 -29 -53 -47 -19 -32 -20 -49 -20 -538 l0
     63-506 -772 -549 c-425 -303 -788 -563 -806 -579 -57 -50 -77 -100 -77 -192 0
     64-72 3 -86 30 -129 36 -59 101 -110 155 -125 l40 -11 0 -1214 0 -1215 205 0
     65205 0 0 1313 0 1312 183 129 c100 71 358 255 574 408 l392 279 556 -392 555
     66-393 0 -1328 0 -1328 205 0 205 0 0 1215 0 1215 33 1 c79 2 169 61 212 140 25
     6746 30 65 30 124 -1 58 -6 79 -30 124 -36 66 32 15 -903 676 l-722 510 0 88 0
     6887 480 0 c264 0 480 2 480 5 0 3 -59 94 -131 201 l-131 196 131 197 131 196
     69-480 3 c-450 2 -480 3 -480 20 0 32 -36 85 -71 104 -40 21 -82 22 -126 3z"/>
     70<path d="M2141 2831 l-411 -266 3 -475 c2 -441 3 -478 21 -513 26 -52 65 -77
     71139 -88 84 -12 1246 -11 1321 1 75 12 119 45 143 107 17 44 18 85 18 507 l0
     72460 -335 218 c-184 120 -369 240 -411 267 l-76 49 -412 -267z m624 -353 l205
     73-133 0 -227 0 -228 -415 0 -415 0 0 229 0 228 203 131 c111 73 205 132 210
     74132 4 0 100 -60 212 -132z"/>
     75<path d="M2451 1340 c-81 -12 -180 -43 -256 -83 -91 -47 -213 -174 -258 -267
     76-68 -140 -70 -152 -75 -592 l-4 -398 211 0 211 0 0 368 c0 347 2 369 21 412
     7782 182 334 219 463 68 64 -74 66 -91 66 -490 l0 -358 205 0 205 0 0 383 c0
     78434 -5 472 -77 610 -123 236 -429 385 -712 347z"/>
     79</g>
     80</svg>';
     81    }
     82
    5683    /**
    5784     * Include the main file
     
    5986    public function main_page() {
    6087        require_once 'about/main.php';
    61 
    6288    }
    6389
     
    7197        }
    7298    }
    73    
     99
    74100    // Save in the database for older fersions
    75101    public function save_data() {
  • modal-window/trunk/languages/modal-window.pot

    r2758642 r2971132  
    238238#: admin/page-support.php:89
    239239msgid ""
    240 "Sorry, but message did not send. Please, contact us helper@wow-company.com"
     240"Sorry, but message did not send. Please, contact us yoda@@wow-company.com"
    241241msgstr ""
    242242
  • modal-window/trunk/modal-window.php

    r2915607 r2971132  
    44 * Plugin URI:        https://wordpress.org/plugins/modal-window/
    55 * Description:       Create popups. Insert any content. Trigger on anything.
    6  * Version:           5.3.5
     6 * Version:           5.3.6
    77 * Author:            Wow-Company
    88 * Author URI:        https://wow-estore.com/
     
    5050                    'prefix'    => 'mwp', // Prefix for database
    5151                    'text'      => 'modal-window',    // Text domain for translate files
    52                     'version'   => '5.3.5', // Current version of the plugin
     52                    'version'   => '5.3.6', // Current version of the plugin
    5353                    'file'      => __FILE__, // Main file of the plugin
    5454                    'slug'      => dirname( plugin_basename( __FILE__ ) ), // Name of the plugin folder
  • modal-window/trunk/public/class-public.php

    r2758642 r2971132  
    2121
    2222    public function __construct( $info ) {
    23 
    2423        $this->plugin = $info['plugin'];
    2524        $this->url    = $info['url'];
     
    4140
    4241        add_action( 'wp_footer', array( $this, 'display' ) );
    43 
    4442    }
    4543
    4644    function shortcode( $atts ) {
     45        $atts = shortcode_atts(
     46            [ 'id' => '' ],
     47            $atts,
     48            $this->plugin['shortcode']
     49        );
     50
     51        $id = absint( $atts['id'] );
     52
    4753        ob_start();
    4854        require plugin_dir_path( __FILE__ ) . 'shortcode.php';
     
    6773
    6874    function shortcode_columns( $atts, $content = null ) {
    69         extract( shortcode_atts( array( 'width' => "", 'align' => '' ), $atts ) );
    70         $width = ! empty( $width ) ? $width : '12';
    71         $align = ! empty( $align ) ? $align : 'left';
    7275
    73         return '<div class="wow-col-' . $width . '" style="text-align: ' . $align . '">' . do_shortcode( $content ) . '</div>';
     76        $atts = shortcode_atts(
     77            [ 'width' => "12", 'align' => 'left' ],
     78            $atts,
     79            'w-column'
     80        );
     81
     82        return '<div class="wow-col-' . esc_attr($atts['width']) . '" style="text-align: ' . esc_attr($atts['align']) . '">' . do_shortcode( $content ) . '</div>';
    7483    }
    7584
     
    134143        $extra .= ! empty( $atts['style'] ) ? ' style="' . esc_attr( $atts['style'] ) . '"' : '';
    135144
    136         $iframe = '<iframe width="' . absint( $atts['width'] ) . '" height="' . absint( $atts['height'] ) . '" src="' . esc_url( $atts['link'] ) . '"' . wp_kses_post($extra) . '></iframe>';
     145        $iframe = '<iframe width="' . absint( $atts['width'] ) . '" height="' . absint( $atts['height'] ) . '" src="' . esc_url( $atts['link'] ) . '"' . wp_kses_post( $extra ) . '></iframe>';
    137146
    138147        return $iframe;
    139148    }
    140 
    141149
    142150
     
    164172
    165173
     174    private function check( $param, $id ) {
     175        $check  = true;
     176        $cookie = $this->check_cookie( $param, $id );
    166177
    167     private function check( $param, $id ) {
    168         $check   = true;
    169         $cookie  = $this->check_cookie( $param, $id );
    170 
    171         if ( empty($param['test_mode']) ) {
     178        if ( empty( $param['test_mode'] ) ) {
    172179            if ( $cookie === false ) {
    173180                $check = false;
    174181            }
    175 
    176182        } else {
    177183            if ( ! current_user_can( 'administrator' ) ) {
  • modal-window/trunk/public/shortcode.php

    r2339642 r2971132  
    1414}
    1515
    16 extract( shortcode_atts( array( 'id' => "" ), $atts ) );
    1716global $wpdb;
    1817$table  = $wpdb->prefix . 'wow_' . $this->plugin['prefix'];
Note: See TracChangeset for help on using the changeset viewer.