示例#1
0
<?php

/* GET PAGE DATA */
if (isset($_GET['page'])) {
    $current_page = $_GET['page'];
}
if (isset($_GET['tag']) or $tag !== '') {
    $tag = $_GET['tag'];
} else {
    $tag = NULL;
}
/* LOAD CONFIGURATION APP */
include_once '/kunden/homepages/0/d643120834/htdocs/config/index.php';
$config = new Blog();
$promos = $config->getPromosByUser('admin', $current_page, $tag);
echo $config->display_photos($promos, null, $current_page, $tag);
?>
<script type="text/javascript" src='http://freelabel.net/js/dashboard.js'></script>
<script type="text/javascript" src='http://freelabel.net/js/promos.js'></script>
示例#2
0
<!-- get user tags  -->
<nav class="filter-option-panel btn-group" style="background-color:transparent;text-align:left;border-bottom:3px solid #303030;padding:2% 0%;">
  <!-- <label>Filter by tags:</label> -->
  <span class="fa fa-tag filter-by-icon"></span>
  <?php 
echo $config->get_user_tags(Session::get('user_name'), $current_tag);
?>
</nav>

<div id="promos_content">
  <script type="text/javascript" src="http://freelabel.net/js/promos.js"></script>
  <!-- display content  -->
  <?php 
$promos = $config->getPromosByUser(Session::get('user_name'), 0, $current_tag);
echo $config->display_photos($promos, null, 0, $current_tag);
?>
</div>