Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 29th, 2013  |  syntax: None  |  size: 0.97 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. /**
  4.  * AIT WordPress Theme
  5.  *
  6.  * Copyright (c) 2012, Affinity Information Technology, s.r.o. (http://ait-themes.com)
  7.  */
  8.  
  9. $latteParams['post'] = WpLatte::createPostEntity(
  10.         $GLOBALS['wp_query']->post,
  11.         array(
  12.                 'meta' => $GLOBALS['pageOptions'],
  13.         )
  14. );
  15.  
  16.  
  17. $latteParams['post']->classes = implode(' ', get_post_class());
  18.  
  19. $latteParams['headerIcon'] = ($latteParams['post']->options('header')->overrideGlobal) ? $latteParams['post']->options('header')->headerIcon : $aitThemeOptions->globals->headerIcon;
  20.  
  21. $sliderEnable = ($latteParams['post']->options('slider')->overrideGlobal) ? $latteParams['post']->options('slider')->sliderEnable : $aitThemeOptions->globals->sliderEnable;
  22.  
  23. if (empty($sliderEnable)) {
  24.         $latteParams['bodyClasses'] .= ' no-slider';
  25. }
  26.  
  27. if($aitThemeOptions->general->enableCSSFeatures->enable === 'enable') {
  28.         $latteParams['bodyClasses'] .= ' css-features';
  29. }
  30.  
  31. WPLatte::createTemplate(basename(__FILE__, '.php'), $latteParams)->render();
clone this paste RAW Paste Data