当前位置: 首页>>代码示例>>PHP>>正文


PHP Varien_Data_Form_Element_Abstract::getText方法代码示例

本文整理汇总了PHP中Varien_Data_Form_Element_Abstract::getText方法的典型用法代码示例。如果您正苦于以下问题:PHP Varien_Data_Form_Element_Abstract::getText方法的具体用法?PHP Varien_Data_Form_Element_Abstract::getText怎么用?PHP Varien_Data_Form_Element_Abstract::getText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Varien_Data_Form_Element_Abstract的用法示例。


在下文中一共展示了Varien_Data_Form_Element_Abstract::getText方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: render

    /**
     * Render fieldset html
     *
     * @param Varien_Data_Form_Element_Abstract $element
     * @return string
     */
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $html = $element->getComment();
        if (!$html) {
            $html = $element->getText();
        }
        ?>
		
							<fieldset class="loginRadiusFieldset" style="margin-right:13px; background-color:#EAF7FF; border-color:rgb(195, 239, 250); padding-bottom:25px; width:65%">
		<h4 style="color:#000"><strong><?php 
        echo $this->__('Thank you for installing the LoginRadius Social Plugin!');
        ?>
</strong></h4>
		<p><?php 
        echo $this->__('To activate the extension, you will need to first configure it (manage your desired social networks, etc.) from your LoginRadius account. If you do not have an account, click');
        ?>
 <a target="_blank" href="http://www.loginradius.com/"><?php 
        echo $this->__('here');
        ?>
</a> <?php 
        echo $this->__('and create one for FREE!');
        ?>
</p>
		<p>
		<?php 
        echo $this->__('We also offer Social Plugins for');
        ?>
  <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#wordpress-plugin" target="_blank">Wordpress</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#joomla-extension" target="_blank">Joomla</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#drupal-module" target="_blank">Drupal</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#vbullentin-plugin" target="_blank">vBulletin</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#vanilla-add-ons" target="_blank">VanillaForum</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#oscommerce-add-ons" target="_blank">osCommerce</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#prestashop-module" target="_blank">PrestaShop</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#xcart-extension" target="_blank">X-Cart</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#zencart-plugin" target="_blank">Zen-Cart</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#dotnetnuke-module" target="_blank">DotNetNuke</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms/#smf" target="_blank">SMF</a> <?php 
        echo $this->__('and');
        ?>
 <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms/#phpbb" target="_blank">phpBB</a> !
		</p>
		<div style="margin-top:10px">
		<a style="text-decoration:none;" href="https://www.loginradius.com/" target="_blank">
			<input class="form-button" type="button" value="<?php 
        echo $this->__('Set up my FREE account!');
        ?>
">
		</a>
		<a class="loginRadiusHow" target="_blank" href="http://support.loginradius.com/customer/portal/articles/593954">(<?php 
        echo $this->__('How to set up an account?');
        ?>
)</a>
		</div>
		</fieldset>
		<!-- Get Updates -->			
		<fieldset class="loginRadiusFieldset" style="width:26%; background-color: rgb(231, 255, 224); border: 1px solid rgb(191, 231, 176); padding-bottom:6px;">
		<h4 style="border-bottom:#d7d7d7 1px solid;"><strong><?php 
        echo $this->__('Get Updates');
        ?>
</strong></h4>
		<p><?php 
        echo $this->__('To receive updates on new features, future releases, etc, please connect with us via Facebook');
        ?>
</p>
		<div>
			<div style="float:left">
				<iframe rel="tooltip" scrolling="no" frameborder="0" allowtransparency="true" style="border: none; overflow: hidden; width: 46px;
							height: 61px; margin-right:10px" src="//www.facebook.com/plugins/like.php?app_id=194112853990900&amp;href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FLoginRadius%2F119745918110130&amp;send=false&amp;layout=box_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=90" data-original-title="Like us on Facebook"></iframe>
				</div>
		<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
		</div>
		</fieldset>
		<!-- Help & Documentation -->
		<fieldset class="loginRadiusHelpDiv" style="margin-right:13px; width:65%">
		<h4 style="border-bottom:#d7d7d7 1px solid;"><strong><?php 
        echo $this->__('Help & Documentations');
        ?>
</strong></h4>
		<ul style="float:left; margin-right:43px">
			<li><a target="_blank" href="http://support.loginradius.com/customer/portal/articles/1056696-magento-social-login-installation-configuration-and-troubleshooting"><?php 
        echo $this->__('Extension Installation, Configuration and Troubleshooting');
        ?>
