403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.216.14
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/x9dppmxs4rgd/public_html/wp-content/plugins/publishpress/common/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/x9dppmxs4rgd/public_html/wp-content/plugins/publishpress/common/js/pp_date.js
/**
 * @package PublishPress
 * @author PublishPress
 *
 * Copyright (c) 2018 PublishPress
 *
 * ------------------------------------------------------------------------------
 * Based on Edit Flow
 * Author: Daniel Bachhuber, Scott Bressler, Mohammad Jangda, Automattic, and
 * others
 * Copyright (c) 2009-2016 Mohammad Jangda, Daniel Bachhuber, et al.
 * ------------------------------------------------------------------------------
 *
 * This file is part of PublishPress
 *
 * PublishPress is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * PublishPress is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with PublishPress.  If not, see <http://www.gnu.org/licenses/>.
 */

jQuery(document).ready(function ($) {
  function getOptions (self, custom_options) {
    var default_options = {
      dateFormat: objectL10ndate.date_format,
      firstDay: pp_week_first_day
    };

    var options = $.extend({}, default_options, custom_options);
    var altFieldName = self.attr('data-alt-field');

    if ((!altFieldName) || typeof altFieldName == 'undefined' || altFieldName.length == 0) {
      return options;
    }

    return $.extend({}, options, {
      altField: 'input[name="'+ altFieldName +'"]',
      altFormat: self.attr('data-alt-format'),
    });
  }

  $('.date-time-pick').each(function () {
    var self = $(this);
    var options = getOptions(self, {
      alwaysSetTime: false,
      controlType: 'select',
      altFieldTimeOnly: false
    });
    self.datetimepicker(options);
  });

  $('.date-pick').each(function () {
    var self = $(this);
    var options = getOptions(self, {});
    self.datepicker(options);
  });
});

Youez - 2016 - github.com/yon3zu
LinuXploit