You are here

README.txt in jQuery Mobile module 6.3

Same filename and directory in other branches
  1. 7.2 README.txt
  2. 7 README.txt
README.txt
==========

To use the module in your theme simply add the following code to template.php:

function THEME_preprocess_page(&$vars) {
  if (module_exists('jquerymobile_ui')) {
     $vars['jqm_scripts'] = jquerymobile_ui_load_files($vars); 
  }
}

Then create a <head> section like the following in your page.tpl.php file:

<head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <title><?php print $head_title; ?></title>
  <?php print $styles; ?>
  <?php print $scripts; ?>
  <?php if (!empty($jqm_scripts)) { print $jqm_scripts; } ?>
</head> 

File

README.txt
View source
  1. README.txt
  2. ==========
  3. To use the module in your theme simply add the following code to template.php:
  4. function THEME_preprocess_page(&$vars) {
  5. if (module_exists('jquerymobile_ui')) {
  6. $vars['jqm_scripts'] = jquerymobile_ui_load_files($vars);
  7. }
  8. }
  9. Then create a section like the following in your page.tpl.php file:
  10. <?php print $head_title; ?>