To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 4502

Show
Ignore:
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:
2 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheExtraSlotsPlugin/trunk/modules/aMapSlot/templates/_normalView.php

    r3769 r4502  
    2424        <?php (isset($options['height']) && $options['height'])? $height = $options['height'].'px;' : $height = (($options['width']) ? floor($options['width']*.56):'100px;'); ?>                
    2525        <?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 ?>"> 
    2727                <span style="line-height:<?php echo $height ?>px;">Click edit to setup a map</span> 
    2828        </div> 
     
    3232 
    3333<?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>     
    3535<?php endif ?> 
    3636 
    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" ?>"> 
    3838        <span class="a-map-address"><?php echo ($options['address']) ? $options['address'] : '' ?></span> 
    3939</div> 
  • plugins/apostropheExtraSlotsPlugin/trunk/web/css/aExtraSlots.less

    r4475 r4502  
    261261  } 
    262262} 
     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}