コード例 #1
0
<?php

/**
 *  Opening Hours: Template: Part: MetaBox OP Set
 */
use OpeningHours\Module\OpeningHours;
use OpeningHours\Module\CustomPostType\MetaBox\OpeningHours as MetaBox;
use OpeningHours\Util\Weekdays;
MetaBox::nonceField();
?>

<div class="opening-hours">

	<table class="form-table form-opening-hours">
		<tbody>
		<?php 
foreach (Weekdays::getWeekdays() as $index => $weekday) {
    ?>
			<tr class="periods-day">
				<td class="col-name" valign="top">
					<?php 
    echo $weekday->getName();
    ?>
				</td>

				<td class="col-times" colspan="2" valign="top">
					<div class="period-container" data-day="<?php 
    echo $index;
    ?>
"
					     data-set="<?php 
コード例 #2
0
ファイル: Set.php プロジェクト: misagues/WP-Opening-Hours
 /** Constructor */
 public function __construct()
 {
     $this->registerHookCallbacks();
     static::$metaBoxes = array('OpeningHours' => MetaBox\OpeningHours::getInstance(), 'Holidays' => MetaBox\Holidays::getInstance(), 'IrregularOpenings' => MetaBox\IrregularOpenings::getInstance(), 'Donation' => MetaBox\Donation::getInstance());
 }