本文整理汇总了PHP中BBCode::render方法的典型用法代码示例。如果您正苦于以下问题:PHP BBCode::render方法的具体用法?PHP BBCode::render怎么用?PHP BBCode::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BBCode
的用法示例。
在下文中一共展示了BBCode::render方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SQL
<?php
$db = new SQL(0);
$info = $db->cmdrow(0, 'SELECT * FROM tag_details WHERE tag = "{0}" LIMIT 0,1', array($params["id"]));
PageEngine::html("html_head", array("title" => $params["id"], "index" => isset($info["long_desc"])));
PageEngine::html("header");
?>
<div id="Content" class="content-wrapper PageUserprofile">
<article class="ContentLeft">
<?php
PageEngine::html("box_tags_navi", array("tag" => $params["id"]));
?>
<h1 class="search-result-summary"><?php
echo _e("Infos for Tag '{0}'", array(0 => $params["id"]));
?>
</h1>
<?php
BBCode::render(isset($info["long_desc"]) ? $info["long_desc"] : "", true);
if (!isset($info["long_desc"]) or trim($info["long_desc"]) == "") {
echo '<p class="noTagDescription">' . _e("Dieser Tag hat aktuell noch keine Erklärung. Ab 2500 Karma Punkten kannst Du diesen Artikel erstellen und so anderen Usern helfen oder einen kurzen Einblick in das Thema bieten.") . '</p>';
}
if (MyUser::isloggedin() and MyUser::getKarmaPoints() >= 2500 or MyUser::hasAdminRight()) {
echo '<a href="' . get_path("/tags/" . urlencode($params["id"]) . "/info/edit") . '"><button class="blue" type="button">' . _e("edit") . '</button></a>';
}
?>
</article>
<aside class="ContentRight">
<div style="text-align: center;">
示例2: isset
echo '<img class="flag" src="' . get_path("/skins/default/images/flags/16x11/" . strtolower($info["country"]) . ".png") . '"/>';
}
?>
<span class="country-name hidden">Deutschland</span></td></tr>
<tr><th>Skype:</th><td class="skype status status0"><?php
echo isset($info["SkypeID"]) && $info["SkypeID"] . "" != "" ? '<a href="skype:' . html($info["SkypeID"]) . '?call"><img src="http://mystatus.skype.com/smallclassic/' . html($info["SkypeID"]) . '" style="border: none;" width="114" height="20" alt="Mein Status" /></a>' : '';
?>
</td></tr>
<tr><th>Google+:</th><td><?php
if (isset($info["GooglePlus"]) && $info["GooglePlus"] . "" != "") {
echo '<div class="g-plus" data-height="69" data-href="' . html($info["GooglePlus"]) . '" data-rel="author"></div><a href="' . html($info["GooglePlus"]) . '?rel=author"></a>';
}
?>
</td></tr>
<tr><th>Alter:</th><td><?php
function alter($datum)
{
list($y, $m, $d) = explode('-', $datum);
$alter = date("Y") - $y;
$monat = date("m");
if ($monat < $m or $monat == $m and $d > date("d")) {
$alter--;
}
return $alter;
}
if (strtotime($info["birthday"]) != 0) {
echo _e("{0} Alter", array(alter($info["birthday"])));
}
?>
</td></tr>
<tr class="hidden"><th>Organisation:</th><td class="org"><?php
示例3: function
$(".answer.img-accept").css("cursor","pointer").click(function() {
var a = $(this).parent().parent().attr("rel");
$.api("answer/accept", {answer: a}, function() {
document.location.href = document.location.href;
});
});
$(".post-controls .question-close").css("cursor", "pointer").click(function() {
$.api("question/close", {question: <?php
echo $info["id"];
?>
}, function() {
document.location.href = document.location.href;
});
});
$(".post-controls .question-reopen").css("cursor", "pointer").click(function() {
$.api("question/reopen", {question: <?php
echo $info["id"];
?>
}, function() {
document.location.href = document.location.href;
});
});
$(".post-controls .answer-spam").css("cursor", "pointer").click(function() {
$.api("answer/spam", {answer: $(this).attr("rel")}, function() {
document.location.href = document.location.href;
});
});
$(".post-controls .answer-nospam").css("cursor", "pointer").click(function() {