Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_osmembership/view/subscription/tmpl/default_reminder_emails_info.php
Ðазад
<?php /** * @package Joomla * @subpackage Membership Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2012 - 2025 Ossolution Team * @license GNU/GPL, see LICENSE.php */ use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\PluginHelper; /** * Layout variables * * @var OSMembershipTablePlan $plan */ ?> <fieldset class="form-horizontal options-form"> <legend><?php echo Text::_('OSM_REMINDER_EMAILS_INFORMATION'); ?></legend> <?php if ($plan->send_first_reminder != 0) { ?> <div class="control-group"> <div class="control-label"> <?php echo Text::_('OSM_FIRST_REMINDER_EMAIL'); ?> </div> <div class="controls"> <?php echo OSMembershipHelperHtml::getBooleanInput('first_reminder_sent', $this->item->first_reminder_sent); if ($this->item->first_reminder_sent && (int) $this->item->first_reminder_sent_at) { echo Text::sprintf('OSM_SENT_AT', HTMLHelper::_('date', $this->item->first_reminder_sent_at, $this->config->date_format . ' H:i:s')); } elseif($this->item->first_reminder_sent) { echo Text::_('OSM_WILL_NOT_BE_SENT'); } else { $date = Factory::getDate($this->item->to_date); if ($plan->send_first_reminder > 0) { $date->modify('-' . $plan->send_first_reminder . ' days'); } else { $date->modify('+' . abs($plan->send_first_reminder) . ' days'); } echo Text::sprintf('OSM_WILL_BE_SENT_AT', HTMLHelper::_('date', $date->toSql(), $this->config->date_format . ' H:i:s')); } ?> </div> </div> <?php } if ($plan->send_second_reminder != 0) { ?> <div class="control-group"> <div class="control-label"> <?php echo Text::_('OSM_SECOND_REMINDER_EMAIL'); ?> </div> <div class="controls"> <?php echo OSMembershipHelperHtml::getBooleanInput('second_reminder_sent', $this->item->second_reminder_sent); if ($this->item->second_reminder_sent && (int) $this->item->second_reminder_sent_at) { echo Text::sprintf('OSM_SENT_AT', HTMLHelper::_('date', $this->item->second_reminder_sent_at, $this->config->date_format . ' H:i:s')); } elseif($this->item->second_reminder_sent) { echo Text::_('OSM_WILL_NOT_BE_SENT'); } else { $date = Factory::getDate($this->item->to_date); if ($plan->send_second_reminder > 0) { $date->modify('-' . $plan->send_second_reminder . ' days'); } else { $date->modify('+' . abs($plan->send_second_reminder) . ' days'); } echo Text::sprintf('OSM_WILL_BE_SENT_AT', HTMLHelper::_('date', $date->toSql(), $this->config->date_format . ' H:i:s')); } ?> </div> </div> <?php } if ($plan->send_third_reminder != 0) { ?> <div class="control-group"> <div class="control-label"> <?php echo Text::_('OSM_THIRD_REMINDER_EMAIL'); ?> </div> <div class="controls"> <?php echo OSMembershipHelperHtml::getBooleanInput('third_reminder_sent', $this->item->third_reminder_sent); if ($this->item->third_reminder_sent && (int) $this->item->third_reminder_sent_at) { echo Text::sprintf('OSM_SENT_AT', HTMLHelper::_('date', $this->item->third_reminder_sent_at, $this->config->date_format . ' H:i:s')); } elseif($this->item->third_reminder_sent) { echo Text::_('OSM_WILL_NOT_BE_SENT'); } else { $date = Factory::getDate($this->item->to_date); if ($plan->send_third_reminder > 0) { $date->modify('-' . $plan->send_third_reminder . ' days'); } else { $date->modify('+' . abs($plan->send_third_reminder) . ' days'); } echo Text::sprintf('OSM_WILL_BE_SENT_AT', HTMLHelper::_('date', $date->toSql(), $this->config->date_format . ' H:i:s')); } ?> </div> </div> <?php } if (property_exists($plan, 'send_fourth_reminder') && $plan->send_fourth_reminder != 0) { ?> <div class="control-group"> <div class="control-label"> <?php echo Text::_('OSM_FOURTH_REMINDER_EMAIL'); ?> </div> <div class="controls"> <?php echo OSMembershipHelperHtml::getBooleanInput('fourth_reminder_sent', $this->item->fourth_reminder_sent); if ($this->item->fourth_reminder_sent && (int) $this->item->fourth_reminder_sent_at) { echo Text::sprintf('OSM_SENT_AT', HTMLHelper::_('date', $this->item->fourth_reminder_sent_at, $this->config->date_format . ' H:i:s')); } elseif($this->item->fourth_reminder_sent) { echo Text::_('OSM_WILL_NOT_BE_SENT'); } else { $date = Factory::getDate($this->item->to_date); if ($plan->send_fourth_reminder > 0) { $date->modify('-' . $plan->send_fourth_reminder . ' days'); } else { $date->modify('+' . abs($plan->send_fourth_reminder) . ' days'); } echo Text::sprintf('OSM_WILL_BE_SENT_AT', HTMLHelper::_('date', $date->toSql(), $this->config->date_format . ' H:i:s')); } ?> </div> </div> <?php } if (property_exists($plan, 'send_fifth_reminder') && $plan->send_fifth_reminder != 0) { ?> <div class="control-group"> <div class="control-label"> <?php echo Text::_('OSM_FIFTH_REMINDER_EMAIL'); ?> </div> <div class="controls"> <?php echo OSMembershipHelperHtml::getBooleanInput('fifth_reminder_sent', $this->item->fifth_reminder_sent); if ($this->item->fifth_reminder_sent && (int) $this->item->fifth_reminder_sent_at) { echo Text::sprintf('OSM_SENT_AT', HTMLHelper::_('date', $this->item->fifth_reminder_sent_at, $this->config->date_format . ' H:i:s')); } elseif($this->item->fifth_reminder_sent) { echo Text::_('OSM_WILL_NOT_BE_SENT'); } else { $date = Factory::getDate($this->item->to_date); if ($plan->send_fifth_reminder > 0) { $date->modify('-' . $plan->send_fifth_reminder . ' days'); } else { $date->modify('+' . abs($plan->send_fifth_reminder) . ' days'); } echo Text::sprintf('OSM_WILL_BE_SENT_AT', HTMLHelper::_('date', $date->toSql(), $this->config->date_format . ' H:i:s')); } ?> </div> </div> <?php } if (property_exists($plan, 'send_sixth_reminder') && $plan->send_sixth_reminder != 0) { ?> <div class="control-group"> <div class="control-label"> <?php echo Text::_('OSM_SIXTH_REMINDER_EMAIL'); ?> </div> <div class="controls"> <?php echo OSMembershipHelperHtml::getBooleanInput('sixth_reminder_sent', $this->item->sixth_reminder_sent); if ($this->item->sixth_reminder_sent && (int) $this->item->sixth_reminder_sent_at) { echo Text::sprintf('OSM_SENT_AT', HTMLHelper::_('date', $this->item->sixth_reminder_sent_at, $this->config->date_format . ' H:i:s')); } elseif($this->item->sixth_reminder_sent) { echo Text::_('OSM_WILL_NOT_BE_SENT'); } else { $date = Factory::getDate($this->item->to_date); if ($plan->send_sixth_reminder > 0) { $date->modify('-' . $plan->send_sixth_reminder . ' days'); } else { $date->modify('+' . abs($plan->send_sixth_reminder) . ' days'); } echo Text::sprintf('OSM_WILL_BE_SENT_AT', HTMLHelper::_('date', $date->toSql(), $this->config->date_format . ' H:i:s')); } ?> </div> </div> <?php } if ($plan->send_subscription_end != 0 && $this->item->subscription_end_sent && (int) $this->item->subscription_end_sent_at) { ?> <div class="control-group"> <div class="control-label"> <?php echo Text::_('OSM_SUBSCRIPTION_END_EMAIL'); ?> </div> <div class="controls"> <?php echo OSMembershipHelperHtml::getBooleanInput('subscription_end_sent', $this->item->subscription_end_sent); if ($this->item->subscription_end_sent && (int) $this->item->subscription_end_sent_at) { echo Text::sprintf('OSM_SENT_AT', HTMLHelper::_('date', $this->item->subscription_end_sent_at, $this->config->date_format . ' H:i:s')); } elseif($this->item->subscription_end_sent) { echo Text::_('OSM_WILL_NOT_BE_SENT'); } else { $date = Factory::getDate($this->item->to_date); if ($plan->send_subscription_end > 0) { $date->modify('-' . $plan->send_subscription_end . ' days'); } else { $date->modify('+' . abs($plan->send_subscription_end) . ' days'); } echo Text::sprintf('OSM_WILL_BE_SENT_AT', HTMLHelper::_('date', $date->toSql(), $this->config->date_format . ' H:i:s')); } ?> </div> </div> <?php } if ($plan->recurring_subscription && str_contains($this->item->payment_method, 'os_offline') && PluginHelper::isEnabled('system', 'mpofflinerecurringinvoice')) { ?> <div class="control-group"> <div class="control-label"> <?php echo Text::_('OSM_OFFLINE_RECURRING_EMAIL'); ?> </div> <div class="controls"> <?php echo OSMembershipHelperHtml::getBooleanInput('offline_recurring_email_sent', $this->item->offline_recurring_email_sent); ?> </div> </div> <?php } ?> </fieldset>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка