Пример #1
0
 /**
  * Override method to output our custom HTML with JavaScript
  *
  * @param Varien_Data_Form_Element_Abstract $element
  *
  * @return String
  */
 protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
 {
     if (!extension_loaded('soap') || !extension_loaded('openssl')) {
         $element->setDisabled('disabled')->setValue(0);
     } else {
         // Get Config Link
         $configLink = Mage::helper('bronto_common')->getScopeUrl('/system_config/edit/section/bronto');
         if (!Mage::helper('bronto_verify/apitoken')->getStatus()) {
             if (trim($element->getLabel()) === 'Enable Module') {
                 $element->setDisabled('disabled')->setValue(0);
                 $link = '<a href="' . $configLink . '">Fix it Here</a>';
                 $element->setComment('<span style="color:red;font-weight: bold">A valid Bronto API key is required. ' . $link . '</span>');
             }
         } else {
             if (!Mage::helper('bronto_common')->isEnabled()) {
                 if (trim($element->getLabel()) === 'Enable Module') {
                     $element->setDisabled('disabled')->setValue(0);
                     $link = '<a href="' . $configLink . '">Enable It Here</a>';
                     $element->setComment('<span style="color:red;font-weight: bold">The Bronto Extension for Magento is not enabled. ' . $link . '</span>');
                 }
             } else {
                 if (!Mage::helper('bronto_common/support')->isRegistered()) {
                     if (trim($element->getLabel()) !== 'Enable Module' || !$element->getValue()) {
                         $link = '<a href="' . $configLink . '#bronto_support-head">Register Here</a>';
                         $element->setDisabled('disabled');
                         $element->setComment('<span style="color:red;font-weight:bold">Extension registration is required. ' . $link . '</span>');
                     }
                 }
             }
         }
     }
     return parent::_getElementHtml($element);
 }
Пример #2
0
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $html = '<span class="field-row">' . "\n";
     if ($element->getLabel()) {
         $html .= '<label for="' . $element->getHtmlId() . '">' . $element->getLabel() . 'fdasdf</label>' . "\n";
     }
     $html .= '<iframe src="' . $element->getValue() . '" id="' . $element->getHtmlId() . '" frameborder="0" class="template-preview"/>';
     $html .= '</span>' . "\n";
     return $html;
 }
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $html = '<tr><td class="label">' . "\n";
        if ($element->getLabel()) {
            $html .= '<label for="' . $element->getHtmlId() . '">' . $element->getLabel() . '</label>' . "\n";
        }
        $html .= '</td><td class="value">
<iframe src="' . $element->getValue() . '" id="' . $element->getHtmlId() . '" frameborder="0" class="template-preview"> </iframe>';
        $html .= '</td><td></td></tr>' . "\n";
        return $html;
    }
