Commit 2cafd27b authored by Janak Singh's avatar Janak Singh
Browse files

added support for iwebkit library folder

parent f4328a82
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
<?php

function phptemplate_preprocess_views_view__frontpage(&$variables) {
//  print_r($variables);
//Setup the vars for the Blueprint Libraries location.
if (module_exists('libraries')) {
  $iwebkit_library_path = module_invoke('libraries', 'get_path', 'iwebkit') .'/';
}
else {
  $iwebkit_library_path = 'sites/all/libraries/iwebkit/';
}

// Custom Theme Settings - CSS file
$custom_css = drupal_get_path('theme', 'iwebkit').'/css/style.css';
$custom_css = $iwebkit_library_path .'/css/style.css';

drupal_add_css($custom_css, 'theme', 'all', TRUE);



function iwebkit_textfield($element) {
  $size = empty($element['#size']) ? '' : ' size="'. $element['#size'] .'"';
  $maxlength = empty($element['#maxlength']) ? '' : ' maxlength="'. $element['#maxlength'] .'"';
@@ -167,5 +173,3 @@ function iwebkit_item_list($items = array(), $title = NULL, $type = 'ul', $attri
  $output .= '</div>';
  return $output;
}
 No newline at end of file