Changeset 78
- Timestamp:
- 09/19/08 17:13:04 (2 months ago)
- Files:
-
- branches/1.0/apps/main/templates/_ads.php (modified) (2 diffs)
- branches/1.0/apps/main/templates/layout.php (modified) (1 diff)
- branches/1.0/config/app.yml-dist (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/apps/main/templates/_ads.php
r77 r78 4 4 <ul class="ads_list"> 5 5 <?php foreach ($ads as $ad => $content): ?> 6 <?php if (!isset($content['langs']) || (is_array($content['langs']) && in_array($sf_user->getCulture(), $content['langs']))): ?> 6 7 <li> 7 8 <h4><?php echo link_to($content['title'], $content['url']) ?></h4> … … 11 12 </p> 12 13 </li> 14 <?php endif; ?> 13 15 <?php endforeach; ?> 14 16 </ul> branches/1.0/apps/main/templates/layout.php
r77 r78 53 53 <?php endif; ?> 54 54 <?php include_component('events', 'recentEvents') ?> 55 <?php include_partial('global/ads' ) ?>55 <?php include_partial('global/ads', array('sf_cache_key' => $sf_user->getCulture())) ?> 56 56 <?php include_component('utils', 'stats') ?> 57 57 </div> branches/1.0/config/app.yml-dist
r61 r78 171 171 max_items: 8 172 172 173 sidebar: 174 ads: 175 ad1_intl: 176 langs: [en, es, pt] 177 title: My advertisement 178 url: http://foo.bar/ 179 text: Some text here. 180 ad1_fr: 181 langs: [fr] 182 title: Ma publicité 183 url: http://foo.bar/ 184 text: Un peu de texte par là . 185 173 186 tags: 174 187 limit: 50
