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

Show
Ignore:
Timestamp:
07/21/10 15:51:42 (22 months ago)
Author:
dordille
Message:

Merged various fixes from branch into trunk.

Location:
plugins/apostropheBlogPlugin/trunk
Files:
1 removed
17 modified
3 copied

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/trunk

  • plugins/apostropheBlogPlugin/trunk/lib/actions/BaseaBlogActions.class.php

    r1665 r1816  
    2929      ->leftJoin($this->modelClass.'.Categories c'); 
    3030    $categoryIds = array(); 
    31     $this->blogCategories = $this->page->BlogCategories; 
     31    $this->blogCategories = aBlogCategoryTable::getCategoriesForPage($this->page); 
    3232    foreach($this->page->BlogCategories as $blogCategory) 
    3333    { 
  • plugins/apostropheBlogPlugin/trunk/lib/actions/BaseaBlogSingleSlotComponents.class.php

    r1593 r1816  
    2727    } 
    2828  } 
    29    
     29 
    3030  public function executeNormalView() 
    3131  { 
    3232    $this->setup(); 
    3333    $this->values = $this->slot->getArrayValue(); 
    34                 $this->aBlogItem = new aBlogItem; 
     34                $this->aBlogItem = new $this->modelClass(); 
    3535    if(isset($this->values['blog_item'])) 
    3636    { 
     
    4646    $this->options['excerptLength'] = $this->getOption('excerptLength', 200); 
    4747    $this->options['maxImages'] = $this->getOption('maxImages', 1); 
    48   }  
     48  } 
    4949} 
  • plugins/apostropheBlogPlugin/trunk/lib/form/aBlogEngineForm.class.php

    r879 r1816  
    11<?php 
    22 
    3 class aBlogEngineForm extends aPageForm 
     3class aBlogEngineForm extends PluginaBlogEngineForm 
    44{ 
    5   public function configure() 
    6   { 
    7     $this->useFields(); 
    8     $q = Doctrine::getTable('aBlogPost')->addCategories(); 
    9     $this->setWidget('blog_categories_list', new sfWidgetFormDoctrineChoice(array('multiple' => true, 'query' => $q, 'model' => 'aBlogCategory'))); 
    10     $this->widgetSchema->setLabel('blog_categories_list', 'blog Categories'); 
    11     $this->widgetSchema->setHelp('blog_categories_list','(Defaults to All Cateogories)'); 
    12     $this->setValidator('blog_categories_list', new sfValidatorDoctrineChoice(array('multiple' => true, 'query' => $q, 'model' => 'aBlogCategory', 'required' => false))); 
    13     $this->widgetSchema->setNameFormat('enginesettings[%s]'); 
    14     $this->widgetSchema->setFormFormatterName('aAdmin'); 
    15   } 
    165} 
  • plugins/apostropheBlogPlugin/trunk/lib/form/aEventEngineForm.class.php

    r879 r1816  
    11<?php 
    22 
    3 class aEventEngineForm extends aPageForm 
     3class aEventEngineForm extends PluginaEventEngineForm 
    44{ 
    5   public function configure() 
    6   { 
    7     $this->useFields(); 
    8     $q = Doctrine::getTable('aEvent')->addCategories(); 
    9     $this->setWidget('blog_categories_list', new sfWidgetFormDoctrineChoice(array('multiple' => true, 'query' => $q, 'model' => 'aBlogCategory'))); 
    10     $this->widgetSchema->setLabel('blog_categories_list', 'blog Categories'); 
    11     $this->widgetSchema->setHelp('blog_categories_list','(Defaults to All Cateogories)'); 
    12     $this->setValidator('blog_categories_list', new sfValidatorDoctrineChoice(array('multiple' => true, 'query' => $q, 'model' => 'aBlogCategory', 'required' => false))); 
    13     $this->widgetSchema->setNameFormat('enginesettings[%s]'); 
    14     $this->widgetSchema->setFormFormatterName('aAdmin'); 
    15   } 
    165} 
  • plugins/apostropheBlogPlugin/trunk/lib/form/doctrine/PluginaBlogItemForm.class.php

    r1744 r1816  
    3838    } 
    3939 
    40     if(!$user->hasCredential('admin')) 
    41     { 
    42       unset($this['author_id']); 
    43     } 
    44  
    45     $templates = sfConfig::get('app_'.$this->engine.'_templates'); 
     40    $templates = sfConfig::get('app_'.$this->engine.'_templates', $this->getObject()->getTemplateDefaults()); 
    4641    $templateChoices = array(); 
    4742          foreach ($templates as $key => $template) 
     
    8984    } 
    9085 
    91     $q = Doctrine::getTable('sfGuardUser')->createQuery('u'); 
    92  
    93     if ($candidateGroup && $sufficientGroup) 
    94     { 
    95       $q->leftJoin('u.groups g')->addWhere('(g.name IN (?, ?)) OR (u.is_super_admin IS TRUE)', array($candidateGroup, $sufficientGroup)); 
    96     } 
    97     $this->setWidget('author_id', 
    98       new sfWidgetFormDoctrineChoice(array('model' => 'sfGuardUser', 'query' => $q))); 
    99     $this->setValidator('author_id', 
    100       new sfValidatorDoctrineChoice(array('model' => 'sfGuardUser', 'query' => $q, 'required' => false))); 
     86    if($user->hasCredential('admin')) 
     87    { 
     88      $q = Doctrine::getTable('sfGuardUser')->createQuery('u'); 
     89 
     90      if ($candidateGroup && $sufficientGroup) 
     91      { 
     92        $q->leftJoin('u.groups g')->addWhere('(g.name IN (?, ?)) OR (u.is_super_admin IS TRUE)', array($candidateGroup, $sufficientGroup)); 
     93      } 
     94      $this->setWidget('author_id', 
     95        new sfWidgetFormDoctrineChoice(array('model' => 'sfGuardUser', 'query' => $q))); 
     96      $this->setValidator('author_id', 
     97        new sfValidatorDoctrineChoice(array('model' => 'sfGuardUser', 'query' => $q, 'required' => false))); 
     98    } 
     99    else 
     100    { 
     101      unset($this['author_id']); 
     102    } 
    101103 
    102104    $this->setWidget('published_at', new sfWidgetFormJQueryDateTime( 
     
    106108    $this->getWidgetSchema()->setDefault('published_at', date('Y-m-d H:i:s')); 
    107109 
    108     // $this->widgetSchema['tags']       = new sfWidgetFormInput(array('default' => implode(', ', $this->getObject()->getTags())), array('class' => 'tag-input', 'autocomplete' => 'off')); 
    109     // $this->validatorSchema['tags']    = new sfValidatorString(array('required' => false)); 
     110    //$this->widgetSchema['tags']       = new sfWidgetFormInput(array('default' => implode(', ', $this->getObject()->getTags())), array('class' => 'tag-input', 'autocomplete' => 'off')); 
     111    //$this->validatorSchema['tags']    = new sfValidatorString(array('required' => false)); 
    110112 
    111113    $this->validatorSchema->setPostValidator( 
     
    157159  protected function doSave($con = null) 
    158160  { 
    159     $tags = $this->values['tags']; 
    160     $tags = preg_replace('/\s\s+/', ' ', $tags); 
    161     $tags = str_replace(', ', ',', $tags); 
    162  
    163     $this->object->setTags($tags); 
    164161    if(isset($this['categories_list_add'])) 
    165162    { 
  • plugins/apostropheBlogPlugin/trunk/lib/model/doctrine/PluginaBlogCategoryTable.class.php

    r1735 r1816  
    7575    return $tags; 
    7676  } 
     77   
     78  public static function getCategoriesForPage($page) 
     79  { 
     80            return Doctrine::getTable('aBlogCategory')->createQuery('c') 
     81              ->innerJoin('c.Pages as p') 
     82              ->where('p.id = ?', $page['id']) 
     83              ->orderBy('c.name') 
     84              ->execute(); 
     85        } 
    7786 
    7887 
  • plugins/apostropheBlogPlugin/trunk/lib/model/doctrine/PluginaBlogItem.class.php

    r1748 r1816  
    366366  public function getAreas() 
    367367  { 
    368     $templates = sfConfig::get('app_'.$this->engine.'_templates'); 
     368    $templates = sfConfig::get('app_'.$this->engine.'_templates', self::getTemplateDefaults()); 
    369369    return $templates[$this['template']]['areas']; 
    370370  } 
  • plugins/apostropheBlogPlugin/trunk/lib/model/doctrine/PluginaBlogPost.class.php

    r1294 r1816  
    1515  public $engine = 'aBlog'; 
    1616   
     17  public static function getTemplateDefaults() 
     18  { 
     19    return array( 
     20      'singleColumnTemplate' => array( 
     21        'name' => 'Single Column', 
     22        'areas' => array('blog-body') 
     23      ), 
     24      'twoColumnTemplate' => array( 
     25        'name' => 'Two Column', 
     26        'areas' => array('blog-body', 'blog-sidebar') 
     27      ) 
     28    ); 
     29  } 
     30   
    1731  public function getVirtualPageSlug() 
    1832  { 
  • plugins/apostropheBlogPlugin/trunk/lib/model/doctrine/PluginaEvent.class.php

    r1294 r1816  
    1515  public $engine = 'aEvent'; 
    1616   
     17  public static function getTemplateDefaults() 
     18  { 
     19    return array( 
     20      'singleColumnTemplate' => array( 
     21        'name' => 'Single Column', 
     22        'areas' => array('blog-body') 
     23      ) 
     24    ); 
     25  } 
     26   
    1727  public function getVirtualPageSlug() 
    1828  { 
  • plugins/apostropheBlogPlugin/trunk/lib/model/doctrine/PluginaEventTable.class.php

    r1666 r1816  
    33/** 
    44 * PluginaEventTable 
    5  *  
     5 * 
    66 * This class has been auto-generated by the Doctrine ORM Framework 
    77 */ 
     
    99{ 
    1010  protected $categoryColumn = 'events'; 
    11      
     11 
    1212  /** 
    1313   * Returns an instance of this class. 
  • plugins/apostropheBlogPlugin/trunk/modules/aBlogAdmin/templates/_form.php

    r1750 r1816  
    2323        </a> 
    2424        <div id="a-blog-item-update" class="a-btn big a-publish-post">Saved</div> 
    25          
     25 
    2626        <div class="post-status option"> 
    2727          <?php echo $form['status']->render() ?> 
    2828        </div> 
    29          
     29 
    3030        <?php echo __('Publish now or', array(), 'apostrophe_blog') ?>  <a href="#" onclick="return false;" class="post-date-toggle a-sidebar-toggle"><?php echo __('set a date', array(), 'apostrophe_blog') ?></a> 
    3131 
     
    4646        <h4><?php echo __('Author', array(), 'apostrophe_blog') ?>: 
    4747                        <?php if (isset($form['author_id'])): ?> 
    48                                 </h4>    
     48                                </h4> 
    4949                                <div class="author_id option"> 
    5050                                <?php echo $form['author_id']->render() ?> 
    51                                 <?php echo $form['author_id']->renderError() ?>                          
     51                                <?php echo $form['author_id']->renderError() ?> 
    5252                                </div> 
    5353                        <?php else: ?> 
    54                                 <span><?php echo $a_blog_post->Author ?></span></h4>     
     54                                <span><?php echo $a_blog_post->Author ?></span></h4> 
    5555                        <?php endif ?> 
    5656        </div> 
     
    6565                <?php else: ?> 
    6666                        <hr/> 
    67                 <div class="post-editors-options option show-editors" id="editors-section">                      
     67                <div class="post-editors-options option show-editors" id="editors-section"> 
    6868                <?php endif ?> 
    6969 
     
    7171            <?php echo $form['editors_list']->render()?> 
    7272            <?php echo $form['editors_list']->renderError() ?> 
    73          
     73 
    7474      </div> 
    7575    </div> 
     
    9494        <hr /> 
    9595        <div class="comments section"> 
    96                 <h4><a href="#" class="allow_comments_toggle <?php echo ($a_blog_post['allow_comments'])? 'enabled' : 'disabled' ?>"><span class="enabled" title="<?php echo __('Click to disable comments', array(), 'apostrophe_blog') ?>"><?php echo __('Comments are enabled', array(), 'apostrophe_blog') ?></span><span class="disabled" title="<?php echo __('Click to enable comments', array(), 'apostrophe_blog') ?>"><?php echo __('Comments are disabled', array(), 'apostrophe_blog') ?></span></a></h4>  
     96                <h4><a href="#" class="allow_comments_toggle <?php echo ($a_blog_post['allow_comments'])? 'enabled' : 'disabled' ?>"><span class="enabled" title="<?php echo __('Click to disable comments', array(), 'apostrophe_blog') ?>"><?php echo __('Comments are enabled', array(), 'apostrophe_blog') ?></span><span class="disabled" title="<?php echo __('Click to enable comments', array(), 'apostrophe_blog') ?>"><?php echo __('Comments are disabled', array(), 'apostrophe_blog') ?></span></a></h4> 
    9797                <div class="allow_comments option"> 
    9898                <?php echo $form['allow_comments']->render() ?> 
     
    109109                <h4><?php echo __('Categories', array(), 'apostrophe_blog') ?></h4> 
    110110                <?php if($sf_user->hasCredential('admin')): ?> 
    111                         <?php echo link_to('edit categories','@a_blog_category_admin', array('class' => 'edit-categories', )) ?>         
     111                        <?php echo link_to('edit categories','@a_blog_category_admin', array('class' => 'edit-categories', )) ?> 
    112112          <?php endif ?> 
    113113                <?php echo $form['categories_list']->render() ?> 
  • plugins/apostropheBlogPlugin/trunk/modules/aBlogAdmin/templates/_formScripts.php

    r1750 r1816  
    1 <script type="text/javascript" charset="utf-8">  
     1<script type="text/javascript" charset="utf-8"> 
    22        function aBlogUpdateMulti() { aBlogUpdateForm('<?php echo url_for('a_blog_admin_update',$a_blog_post) ?>'); } 
    33        $(document).ready(function(){ 
    4                  
     4 
    55            $('#a-admin-form').change(function(event) { 
    66                    if (!( event.target.className == 'a-multiple-select-input' && event.target.options[0].selected == true || event.target.name == 'add-text' || event.target.name == 'a-ignored' )) 
     
    3333            aBlogPublishBtn('<?php echo $a_blog_post->status  ?>','<?php echo url_for('a_blog_admin_update',$a_blog_post) ?>'); 
    3434            aMultipleSelect('#categories-section', { 'choose-one': '<?php echo __('Choose Categories', array(), 'apostrophe_blog') ?>' <?php if($sf_user->hasCredential('admin')): ?>, 'add': '<?php echo __('+ New Category', array(), 'apostrophe_blog') ?>'<?php endif ?>, 'onChange': aBlogUpdateMulti }); 
    35             aMultipleSelect('#editors-section', { 'choose-one': '<?php echo __('Choose Editors', array(), 'apostrophe_blog') ?>','onChange': aBlogUpdateMulti  });     
     35            aMultipleSelect('#editors-section', { 'choose-one': '<?php echo __('Choose Editors', array(), 'apostrophe_blog') ?>','onChange': aBlogUpdateMulti  }); 
    3636 
    3737         }); 
  • plugins/apostropheBlogPlugin/trunk/modules/aBlogAdmin/templates/editSuccess.php

    r1746 r1816  
    44 
    55<div class="a-admin-container <?php echo $sf_params->get('module') ?>"> 
    6          
     6 
    77        <?php slot('a-subnav') ?> 
    88                <div class="a-subnav-wrapper blog"> 
    9                         <div class="a-subnav-inner">     
     9                        <div class="a-subnav-inner"> 
    1010                                <ul class="a-admin-action-controls"> 
    1111                                        <li><a href="<?php echo url_for('@a_blog_admin'); ?>" class="a-btn big alt"><?php echo __('View All Posts', array(), 'apostrophe-blog') ?></a></li> 
    1212                 <?php include_partial('list_actions', array('helper' => $helper)) ?> 
    1313                                </ul> 
    14                           <?php include_partial('aBlogAdmin/form_bar') ?>                                
     14                          <?php include_partial('aBlogAdmin/form_bar') ?> 
    1515                                <div class="a-admin-title-sentence"> 
    1616                                        <h3 class="new-item"><?php echo __('You are creating a new post.', array(), 'apostrophe_blog') ?></h3> 
    17                                         <h3 class="draft-item"><?php echo __('You are working on a draft post.', array(), 'apostrophe_blog') ?></h3>                                     
     17                                        <h3 class="draft-item"><?php echo __('You are working on a draft post.', array(), 'apostrophe_blog') ?></h3> 
    1818                                        <h3 class="published-item"><?php echo __('You are editing a published post.', array(), 'apostrophe_blog') ?></h3> 
    1919                                        <span class="flash-message"> <?php echo __('Post Saved at', array(), 'apostrophe_blog') ?></span> 
    2020                                </div> 
    21                         </div>  
     21                        </div> 
    2222          </div> 
    2323        <?php end_slot() ?> 
    24    
     24 
    2525  <?php include_partial('flashes') ?> 
    26          
    27         <div class="a-admin-content main">       
    28                  
     26 
     27        <div class="a-admin-content main"> 
     28 
    2929                <?php if (0): ?> <?php // We aren't using status messages right now ?> 
    3030                        <dl id="a-blog-item-status-messages"></dl> 
    3131                <?php endif ?> 
    32                  
     32 
    3333                <div id="a-blog-item-title-interface" class="a-blog-item-title-interface"> 
    3434                        <input type="text" id="a_blog_item_title_interface" value="<?php echo ($a_blog_post->title == 'untitled')? '':$a_blog_post->title ?>" /> 
     
    3737                    <li><a href="#" class="a-btn a-save big"><?php echo __('Save', array(), 'apostrophe_blog') ?></a></li> 
    3838                    <li><a href="#" class="a-btn a-cancel no-label big"><?php echo __('Cancel', array(), 'apostrophe_blog') ?></a></li> 
    39                   </ul>                          
    40                 </div>           
     39                  </ul> 
     40                </div> 
    4141 
    4242                <div id="a-blog-item-permalink-interface"> 
    43                         <h6>Permalink:</h6>  
     43                        <h6>Permalink:</h6> 
    4444                        <div class="a-blog-item-permalink-wrapper url"> 
    45         <span><?php echo aTools::urlForPage($a_blog_post->findBestEngine()->getSlug()).'/' ?></span> 
     45        <span><?php echo aTools::urlForPage($a_blog_post->findBestEngine()->getSlug()).'/' ?><?php echo date('Y/m/d/', strtotime($a_blog_post->getPublishedAt())) ?></span> 
    4646                        </div> 
    4747                        <div class="a-blog-item-permalink-wrapper slug"> 
     
    5050                            <li><a href="#" class="a-btn a-save mini"><?php echo __('Save', array(), 'apostrophe_blog') ?></a></li> 
    5151                            <li><a href="#" class="a-btn a-cancel no-label mini"><?php echo __('Cancel', array(), 'apostrophe_blog') ?></a></li> 
    52                           </ul>                          
     52                          </ul> 
    5353                        </div> 
    5454                </div> 
     
    6565    </div> 
    6666  </div> 
    67    
     67 
    6868        <?php if (isset($a_blog_post['updated_at'])): ?> 
    6969                <div id="post-last-saved" class="post-updated-at option"> 
     
    7171                                        <b>Last Saved:</b> 
    7272                                        <span></span> 
    73                         </h6>            
     73                        </h6> 
    7474                </div> 
    7575        <?php endif ?> 
    76          
     76 
    7777  <div class="a-admin-footer"> 
    7878    <?php include_partial('form_footer', array('a_blog_post' => $a_blog_post, 'form' => $form, 'configuration' => $configuration)) ?> 
  • plugins/apostropheBlogPlugin/trunk/modules/aEventAdmin/templates/_form.php

    r1750 r1816  
    4646        <div class="start_date"> 
    4747                <?php echo $form['start_date']->render(array('beforeShow' => 'aBlogSetDateRange', 'onClose' => 'aBlogUpdateMulti')) ?> 
    48                 <?php echo $form['start_date']->renderError() ?>                                         
     48                <?php echo $form['start_date']->renderError() ?> 
    4949        </div> 
    5050        <h4>End Date</h4> 
    5151        <div class="end_date"> 
    5252                <?php echo $form['end_date']->render(array('beforeShow' => 'aBlogSetDateRange', 'onClose' => 'aBlogUpdateMulti')) ?> 
    53                 <?php echo $form['end_date']->renderError() ?>                                   
     53                <?php echo $form['end_date']->renderError() ?> 
    5454        </div> 
    5555</div> 
     
    6565                <h4><?php echo __('Author', array(), 'apostrophe_blog') ?> 
    6666                        <?php if ($sf_user->hasCredential('admin')): ?> 
    67                                 </h4>    
     67                                </h4> 
    6868                                <div class="author_id option"> 
    6969                                <?php echo $form['author_id']->render() ?> 
    70                                 <?php echo $form['author_id']->renderError() ?>                          
     70                                <?php echo $form['author_id']->renderError() ?> 
    7171                                </div> 
    7272                        <?php else: ?>: <span><?php echo $a_event->Author ?></span></h4><?php endif ?> 
     
    7474        </div> 
    7575 
    76         <?php // Blog Post Editors ?>    
     76        <?php // Blog Post Editors ?> 
    7777  <?php if(isset($form['editors_list'])): ?> 
    7878        <div class="post-editors"> 
     
    8383                <?php else: ?> 
    8484                        <hr/> 
    85                 <div class="post-editors-options option show-editors" id="editors-section">                      
     85                <div class="post-editors-options option show-editors" id="editors-section"> 
    8686                <?php endif ?> 
    8787 
     
    8989            <?php echo $form['editors_list']->render()?> 
    9090            <?php echo $form['editors_list']->renderError() ?> 
    91          
     91 
    9292      </div> 
    9393    </div> 
     
    111111        <hr /> 
    112112        <div class="comments section"> 
    113                 <h4><a href="#" class="allow_comments_toggle <?php echo ($a_event['allow_comments'])? 'enabled' : 'disabled' ?>"><span class="enabled" title="<?php echo __('Click to disable comments', array(), 'apostrophe_blog') ?>"><?php echo __('Comments are enabled', array(), 'apostrophe_blog') ?></span><span class="disabled" title="<?php echo __('Click to enable comments', array(), 'apostrophe_blog') ?>"><?php echo __('Comments are disabled', array(), 'apostrophe_blog') ?></span></a></h4>  
     113                <h4><a href="#" class="allow_comments_toggle <?php echo ($a_event['allow_comments'])? 'enabled' : 'disabled' ?>"><span class="enabled" title="<?php echo __('Click to disable comments', array(), 'apostrophe_blog') ?>"><?php echo __('Comments are enabled', array(), 'apostrophe_blog') ?></span><span class="disabled" title="<?php echo __('Click to enable comments', array(), 'apostrophe_blog') ?>"><?php echo __('Comments are disabled', array(), 'apostrophe_blog') ?></span></a></h4> 
    114114                <div class="allow_comments option"> 
    115115                        <?php echo $form['allow_comments']->render() ?> 
    116116                        <?php echo $form['allow_comments']->renderError() ?> 
    117                 </div>   
     117                </div> 
    118118        </div> 
    119119        <?php endif ?> 
     
    125125                <h4><?php echo __('Categories', array(), 'apostrophe_blog') ?></h4> 
    126126                <?php if($sf_user->hasCredential('admin')): ?> 
    127                         <?php echo link_to('edit categories','@a_blog_category_admin', array('class' => 'edit-categories', )) ?>         
     127                        <?php echo link_to('edit categories','@a_blog_category_admin', array('class' => 'edit-categories', )) ?> 
    128128          <?php endif ?> 
    129129                <?php echo $form['categories_list']->render() ?> 
  • plugins/apostropheBlogPlugin/trunk/modules/aEventAdmin/templates/editSuccess.php

    r1746 r1816  
    4343                        <h6>Permalink:</h6> 
    4444                        <div class="a-blog-item-permalink-wrapper url"> 
    45         <span><?php echo aTools::urlForPage($a_event->findBestEngine()->getSlug()).'/' ?></span> 
     45        <span><?php echo aTools::urlForPage($a_event->findBestEngine()->getSlug()).'/' ?><?php echo date('Y/m/d/', strtotime($a_event->getStartDate())) ?></span> 
    4646                        </div> 
    4747                        <div class="a-blog-item-permalink-wrapper slug"> 
  • plugins/apostropheBlogPlugin/trunk/web/css/aBlog.css

    r1750 r1816  
    179179            center bottom, 
    180180            rgb(255,255,255) 0%, 
    181             rgb(247,247,247) 100%        
     181            rgb(247,247,247) 100% 
    182182        ); 
    183183background-image: -webkit-gradient( 
     
    425425.a-admin-sidebar .section.event-date div.start_date 
    426426{ 
    427         margin-bottom: 5px;      
     427        margin-bottom: 5px; 
    428428} 
    429429 
     
    441441width: 200px !important; 
    442442width: auto; /* ? For IE */ 
    443         float: right; 
     443float: left; /* Was float:right, but this broke in IE */ 
     444display:inline; 
    444445clear: both; 
    445446} 
     
    467468font-family: Arial, sans-serif; 
    468469border: 1px solid #ddd; 
    469 padding: 3px 4px; 
     470padding: 3px 0px; 
    470471border: 1px solid rgba(0,0,0,0.2); 
    471472-moz-border-radius: 3px; 
     
    607608{ 
    608609font-size: 18px; 
    609 color: #999;     
     610color: #999; 
    610611} 
    611612 
     
    614615.a-admin-title-sentence h3.draft-item 
    615616{ 
    616 display: none;   
     617display: none; 
    617618} 
    618619 
     
    836837#a-blog-item-status-messages 
    837838{ 
    838 background: rgba(0,0,0,0.05);            
     839background: rgba(0,0,0,0.05); 
    839840line-height: 24px; 
    840841font-size: 16px;