</a></li>
			<li><a target="_blank" href="http://support.loginradius.com/customer/portal/articles/677100-how-to-get-loginradius-api-key-and-secret"><?php 
        echo $this->__('How to get LoginRadius API Key & Secret');
        ?>
</a></li>
			<li><a target="_blank" href="http://support.loginradius.com/customer/portal/articles/1056696-magento-social-login-installation-configuration-and-troubleshooting#multisite"><?php 
        echo $this->__('Magento Multisite Feature');
        ?>
</a></li>
			<li><a target="_blank" href="https://www.loginradius.com/loginradius/product-overview"><?php 
        echo $this->__('LoginRadius Products');
        ?>
</a></li>
		</ul>
		<ul style="float:left; margin-right:43px">
			<li><a target="_blank" href="http://community.loginradius.com/"><?php 
        echo $this->__('Discussion Forum');
        ?>
</a></li>
			<li><a target="_blank" href="https://www.loginradius.com/loginradius/team"><?php 
        echo $this->__('About LoginRadius');
//.........这里部分代码省略.........
开发者ID:drunkvegas,项目名称:done,代码行数:101,代码来源:Info.php

示例2: render

    /**
     * Render fieldset html
     *
     * @param Varien_Data_Form_Element_Abstract $element
     * @return string
     */
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $html = $element->getComment();
        if (!$html) {
            $html = $element->getText();
        }
        $lruserdataempty = true;
        // get id here
        $customerId = $this->getRequest()->getParam('id');
        if (!empty($customerId)) {
            ?>
            <style type="text/css">
            .sociallogin_table {
                background-color: #efefef;
                border: 1px solid #ccc;
                margin-bottom: 10px;
                border-collapse: collapse;
                font-family: sans-serif;
                font-size: 12px;
                line-height: 1.4em;
                margin-left: 2px;
                width: 100%;
                clear: both
            }
            .sociallogin_table th {
                padding: 10px;
                text-align: left;
                vertical-align: top;
                width: 200px;
                word-break: break-all;
            }
            .ui-tabs {
                position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
                padding: .2em;
            }
            .ui-tabs .ui-tabs-nav {
                margin: 0;
                padding: .2em .2em 0;
            }
            .ui-tabs .ui-tabs-nav li {
                list-style: none;
                float: left;
                position: relative;
                top: 0;
            margin-right: 6px;
                border-bottom-width: 0;
                padding: 0;
                white-space: nowrap;
            }
            .ui-tabs .ui-tabs-nav li a {
                float: left;
                padding: .5em 1em;
                text-decoration: none;

            }
            .ui-tabs .ui-tabs-nav li.ui-tabs-active {
                margin-bottom: -1px;
                padding-bottom: 1px;
            }
            .ui-tabs .ui-tabs-nav li.ui-tabs-active a,
            .ui-tabs .ui-tabs-nav li.ui-state-disabled a,
            .ui-tabs .ui-tabs-nav li.ui-tabs-loading a {
                cursor: text;
            }
            .ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
            .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
                cursor: pointer;
            }
            .ui-tabs .ui-tabs-panel {
                display: block;
                border-width: 0;
                dding-left: 3px;
                background: none;
            }
            .ui-tooltip {
                padding: 8px;
                position: absolute;
                z-index: 9999;
                max-width: 300px;
                -webkit-box-shadow: 0 0 5px #aaa;
                box-shadow: 0 0 5px #aaa;
            }
            body .ui-tooltip {
                border-width: 2px;
            }

            ui-state-default,
            .ui-widget-content .ui-state-default,
            .ui-widget-header .ui-state-default {
                border: 1px solid #d3d3d3;
                background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;
                font-weight: normal;
                color: #555555;
            }
//.........这里部分代码省略.........
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:101,代码来源:ProfileData.php

