本文整理汇总了PHP中getTags函数的典型用法代码示例。如果您正苦于以下问题:PHP getTags函数的具体用法?PHP getTags怎么用?PHP getTags使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getTags函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getMediaItem
function getMediaItem($item)
{
$content = '<li class="list-group-item">';
$content .= getRating($item['rating']);
$content .= $item['title'] . '<br>';
$content .= '<small>' . $item['description'] . '</small><br>';
$content .= getTags($item['tags']);
// Buttonrow
$content .= '<div class="text-right">';
// Edit Button
$content .= '<a href="index.php?media_item_id=' . $item['id'] . '">';
$content .= '<button type="button" class="btn btn-xs" aria-label="Editieren">';
$content .= '<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>';
$content .= '</button>';
$content .= '</a>';
// Delete Button
$content .= '<a href="submit.php?delete_id=' . $item['id'] . '">';
$content .= '<button type="button" class="btn btn-xs" aria-label="Editieren">';
$content .= '<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>';
$content .= '</button>';
$content .= '</a>';
$content .= '</div>';
// END buttonrow
$content .= '</li>';
return $content;
}
开发者ID:xanobius,项目名称:how2web,代码行数:26,代码来源:functions.php
示例2: formTagCloud
function formTagCloud()
{
$allTags = getTags();
while ($row = mysql_fetch_assoc($allTags)) {
echo '<span class="tag' . rand(1, 4) . '">
<a href="' . HTTP_SERVER . 'tag/' . $row['tag_name'] . '" title="' . $row['tag_name'] . '">' . $row['tag_name'] . '</a>' . '</span>';
}
}
开发者ID:Satan1301,项目名称:phpoopcms,代码行数:8,代码来源:miscDB.php
示例3: formTagCloud
function formTagCloud()
{
$allTags = getTags();
foreach ($allTags as $row) {
echo '<span class="tag' . rand(1, 4) . '">
<a href="' . HTTP_SERVER . 'tag/' . $row['tag_name'] . '/" title="' . $row['tag_name'] . '" rel="tag">' . $row['tag_name'] . '</a>' . '</span>';
}
}
开发者ID:Satan1301,项目名称:phpoopcms,代码行数:8,代码来源:miscDB.php
示例4: createMapping
function createMapping($field)
{
$arr['title'] = $field['vendor'] . ' ' . $field['name'];
$arr['body_html'] = $field['description'];
$arr['vendor'] = $field['vendor'];
$arr['product_type'] = $field['type'];
$arr['tags'] = getTags($field['tags']);
$arr['images'] = array(getImageUrl(IMAGE_BASE_URL, $field['image']));
$arr['metafields_global_title_tag'] = 'Paramount BP ' . $arr['title'];
$arr['metafields_global_description_tag'] = $field['meta_description'];
$arr['variants'] = array(getbasicVariants($field));
return $arr;
}
开发者ID:sarvesh123,项目名称:home-shopify,代码行数:13,代码来源:functions.php
示例5: textNameOut
function textNameOut($name, $id, $type)
{
global $db;
// setting header
header("Content-Type: text/html; charset=UTF-8");
$output = "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n";
if ($name != "") {
return $output . "<strong class=\"clusterName\">" . $name . "</strong><br />\n";
} else {
$tags = getTags($db, $id, $type);
foreach ($tags as $key => $value) {
$tag = $key . "=" . $value;
if (dgettext("tags", $tag) != "") {
$name[0] = dgettext("tags", $tag);
}
if ($name[0] != $tag) {
break;
}
}
return $output . "<strong class=\"clusterName\">" . $name[0] . "</strong><br />\n";
}
}
开发者ID:dieterdreist,项目名称:OpenLinkMap,代码行数:22,代码来源:name.php
示例6: printEntry
function printEntry($rowFromDb)
{
$url = $rowFromDb["url"];
$domain = parse_url($url)["host"];
$title = htmlspecialchars($rowFromDb["title"]);
$timestamp = $rowFromDb["timestamp"];
$Date = new DateTime($timestamp);
$Date->setTimezone(new DateTimeZone('Europe/Stockholm'));
$timestamp = $Date->format('d/m/Y H:i');
$linkID = $rowFromDb["linkID"];
$userID = $_SESSION['UserID'];
echo "<div class='entry'>";
echo "<div class='edit-links'>";
echo "<span class='glyphicon glyphicon-edit' data-toggle='tooltip' title='edit' id={$linkID}></span>";
echo "<span class='glyphicon glyphicon-remove' data-toggle='tooltip' title='delete' id={$linkID}></span>";
echo "</div>";
echo "<div class='title-bar'>";
echo "<div class='title'>";
echo "<a href='{$url}'>{$title}</a>";
echo "</div>";
echo "</div>";
echo "<div class='middle-row'>";
echo "<p>{$domain}</p>";
echo "</div>";
$tags = getTags($linkID, $userID);
echo "<div class='tagrow'>";
if (count($tags) > 0) {
echo "<div class='tags'>";
foreach ($tags as $row) {
$tag = $row["tag"];
echo "<span class='tag'>{$tag}</span>";
}
echo "</div>";
}
echo "<span class='timestamp text-muted'>{$timestamp}</span>";
echo "</div>";
echo "</div>";
}
开发者ID:Vesihiisi,项目名称:bookmarker,代码行数:38,代码来源:base.php
示例7: doAction
function doAction($action)
{
$forwardpage = "";
$forward = true;
$loggedin = isUserLoggedIn();
if (!$loggedin && strcmp($action, "login") != 0 && strcmp($action, "register") != 0 && strcmp($action, "getTags") != 0) {
addError("fatal", "user.unathorized");
outputJSON("error");
} else {
if (strcmp($action, "login") == 0) {
login();
} else {
if (strcmp($action, "logout") == 0) {
logout();
} else {
if (strcmp($action, "isLoggedIn") == 0) {
isLoggedIn();
} else {
if (strcmp($action, "register") == 0) {
register();
} else {
if (strcmp($action, "addquestion") == 0) {
addQuestion();
} else {
if (strcmp($action, "getTags") == 0) {
getTags();
} else {
if (strcmp($action, "getquestions") == 0) {
getQuestions();
}
}
}
}
}
}
}
}
}
开发者ID:nithin001,项目名称:catcracker,代码行数:38,代码来源:controller.php
示例8: admin_list
function admin_list()
{
$this->_check_cms();
if (!empty($_GET['fid'])) {
$gets['fid'] = (int) $_GET['fid'];
}
if (!empty($_GET['cid'])) {
$gets['cid'] = (int) $_GET['cid'];
}
$gets['page'] = empty($_GET['page']) ? 1 : $_GET['page'];
$gets['pagesize'] = 10;
$pager = null;
$model = createModel($this->app);
$list = $model->gets($gets, $pager);
$cates = getCategorys($this->app);
$tags = getTags($this->app);
$this->swoole->tpl->assign('cates', $cates);
$this->swoole->tpl->assign('tags', $tags);
$pager = array('total' => $pager->total, 'render' => $pager->render());
$this->swoole->tpl->assign('pager', $pager);
$this->swoole->tpl->assign('list', $list);
$this->swoole->tpl->display('admin_' . strtolower($this->app) . '_list.html');
}
开发者ID:netstao,项目名称:swoole.com,代码行数:23,代码来源:admin.php
示例9: getTags
?>
<item>
<?php
// Shared Output:
?>
<link><?php
echo $post->attributes()->url;
?>
</link>
<pubDate><?php
echo $post->attributes()->date;
?>
+0000</pubDate>
<dc:creator><![CDATA[post_author]]></dc:creator>
<?php
getTags($post);
?>
<guid isPermaLink="false"><?php
echo $post->attributes()->url;
?>
</guid>
<wp:post_id><?php
echo $post->attributes()->id;
?>
</wp:post_id>
<wp:post_date><?php
echo date('Y-m-d G:i:s', (double) $post->attributes()->{'unix-timestamp'});
?>
</wp:post_date>
<wp:post_date_gmt><?php
echo str_replace(" GMT", "", $post->attributes()->{'date-gmt'});
开发者ID:elopeWithMe,项目名称:tumblr2wordpress,代码行数:31,代码来源:index.php
示例10: getTags
<input name="chkPostCats[]" type="checkbox" value="<?php
echo $row['cat_id'];
?>
" /><?php
echo $row['cat_name'];
?>
</div>
<?php
}
?>
</div>
<div class="clear"></div>
<label>All tags on site<span class="small">Select to add</span> </label>
<div class="selectchk">
<?php
$all_tags = getTags();
while ($rowTags = mysql_fetch_assoc($all_tags)) {
?>
<div class="chk">
<input name="chkPostTags[]" type="checkbox" value="<?php
echo $rowTags['tag_id'];
?>
" /><?php
echo $rowTags['tag_name'];
?>
</div>
<?php
}
?>
</div>
<input class="btn" type="submit" name="btnPostAdd" value="Add" />
开发者ID:Satan1301,项目名称:phpoopcms,代码行数:31,代码来源:post.php
示例11: ikutkan
?>
<style>
<?php
ikutkan("css/bootstrap-tokenfield.min.css");
ikutkan("css/tokenfield-typeahead.min.css");
?>
</style>
<label>Label / Tag / Tanda:</label><br>
<input class="form-control input-sm" id="label" type="text" style="width:100%" name="label" value="<?php
echo $row['label_warga'];
?>
">
<script src="?file&apa=js/bootstrap-tokenfield.min.js"></script>
<?php
$tags = getTags();
$warna = array('warning', 'primary', 'success', 'info', 'danger');
$tgs = "";
for ($n = 0; $n < count($tags); $n++) {
if (!empty($tags[$n])) {
$tgs .= "'" . trim($tags[$n]) . "',";
?>
<a class="btn btn-<?php
echo $warna[rand(0, 4)];
?>
btn-xs" href="javascript:addTag('<?php
echo $tags[$n];
?>
')"><?php
echo $tags[$n];
?>
开发者ID:HuiZone,项目名称:Waruga,代码行数:31,代码来源:dataEdit.php
示例12: getStatusTags
/**
* Convenience function to get just the status tags from a page revision.
*
* @param string $page_id The page ID
* @param string $revision_id The revision ID, or "" if current revision
*
* @return array An array containing the status tags found (the array may be empty
* but will not be null)
*/
function getStatusTags($page_id, $revision_id)
{
return getStatusFromTags(getTags($page_id, $revision_id));
}
开发者ID:Jocai,项目名称:Door43,代码行数:13,代码来源:utils.php
示例13: getTags
Tag
</div>
<div class="filterRight">
Not
<?php
if (isset($_SESSION['filter']['Not_tag']) and $_SESSION['filter']['Not_tag'] == 1) {
print "<input type=\"checkbox\" name=\"Not_tag\" value=\"1\" class=\"text ui-widget-content ui-corner-all\" checked>";
} else {
print "<input type=\"checkbox\" name=\"Not_tag\" value=\"1\" class=\"text ui-widget-content ui-corner-all\">";
}
?>
<select name="tag" size="1" style="width: 165px" class="text ui-widget-content ui-corner-all ">
<option value="all">All Tags </option>
<?php
$tagsList = getTags();
foreach ($tagsList as $tag) {
if (isset($_SESSION['filter']['tag']) and $_SESSION['filter']['tag'] == $tag['tag_id']) {
print "<option selected value=\"" . $tag['tag_id'] . "\">" . $tag['tag_name'] . " </option>";
} else {
print "<option value=\"" . $tag['tag_id'] . "\">" . $tag['tag_name'] . " </option>";
}
}
?>
</select>
</div>
</label>
<div class="filterClear"></div>
</div>
<div class="filterRow">
开发者ID:carriercomm,项目名称:waf-fle,代码行数:31,代码来源:filter.php
示例14: printImageDate
</h2>
<div class="sidebar-section"><?php
printImageDate('', '', null, true);
?>
</div>
<?php
if (getImageDesc() || zp_loggedin()) {
?>
<div class="sidebar-section"><?php
printImageDesc(true);
?>
</div><?php
}
?>
<?php
if (getTags() || zp_loggedin()) {
?>
<div class="sidebar-section"><?php
printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', '');
?>
</div><?php
}
?>
<?php
if (!$zpmin_disablemeta) {
?>
<?php
if (getImageMetaData() || zp_loggedin()) {
?>
<div class="sidebar-section"><?php
printImageMetadata('', false, null, 'full-image-meta', true);
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:image.php
示例15: getMetaKeywords
/**
* Helper function to list tags/categories as keywords separated by comma.
*
* @param array $array the array of the tags or categories to list
*/
private static function getMetaKeywords()
{
global $_zp_gallery, $_zp_current_album, $_zp_current_image, $_zp_current_zenpage_news, $_zp_current_zenpage_page, $_zp_current_category, $_zp_gallery_page, $_zp_zenpage;
$words = '';
if (is_object($_zp_current_album) or is_object($_zp_current_image)) {
$tags = getTags();
$words .= htmlmetatags::getMetaAlbumAndImageTags($tags, "gallery");
} else {
if ($_zp_gallery_page === "index.php") {
$tags = array_keys(getAllTagsCount(true));
// get all if no specific item is set
$words .= htmlmetatags::getMetaAlbumAndImageTags($tags, "gallery");
}
}
if (extensionEnabled('zenpage')) {
if (is_NewsArticle()) {
$tags = getNewsCategories(getNewsID());
$words .= htmlmetatags::getMetaAlbumAndImageTags($tags, "zenpage");
$tags = getTags();
$words = $words . "," . htmlmetatags::getMetaAlbumAndImageTags($tags, "gallery");
} else {
if (is_Pages()) {
$tags = getTags();
$words = htmlmetatags::getMetaAlbumAndImageTags($tags, "gallery");
} else {
if (is_News()) {
$tags = $_zp_zenpage->getAllCategories();
$words .= htmlmetatags::getMetaAlbumAndImageTags($tags, "zenpage");
} else {
if (is_NewsCategory()) {
$words .= $_zp_current_category->getTitle();
}
}
}
}
}
return $words;
}
开发者ID:rb26,项目名称:zenphoto,代码行数:43,代码来源:html_meta_tags.php
示例16: printTags
/**
* Prints a list of tags, editable by admin
*
* @param string $option links by default, if anything else the
* tags will not link to all other images with the same tag
* @param string $preText text to go before the printed tags
* @param string $class css class to apply to the div surrounding the UL list
* @param string $separator what charactor shall separate the tags
* @since 1.1
*/
function printTags($option = 'links', $preText = NULL, $class = NULL, $separator = ', ')
{
global $_zp_current_search;
if (is_null($class)) {
$class = 'taglist';
}
$singletag = getTags();
$tagstring = implode(', ', $singletag);
if ($tagstring === '' or $tagstring === NULL) {
$preText = '';
}
if (in_context(ZP_IMAGE)) {
$object = "image";
} else {
if (in_context(ZP_ALBUM)) {
$object = "album";
} else {
if (in_context(ZP_ZENPAGE_PAGE)) {
$object = "pages";
} else {
if (in_context(ZP_ZENPAGE_NEWS_ARTICLE)) {
$object = "news";
}
}
}
}
if (count($singletag) > 0) {
if (!empty($preText)) {
echo "<span class=\"tags_title\">" . $preText . "</span>";
}
echo "<ul class=\"" . $class . "\">\n";
if (is_object($_zp_current_search)) {
$albumlist = $_zp_current_search->getAlbumList();
} else {
$albumlist = NULL;
}
$ct = count($singletag);
$x = 0;
foreach ($singletag as $atag) {
if (++$x == $ct) {
$separator = "";
}
if ($option === "links") {
$links1 = "<a href=\"" . html_encode(getSearchURL(search_quote($atag), '', 'tags', 0, array('albums' => $albumlist))) . "\" title=\"" . html_encode($atag) . "\">";
$links2 = "</a>";
} else {
$links1 = $links2 = '';
}
echo "\t<li>" . $links1 . $atag . $links2 . $separator . "</li>\n";
}
echo "</ul>";
} else {
echo "{$tagstring}";
}
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:65,代码来源:template-functions.php
示例17: getSearchWords
} else {
$searchwords = getSearchWords();
}
}
$c = 0;
?>
<!DOCTYPE html>
<head>
<?php
include_once 'header.php';
?>
<?php
zp_apply_filter('theme_body_open');
?>
<meta name="keywords" content="<?php
echo html_encode(getFormattedMainSiteName('', ', ') . getGalleryTitle() . ', ' . getBareAlbumTitle() . ', ' . implode(',', getTags()));
?>
" />
<meta name="description" content="<?php
echo html_encode(getAlbumDesc());
?>
" />
<title><?php
echo strip_tags(getFormattedMainSiteName('', ' / ') . getGalleryTitle() . ' / ' . gettext('Search') . ' / ' . $searchwords);
?>
</title>
</head>
<body id="gallery-index">
<div id="wrapper">
<div id="header">
<div id="logo">
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:search.php
示例18: count
if ($page == "") {
$page = "1";
}
$currentpage = $page;
STemplate::assign('page', $page);
if ($page >= 2) {
$pagingstart = ($page - 1) * $config['items_per_page'];
} else {
$pagingstart = "0";
}
$query1 = "SELECT count(*) as total from posts A, members B where A.active='1' AND A.USERID=B.USERID AND A.phase>'1' order by A.htime desc limit {$config['maximum_results']}";
$query2 = "SELECT A.*, B.username from posts A, members B where A.active='1' AND A.USERID=B.USERID AND A.phase>'1' order by A.htime desc limit {$pagingstart}, {$config['items_per_page']}";
$executequery1 = $conn->Execute($query1);
$totalvideos = $executequery1->fields['total'];
if ($totalvideos > 0) {
if ($executequery1->fields['total'] <= $config[maximum_results]) {
$total = $executequery1->fields['total'];
} else {
$total = $config[maximum_results];
}
$toppage = ceil($total / $config[items_per_page]);
if ($page <= $toppage) {
$executequery2 = $conn->Execute($query2);
$posts = $executequery2->getrows();
$posts = getTags($posts);
$posts = countComments($posts);
$posts = getHash($posts);
STemplate::assign('posts', $posts);
STemplate::display('posts_bit_more.tpl');
}
}
开发者ID:jd5688,项目名称:image-sharing-site,代码行数:31,代码来源:indexmore.php
示例19: imageNumber
<span> (<?php
echo imageNumber() . "/" . getNumImages();
?>
)</span>
</h5>
<h1><?php
printImageTitle(true);
?>
</h1>
<p><?php
printImageDesc(true);
?>
</p>
<div class="news-meta">
<?php
$singletag = getTags();
$tagstring = implode(', ', $singletag);
?>
<ul class="taglist">
<li class="meta-date"><?php
printImageDate('', '', null, true);
?>
</li>
<?php
if (strlen($tagstring) > 0) {
?>
<li class="meta-tags"><?php
printTags('links', '', 'taglist', ', ');
?>
</li><?php
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:image.php
示例20: getTags
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin Page</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">
<?php
$rows = getTags($pdo);
foreach ($rows as $row) {
?>
<form class="form-inline">
<input type="hidden" id="videoId" value="<?php
echo $row['videoId'];
?>
">
<input type="hidden" id="tagId" value="<?php
echo $row['tagId'];
?>
">
<div class="form-group">
<label class="sr-only" for="videoTag">Tag</label>
<input type="text" class="form-control" id="videoTag" placeholder="Tag">
</div>
开发者ID:refugeetech,项目名称:project_eyeofsweden,代码行数:31,代码来源:edit.php
注:本文中的getTags函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论