I'm getting the following error:

Notice: Undefined variable: title in include() (line 4 of framework/block.tpl.php).

Any help would be appreciated
Thx
Francois.

Comments

afaaro’s picture

I'm getting same error

silverfly’s picture

The Framework theme is using a simplified version of Drupal's default block template. You have two options...

One
Replace your block.tpl.php code with original Drupal block template code -- modified to html5

<section id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
  <?php print render($title_prefix); ?>
  <?php if ($block->subject): ?>
    <h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
  <?php endif;?>
  	
  <?php print render($title_suffix); ?>
	
  <section class="content"<?php print $content_attributes; ?>>
    <?php print $content ?>
  </section>
</section>



Two
If you have renamed your theme, you need to change the names of the functions in your template.php file to match the new theme name

function framework_html_head_alter(&$head_elements) {
  $head_elements['system_meta_content_type']['#attributes'] = array(
    'charset' => 'utf-8'
  );
}

Should be changed to (for all functions)...

function YOUR_CUSTOM_THEME_NAME_html_head_alter(&$head_elements) {
  $head_elements['system_meta_content_type']['#attributes'] = array(
    'charset' => 'utf-8'
  );
}
pmichelazzo’s picture

Including with the option two, you can use:

<?php if (isset($title)): ?>

for this

<?php if ($title): ?>

Cheers

FranCarstens’s picture

Perfect. Thanks.