Rapid Template Development Part 2

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    Rapid Template Development Part 2 - Presentation Transcript

    1. Rapid Template Development with Joomla, YUI & jQuery Chris Rault, Web Monkeys CMSExpo, Denver Colorado - December 08 http://joomlajunkie.com http://prothemer.com http://cmsexpo.net
    2. jquery examples Setting jQuery into “no-conflict” mode var $pt = jQuery.noConflict(); $pt(document).ready(function(){ // CODE HERE }); }); http://jquery.com
    3. jquery examples Example 1.) Enhance your sidebar menu with simple toggle functions. $(\".menu .parent ul\").hide(); $(\"ul.menu li.parent a\").click(function(){ $(this).next().toggle().end(); return false; }); http://jquery.com
    4. jquery examples Example 2.) Add “first” & “last” classes to sidebar modules. $(\"#sidebar .module:first\").addClass(\"first\"); $(\"#sidebar .module:last\").addClass(\"last\"); http://jquery.com
    5. jquery examples Example 3.) Add a class to form input elements based on their type: $(\"input\").each(function() { $(this).addClass($(this).attr(\"type\")); http://jquery.com
    6. jquery examples Example 4.) Remove the last “span.separator”: $(\".inner .article_separator:last\").addClass(\"last\"); http://jquery.com
    7. jquery examples Example 5.) Zebra striping on table rows (or anything!): $(\"table tr:even\").addClass(\"alt\"); http://jquery.com
    8. jquery examples Example 6.) Assign images a class based on their alignment: $('img[align*=right]').addClass(\"img-right\"); $('img[align*=left]').addClass(\"img-left\"); http://jquery.com
    9. jquery examples Example 7.) Add a “teaser” class to first paragraphs of an article: $(\"#content p:first\").addClass(\"teaser\"); http://jquery.com
    10. jquery examples Example 8.) Onion shadows / rounded corners: $pt(\".shadow\").wrap($pt(\"<div class='shadow0'> <div class='shadow1'><div class='shadow2'><div class='shadow3'></div></div></div></div>\")); http://jquery.com
    11. jquery examples Example 9.) Easy rounded corners plugin: <script src=\"<?php echo $templatepath;?>js/jquery.corners.min.js\" language=\"javascript\" type=\"text/javascript\"></script> Basic Usage: $pt('#mystyle1 #nav #current.first a').corners(\"10px top-left\"); $pt('#mystyle1 #nav').corners(\"10px top\"); $pt('.right-pullquote').corners(\"10px\"); $pt('.rounded .mod-content').corners(\"10px bottom\"); $pt('.rounded h3').corners(\"10px top\"); http://jquery.com
    12. jquery examples jQuery Resources: http:// jquery.com http://docs.jquery.com http://jquery.com/plugins http://visualjquery.com http://learningjquery.com http://15daysofjquery.com http://jquery.com
    13. jquery examples jQuery Resources (on the cd): ★ Learning jQuery Video Tutorial Series by Nettuts.com (parts 1 - 5) & others. ★ 4 Jquery Cheatsheets ★ Intro to jQuery pdfs & ppts. http://jquery.com

    + Pro ThemerPro Themer, 2 years ago

    custom

    1239 views, 2 favs, 2 embeds more stats

    Part 2 of Rapid Template Development with Joomla! 1 more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1239
      • 1237 on SlideShare
      • 2 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 51
    Most viewed embeds
    • 1 views on http://www.denver.cmsexpo.net
    • 1 views on http://localhost

    more

    All embeds
    • 1 views on http://www.denver.cmsexpo.net
    • 1 views on http://localhost

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories