Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Apr 12, 2024
2 parents 1339207 + 8b20af8 commit ccd5061
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 1 addition & 7 deletions CRM/Contribute/Form/Contribution/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ public function buildQuickForm() {
if ($this->_ppType) {
return CRM_Core_Payment_ProcessorForm::buildQuickForm($this);
}

$config = CRM_Core_Config::singleton();

$this->applyFilter('__ALL__', 'trim');
Expand Down Expand Up @@ -790,7 +789,6 @@ public function buildQuickForm() {
$achievement = CRM_Contribute_BAO_ContributionPage::goalAchieved($this->_id);
$this->assign('achievement', $achievement);

$template = CRM_Core_Smarty::singleton();
$progress = array(
'type' => $achievement['type'],
'label' => $achievement['label'],
Expand All @@ -800,12 +798,8 @@ public function buildQuickForm() {
'achieved_status' => $achievement['achieved'],
'fullwidth' => FALSE,
'display' => $achievement['goal'] ? TRUE : FALSE,
'link_display' => FALSE
);

$introTextAssigned = $template->get_template_vars('intro_text') !== null;
if ($introTextAssigned) {
$progress['link_display'] = TRUE;
}
$this->assign('progress', $progress);

// hidden track id
Expand Down
7 changes: 5 additions & 2 deletions css/civicrm.css
Original file line number Diff line number Diff line change
Expand Up @@ -7254,7 +7254,7 @@ input.crm-form-textfield,
.crm-container .progress-block {
margin: 0 0 30px 0;
}
.crm-container .progress-block .inner {
.page-civicrm-contribute-pcp .crm-container .progress-block .inner {
padding: 20px 12px;
}
.crm-container .progress-wrapper {
Expand All @@ -7266,6 +7266,9 @@ input.crm-form-textfield,
vertical-align: middle;
}
.crm-container .progress-cell.progress-bar-wrapper {
width: 100%;
}
.crm-container .progressbar-with-link .progress-cell.progress-bar-wrapper {
width: 80%;
}
.crm-container .progress-cell.progress-buttons {
Expand Down Expand Up @@ -7384,7 +7387,7 @@ input.crm-form-textfield,
}
}
@media (min-width: 992px) {
.crm-container .progress-block .inner {
.page-civicrm-contribute-pcp .crm-container .progress-block .inner {
padding: 20px;
}
.crm-container .pcp-page-text {
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/common/progressbar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{/if}
</div>
</div>
<div class="progress-wrapper">
<div class="progress-wrapper {if $progress.link_display}progressbar-with-link{/if}">
<div class="progress-cell progress-bar-wrapper">
<div class="progress-bar" style="width:0px;" data-current="{$percent_css}"></div>
<div class="progress-pointer" style="left:0px;margin-left:0;opacity:0">{ts 1="`$progress.achieved_percent`%"}%1 achieved{/ts}</div>
Expand Down

0 comments on commit ccd5061

Please sign in to comment.