$content .= '<tr class="guide_article">'; $content .= '<td colspan="2" class="guide_article_featured guide_article_right">'; $content .= '<h3><a href="' . $post_url . '">' . $post_title . '</a></h3>'; $content .= $post_description; $content .= '<p class="guide_read_more"><a href="' . $post_url . '">Read more...</a></p>'; $content .= '</td>'; $content .= '</tr>'; } else { $content .= '<tr class="guide_article">'; $content .= '<td class="guide_article_left ' . $extra_size_class . '">'; $content .= '<a href="' . $post_url . '"><img src="' . $image_source . '" /></a>'; $content .= '</td>'; $content .= '<td class="guide_article_right ' . $extra_size_class . '">'; $content .= '<h3><a href="' . $post_url . '">' . $post_title . '</a></h3>'; if ($size != Guide::size_small) { $content .= $post_description; $content .= '<p class="guide_read_more"><a href="' . $post_url . '">Read more...</a></p>'; } $content .= '</td>'; $content .= '</tr>'; } $i++; } $content .= '</table>'; } $toc = '<h3>Table of Contents</h3><ul>' . $toc_list . '</ul>'; echo $intro . $toc . $content; } } $guides = Guide::get_instance(); $guides->setup();