Plugin Directory

Changeset 2174272


Ignore:
Timestamp:
10/16/2019 01:58:53 PM (6 years ago)
Author:
pusheco
Message:

Add support for ltr direction dialog

Location:
pushe-webpush/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pushe-webpush/trunk/inc/base/WebpushScripts.php

    r2157199 r2174272  
    110110        $mobilePosition = $this->getModalOptionsValue('mobilePosition');
    111111        $dialogRetryRate = $this->getModalOptionsValue('dialogRetryRate');
    112 
     112        $direction = $this->getModalOptionsValue('dialogDirection');
    113113
    114114        $output = '<script src="https://static.pushe.co/pusheweb.js"></script>';
     
    137137            $output .= ',dialogRetryRate:' . $dialogRetryRate;
    138138        }
     139        if (boolval($direction)) {
     140            $output .= ',direction:' . '"' . $direction . '"';
     141        }
    139142        $output .= '};';
    140143        $output .= 'Pushe.subscribe(options);</script>';
  • pushe-webpush/trunk/inc/pages/SettingsFieldsBuilder.php

    r2157199 r2174272  
    149149                'section' => 'pushe_modal_options_section',
    150150            ),
     151            'dialogDirection' => array(
     152                'title' => __('dialog direction', 'pushe-webpush'),
     153                'placeholder' => 'dialog direction',
     154                'option_group' => self::$modal_options_group,
     155                'sanitizeCallback' => array($modalOptionsCallback, 'inputSanitize'),
     156                'inputCallback' => array($modalOptionsCallback, 'handleSettingsInput'),
     157                'page' => 'pushe_modal_options',
     158                'section' => 'pushe_modal_options_section',
     159                'inputType' => 'select',
     160                'options' => array(
     161                    'rtl', 'ltr',
     162                ),
     163            ),
    151164        );
    152165       
  • pushe-webpush/trunk/pushe-webpush.php

    r2165116 r2174272  
    66 * Plugin Name: Pushe Webpush
    77 * Description: Official Pushe.co's webpush plugin for wordpress.
    8  * version: 0.4.1
     8 * version: 0.4.2
    99 * Author: pushe.co
    1010 * Author URI: https://pushe.co
  • pushe-webpush/trunk/readme.txt

    r2165116 r2174272  
    4343== Changelog ==
    4444
     45= 0.4.2 =
     46* Add support for ltr dialog
     47
    4548= 0.4.1 =
    4649* Fix plugin settings link
Note: See TracChangeset for help on using the changeset viewer.