Revert "CRM-16682 add price-set region & placement option"
authorEileen McNaughton <eileen@mcnaughty.com>
Mon, 15 Jun 2015 21:45:39 +0000 (09:45 +1200)
committerEileen McNaughton <eileen@mcnaughty.com>
Mon, 15 Jun 2015 21:45:39 +0000 (09:45 +1200)
CRM/Core/Region.php
templates/CRM/Price/Form/PriceSet.tpl

index 61feec9ba146cf2ac135d73854426e4d03288efb..7868cee23813384dcd91f33f40ccb39a2d88c6d8 100644 (file)
@@ -170,29 +170,18 @@ class CRM_Core_Region {
     $smarty = CRM_Core_Smarty::singleton();
     $html = '';
     foreach ($this->_snippets as $snippet) {
-      $placement = empty($snippet['placement']) ? 'after' : $snippet['placement'];
       if ($snippet['disabled']) {
         continue;
       }
       switch ($snippet['type']) {
         case 'markup':
-          if ($placement == 'before') {
-            $html = $snippet['markup'] . $html;
-          }
-          else {
-            $html .= $snippet['markup'];
-          }
+          $html .= $snippet['markup'];
           break;
 
         case 'template':
           $tmp = $smarty->get_template_vars('snippet');
           $smarty->assign('snippet', $snippet);
-          if ($placement == 'before') {
-            $html = $smarty->fetch($snippet['template']) . $html;
-          }
-          else {
-            $html .= $smarty->fetch($snippet['template']);
-          }
+          $html .= $smarty->fetch($snippet['template']);
           $smarty->assign('snippet', $tmp);
           break;
 
index 9ee1f2b0fc3ba322d2052dc5f3e5dfeb95393a28..52ad50410bbdda21e28417621824ca06c7320a16 100644 (file)
@@ -23,7 +23,6 @@
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{crmRegion name="price-set-1"}
 <div id="priceset" class="crm-section price_set-section">
     {if $priceSet.help_pre}
         <div class="messages help">{$priceSet.help_pre}</div>
     {include file="CRM/Price/Form/Calculate.tpl"}
 {/if}
 </div>
-{/crmRegion}