WordPress.org

Plugin Directory

Changeset 608428


Ignore:
Timestamp:
10/05/12 11:18:03 (19 months ago)
Author:
kovshenin
Message:

Adding a columns attribute to the camptix attendees list shortcode, setting the default column count to three. Note that this might break some existing setups.

Location:
camptix/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • camptix/trunk/addons/shortcodes.php

    r608415 r608428  
    7070            'posts_per_page' => 10000, 
    7171            'tickets' => false, 
     72            'columns' => 3, 
    7273        ), $atts ) ); 
    7374 
     
    119120 
    120121        <div id="tix-attendees"> 
    121             <ul class="tix-attendee-list"> 
     122            <ul class="tix-attendee-list tix-columns-<?php echo absint( $columns ); ?>"> 
    122123                <?php 
    123124                    while ( true && $printed < $posts_per_page ) { 
  • camptix/trunk/camptix.css

    r577158 r608428  
    5656    height: 80px; 
    5757} 
     58 
     59#tix-attendees .tix-columns-1 li { width: 100%; } 
     60#tix-attendees .tix-columns-2 li { width: 50%; } 
     61#tix-attendees .tix-columns-3 li { width: 33.333%; } 
     62#tix-attendees .tix-columns-4 li { width: 25%; } 
     63#tix-attendees .tix-columns-5 li { width: 20%; } 
    5864 
    5965#tix-attendees .avatar { 
  • camptix/trunk/help.php

    r608419 r608428  
    107107            'content' => " 
    108108                <h3>Attendees List</h3> 
    109                 <p>You can create a list of attendees on any page by using the <code>[camptix_attendees]</code> shortcode. This will create a list of avatars, names, URLs and Twitter handles if provided by the attendees. You can style the list with CSS, each item is fairly easy to target with selectors. You can even change the number of columns by changing the width of each attendee in the list.</p>", 
     109                <p>You can create a list of attendees on any page by using the <code>[camptix_attendees]</code> shortcode. This will create a list of avatars, names, URLs and Twitter handles if provided by the attendees. You can style the list with CSS, each item is fairly easy to target with selectors. You can even change the number of columns by adding a <code>columns</code> attribute, for example <code>[camptix_attendees columns=&quot;2&quot;]</code>.</p>", 
    110110        ) ); 
    111111 
Note: See TracChangeset for help on using the changeset viewer.