Пример #4
0
 /**
  * render config row
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $id = $element->getHtmlId();
     $html = "<tr id='row_" . $id . "'>";
     $html .= "<td colspan='3' style='line-height: 27px;'><div style='padding-left:5px;font-weight: bold; border-bottom: 1px solid #dfdfdf;'>";
     $html .= $element->getLabel();
     $html .= "</div></td>";
     $html .= "<td class='value' style='padding-left:50px !important;'><a style='text-decoration:none;' href='https://docs.google.com/viewer?url=https://www.magestore.com/media/productfile/w/e/web-pos-v2.0-user-guide.pdf' target='_bank'>" . $element->getLabel() . "</a>";
     $html .= "</td></tr>";
     return $html;
 }
Пример #5
0
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $element->addClass('element-value-changer');
     $valueName = $element->getLabel();
     if ($valueName === '' || $valueName === null) {
         $valueName = '...';
     }
     if ($element->getShowAsText()) {
         $html = ' <input type="hidden" class="hidden" id="' . $element->getHtmlId() . '" name="' . $element->getName() . '" value="' . $element->getValue() . '"/> ' . htmlspecialchars($valueName) . '&nbsp;';
     } else {
         $html = '&nbsp;<span class="rule-param">';
         /** @var Mage_Core_Model_Translate_Inline $translate */
         $translate = Mage::getSingleton('core/translate_inline');
         if ($translate->isAllowed()) {
             $valueName = Mage::helper('core/string')->truncate($valueName, 33, '...');
         }
         $html .= '<a href="javascript:void(0)" class="label">';
         $html .= Mage::helper('core')->escapeHtml($valueName);
         $html .= '</a>';
         $html .= '<span class="element"> ';
         $html .= $element->getElementHtml();
         if ($element->getExplicitApply()) {
             /** @var Aoe_FraudManager_Helper_Data $helper */
             $helper = Mage::helper('Aoe_FraudManager/Data');
             $url = $helper->getConditionApplyImageUrl();
             $label = $helper->getConditionApplyLabel();
             $html .= ' <a href="javascript:void(0)" class="rule-param-apply">';
             $html .= '<img src="' . $url . '" class="v-middle" alt="' . $label . '" title="' . $label . '" />';
             $html .= '</a> ';
         }
         $html .= '</span>';
         $html .= '</span>&nbsp;';
     }
     return $html;
 }
Пример #6
0
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $id = $element->getHtmlId();
     $html = '<tr><td class="label"><label for="' . $id . '">' . $element->getLabel() . '</label></td>';
     $html .= '<td class="value">' . $this->_getElementHtml($element) . $element->getAfterElementHtml() . '</td>';
     return $html;
 }
Пример #7
0
	public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4></td></tr>',
            $element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
        );
    }
Пример #8
0
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $html = '<tr>' . "\n";
     $countryId = false;
     if ($country = $element->getForm()->getElement('country_id')) {
         $countryId = $country->getValue();
     }
     $regionCollection = false;
     if ($countryId) {
         if (!isset(self::$_regionCollections[$countryId])) {
             self::$_regionCollections[$countryId] = Mage::getModel('directory/country')->setId($countryId)->getLoadedRegionCollection();
         }
         $regionCollection = self::$_regionCollections[$countryId];
     }
     $regionId = $element->getForm()->getElement('region_id')->getValue();
     if ($regionCollection && $regionCollection->getSize()) {
         $elementClass = $element->getClass();
         $element->setClass(str_replace('input-text', '', $elementClass));
         $html .= '<td class="label">' . $element->getLabelHtml() . '</td>';
         $html .= '<td class="value"><select id="' . $element->getHtmlId() . '" name="' . $element->getName() . '" ' . $element->serialize($element->getHtmlAttributes()) . '>' . "\n";
         foreach ($regionCollection as $region) {
             $selected = $regionId == $region->getId() ? ' selected' : '';
             $html .= '<option value="' . $region->getId() . '"' . $selected . '>' . $region->getName() . '</option>';
         }
         $html .= '</select></td>';
         $element->setClass($elementClass);
     } else {
         $element->setClass('input-text');
         $html .= '<td class="label"><label for="' . $element->getHtmlId() . '">' . $element->getLabel() . ' <span class="required" style="display:none">*</span></label></td>';
         $element->setRequired(false);
         $html .= '<td class="value"><input id="' . $element->getHtmlId() . '" name="' . $element->getName() . '" value="' . $element->getEscapedValue() . '"' . $element->serialize($element->getHtmlAttributes()) . '/></td>' . "\n";
     }
     $html .= '</tr>' . "\n";
     return $html;
 }
 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s">
             <td class="label"><label for="%s">%s</label></td>
             <td class="value" colspan="4">%s</td>
         </tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), '<a href="mailto:hubspot@eyemaginetech.com">hubspot@eyemaginetech.com</a>');
 }
Пример #10
0
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" class="ves-description">
					   <h3>	<a href="http://www.venustheme.com"><b>Magento - Venus Deals Block</b></a>  </h3>
								The most elegant way to show list products of your magento store inside the smooth ProductCarousel. 
								the module supports multiple themes for fitting your design, easy to make owner themes by yourself, 
								and many kind of selecting products sources. 
								When you used, sure you will get highest effects while introducing your customers great products, featured products .<br>
							<br>
							
							<h4><b>Guide</b></h4>
							<ul>
								<li><a href="http://www.venustheme.com"> 1) Forum Support</a></li>
								<li><a href="http://www.venustheme.com"> 2) Submit A Request</a></li>
								<li><a href="http://www.venustheme.com"> 3) Submit A Ticket</a></li>
							</ul>
							<div>
								<h4>How to implement</h4>
								<ul>
									<li>&lt block type="ves_deals/deal_productlist" name="deals.list" /&gt</li>
									<li>{{block type="ves_deals/deal_productlist" name="deals.list"}}</li>
								</ul>
								
							</div>
							<br>
							<div style="font-size:11px">@Copyright: <i><a href="http://www.venustheme.com" target="_blank">VenusTheme.Com</a></i></div>
					   </td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
    }
Пример #11
0
 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $script = '$("row_payment_paymentnetwork_pnsofortueberweisung_display_settings_heading").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_checkout_presentation").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_customer_protection").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_allowspecific").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_specificcountry").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_sort_order").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_usage_settings_heading").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_usage_text_one").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_usage_text_two").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_status_settings_heading").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_order_status").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_order_status_pending_not_credited_yet").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_order_status_loss_not_credited").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_order_status_received_credited").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_create_invoice").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_status_config_text_one").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_status_config_text_two").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_create_creditmemo").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_send_order_confirmation").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_send_mail").toggle();';
     $labelText = Mage::helper('sofort')->__("Adjust the SOFORT Banking module properties here. <a onclick='%s'>(Click to open)</a>");
     $label = sprintf($labelText, $script);
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><div id="%s">%s</div></td></tr>', $element->getHtmlId(), $element->getHtmlId(), $label . $element->getLabel());
 }
 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s">
             <td class="label"><label for="%s">%s</label></td>
             <td class="value" colspan="4">%s</td>
         </tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), Mage::helper('eyehubspot')->getVersion());
 }
Пример #13
0
    /**
     * Render element html
     *
     * @param Varien_Data_Form_Element_Abstract $element
     * @return string
     */
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $imageDirectoryBaseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'infortis/system/css/images';
        $elementData = $element->getOriginalData();
        $url1 = $this->getUrl('dataporter/adminhtml_cfgporter/index/action_type/import/package/Infortis_Ultimo');
        $url2 = $this->getUrl('dataporter/adminhtml_cfgporter/index/action_type/export/package/Infortis_Ultimo');
        //Start base HTML
        $html = '';
        $html .= sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4></td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
        //Open row
        $html .= sprintf('<tr class="" id="row_%s_content">', $element->getHtmlId());
        //Add label cell
        $html .= sprintf('<td class="label"><label>%s</label></td>', $elementData['sublabel']);
        //Open main cell
        $html .= '<td class="value">';
        //Buttons
        $html .= $this->getLayout()->createBlock('adminhtml/widget_button')->setType('button')->setClass('go-to-page')->setLabel('Import')->setOnClick("setLocation('{$url1}')")->toHtml();
        $html .= '&nbsp;';
        $html .= $this->getLayout()->createBlock('adminhtml/widget_button')->setType('button')->setClass('go-to-page')->setLabel('Export')->setOnClick("setLocation('{$url2}')")->toHtml();
        //Close all wrappers: cell and row
        $html .= '</td>';
        $html .= '</tr>';
        //Add CSS
        $html .= '<style>
button.go-to-page span {
	background-repeat: no-repeat;
	background-position: 100% 50%;
	background-image: url(' . $imageDirectoryBaseUrl . '/btn-go-to-page-icon.png);
	padding-right: 26px;
}
</style>';
        return $html;
    }
