function theme_text_resize_block in Text Resize 7        
                          
                  
                        Same name and namespace in other branches
- 6 text_resize.module \theme_text_resize_block()
1 theme call to theme_text_resize_block()
  - text_resize_block_view in ./text_resize.module
- Implements hook_block_view().
File
 
   - ./text_resize.module, line 117
- Creates a small block with jQuery links that resize text within the BODY tag.
Code
function theme_text_resize_block() {
  
  $content = array(
    '#attached' => array(
      'js' => array(
        array(
          'data' => "var text_resize_scope = " . drupal_json_encode(variable_get('text_resize_scope', 'main')) . ";\n          var text_resize_minimum = " . drupal_json_encode(variable_get('text_resize_minimum', '12')) . ";\n          var text_resize_maximum = " . drupal_json_encode(variable_get('text_resize_maximum', '25')) . ";\n          var text_resize_line_height_allow = " . drupal_json_encode(variable_get('text_resize_line_height_allow', FALSE)) . ";\n          var text_resize_line_height_min = " . drupal_json_encode(variable_get('text_resize_line_height_min', 16)) . ";\n          var text_resize_line_height_max = " . drupal_json_encode(variable_get('text_resize_line_height_max', 36)) . ";",
          'type' => 'inline',
        ),
        array(
          'data' => drupal_get_path('module', 'text_resize') . '/text_resize.js',
          'type' => 'file',
        ),
      ),
      'css' => array(
        drupal_get_path('module', 'text_resize') . '/text_resize.css',
      ),
      'library' => array(
        array(
          'system',
          'jquery.cookie',
        ),
      ),
    ),
  );
  if (variable_get('text_resize_reset_button', FALSE) == TRUE) {
    $content['#markup'] = t('<a href="javascript:;" class="changer" id="text_resize_decrease"><sup>-</sup>A</a> <a href="javascript:;" class="changer" id="text_resize_reset">A</a> <a href="javascript:;" class="changer" id="text_resize_increase"><sup>+</sup>A</a><div id="text_resize_clear"></div>');
  }
  else {
    $content['#markup'] = t('<a href="javascript:;" class="changer" id="text_resize_decrease"><sup>-</sup>A</a> <a href="javascript:;" class="changer" id="text_resize_increase"><sup>+</sup>A</a><div id="text_resize_clear"></div>');
  }
  return render($content);
}