?> <div class="yellow-postheadericons yellow-metadata-icons"> <?php echo art_submitted_worker($date, $name); ?> </div> <?php } ?> <div class="yellow-postcontent"> <?php // We hide the comments and links now so that we can render them later. hide($content['comments']); hide($content['links']); $terms = get_terms_D7($content); hide($content[$terms['#field_name']]); print render($content); ?> </div> <div class="cleared"></div> <?php print $user_picture; $access_links = true; if (isset($content['links']['#access'])) { $access_links = $content['links']['#access']; } if ($access_links && (isset($content['links']) || isset($content['comments']))) { $output = art_links_woker_D7($content); if (!empty($output)) {
function art_links_woker_D7($content) { $result = ''; if (!isset($content['links'])) { return $result; } foreach (array_keys($content['links']) as $name) { ${$name} =& $content['links'][$name]; if (isset($content['links'][$name]['#links'])) { $links = $content['links'][$name]['#links']; if (is_array($links)) { $output = get_links_html_output_D7($links); if (!empty($output)) { $result .= empty($result) ? $output : ' | ' . $output; } } } } $terms = get_terms_D7($content); if (!empty($terms)) { ob_start(); ?> <span class="free-templates-lt-posttagicon"><?php $result .= $result == '' ? ob_get_clean() : ' | ' . ob_get_clean(); $result .= '<div class="free-templates-lt-tags">' . render($terms) . '</div>'; ob_start(); ?> </span><?php $result .= ob_get_clean(); } return $result; }
function art_terms_worker($terms) { $result = ''; $terms = get_terms_D7($content); if (!empty($terms)) { ob_start(); ?> <span class="free-templates-lt-posttagicon"><?php $result .= $result == '' ? ob_get_clean() : ' | ' . ob_get_clean(); $result .= '<div class="free-templates-lt-tags">' . render($terms) . '</div>'; ob_start(); ?> </span><?php $result .= ob_get_clean(); } return $result; }
function art_terms_worker($terms) { $result = ''; $terms = get_terms_D7($content); if (!empty($terms)) { ob_start(); ?> <?php $result .= $result == '' ? ob_get_clean() : ' | ' . ob_get_clean(); $result .= '<div class="art-tags">' . render($terms) . '</div>'; } return $result; }