Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1 from JanReuteler/master
Extension now compatible with Contao v2.11.2
  • Loading branch information
aschempp committed Jun 4, 2012
2 parents 1523635 + 22bc3c6 commit c0ca350
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ModulePageHeadline.php
Expand Up @@ -41,7 +41,7 @@ public function generate()
$objTemplate->title = $this->headline;
$objTemplate->id = $this->id;
$objTemplate->link = $this->name;
$objTemplate->href = 'typolight/main.php?do=modules&act=edit&id=' . $this->id;
$objTemplate->href = 'contao/main.php?do=modules&act=edit&id=' . $this->id;

return $objTemplate->parse();
}
Expand All @@ -61,7 +61,7 @@ protected function compile()

$this->Template->headline = strlen($objPage->pageTitle) ? $objPage->pageTitle : $objPage->title;

// Current page has an image
// Current page has a headline
if (strlen($objPage->pageHeadline))
{
$this->Template->headline = $objPage->pageHeadline;
Expand Down
2 changes: 1 addition & 1 deletion dca/tl_page.php
Expand Up @@ -39,6 +39,6 @@
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['pageHeadline'],
'inputType' => 'text',
'eval' => array('maxlenght'=>255, 'tl_class'=>'long'),
'eval' => array('maxlenght'=>255, 'allowHtml'=>true, 'tl_class'=>'long'),
);

4 changes: 2 additions & 2 deletions templates/mod_pageheadline.html5
@@ -1,4 +1,4 @@

<section class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
</section>
</div>

0 comments on commit c0ca350

Please sign in to comment.