-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add separate header and footer tracking code inputs (#3882)
* add separate header and footer tracking code inputs * PSR * Migrate tracking code * Safer migration of tracking codes Former-commit-id: 9d75501 Former-commit-id: 746d4461eed6837c287b115dd86eacf96b55fbf9
- Loading branch information
1 parent
b5db692
commit 3211d2b
Showing
5 changed files
with
77 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> | ||
<form id="tracking-code-form" action="<?=$view->action('')?>" method="post"> | ||
<?=Core::make('helper/validation/token')->output('update_tracking_code')?> | ||
|
||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="form-group"> | ||
<?=$form->label('tracking_code', t('Tracking Codes'))?> | ||
<div class="input"> | ||
<?=$form->textarea('tracking_code', $tracking_code, array('class' => 'xxlarge', 'rows' => 12, 'cols' => 50))?> | ||
<span class="help-block"><?=t('Any HTML you paste here will be inserted at either the bottom or top of every page in your website automatically.')?></span> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="radio"><label><?=$form->radio('tracking_code_position', 'top', $tracking_code_position)?> <span><?=t('Header of the page')?></span></label></div> | ||
<div class="radio"><label><?=$form->radio('tracking_code_position', 'bottom', $tracking_code_position)?> <span><?=t('Footer of the page')?></span></label></div> | ||
</div> | ||
|
||
<div class="ccm-dashboard-form-actions-wrapper"> | ||
<div class="ccm-dashboard-form-actions"> | ||
<button type="submit" class="btn btn-primary pull-right" name="tracking-code-form"><?=t('Save')?></button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
<?php defined('C5_EXECUTE') or die('Access Denied.'); ?> | ||
|
||
<p class="help-block"><?php echo t('Any HTML you paste here will be inserted at either the bottom or top of every page in your website automatically.'); ?></p> | ||
|
||
<form id="tracking-code-form" action="<?php echo $view->action(''); ?>" method="post"> | ||
<?php echo Core::make('helper/validation/token')->output('update_tracking_code'); ?> | ||
|
||
<div class="form-group"> | ||
<?php echo $form->label('tracking_code_header', t('Header Tracking Codes')); ?> | ||
<?php echo $form->textarea('tracking_code_header', $tracking_code_header, array('style' => 'height: 250px;')); ?> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<?php echo $form->label('tracking_code_footer', t('Footer Tracking Codes')); ?> | ||
<?php echo $form->textarea('tracking_code_footer', $tracking_code_footer, array('style' => 'height: 250px;')); ?> | ||
</div> | ||
|
||
<div class="ccm-dashboard-form-actions-wrapper"> | ||
<div class="ccm-dashboard-form-actions"> | ||
<button type="submit" class="btn btn-primary pull-right" name="tracking-code-form"><?php echo t('Save'); ?></button> | ||
</div> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters