You are here

function apps_preprocess_apps_app_featured in Apps 7

Implements hook_preprocess_apps_app_featured().

File

theme/apps.theme.inc, line 214
Provides theme functions for apps module.

Code

function apps_preprocess_apps_app_featured(&$vars) {

  //first do everything we do in the teaser
  apps_preprocess_apps_app_teaser($vars);
  if ($vars['app']['screenshots'][0]) {
    $vars['app']['screenshots'][0]['style_name'] = 'apps_featured_screenshot';
    $vars['screenshot'] = theme('image_style', $vars['app']['screenshots'][0]);
  }
  $vars['description'] = $vars['app']['description'];
  if (variable_get('apps_allow_voting', FALSE)) {
    $vars['rating'] = theme('apps_voting_widget', $vars['app']);
  }

  //action link
  $link = apps_app_page_path($vars['app']);
  $vars['action'] = l(t('free'), $link);

  //The text and link for the action button
}