Moin zusammen,
hier der Screenshot und die RSCE-Dateien:
rsce-02.png
Code:
<!-- rsce_hero_header.html5 -->
<div class="hero-wrapper">
<section class="hero">
<div class="hero-bg"></div>
<div class="hero-box">
<div class="hero-text">
<h1><?php echo $this->headline ?></h1>
<p><?php echo $this->text ?></p>
</div>
<a href="<?php echo $this->link ?>" class="cta"><?php echo $this->linktext ?></a>
</div>
</section>
<img
src="/img/white-header-form.svg"
alt=""
class="white-form"
loading="lazy"
/>
</div>
Code:
<?php
// rsce_hero_header_config.php
return array(
'label' => array('Hero Header', 'Erzeugt den Header für die Startseite'),
'types' => array('content', 'module'),
'fields' => array(
'headline' => array(
'label' => array('Headline', ''),
'eval' => array(),
'inputType' => 'text',
),
'text' => array(
'label' => array('Text', ''),
'eval' => array('rte' => 'tinyMCE'),
'inputType' => 'textarea',
),
'linktext' => array(
'label' => array('Linktext', ''),
'eval' => array(),
'inputType' => 'text',
),
'link' => array(
'label' => array('Link', ''),
'eval' => array(),
'inputType' => 'url',
),
'customclass' => array(
'label' => array('Customclass', ''),
'eval' => array(),
'inputType' => 'text',
),
),
);
Viele Grüße,
conter