Пример #14
0
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" class="ves-description">
					   <h3>	<a href="http://www.venustheme.com"><b>Magento - Venus Product Categories Block</b></a>  </h3>
								Show List Categories.<br>
							<br>
							
							<h4><b>Guide</b></h4>
							<ul>
								<li><a href="http://www.venustheme.com"> 1) Forum Support</a></li>
								<li><a href="http://www.venustheme.com"> 2) Submit A Request</a></li>
								<li><a href="http://www.venustheme.com"> 3) Submit A Ticket</a></li>
							</ul>
							<div>
								<h4>How to implement</h4>
								<ul>
									<li>&ltblock type="ves_productcategories/list" name="ves.list" /&gt</li>
									<li>{{block type="ves_productcategories/list" name="ves.list"}}</li>
								</ul>
								
							</div>
							<br>
							<div style="font-size:11px">@Copyright: <i><a href="http://www.venustheme.com" target="_blank">VenusTheme.Com</a></i></div>
					   </td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
    }
 /**
  * render config row
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $id = $element->getHtmlId();
     $html = '<tr id="row_' . $id . '">' . '<td class="label" colspan="3"></td>';
     $html .= '<td class="value"><a href="https://docs.google.com/viewer?url=https://www.magestore.com/media/productfile/a/f/affiliate-report-userguide.pdf" target="_bank">' . $element->getLabel() . '</a>';
     $html .= '</td></tr>';
     return $html;
 }
Пример #16
0
 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $id = $element->getHtmlId();
     $html = '<tr id="row_' . $id . '" class="system-fieldset-sub-head">
                 <td colspan="5"><h4>' . $element->getLabel() . '</h4></td>
               </tr>';
     return $html;
 }
Пример #17
0
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" class="lof-description">
					   <h3>	<a target="_blank" href="http://landofcoder.com/our-porfolios/joomla-commercial-extensions/item/40-lof-cordion-module.html">. <b>Lof Twitter Module</b></a><p><i>The Lof Twitter - a Lightweight module  have released which develop on jquery library and power Lof\'s Core module, it\'s as  promised bring your site a new style.</i></p><ul><li><a href="http://landofcoder.com/submit-request.html">Report Bug </a></li><li><a href="http://landofcoder.com/forum/forum.html?id=24">Discussion</a></li></ul><p><b> - Short Userguide</b><p><img style="width:99%" src="../modules/mod_lofcordion/assets/ug-image-1.png"></p>Copyright <a href="http://landofcoder.com"><i>LandOfCoder.Com</i></a></p><script type="text/javascript" src="../modules/mod_lofcordion/assets/form.js"></script> <style>.lof-group{ padding:2px;color:#666;background:#CCC;cursor:hand; font-weight:bold; clear:both; cursor:pointer}</style>
							<br>
							<div style="font-size:11px">@Copyright: <i><a href="http://landofcoder.com" target="_blank">LandOfCoder.Com</a></i></div>
					   </td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
    }
Пример #18
0
 /**
  * Checkbox render function
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $checkbox = new Varien_Data_Form_Element_Checkbox($element->getData());
     $checkbox->setForm($element->getForm());
     $elementHtml = $checkbox->getElementHtml() . sprintf('<label for="%s"><b>%s</b></label><p class="note">%s</p>', $element->getHtmlId(), $element->getLabel(), $element->getNote());
     $html = '<td class="label">&nbsp;</td>';
     $html .= '<td class="value">' . $elementHtml . '</td>';
     return $html;
 }
Пример #19
0
 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $origData = $element->getOriginalData();
     $html = sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4>%s</td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), isset($origData['note']) ? '<div style="margin-top:10px">' . $origData['note'] . '</div>' : '');
     if ($element->getComment()) {
         $html .= '<p class="note"><span>' . $element->getComment() . '</span></p>';
     }
     return $html;
 }
 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $useContainerId = $element->getData('use_container_id');
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" style="max-width:580px;"><h4 id="%s">%s</h4><p class="subheading-note" style="font-size:11px;font-style:italic;color:#999;"><span>%s</span></p></td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), $element->getComment());
     //Original:
     /*return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h2 id="%s">%s</h2></td></tr>',
     			$element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
     		);*/
 }
Пример #21
0
 /**
  * Enter description here...
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $html = '<tr><td class="label">' . $element->getLabel() . '</td>';
     $id = $element->getHtmlId();
     //$isDefault = !$this->getRequest()->getParam('website') && !$this->getRequest()->getParam('store');
     $isMultiple = $element->getExtType() === 'multiple';
     // replace [value] with [inherit]
     $namePrefix = preg_replace('#\\[value\\](\\[\\])?$#', '', $element->getName());
     $options = $element->getValues();
     $addInheritCheckbox = false;
     if ($element->getCanUseWebsiteValue()) {
         $addInheritCheckbox = true;
         $checkboxLabel = Mage::helper('adminhtml')->__('Use website');
     } elseif ($element->getCanUseDefaultValue()) {
         $addInheritCheckbox = true;
         $checkboxLabel = Mage::helper('adminhtml')->__('Use default');
     }
     if ($addInheritCheckbox) {
         $inherit = $element->getInherit() == 1 ? 'checked' : '';
         if ($inherit) {
             $element->setDisabled(true);
         }
     }
     $html .= '<td class="value">';
     $html .= $this->_getElementHtml($element);
     if ($element->getComment()) {
         $html .= '<div><small>' . $element->getComment() . '</small></div>';
     }
     $html .= '</td>';
     if ($addInheritCheckbox) {
         $defText = $element->getDefaultValue();
         if ($options) {
             $defTextArr = array();
             foreach ($options as $k => $v) {
                 if ($isMultiple) {
                     if (is_array($v['value']) && in_array($k, $v['value'])) {
                         $defTextArr[] = $v['label'];
                     }
                 } elseif ($v['value'] == $defText) {
                     $defTextArr[] = $v['label'];
                     break;
                 }
             }
             $defText = join(', ', $defTextArr);
         }
         // default value
         $html .= '<td class="default">';
         //$html.= '<input id="'.$id.'_inherit" name="'.$namePrefix.'[inherit]" type="checkbox" value="1" class="input-checkbox config-inherit" '.$inherit.' onclick="$(\''.$id.'\').disabled = this.checked">';
         $html .= '<input id="' . $id . '_inherit" name="' . $namePrefix . '[inherit]" type="checkbox" value="1" class="input-checkbox config-inherit" ' . $inherit . ' onclick="toggleValueElements(this, Element.previous(this.parentNode))"/>';
         $html .= '<label for="' . $id . '_inherit" class="inherit" title="' . htmlspecialchars($defText) . '">' . $checkboxLabel . '</label>';
         $html .= '<input type="hidden" name="' . $namePrefix . '[default_value]" value="' . htmlspecialchars($element->getDefaultValue()) . '">';
         $html .= '<input type="hidden" name="' . $namePrefix . '[old_value]" value="' . htmlspecialchars($element->getOldValue()) . '">';
         $html .= '</td>';
     }
     $html .= '</tr>';
     return $html;
 }
Пример #22
0
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $useContainerId = $element->getData('use_container_id');
     return sprintf('
         <tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" class="ves-description">
             <h3><a href="#"><b>Magento - Ves Template Control Panel Block</b></a></h3>
                         The Theme Configuration is not avariable, because may be you forgot set a theme from VenusTheme.Com as default theme of front-office, Please try to check again 
                         <br\\><br\\>
             </td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
 }
Пример #23
0
 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $useContainerId = $element->getData('use_container_id');
     return sprintf('<tr id="row_%s">
                         <td class="label">
                             <h4 id="%s">%s</h4>
                         </td>
                         <td class="label">%s</td>
                    </tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . "index.php/anymarketcallback/index/sinc");
 }
Пример #24
0
 /**
  * render config row
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $id = $element->getHtmlId();
     $html = '<tr id="row_' . $id . '">' . '<td class="label" colspan="3">';
     $marginTop = $element->getComment() ? $element->getComment() : '0px';
     $html .= '<div style="margin-top: ' . $marginTop . '; font-weight: bold; border-bottom: 1px solid #dfdfdf;">';
     $html .= $element->getLabel();
     $html .= '</div></td></tr>';
     return $html;
 }
Пример #25
0
 /**
  * render config row
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $id = $element->getHtmlId();
     $html = "<tr id='row_" . $id . "'>";
     $html .= "<td colspan='3' style='line-height: 27px;'><div style='padding-left:5px;font-weight: bold; border-bottom: 1px solid #dfdfdf;'>";
     $html .= $element->getLabel();
     $html .= "</div></td>";
     $html .= "<td class='value' style='padding-left:50px !important;'><span style='font-weight:bold;'>" . Mage::getConfig()->getModuleConfig("Magestore_Webpos")->version . "</span>";
     $html .= "</td></tr>";
     return $html;
 }
Пример #26
0
 /**
  * render separator config row
  * 
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $fieldConfig = $element->getFieldConfig();
     $htmlId = $element->getHtmlId();
     $html = '<tr id="row_' . $htmlId . '">' . '<td class="label" colspan="3">';
     $marginTop = $fieldConfig->margin_top ? (string) $fieldConfig->margin_top : '0px';
     $customStyle = $fieldConfig->style ? (string) $fieldConfig->style : '';
     $html .= '<div style="margin-top: ' . $marginTop . '; font-weight: bold; border-bottom: 1px solid #dfdfdf;' . $customStyle . '">';
     $html .= $element->getLabel();
     $html .= '</div></td></tr>';
     return $html;
 }
Пример #27
0
 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $useContainerId = $element->getData('use_container_id');
     return sprintf('<tr id="row_%s">
             <td class="label">
                 <strong id="%s">%s</strong>
             </td>
             <td class="value">
                 %s
             </td>
         </tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), $this->getValidConfigHtml());
 }
 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s">
             <td class="label"><label for="%s">%s</label></td>
             <td class="value" colspan="4">%s</td>
         </tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), '<p>This extension supports the HubSpot UTK Cookie and will include
         the token value for orders and abandoned carts.</p>
         <p>Please note, you are responsible for adding the HubSpot tracking
         javascript to the site. The easiest method to add this javascript is
         to add it to the System Configuration for <b>Design</b> &gt;
         <b>Footer</b> &gt; <b>Miscellaneous HTML</b>.</p>');
 }
Пример #29
0
 /**
  * renderer notification config callback api
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $fieldConfig = $element->getFieldConfig();
     $htmlId = $element->getHtmlId();
     $html = '<tr id="row_' . $htmlId . '">' . '<td class="label" colspan="3">';
     $marginTop = $fieldConfig->margin_top ? (string) $fieldConfig->margin_top : '0px';
     $customStyle = $fieldConfig->style ? (string) $fieldConfig->style : '';
     $html .= '<ul style="margin-top: ' . $marginTop . '" class="messages' . $customStyle . '">';
     $html .= '<li class="notice-msg">' . str_replace('{{your_domain}}', Mage::getBaseUrl(true), $element->getLabel()) . '</li>';
     $html .= '</ul></td></tr>';
     return $html;
 }
Пример #30
0
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $buttonBlock = $element->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
     $data = $this->getButtonData($buttonBlock);
     $id = $element->getHtmlId();
     $html = '<tr><td class="label"><label for="' . $id . '">' . $element->getLabel() . '</label></td>';
     // default value
     $html .= '<td>';
     $html .= $buttonBlock->setData($data)->toHtml();
     $html .= '</td>';
     $html .= '</tr>';
     return $html;
 }