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


PHP utility::isPro方法代码示例

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


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

示例1: setFunction

 public function setFunction($value, $value2 = null)
 {
     global $lC_Language;
     if (utility::isPro() === false) {
         $string = '<span class="input large-margin-bottom">
                <span class="icon-calendar mid-margin-right"></span>
                ' . lc_draw_input_field('attributes[' . self::getID() . ']', $value, 'id="attributes_' . self::getID() . '" class="input-unstyled datepicker"') . '
              </span>
              <span class="input relative disabled date-available-ends margin-bottom">
                <span class="icon-calendar mid-margin-right"></span>
                <div class="strong upsellwrapper" style="position:absolute;top:-29px;left:0px;">
                  <span class="upsellinfo" upselltitle="' . $lC_Language->get('text_availability_ends') . '" upselldesc="' . $lC_Language->get('text_availability_ends_desc') . '">Ends</span> ' . lc_go_pro() . '
                </div>
                ' . lc_draw_input_field('availability_ends_go_pro', null, 'id="availability_ends_go_pro" class="input-unstyled" disabled') . '
              </span>
              ';
     } else {
         $string = '<div class="no-wrap"><span class="input large-margin-bottom" style="width:46%;">
                <span class="icon-calendar mid-margin-right"></span>
                ' . lc_draw_input_field('attributes[' . self::getID() . ']', $value, 'id="attributes_' . self::getID() . '" class="input-unstyled datepicker"') . '
              </span>
              <span class="input relative date-available-ends margin-bottom" style="width:46%;">
                <span class="icon-calendar mid-margin-right"></span>
                <div class="strong" style="position:absolute;top:-29px;left:0px;">
                  <span>Ends</span>
                </div>
                ' . lc_draw_input_field('attributes2[' . self::getID() . ']', $value2, 'id="attributes2_' . self::getID() . '" class="input-unstyled datepicker"') . '
              </span></div>
              ';
     }
     return $string;
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:32,代码来源:date_available.php

示例2:

<?php

/**
  @package    catalog::admin::applications
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @copyright  Template built on Developr theme by DisplayInline http://themeforest.net/user/displayinline under Extended license 
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: main.php v1.0 2013-08-08 datazen $
*/
require_once $lC_Vqmod->modCheck('includes/applications/orders/classes/orders.php');
require_once $lC_Vqmod->modCheck('includes/applications/manufacturers/classes/manufacturers.php');
if (utility::isPro() == true || utility::isB2B() == true) {
    $note = '';
} else {
    $note = '<p class="message icon-speech orange-gradient">&nbsp;' . $lC_Language->get('text1') . '<span class="upsellinfo" upselltitle="' . $lC_Language->get('text_class_upsell_title') . '" upselldesc="' . $lC_Language->get('text_additional_images_upsell_desc') . '"></span>' . lc_go_pro() . '&nbsp;&nbsp;' . $lC_Language->get('text2') . '<span class="upsellinfo" upselltitle="' . $lC_Language->get('text_class_upsell_title') . '" upselldesc="' . $lC_Language->get('text_class_upsell_desc') . '"></span>' . lc_go_pro() . $lC_Language->get('text3') . '</p>';
}
$breakout = '<span class="breakout-wrapper">
               <span class="anthracite with-small-padding no-wrap" name="breakout_by" id="breakout_by">' . $lC_Language->get("text_breakout_by") . '</span>
               <label class="no-wrap">
                 <input type="radio" class="radio" id="breakout" name="breakout" value = "class">
                 <span class="anthracite with-small-padding space">' . $lC_Language->get("text_class") . '</span>
                 ' . lc_go_pro() . '
               </label>
               <label class="no-wrap">
                 <input type="radio" class="radio" id="breakout" name="breakout" value="supplier">
                 <span class="anthracite with-small-padding">' . $lC_Language->get("text_supplier") . '</span>
                 <span class="upsellinfo" upselltitle="' . $lC_Language->get('text_class_upsell_title') . '" upselldesc="' . $lC_Language->get('text_class_upsell_desc') . '"></span>
                 ' . lc_go_pro() . '
               </label>
开发者ID:rajeshb001,项目名称:itpl_loaded7,代码行数:31,代码来源:main.php

示例3:

        </div>
      </div>
    </div>
  </fieldset>
  <fieldset class="fieldset">
    <legend class="legend"><?php 
echo $lC_Language->get('text_management_settings');
?>
</legend>
    <div class="columns no-margin-bottom">
      <?php 
echo lC_Products_Admin::getProductAttributeModules('dataManagementSettings');
?>
      <div class="new-row-mobile six-columns six-columns-tablet twelve-columns-mobile no-margin-bottom">
      <?php 
if (utility::isPro() === false) {
    ?>
        <div class="twelve-columns strong mid-margin-bottom upsellwrapper">
          <span class="upsellinfo" upselltitle="<?php 
    echo $lC_Language->get('text_product_class_upsell_title');
    ?>
" upselldesc="<?php 
    echo $lC_Language->get('text_product_class_upsell_desc');
    ?>
"><?php 
    echo $lC_Language->get('text_product_class') . lc_go_pro();
    ?>
</span>
          <?php 
    echo lc_show_info_bubble($lC_Language->get('info_bubble_data_product_class'));
    ?>
开发者ID:rajeshb001,项目名称:itpl_loaded7,代码行数:31,代码来源:data.php

示例4: format

 public function format($number, $currency_code = '', $currency_value = '')
 {
     global $lC_Language;
     if (empty($currency_code) || $this->exists($currency_code) == false) {
         $currency_code = isset($_SESSION['currency']) ? $_SESSION['currency'] : DEFAULT_CURRENCY;
     }
     if (empty($currency_value) || is_numeric($currency_value) == false) {
         $currency_value = $this->currencies[$currency_code]['value'];
     }
     $number_value = number_format(lc_round($number * $currency_value, $this->currencies[$currency_code]['decimal_places']), $this->currencies[$currency_code]['decimal_places'], $lC_Language->getNumericDecimalSeparator(), $lC_Language->getNumericThousandsSeparator());
     // rounding rule
     if ((utility::isPro() === true || utility::isB2B() === true) && defined('PRO_SETTINGS_ROUNDING_RULES') && PRO_SETTINGS_ROUNDING_RULES != '') {
         // determine the current price parts
         $currentPriceValue = lc_round($number * $currency_value, $this->currencies[$currency_code]['decimal_places']);
         $priceParts = explode('.', $currentPriceValue);
         $dollarPrice = $priceParts[0];
         $centsPrice = $priceParts[1];
         // get the rounding rules
         $rules = unserialize(PRO_SETTINGS_ROUNDING_RULES);
         if (is_array($rules[$this->getCode()])) {
             if ($rules[$this->getCode()]['status'] == 'on' || $rules[$this->getCode()]['status'] == '1') {
                 $roundto = $rules[$this->getCode()]['roundto'];
                 $level = $rules[$this->getCode()]['level'];
                 switch ($level) {
                     case '0':
                         // ###.#0
                         $number_value = number_format((double) (substr((string) $number_value, 0, -($level + 1)) . str_replace(array('.', '#'), '', $roundto)), DECIMAL_PLACES);
                         break;
                     case '1':
                         // ###.00
                         $number_value = number_format((double) (substr((string) $number_value, 0, -($level + 1)) . str_replace(array('.', '#'), '', $roundto)), DECIMAL_PLACES);
                         break;
                     case '2':
                         // ##0.00
                         if (strstr($roundto, '.')) {
                             $parts = explode('.', $roundto);
                             $rDollar = (string) $parts[0];
                             $rCents = (string) $parts[1];
                             $number_value = (double) (substr($dollarPrice, 0, -1) . $rDollar . '.' . $rCents);
                         }
                         break;
                     case '3':
                         // #00.00
                         if (strstr($roundto, '.')) {
                             $parts = explode('.', $roundto);
                             $rDollar = (string) $parts[0];
                             $rCents = (string) $parts[1];
                             $number_value = (double) (substr($dollarPrice, 0, -2) . $rDollar . '.' . $rCents);
                         }
                         break;
                     case '4':
                         // 000.00
                         if (strstr($roundto, '.')) {
                             $parts = explode('.', $roundto);
                             $rDollar = (string) $parts[0];
                             $rCents = (string) $parts[1];
                             $number_value = (double) (substr($dollarPrice, 0, -3) . $rDollar . '.' . $rCents);
                         }
                         break;
                 }
             }
         }
     }
     return $this->currencies[$currency_code]['symbol_left'] . $number_value . $this->currencies[$currency_code]['symbol_right'];
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:65,代码来源:currencies.php

示例5:

echo $lC_Language->get('text_lost_password_instructions');
?>
</p>
          <p class=" align-center mid-margin-bottom"><button type="submit" class="button glossy green-gradient full-width"><?php 
echo $lC_Language->get('button_back_to_login');
?>
</button></p>
        </form>
      </div>
    </div>
  </div>
  <div id="copyright-msg">
    <p class="anthracite" align="center" style="line-height:1.5;">Copyright &copy; <?php 
echo @date("Y");
?>
 <a class="anthracite" href="http://www.loaded7.com">Loaded Commerce</a><br /><?php 
echo $lC_Language->get('text_core') . ' ' . $lC_Language->get('text_version') . ' ' . utility::getVersion();
if (utility::isPro() === true) {
    echo '<small class="tag red-gradient mid-margin-left mid-margin-right">PRO</small>' . $lC_Language->get('text_version') . ' ' . utility::getProVersion();
}
?>
</p>
    <p class="anthracite" align="center"><a class="anthracite" href="http://loadedcommerce.com/support" target="_blank"><?php 
echo $lC_Language->get('text_get_support');
?>
</a> - <a class="anthracite" href="http://loadedcommerce.com" target="_blank"><?php 
echo $lC_Language->get('text_get_more_loaded');
?>
</a></p>
  </div>
</div>
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:31,代码来源:lost_password_confirm.php

示例6: isset

echo $lC_Currencies->getSymbolLeft();
?>
</span>
        <input type="text" onfocus="this.select();" onchange="updatePricingDiscountDisplay();" class="input-unstyled" name="products_base_price" id="products_base_price" value="<?php 
echo isset($pInfo) ? number_format(lc_round($pInfo->get('products_price'), DECIMAL_PLACES), DECIMAL_PLACES) : null;
?>
" class="input strong" onblur="$('#products_price0').val(this.value);" />
      </div>    
      <?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_pricing_base_price'), null, 'info-spot on-left grey margin-left');
?>
    </div>

    <div class="upsellwrapper field-block field-block-product button-height">
      <?php 
if (utility::isPro() === false || utility::isB2B() === false) {
    ?>
        <label upselltitle="<?php 
    echo $lC_Language->get('text_group_pricing');
    ?>
" upselldesc="<?php 
    echo $lC_Language->get('text_group_pricing_desc');
    ?>
" for="" class="label upsellinfo"><b><?php 
    echo $lC_Language->get('text_group_pricing');
    ?>
</b></label>
      <?php 
}
?>
      <label for="groups_pricing_switch" class="label"><b><?php 
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:31,代码来源:pricing.php

示例7: function

                      oTable.fnReloadAjax();
                    }
                  );
                  win.closeModal();
                }
              }
            }
          },
          buttonsLowPadding: true
      });
      $("#module").empty();  // clear the old values
      i = 0;
      $.each(data.modulesArray, function(val, text) {
        var text = text.replace(/_/g, " ").replace(/\b./g, function(m){ return m.toUpperCase(); });
        var isPro = '<?php 
echo utility::isPro();
?>
';
        if(i == 0) {
          $("#module").closest("span + *").prevAll("span.select-value:first").text(text);
          i++;
        }
        if ( isPro == false  && (val == 'file_upload' || val == 'multiple_file_upload')) text = text + ' (PRO)';
        $("#module").append(
          $('<option></option>').val(val).html(text)
        );
      });
      $("#groupNames").html(data.groupNames);
    }
  );
}
开发者ID:rajeshb001,项目名称:itpl_loaded7,代码行数:31,代码来源:new.php

