function takeshi_getme_backandforth($thememe) { $output = ""; if ($thememe["page"]) { $backandforth = backandforth_data($thememe["vars"]["node"]["created"]); // Set default Strings $backwards_string = "< rückwärts"; $forwards_string = " vorwärts >"; // Additionally add Links if there are node if ($backandforth["backwards_node"]) { $backwards_string = l($backwards_string, "node/" . $backandforth["backwards_node"]); } if ($backandforth["forwards_node"]) { $forwards_string = l($forwards_string, "node/" . $backandforth["forwards_node"]); } // Actually generate the Output; $output .= "<span class='backandforth'>"; $output .= " <span class='headericon backwardslink'>" . $backwards_string . "</span>"; $output .= " & <span class='headericon forwardslink'>" . $forwards_string . "</span>"; $output .= "</span>"; } return $output; }
echo date("j. n. Y", $node->created); ?> – <?php if ($links) { print $links; } ?> <?php echo "– " . strlen(strip_tags($content)) . " Zeichen "; ?> <?php $backandforth = backandforth_data($node->created); // Set default Strings $backwards_string = "< " . t("backwards"); $forwards_string = t("forwards") . " >"; // Additionally add Links if there are node if ($backandforth["backwards_node"]) { $backwards_string = l($backwards_string, "node/" . $backandforth["backwards_node"]); } if ($backandforth["forwards_node"]) { $forwards_string = l($forwards_string, "node/" . $backandforth["forwards_node"]); } // Actually generate the Output; $output .= "<span class='backwardslink'>" . $backwards_string . "</span>"; $output .= "<span class='and'> & </span>"; $output .= "<span class='forwardslink'>" . $forwards_string . "</span>"; print $output;