function sc_dateplus_holiday_month($parm) { if (isset($parm['long'])) { $format = 'long'; } else { if (isset($parm['short'])) { $format = 'short'; } else { $format = ''; } } return formatMonth($this->var['month'], $format); }
/* * Date+ - An advanced date display menu for e107 * * Copyright (C) 2010-2015 Patrick Weaver (http://trickmod.com/) * For additional information refer to the README.mkd file. * */ require_once '../../class2.php'; require_once HEADERF; require_once e_PLUGIN . 'dateplus/_class.php'; $pref = e107::pref('dateplus'); $month = date('n'); $day = date('j'); $year = date('Y'); $calendar = ' <h3 class="center">' . formatMonth($month, 'long') . ' ' . $year . '</h3> <table class="table table-bordered"> <thead> <tr>'; $headings = array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'); foreach ($headings as $heading) { $calendar .= ' <th style="width:14%">' . $heading . '</th>'; } $running_day = date('w', mktime(0, 0, 0, $month, 1, $year)); $days_in_month = date('t', mktime(0, 0, 0, $month, 1, $year)); $days_in_this_week = 1; $day_counter = 0; $dates_array = array(); $calendar .= ' </tr>
<option value="2015">2015</option> <option value="2016">2016</option> <option value="2017">2017</option> </select> <input type="submit"/> </form> <article> <header> <h1> <?php if (!is_null($year)) { echo $year; } ?> </h1> </header> <section> <?php $i = 1; if (!is_null($year)) { for ($i = 1; $i <= 12; $i++) { echo formatMonth(generateMonth($i, intval($year)), $i); } } ?> </section> </article> </main> </body> </html>