Esempio n. 1
0
			</div>
			<?php 
} else {
    ?>
					<div class="search-status"><?php 
    echo _e('<!--:uk-->За запитом "<!--:--> <!--:en-->Search for "<!--:-->' . urldecode($tag) . '<!--:uk-->" нічого не знайдено<!--:--> <!--:en-->" are: nothing found<!--:-->');
    ?>
<hr /></div>
			<?php 
}
?>
				<div style="clear:both;"></div>
		</div>

		<div class="right-col col-md-4 col-lg-4 col-sm-4 col-xs-hidden ">
		<h3><?php 
echo _e('[:ua]Популярні записи [:en]Featured Blog');
?>
</h3>
		<?php 
last_news(5);
?>
		</div>
	</div>

</div>

<?php 
get_footer();
?>
	
Esempio n. 2
0
    require_once "action/content_action.php";
    $html = file_get_contents("view/main.tpl");
    if (isset($_GET['post_search'])) {
        $html = str_replace("{content}", post_search(), $html);
    }
    $html = str_replace("{content}", file_get_contents("view/homepage.tpl"), $html);
    $html = str_replace("{page_title}", "", $html);
    $html = str_replace("{page_content}", "", $html);
    $html = str_replace("{title}", "WINE", $html);
    $html = str_replace("{dir}", "view", $html);
    //$html = str_replace("{count_products}",count($_SESSION['count_products']),$html);
    $html = str_replace("{count_products}", $_SESSION['item_count'], $html);
    $html = str_replace("{home_items}", home_items(), $html);
    $html = str_replace("{cat_menu}", cat_menu(), $html);
    $html = str_replace("{last_blog}", last_blog(), $html);
    $html = str_replace("{last_news}", last_news(), $html);
    $html = str_replace("{pagination}", "", $html);
}
if ($_GET['lang']) {
    $uri = str_replace("/" . $_GET['lang'] . "/", "", $_SERVER['REQUEST_URI']);
    $html = str_replace("{uri}", $uri, $html);
}
function popup_cart()
{
    if ($_SESSION['products']) {
        foreach ($_SESSION['products'] as $prvalue) {
            $img = explode(",", $prvalue['images']);
            $list .= "<tr>\n\t\t<td><img width='50' src='/uploads/shop/{$img['0']}'/></td>\n\t\t<td>{$prvalue['title']}</td>\n\t\t<td><span class='badge'>{$prvalue['count']}</span>&nbsp;items</td>\n\t\t<td>{$prvalue['price']}</td>\n\t\t</tr>";
        }
    } else {
        $list = "<tr><td>No items</td></tr>";
Esempio n. 3
0
<?php

$config['newtitle'] = 'Главная страница';
?>

<i class="fa fa-circle-o fa-lg text-muted"></i> <a href="/news/">Новости сайта</a> (<?php 
echo stats_news();
?>
)<br /> <?php 
echo last_news();
?>

<div class="b">
	<i class="fa fa-comment fa-lg text-muted"></i> <b><a href="/pages/index.php?act=recent">Общение</a></b>
</div>
<i class="fa fa-circle-o fa-lg text-muted"></i> <a href="/book/">Гостевая книга</a> (<?php 
echo stats_guest();
?>
)<br />
<i class="fa fa-circle-o fa-lg text-muted"></i> <a href="/gallery/">Фотогалерея</a> (<?php 
echo stats_gallery();
?>
)<br />
<i class="fa fa-circle-o fa-lg text-muted"></i> <a href="/votes/">Голосования</a> (<?php 
echo stats_votes();
?>
)<br />
<i class="fa fa-circle-o fa-lg text-muted"></i> <a href="/pages/offers.php">Предложения / Проблемы</a> (<?php 
echo stats_offers();
?>
)<br />