示例8: getProVersionTag

 public static function getProVersionTag()
 {
     global $lC_Language;
     if (utility::isB2B()) {
         return '<small class="tag orange-gradient mid-margin-left mid-margin-right">B2B</small>' . $lC_Language->get('text_version') . ' ' . utility::getB2BVersion();
     } else {
         if (utility::isPro()) {
             return '<small class="tag red-gradient mid-margin-left mid-margin-right">PRO</small>' . $lC_Language->get('text_version') . ' ' . utility::getProVersion();
         }
     }
 }
开发者ID:rajeshb001,项目名称:itpl_loaded7,代码行数:11,代码来源:login.php

示例9: lc_href_link

'   
    
  var group = '<?php 
echo DEFAULT_CUSTOMERS_GROUP_ID;
?>
';
  var id = '<?php 
echo $lC_Product->getID();
?>
';
  var module = '<?php 
echo $lC_Template->getModule();
?>
';
  var isPro = '<?php 
echo utility::isPro() == true ? 1 : 0;
?>
';
  var nvp = $('#cart_quantity').serialize();
  var jsonLink = '<?php 
echo lc_href_link('rpc.php', 'products&action=getPriceInfo&id=PID&group=GROUP&NVP', 'AUTO');
?>
';   
  $.getJSON(jsonLink.replace('PID', id).replace('GROUP', group).replace('NVP', nvp).split('amp;').join(''),
    function (data) {
    var currencySymbolLeft = '<?php 
echo $lC_Currencies->getSymbolLeft();
?>
';
      var basePrice = currencySymbolLeft + data.price; 
      if (data.formatted != null) { 
开发者ID:rajeshb001,项目名称:loaded7,代码行数:31,代码来源:info.php


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