Ejemplo n.º 1
0
    <div class="btn-group pull-right">
        <?php 
    if (core::config('advertisement.map') == 1) {
        ?>
            <a href="<?php 
        echo Route::url('map');
        ?>
?category=<?php 
        echo Model_Category::current()->loaded() ? Model_Category::current()->seoname : NULL;
        ?>
&location=<?php 
        echo Model_Location::current()->loaded() ? Model_Location::current()->seoname : NULL;
        ?>
" 
                class="btn btn-default btn-sm <?php 
        echo core::cookie('list/grid') == 0 ? 'active' : '';
        ?>
">
                <span class="glyphicon glyphicon-globe"></span> <?php 
        echo __('Map');
        ?>
            </a>
        <?php 
    }
    ?>
        <button type="button" id="sort" data-sort="<?php 
    echo core::request('sort');
    ?>
" class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown">
            <span class="glyphicon glyphicon-list-alt"></span> <?php 
    echo __('Sort');
Ejemplo n.º 2
0
<?php

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

<aside class="col-md-1 col-sm-1 col-xs-1 respon-left-panel">
    <div class="sidebar-nav">
        <div class="clearfix"></div>
        <div class="container">
            <div class="row">
                <div class="col-md-1 col-sm-1 col-xs-1 respon-left-panel">
                    <div class="panel-group <?php 
echo core::cookie('sidebar_state') == 'collapsed' ? 'mini-col' : NULL;
?>
" id="accordion">
                    <? if($user->id_role==Model_Role::ROLE_ADMIN OR $user->id_role==Model_Role::ROLE_MODERATOR):?>
                        <div class="panel panel-sidebar">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
                                        <i class="fa fa-angle-double-down i-right"></i>
                                        <span class="glyphicon glyphicon-th"></span>
                                        <span class="title-txt"><?php 
echo __('Classifieds');
?>
</span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapseOne" class="panel-collapse collapse">
                                <div class="panel-body">
Ejemplo n.º 3
0
            ?>
">
                    <?php 
        }
        ?>
                    </a>
                    <div class="caption">
                        <h4><a href="<?php 
        echo Route::url('product', array('seotitle' => $product->seotitle, 'category' => $product->category->seoname));
        ?>
"><?php 
        echo substr($product->title, 0, 30);
        ?>
</a></h4>
                        <p><?php 
        echo Text::limit_chars(Text::removebbcode($product->description), core::cookie('list/grid') == 1 ? 255 : 30, NULL, TRUE);
        ?>
</p>
                        <a class="btn btn-success" href="<?php 
        echo Route::url('product', array('seotitle' => $product->seotitle, 'category' => $product->category->seoname));
        ?>
">
                        <span class="fa fa-shopping-cart"></span>
                        <?php 
        if ($product->final_price() > 0) {
            ?>
                            <?php 
            echo __('Buy Now');
            ?>
 <?php 
            echo $product->formated_price();
Ejemplo n.º 4
0
<?php

if (core::cookie('elastic_alert') != 1 and Auth::instance()->get_user()->id_role == Model_Role::ROLE_ADMIN) {
    ?>
<div class="alert alert-warning fade in">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" onclick='setCookie("elastic_alert",1,365)'>×</button>
<p>
<span class="label label-success">PRO Tip</span> 
Do you want your emails to reach users inbox? Do you want to trace your e-mails? 
Try <a href="http://j.mp/elasticemailoc" target="_blank">ElasticEmail!</a> Get 5.000 free emails ($5 Free)
<a class="btn btn-success" href="http://j.mp/elasticemailoc" target="_blank" onclick='setCookie("elastic_alert",1,365)' >Sign Up</a>
</p>
</div>
<?php 
}
Ejemplo n.º 5
0
        if ($ad->id_location and core::request('sort') == 'distance' and Model_User::get_userlatlng()) {
            ?>
												<span> - <i class="glyphicon glyphicon-map-marker"></i> <?php 
            echo i18n::format_measurement($ad->distance);
            ?>
 away</span>
											<?php 
        }
        ?>
										</p>
						
										<?php 
        if (core::config('advertisement.description') != FALSE) {
            ?>
											<p class="ad_desc"><?php 
            echo core::cookie('list/grid') == 1 ? Text::limit_chars(Text::removebbcode($ad->description), 255, NULL, TRUE) : Text::limit_chars(Text::removebbcode($ad->description), 30, NULL, TRUE);
            ?>
</p>
										<?php 
        }
        ?>
				
									</div>
								</div>
								<div class="ad_buttons">
									<?php 
        if ($user !== NULL and ($user->id_role == Model_Role::ROLE_ADMIN or $user->id_role == Model_Role::ROLE_MODERATOR)) {
            ?>
										<span class="ad_options">
											<a class="btn btn-warning" data-toggle="modal" data-dismiss="modal" href="<?php 
            echo Route::url('oc-panel', array('controller' => 'myads', 'action' => 'index'));
Ejemplo n.º 6
0
echo core::config('general.site_name');
?>
 <?php 
echo __('panel');
?>
</h1>

<hr>

<p><?php 
echo __('This is the main overview page of your website.');
?>
</p>

<?php 
if (core::cookie('intro_panel') != 1) {
    ?>
    <div class="row" id="intro-panel">
        <div class="col-xs-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="panel-title"><?php 
    echo __('Welcome');
    ?>
 <?php 
    echo Auth::instance()->get_user()->name;
    ?>
</div>
                    <a href="#" class="close-panel"><i class="fa fa-close"></i><span class="sr-only"><?php 
    echo __('Hide');
    ?>