Ejemplo n.º 1
0
    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 
Ejemplo n.º 2
0
<?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;">
Ejemplo n.º 3
0
	$(".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() {