Skip to content

Commit

Permalink
Fixes #1217
Browse files Browse the repository at this point in the history
  • Loading branch information
bloatware committed Mar 26, 2018
1 parent aa7de52 commit d71ebb5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions textpattern/include/txp_css.php
Expand Up @@ -191,14 +191,14 @@ function css_edit($message = '', $refresh_partials = false)
$actionsExtras = '';

if ($name) {
$actionsExtras .= href('<span class="ui-icon ui-icon-copy"></span> '.gTxt('duplicate'), '#', array(
$actionsExtras .= sLink('css', 'pour', '<span class="ui-icon ui-extra-icon-new-document"></span> '.gTxt('create_new_css'), 'txp-new')
.href('<span class="ui-icon ui-icon-copy"></span> '.gTxt('duplicate'), '#', array(
'class' => 'txp-clone',
'data-form' => 'style_form',
));
}

$actions = graf(
sLink('css', 'pour', '<span class="ui-icon ui-extra-icon-new-document"></span> '.gTxt('create_new_css'), 'txp-new').
$actionsExtras,
array('class' => 'txp-actions txp-actions-inline')
);
Expand Down
4 changes: 2 additions & 2 deletions textpattern/include/txp_form.php
Expand Up @@ -331,14 +331,14 @@ function form_edit($message = '', $refresh_partials = false)
$actionsExtras = '';

if ($name) {
$actionsExtras .= href('<span class="ui-icon ui-icon-copy"></span> '.gTxt('duplicate'), '#', array(
$actionsExtras .= sLink('form', 'form_create', '<span class="ui-icon ui-extra-icon-new-document"></span> '.gTxt('create_new_form'), 'txp-new')
.href('<span class="ui-icon ui-icon-copy"></span> '.gTxt('duplicate'), '#', array(
'class' => 'txp-clone',
'data-form' => 'form_form',
));
}

$actions = graf(
sLink('form', 'form_create', '<span class="ui-icon ui-extra-icon-new-document"></span> '.gTxt('create_new_form'), 'txp-new').
$actionsExtras,
array('class' => 'txp-actions txp-actions-inline')
);
Expand Down
12 changes: 7 additions & 5 deletions textpattern/include/txp_page.php
Expand Up @@ -157,14 +157,16 @@ function page_edit($message = '', $refresh_partials = false)
$actionsExtras = '';

if ($name) {
$actionsExtras .= href('<span class="ui-icon ui-icon-copy"></span> '.gTxt('duplicate'), '#', array(
'class' => 'txp-clone',
'data-form' => 'page_form',
));
$actionsExtras .= sLink('page', 'page_new', '<span class="ui-icon ui-extra-icon-new-document"></span> '.gTxt('create_new_page'), 'txp-new')
.href('<span class="ui-icon ui-icon-copy"></span> '.gTxt('duplicate'), '#',
array(
'class' => 'txp-clone',
'data-form' => 'page_form',
)
);
}

$actions = graf(
sLink('page', 'page_new', '<span class="ui-icon ui-extra-icon-new-document"></span> '.gTxt('create_new_page'), 'txp-new').
$actionsExtras,
array('class' => 'txp-actions txp-actions-inline')
);
Expand Down

0 comments on commit d71ebb5

Please sign in to comment.