示例#1
0
<div class="ul-tit" style="margin: 0 0 30px 0;">Don't you have an account?
<a href="<?php 
echo tlink('user/register');
?>
" class="btn">Register new account</a>
</div>

<div class="social_share">
<?php 
if (facebook_login()) {
    ?>
  <a href="<?php 
    echo tlink('plugin/facebook_login.html');
    ?>
" class="facebook" style="width: 100%;">Login with Facebook</a>
<?php 
}
if (google_login()) {
    ?>
  <a href="<?php 
    echo tlink('plugin/google_login.html');
    ?>
" class="google" style="width: 100%;">Login with Google+</a>
<?php 
}
?>
</div>

</div>

</div>
示例#2
0
</div>

</div>

<div class="share-coupon" style="display: block;">

Share on social networks or copy the link and share anywhere:

<div class="shareto">

<ul>
<li class="share-fb" data-ttip="Share this on Facebook"><a href="#" onclick="openwindow(\'https://www.facebook.com/sharer/sharer.php?u=' . $item->link . '\', 500, 500, \'yes\');"></a></li>
<li class="share-tw" data-ttip="Share this on Twitter"><a href="#" onclick="openwindow(\'https://twitter.com/home?status=' . $item->link . '\', 500, 500, \'yes\');"></a></li>
<li class="share-go" data-ttip="Share this on Google+"><a href="#" onclick="openwindow(\'https://plus.google.com/share?url=' . $item->link . '\', 500, 500, \'yes\');"></a></li>
<li class="share-li" data-ttip="Share this on Linkedin"><a href="#" onclick="openwindow(\'https://www.linkedin.com/shareArticle?mini=true&amp;url=' . $item->link . '&amp;title=' . $item->name . '&amp;summary=&amp;source=\', 500, 500, \'yes\');"></a></li>
<li class="share-rss" data-ttip="RSS Feed"><a href="' . tlink('plugin/rss2.xml', 'store=' . $item->ID) . '"></a></li>
</ul>

<input type="text" value="' . $item->link . '" onclick="$(this).select();" />

</div>

</div>

</article>';
    if (me()) {
        echo '<a href="#" class="btn write_review"' . ($_SERVER['REQUEST_METHOD'] == 'POST' ? ' style="display: none;"' : '') . '>Write Review</a>';
        echo '<div' . ($_SERVER['REQUEST_METHOD'] != 'POST' ? ' style="display: none;"' : '') . '>' . write_review_form() . '</div>';
    }
    if ($item->reviews > 0) {
        echo '<div class="text-tit" style="margin-top: 15px;">Reviews: ' . (($rev_rest = $item->reviews - 3) > 0 ? '<a href="' . $item->reviews_link . '" class="nice_a">(see other ' . $rev_rest . ' reviews)</a>' : '') . '</div>';
示例#3
0
<li class="share-li" data-ttip="Share this on Linkedin"><a href="#" onclick="openwindow(\'https://www.linkedin.com/shareArticle?mini=true&amp;url=' . $item->link . '&amp;title=' . $item->name . '&amp;summary=&amp;source=\', 500, 500, \'yes\');"></a></li>
<li class="share-rss" data-ttip="RSS Feed"><a href="' . tlink('plugin/rss2.xml', 'store=' . $item->ID) . '"></a></li>
</ul>

<input type="text" value="' . $item->link . '" onclick="$(this).select();" />

</div>

</div>

</article>';
        }
        if (isset($pagination['prev_page']) || isset($pagination['next_page'])) {
            echo '<div class="pagination">';
            echo isset($pagination['prev_page']) ? '<span><a href="' . $pagination['prev_page'] . '" class="btn">&#8592; Prev</a></span>' : '<span class="btn" style="opacity: 0.2;">&#8592; Prev</span>';
            echo isset($pagination['next_page']) ? '<span><a href="' . $pagination['next_page'] . '" class="btn">Next &#8594;</a></span>' : '<span class="btn" style="opacity: 0.2;">Next &#8594;</span>';
            echo '<span>Page ' . $pagination['page'] . ' / ' . $pagination['pages'] . '</span>';
            echo '</div>';
        }
    } else {
        echo '<div style="text-align:center; margin-top: 20px;">You don\'t have favorite stores/brands yet. <br />
  <a href="' . tlink('stores') . '" class="nice_a">Choose from the list</a></div>';
    }
    echo '</div>

<div class="right">';
    echo show_widgets('right');
    echo '</div>';
} else {
    echo read_template_part('404');
}
示例#4
0
        }
        if (($ppdv = option('u_points_review')) > 0) {
            $rewards[] = $ppdv . ' points for every review you write';
        }
        if (($pref = option('u_points_refer')) > 0) {
            $rewards[] = $pref . ' points for every friend referred';
        }
        ?>

<div class="answer">We always try to reward our members for their activity, so you get <?php 
        echo implode($rewards, ', ');
        ?>
.</div>
<a href="#">How do I redeem points?</a>
<div class="answer">Click on <a href="<?php 
        echo tlink('user/rewards');
        ?>
">'Claim Now'</a> and choose a reward from the list.</div>
</div>

<?php 
        if ($pref > 0) {
            ?>

<section style="margin-top: 15px;">

<h2>Refer a friend</h2>

<div style="margin: 3px 0 13px 0; line-height: normal; text-align: justify;">Share on social networks or copy the link and share anywhere and you'll get <?php 
            echo $pref;
            ?>
示例#5
0
<?php

echo '<div class="widget widget_search' . (!$mobile_view ? ' mobile_view' : '') . '">';
if (!empty($title)) {
    echo '<h2>' . $title . '</h2>';
}
echo '

<form action="' . tlink('search') . '" method="GET">
<input type="text" name="s" />
<button>' . $LANG['search'] . '</button>
</form>
</div>';
示例#6
0
<header>

<div class="top-bar">

<div class="left">
  <a href="<?php 
echo tlink('index');
?>
"><div class="logo"></div></a>
</div>

<div class="right">

<form action="<?php 
echo tlink('search');
?>
" method="GET" onsubmit='if( $(this).find("input").val().length == 0 ) return false;'>
<input type="text" name="s" maxlength="50" placeholder="Search and Save" />
<select name="type">
<option value="coupons">Coupons</option>
<?php 
echo !theme_has_products() ?: '<option value="products">Products</option>';
?>
</select>
<button class="search_button">Search</button>
</form>

</div>

</div>
示例#7
0
<ul>
<li><a href="<?php 
echo tlink('tpage/contact');
?>
">Contact</a></li>
<li><a href="<?php 
echo tlink('page', array('seo' => 'About_Us-1.html', 'notseo' => 'p=1'));
?>
">About Us</a></li>
<li><a href="<?php 
echo tlink('user/register');
?>
">Register</a></li>
<li><a href="<?php 
echo tlink('user/login');
?>
">Sign In</a></li>
</ul>

</div>

<div class="right">

<div class="site_desc"><?php 
echo description();
?>
</div>

Powered by <a href="//couponscms.com">CouponsCMS.com</a>
示例#8
0
<li class="share-li" data-ttip="Share this on Linkedin"><a href="#" onclick="openwindow(\'https://www.linkedin.com/shareArticle?mini=true&amp;url=' . $item->link . '&amp;title=' . $item->title . '&amp;summary=&amp;source=\', 500, 500, \'yes\');"></a></li>
</ul>

<input type="text" value="' . $item->link . '" onclick="$(this).select();" />

</div>

</div>

</article>';
        }
    }
} else {
    if (exists()) {
        echo '<div class="title">
  <span style="color: #efefef;">' . $category->name . '</span> Coupons <div class="shareico" style="position: relative; float: right;" data-ttip="RSS Feed"><a href="' . tlink('plugin/rss2.xml', 'cat=' . $category->ID) . '"></a></div>
</div>

<div style="margin-bottom: 20px;">

<ul class="category">
<li class="active">Coupons</li>';
        if (theme_has_products()) {
            echo '<li><a href="' . get_update(array('page' => 1, 'type' => 'products')) . '">Products</a></li>';
        }
        echo '</ul>';
        if (!empty($category->description)) {
            echo '<article class="array_item category_box" style="border-top: 0;">' . $category->description . '</article>';
        }
        echo '</div>';
        if (results()) {
示例#9
0
<?php

if (($me = me()) && theme_has_rewards()) {
    ?>

<div class="gtitle">Rewards</div>

<div style="text-align: right; margin-bottom: 10px;">
  <a href="<?php 
    echo tlink('user/claim-history');
    ?>
" class="btn">Claims History</a>
</div>



<?php 
    if (($pagination = have_rewards(array('show' => 'active'))) && $pagination['results'] > 0) {
        if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['csrf']) && \site\utils::check_csrf($_POST['csrf'], 'claim_reward')) {
            echo create_reward_request();
            // without this function rewards can't be claimed
        }
        $csrf = $_SESSION['claim_reward'] = \site\utils::str_random(12);
        echo '<div>';
        foreach (rewards(array('show' => 'active', 'orderby' => 'points')) as $item) {
            echo '<section class="array_item twopl">

<div class="table">

<div class="left">
<img src="' . reward_avatar($item->image) . '" alt="" style="height: 60px; width: 60px;">
示例#10
0
<a href="#">How to redeem this deal?</a>
<ul><li><span>J</span> Open website (' . $item->store_name . ')</li>
<li><span>L</span> No other action required, prices include discounts automatically</li></ul>';
    }
    echo '</div>
</div>

<div class="links">';
    if ($item->is_running) {
        if ($item->is_coupon) {
            echo '<a href="' . tlink('plugin/click.html', 'coupon=' . $item->ID) . '" target="_blank" class="btn" style="width: 50%;" id="copy-button" data-clipboard-text="' . $item->code . '">Copy and Use Now</a>';
        } else {
            echo '<a href="' . tlink('plugin/click.html', 'coupon=' . $item->ID) . '" target="_blank" class="btn">Redeem this deal</a>';
        }
    }
    echo '<a href="' . tlink('plugin/click.html', 'id=' . $item->storeID) . '" target="_blank" class="btn open_site" style="width: 50%;">Open website</a>';
    echo '</div>
</div>

</div>

<div class="share-coupon" style="display: block;">

Share on social networks or copy the link and share anywhere:

<div class="shareto">

<ul>
<li class="share-fb" data-ttip="Share this on Facebook"><a href="#" onclick="openwindow(\'https://www.facebook.com/sharer/sharer.php?u=' . $item->link . '\', 500, 500, \'yes\');"></a></li>
<li class="share-tw" data-ttip="Share this on Twitter"><a href="#" onclick="openwindow(\'https://twitter.com/home?status=' . $item->link . '\', 500, 500, \'yes\');"></a></li>
<li class="share-go" data-ttip="Share this on Google+"><a href="#" onclick="openwindow(\'https://plus.google.com/share?url=' . $item->link . '\', 500, 500, \'yes\');"></a></li>
示例#11
0
        echo '<div>';
        foreach (payment_plans(array('show' => 'active', 'orderby' => 'price')) as $item) {
            echo '<section class="array_item twopl">

<div class="table">

<div class="left">
<img src="' . payment_plan_avatar($item->image) . '" alt="" style="height: 60px; width: 60px;">
</div>

<div class="right">
<div class="title">' . $item->name . '</div>
<div class="info"><b style="color: #0086CE; font-weight: 900;">' . $item->credits . '</b> Credits / <b>' . $item->price_format . '</b></div>
<div class="description">' . (!empty($item->description) ? nl2br($item->description) : '-') . '</div>
</div>

</div>

<div class="bottom" style="text-align: right; display: table; width: 100%; box-sizing: border-box;">';
            echo '<a href="' . tlink('pay', 'plan=' . $item->ID) . '" class="btn" style="margin: 0 0 0 5px; display: inline-block; vertical-align: middle;">Purchase</a>';
            echo '</div>

</section>';
        }
        echo '</div>';
    } else {
        echo '<div class="message">No payment plans for the moment, please check a little later.</div>';
    }
} else {
    echo read_template_part('404');
}
示例#12
0
        /*
        EDIT STORE
        */
        case 'edit_store':
            $my_credits = $GLOBALS['me']->Credits;
            echo '<div class="left">
<div class="title">Edit Store/Brand</div>';
            echo edit_store_form(isset($_GET['id']) ? $_GET['id'] : 0);
            echo '</div>

<div class="right">';
            echo '<section class="cost-sect">
  <h2>Cost (credits): <span>0</span></h2>
  <h3>It\'s always free to edit your stores. <br /> Your balance is: <span>' . $my_credits . '</span> credits.</h3>
  </section>
  <div style="margin-top: 20px; text-align: center;"><a href="' . tlink('user/plans') . '" class="btn">Add Credits</a></div>
</div>';
            break;
            /*
            ERROR 404
            */
        /*
        ERROR 404
        */
        default:
            echo read_template_part('404');
            break;
    }
} else {
    echo read_template_part('404');
}