Plugin Directory

Changeset 2097005


Ignore:
Timestamp:
05/29/2019 08:30:55 AM (7 years ago)
Author:
X-NicON
Message:

dump 1.2.4

Location:
wp-post-expires
Files:
21 added
6 edited

Legend:

Unmodified
Added
Removed
  • wp-post-expires/trunk/assets/css/latoja.datepicker.css

    r2045296 r2097005  
    1 .ll-skin-latoja {
    2     font-size: 90%;
    3 }
    4 
    5 .ll-skin-latoja .ui-widget {
    6     font-family: "Helvetica Neue","Trebuchet MS",Tahoma,Verdana,Arial,sans-serif;
    7     background: #fff;
    8 }
    9 
    10 .ll-skin-latoja .ui-datepicker {
    11     padding: 0;
    12 }
    13 
    14 .ll-skin-latoja .ui-datepicker-header {
    15     border: none;
    16     font-size: 80%;
    17     -moz-border-radius: 4px 4px 0 0;
    18     -webkit-border-radius: 4px 4px 0 0;
    19     border-radius: 4px 4px 0 0; /* border radius */
    20     -moz-background-clip: padding;
    21     -webkit-background-clip: padding-box;
    22     background-clip: padding-box; /* prevents bg color from leaking outside the border */
    23     background-color: #e0e8ec; /* layer fill content */
    24     -moz-box-shadow: 0 1px 0 rgba(255,255,255,.53), inset 0 -1px 0 rgba(0,0,0,.12); /* drop shadow and inner shadow */
    25     -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.53), inset 0 -1px 0 rgba(0,0,0,.12); /* drop shadow and inner shadow */
    26     box-shadow: 0 1px 0 rgba(255,255,255,.53), inset 0 -1px 0 rgba(0,0,0,.12); /* drop shadow and inner shadow */
    27     background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iaGF0MCIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHgxPSI1MCUiIHkxPSIxMDAlIiB4Mj0iNTAlIiB5Mj0iLTEuNDIxMDg1NDcxNTIwMmUtMTQlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjIxIi8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwLjIxIi8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+); /* gradient overlay */
    28     background-image: -moz-linear-gradient(bottom, rgba(0,0,0,.21) 0%, rgba(255,255,255,.21) 100%); /* gradient overlay */
    29     background-image: -o-linear-gradient(bottom, rgba(0,0,0,.21) 0%, rgba(255,255,255,.21) 100%); /* gradient overlay */
    30     background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.21) 0%, rgba(255,255,255,.21) 100%); /* gradient overlay */
    31     background-image: linear-gradient(bottom, rgba(0,0,0,.21) 0%, rgba(255,255,255,.21) 100%); /* gradient overlay */
    32 }
    33 
    34 .ll-skin-latoja .ui-datepicker-title {
    35     color: #515d65; /* text color */
    36     font-size: 13px;
    37     font-weight: bold;
    38     text-shadow: 0 1px 1px rgba(255,255,255,.8); /* drop shadow */
    39 
    40 }
    41 
    42 .ll-skin-latoja .ui-icon-circle-triangle-e {
    43     background-image: url(images/ui-icons_454545_256x240.png);
    44     background-position: -32px -16px;
    45 }
    46 
    47 .ll-skin-latoja .ui-icon-circle-triangle-w {
    48     background-image: url(images/ui-icons_454545_256x240.png);
    49     background-position: -96px -16px;
    50 }
    51 
    52 .ll-skin-latoja .ui-datepicker .ui-datepicker-prev,
    53 .ll-skin-latoja .ui-datepicker .ui-datepicker-next {
    54     border-color: transparent;
    55 }
    56 
    57 .ll-skin-latoja .ui-state-default {
    58     background: transparent;
    59     border: none;
    60     color: #2b2b2b;
    61     font-family: "Myriad Pro";
    62     font-weight: normal;
    63     text-align: center;
    64 }
    65 
    66 .ll-skin-latoja .ui-datepicker-header .ui-state-hover {
    67     background: #bdc5c9;
    68 }
    69 
    70 .ll-skin-latoja .ui-datepicker table {
    71     margin: 0;
    72 }
    73 
    74 .ll-skin-latoja .ui-datepicker th {
    75     color: #9da7af;
    76     font-size: 12px;
    77     font-weight: normal;
    78     -moz-border-radius: 216px 0 0 0 / 0 0 0 0;
    79     -webkit-border-radius: 216px 0 0 0 / 0 0 0 0;
    80     border-radius: 216px 0 0 0 / 0 0 0 0;
    81     -moz-background-clip: padding;
    82     -webkit-background-clip: padding-box;
    83     background-clip: padding-box;
    84     background-color: rgba(0,0,0,.08);
    85 
    86 }
    87 
    88 .ll-skin-latoja .ui-datepicker td {
    89     border-top: 1px solid #ddd;
    90     border-right: 1px solid #ddd;
    91     padding: 0;
    92     -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
    93     -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
    94     box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
    95     background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iaGF0MCIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHgxPSI1MCUiIHkxPSIxMDAlIiB4Mj0iNTAlIiB5Mj0iLTEuNDIxMDg1NDcxNTIwMmUtMTQlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjA2Ii8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwLjA2Ii8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);
    96     background-image: -moz-linear-gradient(bottom, rgba(0,0,0,.06) 0%, rgba(255,255,255,.06) 100%);
    97     background-image: -o-linear-gradient(bottom, rgba(0,0,0,.06) 0%, rgba(255,255,255,.06) 100%);
    98     background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.06) 0%, rgba(255,255,255,.06) 100%);
    99     background-image: linear-gradient(bottom, rgba(0,0,0,.06) 0%, rgba(255,255,255,.06) 100%);
    100 
    101 }
    102 
    103 .ll-skin-latoja .ui-datepicker td:last-child {
    104     border-right: none;
    105 }
    106 
    107 .ll-skin-latoja .ui-datepicker td span,
    108 .ll-skin-latoja .ui-datepicker td a {
    109     padding: .7em 0;
    110     color: #6a747a;
    111     font-size: 12px;
    112     font-weight: bold;
    113     font-family: Arial;
    114 }
    115 
    116 .ll-skin-latoja .ui-datepicker-calendar .ui-state-hover {
    117     background-image: -moz-linear-gradient(bottom, rgba(0,0,0,.12) 0%, rgba(255,255,255,.06) 100%);
    118     background-image: -o-linear-gradient(bottom, rgba(0,0,0,.12) 0%, rgba(255,255,255,.06) 100%);
    119     background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.12) 0%, rgba(255,255,255,.06) 100%);
    120     background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.12) 0%, rgba(255,255,255,.06) 100%);
    121 }
    122 
    123 .ll-skin-latoja td a.ui-state-active,
    124 .ll-skin-latoja td a.ui-state-active.ui-state-hover {
    125     color: #fff;
    126     background-color: #8ab8ed;
    127     text-shadow: 0 1px 0 rgba(0,0,0,.26);
    128     -moz-box-shadow: inset 0 4px 9px rgba(0,0,0,.24);
    129     -webkit-box-shadow: inset 0 4px 9px rgba(0,0,0,.24);
    130     box-shadow: inset 0 4px 9px rgba(0,0,0,.24);
    131 }
    132 
    133 
     1.ll-skin-latoja{font-size:90%}.ll-skin-latoja .ui-widget{font-family:"Helvetica Neue","Trebuchet MS",Tahoma,Verdana,Arial,sans-serif;background:#fff}.ll-skin-latoja .ui-datepicker{padding:0}.ll-skin-latoja .ui-datepicker-header{border:none;font-size:80%;-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#e0e8ec;-moz-box-shadow:0 1px 0 rgba(255,255,255,.53),inset 0 -1px 0 rgba(0,0,0,.12);-webkit-box-shadow:0 1px 0 rgba(255,255,255,.53),inset 0 -1px 0 rgba(0,0,0,.12);box-shadow:0 1px 0 rgba(255,255,255,.53),inset 0 -1px 0 rgba(0,0,0,.12);background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iaGF0MCIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHgxPSI1MCUiIHkxPSIxMDAlIiB4Mj0iNTAlIiB5Mj0iLTEuNDIxMDg1NDcxNTIwMmUtMTQlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjIxIi8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwLjIxIi8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,.21) 0%,rgba(255,255,255,.21) 100%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,.21) 0%,rgba(255,255,255,.21) 100%);background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.21) 0%,rgba(255,255,255,.21) 100%);background-image:linear-gradient(bottom,rgba(0,0,0,.21) 0%,rgba(255,255,255,.21) 100%)}.ll-skin-latoja .ui-datepicker-title{color:#515d65;font-size:13px;font-weight:700;text-shadow:0 1px 1px rgba(255,255,255,.8)}.ll-skin-latoja .ui-icon-circle-triangle-e{background-image:url(images/ui-icons_454545_256x240.png);background-position:-32px -16px}.ll-skin-latoja .ui-icon-circle-triangle-w{background-image:url(images/ui-icons_454545_256x240.png);background-position:-96px -16px}.ll-skin-latoja .ui-datepicker .ui-datepicker-prev,.ll-skin-latoja .ui-datepicker .ui-datepicker-next{border-color:transparent}.ll-skin-latoja .ui-state-default{background:transparent;border:none;color:#2b2b2b;font-family:"Myriad Pro";font-weight:400;text-align:center}.ll-skin-latoja .ui-datepicker-header .ui-state-hover{background:#bdc5c9}.ll-skin-latoja .ui-datepicker table{margin:0}.ll-skin-latoja .ui-datepicker th{color:#9da7af;font-size:12px;font-weight:400;-moz-border-radius:216px 0 0 0 / 0 0 0 0;-webkit-border-radius:216px 0 0 0 / 0 0 0 0;border-radius:216px 0 0 0 / 0 0 0 0;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:rgba(0,0,0,.08)}.ll-skin-latoja .ui-datepicker td{border-top:1px solid #ddd;border-right:1px solid #ddd;padding:0;-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.4);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.4);background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iaGF0MCIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHgxPSI1MCUiIHkxPSIxMDAlIiB4Mj0iNTAlIiB5Mj0iLTEuNDIxMDg1NDcxNTIwMmUtMTQlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjA2Ii8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwLjA2Ii8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,.06) 0%,rgba(255,255,255,.06) 100%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,.06) 0%,rgba(255,255,255,.06) 100%);background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.06) 0%,rgba(255,255,255,.06) 100%);background-image:linear-gradient(bottom,rgba(0,0,0,.06) 0%,rgba(255,255,255,.06) 100%)}.ll-skin-latoja .ui-datepicker td:last-child{border-right:none}.ll-skin-latoja .ui-datepicker td span,.ll-skin-latoja .ui-datepicker td a{padding:.7em 0;color:#6a747a;font-size:12px;font-weight:700;font-family:Arial}.ll-skin-latoja .ui-datepicker-calendar .ui-state-hover{background-image:-moz-linear-gradient(bottom,rgba(0,0,0,.12) 0%,rgba(255,255,255,.06) 100%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,.12) 0%,rgba(255,255,255,.06) 100%);background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.12) 0%,rgba(255,255,255,.06) 100%);background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.12) 0%,rgba(255,255,255,.06) 100%)}.ll-skin-latoja td a.ui-state-active,.ll-skin-latoja td a.ui-state-active.ui-state-hover{color:#fff;background-color:#8ab8ed;text-shadow:0 1px 0 rgba(0,0,0,.26);-moz-box-shadow:inset 0 4px 9px rgba(0,0,0,.24);-webkit-box-shadow:inset 0 4px 9px rgba(0,0,0,.24);box-shadow:inset 0 4px 9px rgba(0,0,0,.24)}
  • wp-post-expires/trunk/assets/js/plugin-scripts-classic.js

    r2095669 r2097005  
    2828    });
    2929});
    30 
    31 /* FUTURE
    32 ( function( wp ) {
    33     let el = wp.element.createElement;
    34     function Component() {
    35         let meta = wp.data.select('core/editor').getEditedPostAttribute('meta');
    36         if(meta['xn-wppe-expiration'].length > 0) {
    37             return el(wp.element.Fragment, {},
    38                 el(wp.editPost.PluginPostStatusInfo, {},
    39                     wp.i18n.__('Expires', 'wp-post-expires') + ' ' + meta['xn-wppe-expiration'],
    40                 )
    41             );
    42         }
    43 
    44         return '';
    45     }
    46 
    47     wp.plugins.registerPlugin('xn-wppe', {
    48         render: Component
    49     });
    50 
    51 } )( window.wp );
    52 */
  • wp-post-expires/trunk/assets/js/plugin-scripts.js

    r2095669 r2097005  
    33    function Component() {
    44        let meta = wp.data.select('core/editor').getEditedPostAttribute('meta');
    5         if(meta['xn-wppe-expiration'].length > 0) {
     5        if(meta && meta['xn-wppe-expiration'].length > 0) {
    66            return el(wp.element.Fragment, {},
    77                el(wp.editPost.PluginPostStatusInfo, null, [
     
    99                        el('div', null, [
    1010                            el(wp.components.Dashicon, {icon: 'clock', className: 'xn-clock-icon'}, null),
    11                             wp.date.dateI18n(wp.date.__experimentalGetSettings()['formats']['datetime'], meta['xn-wppe-expiration'])
     11                            wp.date.dateI18n(wp.date.__experimentalGetSettings()['formats']['datetime'],
     12                                meta['xn-wppe-expiration'] + ':00')
    1213                        ])
    1314                    ]
  • wp-post-expires/trunk/readme.txt

    r2095669 r2097005  
    55Requires at least: 5.0
    66Tested up to: 5.2.1
    7 Stable tag: 1.2.3
     7Stable tag: 1.2.4
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242== Changelog ==
    4343
     44= 1.2.4 =
     45
     46fix bugs classic editor/gutenberg js, tnx @micahjsharp
     47
    4448= 1.2.3 =
    4549
    46 fix bugs
     50add status in post state
     51change logic for draft and trash, tnx @micahjsharp
     52use local wp timezone
    4753
    4854= 1.2.2 =
  • wp-post-expires/trunk/uninstall.php

    r1475897 r2097005  
    22
    33if(!defined('WP_UNINSTALL_PLUGIN')) {
    4   exit();
     4  exit;
    55}
    66
  • wp-post-expires/trunk/wp-post-expires.php

    r2095669 r2097005  
    33Plugin Name: WP Post Expires
    44Description: A simple plugin allow to set the posts, the time after which will be performed one of 3 actions: "Add prefix to title", "Move to drafts", "Move to trash".
    5 Version:     1.2.3
     5Version:     1.2.4
    66Author:      XNicON
    77Author URI:  https://xnicon.ru
     
    2828
    2929class XNPostExpires {
    30     private $plugin_version = '1.2.3';
     30    private $plugin_version = '1.2.4';
    3131    private $url_assets;
    3232    private static $timezone;
    33     public $settings = [];
     33    private $settings = [];
    3434
    3535    public static function init() {
     
    4646        add_action('the_post', [$this, 'expiredPost']);
    4747
    48         if(current_user_can('manage_options')) {
     48        if (current_user_can('manage_options')) {
    4949            add_action('admin_init', [$this, 'registerSettings']);
    5050        }
    5151
    52         if(current_user_can('edit_posts')) {
    53             add_action('admin_init', [$this, 'gutenbergOrClassic']);
     52        if (current_user_can('edit_posts')) {
     53            add_action('admin_enqueue_scripts', [$this, 'gutenbergOrClassic']);
    5454
    5555            add_action('add_meta_boxes', [$this, 'addMetaBox']);
     
    5757        }
    5858
    59         register_meta('post', 'xn-wppe-expiration', ['show_in_rest' => true]);
    60         register_meta('post', 'xn-wppe-expiration-action', ['show_in_rest' => true]);
    61         register_meta('post', 'xn-wppe-expiration-prefix', ['show_in_rest' => true]);
     59        foreach (array_keys($this->settings['post_types']) as $type) {
     60            register_meta($type, 'xn-wppe-expiration', ['show_in_rest' => true]);
     61            register_meta($type, 'xn-wppe-expiration-action', ['show_in_rest' => true]);
     62            register_meta($type, 'xn-wppe-expiration-prefix', ['show_in_rest' => true]);
     63        }
    6264    }
    6365
     
    7173        if(!isset($settings_load['post_types'])) {
    7274            $settings_load['post_types']['post'] = 1;
    73             $settings_load['post_types']['page'] = 0;
    7475        }
    7576
     
    8788    }
    8889
    89     public function gutenbergOrClassic() {
    90         if(!is_plugin_active('classic-editor/classic-editor.php')) {
    91             add_action('enqueue_block_editor_assets', [$this, 'loadScripts']);
    92         } elseif(is_admin()) {
    93             $this->loadScriptsClassic();
     90    public function gutenbergOrClassic( $hook ) {
     91        global $post;
     92
     93        if (($hook == 'post-new.php' || $hook == 'post.php')
     94            && in_array($post->post_type, array_keys($this->settings['post_types']))) {
     95
     96            if (use_block_editor_for_post($post->ID)) {
     97                $this->loadScripts();
     98            } else {
     99                $this->loadScriptsClassic();
     100            }
    94101        }
    95102    }
     
    112119
    113120    public function addMetaBox() {
    114         add_meta_box('xn_box_expiration',
    115             __('Expires', 'wp-post-expires'),
    116             [$this, 'addBoxFields'],
    117             array_keys($this->settings['post_types']),
    118             'side',
    119             'default',
    120             [
    121                 '__back_compat_meta_box' => false
    122             ]
     121        add_meta_box('xn_box_expiration', __('Expires', 'wp-post-expires'),
     122            [$this, 'addBoxFields'], array_keys($this->settings['post_types']),
     123            'side', 'default', ['__back_compat_meta_box' => false]
    123124        );
    124125    }
     
    144145        <div class="components-panel__row">
    145146            <div><?php _e('DateTime', 'wp-post-expires'); ?></div>
    146             <div><input type="text" name="xn-wppe-expiration" id="xn-wppe-datetime" style="width:100%" value="<?php echo $date; ?>" placeholder="<?php _e('yyyy-mm-dd h:i','wp-post-expires'); ?>"></div>
     147            <div><input type="text" name="xn-wppe-expiration" id="xn-wppe-datetime" style="width:100%" value="<?php echo $date; ?>" placeholder="<?php _e('yyyy-mm-dd h:i', 'wp-post-expires'); ?>"></div>
    147148        </div>
    148149
Note: See TracChangeset for help on using the changeset viewer.