if(!empty($this->_data['hash'])) {
$queryStr = "SELECT
- DISTINCT(tag) as tag
+ DISTINCT tag, tagId
FROM `".DB_PREFIX."_combined`
WHERE `hash` = '".$this->DB->real_escape_string($this->_data['hash'])."'";
$query = $this->DB->query($queryStr);
if(!empty($query) && $query->num_rows > 0) {
while($result = $query->fetch_assoc()) {
if($result['tag'] !== NULL) {
- $ret[$result['tag']] = $result['tag'];
+ $ret[$result['tagId']] = $result['tag'];
}
}
if(!empty($this->_data['hash'])) {
$queryStr = "SELECT
- DISTINCT(category) FROM `".DB_PREFIX."_combined`
+ DISTINCT category, categoryId
+ FROM `".DB_PREFIX."_combined`
WHERE `hash` = '".$this->DB->real_escape_string($this->_data['hash'])."'";
$query = $this->DB->query($queryStr);
if(!empty($query) && $query->num_rows > 0) {
while($result = $query->fetch_assoc()) {
if($result['category'] !== NULL) {
- $ret[$result['category']] = $result['category'];
+ $ret[$result['categoryId']] = $result['category'];
}
}
}
<?php if(!empty($subHeadline)) { ?>
<h2 class="is-size-2"><?php echo $subHeadline; ?></h2>
<?php } ?>
+ <h3><a href="index.php?p=overview&m=tag">
+ <i class="icon ion-md-return-left"></i></a></h3>
</div>
</div>
<?php if(!empty($subHeadline)) { ?>
<h2 class="is-size-2"><?php echo $subHeadline; ?></h2>
<?php } ?>
+ <h3><a href="index.php?p=overview&m=tag">
+ <i class="icon ion-md-return-left"></i></a></h3>
</div>
</div>
<div class="content">
<h4><a href="index.php?p=overview&m=all">Last added</a></h4>
<?php if(!empty($latestLinks)) { ?>
- <div class="field is-grouped is-grouped-multiline">
+ <div class="tags">
<?php foreach ($latestLinks as $ll) { ?>
- <div class="control">
- <div class="tags has-addons">
- <a class="tag is-link" href="<?php echo $ll['link']; ?>" target="_blank"><?php echo $ll['title']; ?></a>
- <a class="tag is-info">x</a>
- </div>
- </div>
+ <a class="tag is-link" href="<?php echo $ll['link']; ?>" target="_blank"><?php echo $ll['title']; ?></a>
<?php } ?>
</div>
<?php } ?>