Changeset 346060
- Timestamp:
- 02/15/2011 09:35:01 PM (15 years ago)
- Location:
- jj-nextgen-image-list/trunk
- Files:
-
- 3 edited
-
includes/jj_ngg_image_list.php (modified) (5 diffs)
-
jj-ngg-image-list.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jj-nextgen-image-list/trunk/includes/jj_ngg_image_list.php
r346012 r346060 116 116 if($vertical) 117 117 { 118 $gap_style = " style=\"margin-top: " . $gap . "px;\""; 119 } 120 else 121 { 122 $gap_style = " style=\"margin-left: " . $gap . "px;\""; 118 $gap_style = "margin-bottom: " . $gap . "px;"; 119 } 120 else 121 { 122 $gap_style = "margin-right: " . $gap . "px;"; 123 if($center == '1') 124 { 125 $gap_style .= " margin-left: " . $gap . "px;"; 126 } 127 } 128 if($gap_style != '') 129 { 130 $gap_style = " style=\"" . $gap_style . "\""; 123 131 } 124 132 } … … 133 141 $image_alt = null; 134 142 $image_description = null; 135 $first_image_shown = false;136 143 foreach($results as $result) 137 144 { … … 157 164 } 158 165 159 if($ first_image_shown && $gap_style != '')166 if($gap_style != '') 160 167 { 161 168 $gap_style_item = $gap_style; … … 201 208 $output .= "</li>"; 202 209 } 203 $first_image_shown = true;204 210 } 205 211 if($vertical) … … 209 215 $output .= "\n </div>"; 210 216 $output .= "\n</div>"; 217 218 // Add javascript 219 if($order == 'random' && $shuffle == 'true') 220 { 221 $output .= "\n<script type=\"text/javascript\">"; 222 if($vertical) 223 { 224 $output .= "\n jQuery('div#" . $html_id . " ul.image_list').jj_ngg_shuffle();"; 225 } 226 else 227 { 228 $output .= "\n jQuery('div#" . $html_id . "').jj_ngg_shuffle();"; 229 } 230 $output .= "\n</script>\n"; 231 } 232 211 233 } 212 234 -
jj-nextgen-image-list/trunk/jj-ngg-image-list.php
r346012 r346060 4 4 Description: Allows you to pick a gallery from the 'NextGen Gallery' plugin to use with as an Image List. You can list images vertically or horizontally. 5 5 Author: JJ Coder 6 Version: 1.0. 06 Version: 1.0.1 7 7 */ 8 8 -
jj-nextgen-image-list/trunk/readme.txt
r346012 r346060 5 5 Requires at least: 2.8 6 6 Tested up to: 3.0.5 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 9 9 Allows you to pick a gallery from the 'NextGen Gallery' plugin to list images from. You can list images vertically or horizontally. … … 74 74 == Changelog == 75 75 76 - 1.0.1: Shuffle should be working now. Gap tweaks. 76 77 - 1.0.0: First version. 77 78
Note: See TracChangeset
for help on using the changeset viewer.