function newsweek_image_style($variables) { // Determine the dimensions of the styled image. $dimensions = array('width' => $variables['width'], 'height' => $variables['height']); image_style_transform_dimensions($variables['style_name'], $dimensions); $variables['width'] = $dimensions['width']; $variables['height'] = $dimensions['height']; // Determine the URL for the styled image. $variables['path'] = image_style_url($variables['style_name'], $variables['path']); if (module_exists('ibtmedia_special_item') && ibtmedia_special_item_is_any_special_item_page()) { $variables['title'] = NULL; } return theme('image', $variables); }
<?php print render($page['content_full']); ?> </div> <?php } ?> <div class="container-fluid"> <?php if (!empty($page['content_left'])) { //if corporate pages $page_left_col = ' col-md-3 col-sm-4'; $page_content_col = ' col-md-8 col-sm-7'; } else { if (arg(0) == 'node' && is_numeric(arg(1)) || ibtmedia_special_item_is_any_special_item_page() == TRUE) { //if article pages $page_content_col = ' col-sm-9 col-sm-offset-2 col-md-7 col-md-offset-1'; $page_sidebar_col = ' col-md-4 col-lg-3 col-lg-offset-1'; } else { //all other pages $page_content_col = ' col-md-8 col-lg-9'; $page_sidebar_col = ' col-md-4 col-lg-3'; if (empty($page['right'])) { $page_content_col = ' col-md-12'; } } } ?> <div class="row"> <?php