示例3: render

    /**
     * Render fieldset html
     *
     * @param Varien_Data_Form_Element_Abstract $element
     * @return string
     */
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $html = $element->getComment();
        if (!$html) {
            $html = $element->getText();
        }
        ?>
        <fieldset class="loginRadiusFieldset" style="margin-right:13px; background-color:#EAF7FF; border-color:rgb(195, 239, 250); padding-bottom:25px; width:65%">
        <h4 style="color:#000"><strong>Thank you for installing the LoginRadius Social Plugin!</strong></h4>
        <p>To activate the plugin, you will need to first configure it (manage your desired social networks, etc.) from your LoginRadius account. If you do not have an account, click <a target="_blank" href="http://www.loginradius.com/">here</a> and create one for FREE!</p>
        <p>
        We also offer Social Plugins for  <a href="http://ish.re/8PE6" target="_blank">Joomla</a>, <a href="http://ish.re/8PE9" target="_blank">Drupal</a>, <a href="http://ish.re/ADDT" target="_blank">WordPress</a>, <a href="http://ish.re/8PED" target="_blank">vBulletin</a>, <a href="http://ish.re/8PEE" target="_blank">VanillaForum</a>, <a href="http://ish.re/8PEG" target="_blank">osCommerce</a>, <a href="http://ish.re/8PEH" target="_blank">PrestaShop</a>, <a href="http://ish.re/8PFQ" target="_blank">X-Cart</a>, <a href="http://ish.re/8PFR" target="_blank">Zen-Cart</a>, <a href="http://ish.re/8PFS" target="_blank">DotNetNuke</a>, <a href="http://ish.re/8PFT" target="_blank">SMF</a> <?php 
        echo __('and');
        ?>
 <a href="http://ish.re/8PFV" target="_blank">phpBB</a> !
        </p>
        <div style="margin-top:10px">
        <a style="text-decoration:none;" href="https://www.loginradius.com/" target="_blank">
            <input class="form-button" type="button" value="Set up my FREE account!">
        </a>
        <a class="loginRadiusHow" target="_blank" href="http://ish.re/ATM4">(How to set up an account?)</a>
        </div>
        </fieldset>
        <!-- Get Updates -->
        <fieldset class="loginRadiusFieldset" style="width:26%; background-color: rgb(231, 255, 224); border: 1px solid rgb(191, 231, 176); padding-bottom:6px;">
        <h4 style="border-bottom:#d7d7d7 1px solid;"><strong>Get Updates</strong></h4>
        <p>To receive updates on new features, future releases, etc, please connect with us via Facebook</p>
        <div>
            <div style="float:left">
                <iframe rel="tooltip" scrolling="no" frameborder="0" allowtransparency="true" style="border: none; overflow: hidden; width: 50px;
                            height: 61px; margin-right:10px" src="//www.facebook.com/plugins/like.php?app_id=194112853990900&amp;href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FLoginRadius%2F119745918110130&amp;send=false&amp;layout=box_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=90" data-original-title="Like us on Facebook"></iframe>
                </div>
        <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
        </div>
        </fieldset>
        <!-- Help & Documentation -->
        <fieldset class="loginRadiusHelpDiv" style="margin-right:13px; width:65%">
        <h4 style="border-bottom:#d7d7d7 1px solid;"><strong>Help &amp; Documentations</strong></h4>
        <ul style="float:left; margin-right:43px">
            <li><a target="_blank" href="http://ish.re/9WC9">Extension Installation, Configuration and Troubleshooting</a></li>
            <li><a target="_blank" href="http://ish.re/9VBI">How to get LoginRadius API Key &amp; Secret</a></li>
            <li><a target="_blank" href="http://ish.re/9Z34">Magento Multisite Feature</a></li>
            <li><a target="_blank" href="http://ish.re/96M9">LoginRadius Products</a></li>
        </ul>
        <ul style="float:left; margin-right:43px">
            <li><a target="_blank" href="http://ish.re/8PG2">Discussion Forum</a></li>
            <li><a target="_blank" href="http://ish.re/96M7">About LoginRadius</a></li>
            <li><a target="_blank" href="http://ish.re/8PG8">Social Plugins</a></li>
            <li><a target="_blank" href="http://ish.re/6JMW">Social SDKs</a></li>
        </ul>
        </fieldset>
        <!-- Support Us -->
        <fieldset class="loginRadiusFieldset" style="margin-right:5px; background-color: rgb(231, 255, 224); border: 1px solid rgb(191, 231, 176); width:26%; height:112px">
        <h4 style="border-bottom:#d7d7d7 1px solid;"><strong>Support Us</strong></h4>
        <p>
        If you liked our FREE open-source plugin, please send your feedback/testimonial to <a href="mailto:feedback@loginradius.com">feedback@loginradius.com</a> !</p>
        </fieldset>
        <div style='clear:both'></div>
        <div id="loginRadiusKeySecretNotification" style="background-color: rgb(255, 255, 224); border: 1px solid rgb(230, 219, 85); padding: 5px; margin-bottom: 11px; display:none">To activate the <strong>Social Login</strong>, insert LoginRadius API Key and Secret in the <strong>Social Login Basic Settings</strong> section below. <strong>Social Sharing does not require API Key and Secret</strong>.</div>
        <div style='clear:both'></div>
        <script type="text/javascript">
            window.onload = function(){
                // set 'maxlength' attribute of the tweet textarea
                document.getElementById('sociallogin_advanced_postMessage_tweet').setAttribute('maxlength', '140');
                // set 'maxlength' attribute of the LinkedIn post message textarea
                document.getElementById('sociallogin_advanced_postMessage_linkedinParamsMessage').setAttribute('maxlength', '500');
                // object having social profile data fields to show in the premium "Social Profile Data" option
                var loginRadiusProfileFields = [{value: 'basic',
                                         text: 'Basic Profile Data (All Plans) <a href="javascript:void(0)" title="Data fields include: Social ID, Social ID Provider, First Name, Middle Name, Last Name, Full Name, Nick Name, Profile Name, Birthdate, Gender, Country Code, Country Name, Thumbnail Image Url, Image Url, Local Country, Profile Country" style="text-decoration:none">(?)</a>'},
                                         {value: 'ex_location',
                                         text: 'Extended Location Data (Pro and Premium Plans) <a href="javascript:void(0)" title="Data fields include: Main Address, Hometown, State, City, Local City, Profile City, Profile Url, Local Language, Language" style="text-decoration:none">(?)</a>'},
                                         {value: 'ex_profile',
                                         text: 'Extended Profile Data (Pro and Premium Plans) <a href="javascript:void(0)" title="Data fields include: Website, Favicon, Industry, About, Timezone, Verified, Last Profile Update, Created, Relationship Status, Favorite Quote, Interested In, Interests, Religion, Political View, HTTPS Image Url, Followers Count, Friends Count, Is Geo Enabled, Total Status Count, Number of Recommenders, Honors, Associations, Hirable, Repository Url, Age, Professional Headline, Provider Access Token, Provider Token Secret, Positions, Companies, Education, Phone Numbers, IM Accounts, Addresses, Sports, Inspirational People, Skills, Current Status, Certifications, Courses, Volunteer, Recommendations Received, Languages, Patents, Favorites" style="text-decoration:none">(?)</a>'},
                                         {value: 'linkedin_companies',
                                         text: 'Followed Companies on LinkedIn (Pro and Premium Plans) <a href="javascript:void(0)" title="A list of all the companies this user follows on LinkedIn." style="text-decoration:none">(?)</a>'},
                                         {value: 'events',
                                         text: 'Facebook Profile Events (Pro and Premium Plans) <a href="javascript:void(0)" title="A list of events (birthdays, invitation, etc.) on the Facebook profile of user" style="text-decoration:none">(?)</a>'},
                                         {value: 'status',
                                         text: 'Status Messages (Pro and Premium Plans) <a href="javascript:void(0)" title="Facebook wall activity, Twitter tweets and LinkedIn status of the user, including links" style="text-decoration:none">(?)</a>'},
                                         {value: 'posts',
                                         text: 'Facebook Posts (Pro and Premium Plans) <a href="javascript:void(0)" title="Facebook posts of the user, including links" style="text-decoration:none">(?)</a>'},
                                         {value: 'mentions',
                                         text: 'Twitter Mentions (Pro and Premium Plans) <a href="javascript:void(0)" title="A list of tweets that the user is mentioned in." style="text-decoration:none">(?)</a>'},
                                         {value: 'groups',
                                         text: 'Groups (Pro and Premium Plans) <a href="javascript:void(0)" title="A list of the Facebook groups of user." style="text-decoration:none">(?)</a>'},
                                         {value: 'contacts',
                                         text: 'Contacts/Friend Data (Premium Plans) <a href="javascript:void(0)" title="For email providers (Google and Yahoo), a list of the contacts of user in his/her address book. For social networks (Facebook, Twitter, and LinkedIn), a list of the people in the network of user." style="text-decoration:none">(?)</a>'},
                                        ];
                // get the reference to the <td> corressponding to the Social Profile Data option
                var loginRadiusSocialProfileTds = document.getElementById('row_sociallogin_advanced_socialProfileData_profileDataCheckboxes').getElementsByTagName('td');
                // list these profile fields in the Social Profile Data option
                for(var ps = 0; ps < loginRadiusProfileFields.length; ps++){
                    var checkbox = document.createElement('input');
                    checkbox.setAttribute('type', 'checkbox');
//.........这里部分代码省略.........
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:101,代码来源:InfoPremium.php


注:本文中的Varien_Data_Form_Element_Abstract::getText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。