Commit 1beee8fb authored by Laura Rodrigues's avatar Laura Rodrigues

Merge branch 'develop'

parents c057e7d1 b2f45892
Pipeline #10896 passed with stages
in 1 minute
......@@ -37,7 +37,14 @@ class Button extends \SiteOrigin_Widget {
'type' => 'checkbox',
'label' => 'Download?',
'default' => false,
),
'novaaba' => array(
'type' => 'checkbox',
'label' => 'Abrir em nova aba',
'default' => false,
)
];
parent::__construct('button', 'Botão', [
......
<div class="text-<?= $instance['button_align'] ?>">
<a href="<?= $instance['button_href']; ?>" <?= isset($instance['download']) && $instance['download']? 'download' : ''?> class="button large full-width button-widget" target="_blank"><?= $instance['button_label']; ?></a>
<a href="<?= $instance['button_href']; ?>" <?= isset($instance['novaaba']) && $instance['novaaba']? 'target="_blank"' : ''?><?= isset($instance['download']) && $instance['download']? 'download' : ''?> class="button large full-width button-widget" target="_blank"><?= $instance['button_label']; ?></a>
</div>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment