Previous Work
Soupgiant, comprised of Peter Wilson and Josh Kinal, has a combined 17 years of experience building web content and applications. Some examples of past work include:
Stott's College
PortfolioEstablished in 1883, Stott’s College is one of the oldest private colleges in Australia, their website provides information for current and prospective students.
Working with designs from Zepol and Nose to Tail, Soupgiant coded the CMS (Wordpress), JavaScript, CSS and HTML. The site takes full advantage of Wordpress’ CMS features.
Including Wordpress’s comment-reply.js (the right way)
WordpressSince threaded comments were enabled in Wordpress 2.7, most themes include the following line in header.php
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
This code checks if the visitor is browsing either a page or a post and adds the JavaScript required for threaded comments if they are.
I prefer a slight variation
<?php
if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
wp_enqueue_script( 'comment-reply' );
?>
My variation checks if the visitor is browsing either a page or a post, if comments are open for the entry, and finally, if threaded comments are enabled. If all of these conditions are met, the JavaScript required for threaded comments is added.
If you run your wp_enqueue_script calls in functions.php, as I do, this is the code to use:
<?php
function theme_queue_js(){
if (!is_admin()){
if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
wp_enqueue_script( 'comment-reply' );
}
}
add_action('get_header', 'theme_queue_js');
?>
The call is added to the get_header action as is_singular and comments_open are unknown during the init action.
Updated Aug 15: Fixed two typos in the final code sample
Props to Digging Into Wordpress for the …the right way… terminology:)
Julia Morris
PortfolioWorking from a design by Zepol, Soupgiant’s role was to code the Wordpress theme, JavaScript, CSS and xHTML.
The brief for the site was to fit Julia’s personality and include plenty of bling to liven up the content, each page on the site uses a custom header.
The site makes use of Wordpress, jQuery and a number of plugins for each.