To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
Changeset 4502
- Timestamp:
- 01/23/12 20:06:02 (4 months ago)
- Author:
- johnnyoffline
- Message:
-
modified our basic map slot to no longer require a width parameter. It sizes itself to the width of the column and creates a 16:9 box. If the column size changes, so does the width of the map. This works better for responsive layouts
- Location:
- plugins/apostropheExtraSlotsPlugin/trunk
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3769
|
r4502
|
|
| 24 | 24 | <?php (isset($options['height']) && $options['height'])? $height = $options['height'].'px;' : $height = (($options['width']) ? floor($options['width']*.56):'100px;'); ?> |
| 25 | 25 | <?php $style = 'width:'.$width.' height:'.$height ?> |
| 26 | | <div class="a-media-placeholder" style="<?php echo $style ?>"> |
| | 26 | <div class="a-media-placeholder clearfix" style="<?php echo $style ?>"> |
| 27 | 27 | <span style="line-height:<?php echo $height ?>px;">Click edit to setup a map</span> |
| 28 | 28 | </div> |
| … |
… |
|
| 32 | 32 | |
| 33 | 33 | <?php if ($options['title']): ?> |
| 34 | | <h3 class="a-map-title"><?php echo $options['title']?></h3> |
| | 34 | <h3 class="a-map-title clearfix"><?php echo $options['title']?></h3> |
| 35 | 35 | <?php endif ?> |
| 36 | 36 | |
| 37 | | <div class="a-map" id="a-map-<?php echo "$pageid-$name-$permid" ?>" style="width:<?php echo $options['width'] ?>px;height:<?php echo $options['height'] ?>px;"> |
| | 37 | <div class="a-map clearfix" id="a-map-<?php echo "$pageid-$name-$permid" ?>"> |
| 38 | 38 | <span class="a-map-address"><?php echo ($options['address']) ? $options['address'] : '' ?></span> |
| 39 | 39 | </div> |
-
|
r4475
|
r4502
|
|
| 261 | 261 | } |
| 262 | 262 | } |
| | 263 | |
| | 264 | // |
| | 265 | // Map Slot |
| | 266 | // |
| | 267 | .a-slot.aMap |
| | 268 | { |
| | 269 | .a-map |
| | 270 | { |
| | 271 | float: none; |
| | 272 | display: block; |
| | 273 | clear: both; |
| | 274 | width: auto; |
| | 275 | height: 0; |
| | 276 | padding: 0 0 56.25%; |
| | 277 | } |
| | 278 | } |
Download in other formats: