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

Changeset 4468

Show
Ignore:
Timestamp:
01/13/12 15:37:18 (4 months ago)
Author:
johnnyoffline
Message:

aPhotoGrid slot is born

Location:
plugins/apostropheExtraSlotsPlugin/trunk
Files:
13 added
2 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheExtraSlotsPlugin/trunk/config/doctrine/schema.yml

    r4379 r4468  
    296296      form:   false 
    297297      filter: false 
     298 
     299aPhotoGridSlot: 
     300  # Doctrine doesn't produce useful forms with column aggregation inheritance anyway, 
     301  # and slots often use serialization into the value column... the Doctrine forms are not 
     302  # of much use here and they clutter the project 
     303  options: 
     304    symfony: 
     305      form:   false 
     306      filter: false 
     307 
     308  # columns: 
     309  # 
     310  # You can add columns here. However, if you do not need foreign key relationships it is 
     311  # often easier to store your data in the 'value' column via serialize(). If you do add columns,  
     312  # their names must be unique across all slots in your project, so use a unique prefix  
     313  # for your company. 
     314     
     315  # This is how we are able to retrieve slots of various types with a single query from 
     316  # a single table 
     317  inheritance: 
     318    extends: aSlot 
     319    type: column_aggregation 
     320    keyField: type 
     321    keyValue: 'aPhotoGrid' 
  • plugins/apostropheExtraSlotsPlugin/trunk/web/css/aExtraSlots.less

    r4438 r4468  
    11@import '../../../apostrophePlugin/web/css/a-helpers.less'; 
    22 
     3//  
     4// Inset Image Slot 
     5//  
    36.a-slot.aInsetImage 
    47{ 
     
    3639}  
    3740 
     41//  
     42// Inset Area Slot 
     43//  
    3844.a-slot.aInsetArea 
    3945{ 
     
    7177 
    7278 
     79//  
     80// Contact Slot 
     81//  
    7382.a-slot.aContact 
    7483{ 
     
    109118} 
    110119 
     120 
     121//  
     122// Anchor Title Slot 
     123//  
    111124.a-slot.aAnchorTitle 
    112125{ 
     
    156169} 
    157170 
     171 
     172//  
     173// Re-useable Slideshow Slot 
     174//  
    158175.aReusableSlideshow  
    159176{ 
     
    184201} 
    185202 
     203//  
     204// Etsy Slot 
     205//  
    186206.a-slot.aEtsy 
    187207{ 
     
    194214  } 
    195215} 
     216 
     217 
     218//  
     219// Photo Grid Slot 
     220//  
     221.a-slot.aPhotoGrid 
     222{ 
     223  .a-grid-image 
     224  { 
     225    float: left; 
     226    width: 28%; 
     227    margin: 0 1% 1% 0; 
     228    &:last-child 
     229    { 
     230      margin-right: 0; 
     231    } 
     232    img 
     233    { 
     234      max-width: 100%; 
     235      height: auto; 
     236    } 
     237  } 
     238}