Beispiel #1
0
<?php

defined('SYSPATH') or die('No direct script access.');
?>

<?php 
if (Theme::get('premium') == 1 and Model_Coupon::available()) {
    ?>
<form class="form-inline"  method="post" action="<?php 
    echo URL::current();
    ?>
">         
    <?php 
    if (Model_Coupon::current()->loaded()) {
        ?>
        <?php 
        echo Form::hidden('coupon_delete', Model_Coupon::current()->name);
        ?>
        <button type="submit" class="btn btn-warning"><?php 
        echo _e('Delete');
        ?>
 <?php 
        echo Model_Coupon::current()->name;
        ?>
</button>
        <p>
            <?php 
        echo sprintf(__('Discount off %s'), Model_Coupon::current()->discount_amount == 0 ? round(Model_Coupon::current()->discount_percentage, 0) . '%' : i18n::money_format(Model_Coupon::current()->discount_amount));
        ?>
<br>
            <?php 
<?php

if (Model_Coupon::available() and Theme::get('premium') == 1) {
    ?>
<h3><?php 
    echo $widget->text_title;
    ?>
</h3>

<form class=""  method="post" action="<?php 
    echo URL::current();
    ?>
">         
    <?php 
    if (Model_Coupon::current()->loaded()) {
        ?>
        <?php 
        echo Form::hidden('coupon_delete', Model_Coupon::current()->name);
        ?>
        <button type="submit" class="btn btn-warning"><?php 
        echo __('Delete');
        ?>
 <?php 
        echo Model_Coupon::current()->name;
        ?>
</button>
        <p>
            <?php 
        echo __('Discount off');
        ?>
 <?php 
Beispiel #3
0
<?php

if (Model_Coupon::available()) {
    ?>
<h3><?php 
    echo $widget->text_title;
    ?>
</h3>

<form class=""  method="post" action="<?php 
    echo URL::current();
    ?>
">         
    <?php 
    if (Model_Coupon::current()->loaded()) {
        ?>
        <?php 
        echo Form::hidden('coupon_delete', Model_Coupon::current()->name);
        ?>
        <button type="submit" class="btn btn-warning"><?php 
        echo __('Delete');
        ?>
 <?php 
        echo Model_Coupon::current()->name;
        ?>
</button>
        <p>
            <?php 
        echo __('Discount off');
        ?>
 <?php