/** * Renders the template author name and link. * * @access private * @since 8.4 * * @param cnTemplate $template */ function cnTemplateAuthor($template) { if ($template->getAuthorURL()) { $author = '<a title="' . __('Visit author\'s homepage.', 'connections') . '" href="' . esc_url($template->getAuthorURL()) . '">' . esc_html($template->getAuthor()) . '</a>'; } else { $author = esc_html($template->getAuthor()); } ?> <h3><?php echo esc_html($template->getName()); ?> <?php echo esc_html($template->getVersion()); ?> by <?php echo $author; ?> </h3> <?php }