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


PHP OSCOM::getPublicSiteLink方法代码示例

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


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

示例1: execute

 public static function execute(ApplicationAbstract $application)
 {
     $OSCOM_ShoppingCart = Registry::get('ShoppingCart');
     $OSCOM_Service = Registry::get('Service');
     $OSCOM_Breadcrumb = Registry::get('Breadcrumb');
     $OSCOM_Template = Registry::get('Template');
     global $osC_oiAddress;
     // HPDL
     $application->setPageTitle(OSCOM::getDef('payment_method_heading'));
     $application->setPageContent('billing.php');
     if ($OSCOM_Service->isStarted('Breadcrumb')) {
         $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_checkout_payment'), OSCOM::getLink(null, null, 'Billing', 'SSL'));
     }
     // load billing address page if no default address exists
     if (!$OSCOM_ShoppingCart->hasBillingAddress()) {
         $application->setPageTitle(OSCOM::getDef('payment_address_heading'));
         $application->setPageContent('billing_address.php');
         $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_payment_address.js'));
         $OSCOM_Template->addJavascriptPhpFilename(OSCOM::BASE_DIRECTORY . 'Core/Site/Shop/assets/form_check.js.php');
         if (!$OSCOM_Customer->isLoggedOn()) {
             $osC_oiAddress = new ObjectInfo($OSCOM_ShoppingCart->getBillingAddress());
         }
     } else {
         $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_payment.js'));
         // load all enabled payment modules
         $OSCOM_Payment = Registry::get('Payment');
         $OSCOM_Payment->loadAll();
         $OSCOM_Template->addJavascriptBlock($OSCOM_Payment->getJavascriptBlocks());
     }
     // HPDL
     //      if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error())) {
     //        $OSCOM_MessageStack->add('CheckoutBilling', $error['error'], 'error');
     //      }
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:34,代码来源:Billing.php

示例2: getIcon

 public function getIcon($size = 16, $icon = null, $title = null)
 {
     if (empty($icon)) {
         $icon = $this->_application->getIcon();
     }
     return '<img src="' . OSCOM::getPublicSiteLink('images/applications/' . (int) $size . '/' . $icon) . '" border="0" alt="" title="' . osc_output_string_protected($title) . '" width="' . (int) $size . '" height="' . (int) $size . '" />';
 }
开发者ID:kdexter,项目名称:oscommerce,代码行数:7,代码来源:Template.php

示例3: execute

 public static function execute(ApplicationAbstract $application)
 {
     $OSCOM_ShoppingCart = Registry::get('ShoppingCart');
     $OSCOM_Service = Registry::get('Service');
     $OSCOM_Breadcrumb = Registry::get('Breadcrumb');
     $OSCOM_Template = Registry::get('Template');
     $OSCOM_Customer = Registry::get('Customer');
     global $osC_oiAddress;
     // HPDL
     $application->setPageTitle(OSCOM::getDef('shipping_method_heading'));
     $application->setPageContent('shipping.php');
     if ($OSCOM_Service->isStarted('Breadcrumb')) {
         $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_checkout_shipping'), OSCOM::getLink(null, null, 'Shipping', 'SSL'));
     }
     // load shipping address page if no default address exists
     if (!$OSCOM_ShoppingCart->hasShippingAddress()) {
         $application->setPageTitle(OSCOM::getDef('shipping_address_heading'));
         $application->setPageContent('shipping_address.php');
         $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_shipping_address.js'));
         $OSCOM_Template->addJavascriptPhpFilename(OSCOM::BASE_DIRECTORY . 'Core/Site/Shop/assets/form_check.js.php');
         if (!$OSCOM_Customer->isLoggedOn()) {
             $osC_oiAddress = new ObjectInfo($OSCOM_ShoppingCart->getShippingAddress());
         }
     } else {
         $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_shipping.js'));
         // load all enabled shipping modules
         Registry::set('Shipping', new ShippingClass(), true);
     }
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:29,代码来源:Shipping.php

示例4: getIcon

 public function getIcon($size = 16, $icon = null, $title = null)
 {
     if (!isset($icon)) {
         $icon = $this->_application->getIcon();
     }
     return HTML::image(OSCOM::getPublicSiteLink('images/applications/' . $size . '/' . $icon), $title, $size, $size);
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:7,代码来源:Template.php

示例5: osc_icon

/**
 * Display an icon from a template set
 *
 * @param string $image The icon to display
 * @param string $title The title of the icon
 * @param string $group The size group of the icon
 * @param string $parameters The parameters to pass to the image
 * @access public
 */
function osc_icon($image, $title = null, $group = null, $parameters = null)
{
    if (is_null($title)) {
        $title = OSCOM::getDef('icon_' . substr($image, 0, strpos($image, '.')));
    }
    if (is_null($group)) {
        $group = '16x16';
    }
    return osc_image(OSCOM::getPublicSiteLink('templates/' . Registry::get('Template')->getCode() . '/images/icons/' . (!empty($group) ? $group . '/' : null) . $image), $title, null, null, $parameters);
}
开发者ID:kdexter,项目名称:oscommerce,代码行数:19,代码来源:html_output.php

示例6: initialize

 public function initialize()
 {
     $OSCOM_Service = Registry::get('Service');
     $OSCOM_Cache = Registry::get('Cache');
     $OSCOM_Product = Registry::exists('Product') ? Registry::get('Product') : null;
     $OSCOM_Language = Registry::get('Language');
     $OSCOM_PDO = Registry::get('PDO');
     $OSCOM_Image = Registry::get('Image');
     $this->_title_link = OSCOM::getLink(null, 'Products', 'Reviews');
     if ($OSCOM_Service->isStarted('Reviews')) {
         if (BOX_REVIEWS_CACHE > 0 && $OSCOM_Cache->read('box-reviews' . (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid() ? '-' . $OSCOM_Product->getID() : '') . '-' . $OSCOM_Language->getCode(), BOX_REVIEWS_CACHE)) {
             $data = $OSCOM_Cache->getCache();
         } else {
             $data = array();
             $sql_query = 'select r.reviews_id, r.reviews_rating, p.products_id, pd.products_name, pd.products_keyword, i.image from :table_reviews r, :table_products p left join :table_products_images i on (p.products_id = i.products_id and i.default_flag = :default_flag), :table_products_description pd where r.products_id = p.products_id and p.products_status = 1 and r.languages_id = :language_id and p.products_id = pd.products_id and pd.language_id = :language_id and r.reviews_status = 1';
             if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
                 $sql_query .= ' and p.products_id = :products_id';
             }
             $sql_query .= ' order by r.reviews_id desc limit :max_random_select_reviews';
             $Qreview = $OSCOM_PDO->prepare($sql_query);
             $Qreview->bindInt(':default_flag', 1);
             $Qreview->bindInt(':language_id', $OSCOM_Language->getID());
             $Qreview->bindInt(':language_id', $OSCOM_Language->getID());
             if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
                 $Qreview->bindInt(':products_id', $OSCOM_Product->getID());
             }
             $Qreview->bindInt(':max_random_select_reviews', BOX_REVIEWS_RANDOM_SELECT);
             $Qreview->execute();
             $result = $Qreview->fetchAll();
             if (count($result) > 0) {
                 $result = $result[rand(0, count($result) - 1)];
                 $Qtext = $OSCOM_PDO->prepare('select substring(reviews_text, 1, 60) as reviews_text from :table_reviews where reviews_id = :reviews_id and languages_id = :languages_id');
                 $Qtext->bindInt(':reviews_id', $result['reviews_id']);
                 $Qtext->bindInt(':languages_id', $OSCOM_Language->getID());
                 $Qtext->execute();
                 $data = array_merge($result, $Qtext->fetch());
             }
             $OSCOM_Cache->write($data);
         }
         $this->_content = '';
         if (empty($data)) {
             if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
                 $this->_content = '<div style="float: left; width: 55px;">' . HTML::button(array('href' => OSCOM::getLink(null, 'Products', 'Reviews&Write&' . $OSCOM_Product->getKeyword()), 'icon' => 'pencil', 'title' => OSCOM::getDef('button_write_review'))) . '</div>' . HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&Write&' . $OSCOM_Product->getKeyword()), OSCOM::getDef('box_reviews_write')) . '<div style="clear: both;"></div>';
             }
         } else {
             if (!empty($data['image'])) {
                 $this->_content = '<div align="center">' . HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&View=' . $data['reviews_id'] . '&' . $data['products_keyword']), $OSCOM_Image->show($data['image'], $data['products_name'])) . '</div>';
             }
             $this->_content .= HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&View=' . $data['reviews_id'] . '&' . $data['products_keyword']), wordwrap(HTML::outputProtected($data['reviews_text']), 15, '&shy;') . ' ..') . '<br /><div align="center">' . HTML::image(OSCOM::getPublicSiteLink('images/stars_' . $data['reviews_rating'] . '.png'), sprintf(OSCOM::getDef('box_reviews_stars_rating'), $data['reviews_rating'])) . '</div>';
         }
     }
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:52,代码来源:Controller.php

示例7: initialize

 protected function initialize()
 {
     $OSCOM_Language = Registry::get('Language');
     $OSCOM_Session = Registry::get('Session');
     $OSCOM_Template = Registry::get('Template');
     $OSCOM_Service = Registry::get('Service');
     $OSCOM_Breadcrumb = Registry::get('Breadcrumb');
     $OSCOM_Language->load('products');
     $requested_product = null;
     $product_check = false;
     if (count($_GET) > 1) {
         $requested_product = basename(key(array_slice($_GET, 1, 1, true)));
         if ($requested_product == OSCOM::getSiteApplication()) {
             unset($requested_product);
             if (count($_GET) > 2) {
                 $requested_product = basename(key(array_slice($_GET, 2, 1, true)));
             }
         }
     }
     if (isset($requested_product)) {
         if (!self::siteApplicationActionExists($requested_product)) {
             if (Product::checkEntry($requested_product)) {
                 $product_check = true;
                 Registry::set('Product', new Product($requested_product));
                 $OSCOM_Product = Registry::get('Product');
                 $OSCOM_Product->incrementCounter();
                 $OSCOM_Template->addPageTags('keywords', $OSCOM_Product->getTitle());
                 $OSCOM_Template->addPageTags('keywords', $OSCOM_Product->getModel());
                 if ($OSCOM_Product->hasTags()) {
                     $OSCOM_Template->addPageTags('keywords', $OSCOM_Product->getTags());
                 }
                 $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/products/info.js'));
                 // HPDL            osC_Services_category_path::process($osC_Product->getCategoryID());
                 if ($OSCOM_Service->isStarted('Breadcrumb')) {
                     $OSCOM_Breadcrumb->add($OSCOM_Product->getTitle(), OSCOM::getLink(null, null, $OSCOM_Product->getKeyword()));
                 }
                 $this->_page_title = $OSCOM_Product->getTitle();
             }
         }
     }
     if ($product_check === false) {
         $this->_page_title = OSCOM::getDef('product_not_found_heading');
         $this->_page_contents = 'not_found.php';
     }
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:45,代码来源:Controller.php

示例8: execute

 public static function execute(ApplicationAbstract $application)
 {
     $OSCOM_Template = Registry::get('Template');
     $OSCOM_Service = Registry::get('Service');
     $OSCOM_Breadcrumb = Registry::get('Breadcrumb');
     $OSCOM_Customer = Registry::get('Customer');
     $OSCOM_ShoppingCart = Registry::get('ShoppingCart');
     global $osC_oiAddress;
     $application->setPageTitle(OSCOM::getDef('payment_address_heading'));
     $application->setPageContent('billing_address.php');
     $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_payment_address.js'));
     $OSCOM_Template->addJavascriptPhpFilename(OSCOM::BASE_DIRECTORY . 'Core/Site/Shop/assets/form_check.js.php');
     if ($OSCOM_Service->isStarted('Breadcrumb')) {
         $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_checkout_payment_address'), OSCOM::getLink(null, null, 'Billing&Address', 'SSL'));
     }
     if (!$OSCOM_Customer->isLoggedOn()) {
         $osC_oiAddress = new ObjectInfo($OSCOM_ShoppingCart->getShippingAddress());
     }
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:19,代码来源:Address.php

示例9:

?>
" />

  </head>

  <body>

    <div id="pageHeader">
      <div>
        <div style="float: right; padding-top: 40px; padding-right: 15px; color: #000000; font-weight: bold;"><a href="http://www.oscommerce.com" target="_blank">osCommerce Website</a> &nbsp;|&nbsp; <a href="http://www.oscommerce.com/support" target="_blank">Support</a></div>

        <a href="<?php 
echo OSCOM::getLink(null, OSCOM::getDefaultSiteApplication());
?>
"><img src="<?php 
echo OSCOM::getPublicSiteLink('images/oscommerce.png');
?>
" border="0" alt="" title="osCommerce Online Merchant v3.0" style="margin: 10px 10px 0px 10px;" /></a>
      </div>
    </div>

    <div id="pageContent">
      <?php 
require $OSCOM_Template->getPageContentsFile();
?>
    </div>

    <div id="pageFooter">
      Copyright &copy; 2000-2011 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a> (<a href="http://www.oscommerce.com/about/copyright" target="_blank">Copyright Policy</a>, <a href="http://www.oscommerce.com/about/trademark" target="_blank">Trademark Policy</a>)<br />osCommerce is a registered trademark of Harald Ponce de Leon</a>
    </div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:default.php

示例10: showImage

 public function showImage($code = null, $width = 16, $height = 10, $parameters = null)
 {
     if (!isset($code)) {
         $code = $this->_code;
     }
     $image_code = strtolower(substr($code, 3));
     if (!is_numeric($width)) {
         $width = 16;
     }
     if (!is_numeric($height)) {
         $height = 10;
     }
     return HTML::image(OSCOM::getPublicSiteLink('images/worldflags/' . $image_code . '.png', null, 'Shop'), $this->_languages[$code]['name'], $width, $height, $parameters);
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:14,代码来源:Language.php

示例11:

  var dataTableDataURL = '<?php 
echo OSCOM::getRPCLink(null, null, 'GetAll');
?>
';

  var languageLink = '<?php 
echo OSCOM::getLink(null, null, 'id=LANGUAGEID');
?>
';
  var languageLinkIcon = '<?php 
echo HTML::icon('folder.png');
?>
';

  var languageIcon = '<?php 
echo HTML::image(OSCOM::getPublicSiteLink('images/worldflags/LANGUAGECODE.png', null, 'Shop'), 'LANGUAGENAME');
?>
';

  var languageEditLink = '<?php 
echo OSCOM::getLink(null, null, 'Save&id=LANGUAGEID');
?>
';
  var languageEditLinkIcon = '<?php 
echo HTML::icon('edit.png');
?>
';

  var languageExportLink = '<?php 
echo OSCOM::getLink(null, null, 'Export&id=LANGUAGEID');
?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:main.php

示例12:

<title><?php 
echo STORE_NAME . ($OSCOM_Template->hasPageTitle() ? ': ' . $OSCOM_Template->getPageTitle() : '');
?>
</title>

<link rel="icon" type="image/png" href="<?php 
echo OSCOM::getPublicSiteLink('images/store_icon.png');
?>
" />

<meta name="generator" value="osCommerce Online Merchant" />

<script type="text/javascript" src="public/external/jquery/jquery-1.4.2.min.js"></script>

<link rel="stylesheet" type="text/css" href="<?php 
echo OSCOM::getPublicSiteLink('templates/oscom/stylesheets/general.css');
?>
" />

<?php 
if ($OSCOM_Template->hasPageTags()) {
    echo $OSCOM_Template->getPageTags();
}
if ($OSCOM_Template->hasJavascript()) {
    $OSCOM_Template->getJavascript();
}
?>

</head>

<body>
开发者ID:hakankarar,项目名称:oscommerce,代码行数:31,代码来源:oscom.php

示例13: sprintf

    ?>
 (<?php 
    echo sprintf(OSCOM::getDef('reviewed_by'), HTML::outputProtected($r['customers_name']));
    ?>
)</h6>

  <div class="content">

<?php 
    if (!empty($r['image'])) {
        echo HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&View=' . $r['reviews_id'] . '&' . $r['products_keyword']), $OSCOM_Image->show($r['image'], $r['products_name'], 'style="float: left;"'));
    }
    ?>

    <p style="padding-left: 100px;"><?php 
    echo wordwrap(HTML::outputProtected($r['reviews_text']), 60, '&shy;') . (strlen(HTML::outputProtected($r['reviews_text'])) >= 100 ? '..' : '') . '<br /><br /><i>' . sprintf(OSCOM::getDef('review_rating'), HTML::image(OSCOM::getPublicSiteLink('images/stars_' . (int) $r['reviews_rating'] . '.png'), sprintf(OSCOM::getDef('rating_of_5_stars'), (int) $r['reviews_rating'])), sprintf(OSCOM::getDef('rating_of_5_stars'), (int) $r['reviews_rating'])) . '</i>';
    ?>
</p>

    <div style="clear: both;"></div>
  </div>
</div>

<?php 
}
?>

<div class="listingPageLinks">
  <span style="float: right;"><?php 
echo PDO::getBatchPageLinks('page', $reviews_listing['total'], OSCOM::getAllGET('page'));
?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:reviews.php

示例14: function

    ?>
'.replace('RESETAPP', resetApplication), function (data) {
      $.each(data, function(key, val) {
        if ( $('#shortcut-' + key + ' .notBubble').html != val ) {
          if ( val > 0 || val.length > 0 ) {
            $('#shortcut-' + key + ' .notBubble').html(val).show();

            if ( (typeof webkitNotifications != 'undefined') && (webkitNotifications.checkPermission() == 0) ) {
              if ( typeof wkn[key] == 'undefined' ) {
                wkn[key] = new Object;
              }

              if ( wkn[key].value != val ) {
                wkn[key].value = val;
                wkn[key].n = webkitNotifications.createNotification('<?php 
    echo OSCOM::getPublicSiteLink('images/applications/32/APPICON.png');
    ?>
'.replace('APPICON', key), key, val);
                wkn[key].n.replaceId = key;
                wkn[key].n.ondisplay = function(event) {
                  setTimeout(function() {
                    event.currentTarget.cancel();
                  }, 5000);
                };
                wkn[key].n.show();
              }
            }
          } else {
            $('#shortcut-' + key + ' .notBubble').hide();
          }
        }
开发者ID:kdexter,项目名称:oscommerce,代码行数:31,代码来源:header.php

示例15: require

    <script type="text/javascript" src="public/external/jquery/jquery-1.7.1.min.js"></script>

    <link rel="stylesheet" type="text/css" href="public/external/jquery/ui/themes/smoothness/jquery-ui-1.8.17.custom.css" />
    <script type="text/javascript" src="public/external/jquery/ui/jquery-ui-1.8.17.custom.min.js"></script>

    <link rel="stylesheet" type="text/css" href="<?php echo OSCOM::getPublicSiteLink('templates/default/stylesheets/general.css'); ?>" />

  </head>

  <body>

    <div id="pageHeader">
      <div>
        <div style="float: right; padding-top: 40px; padding-right: 15px; color: #000000; font-weight: bold;"><a href="http://www.oscommerce.com" target="_blank">osCommerce Website</a> &nbsp;|&nbsp; <a href="http://www.oscommerce.com/support" target="_blank">Support</a></div>

        <a href="<?php echo OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()); ?>"><img src="<?php echo OSCOM::getPublicSiteLink('images/oscommerce.png'); ?>" border="0" alt="" title="osCommerce Online Merchant v3.0" style="margin: 10px 10px 0px 10px;" /></a>
      </div>
    </div>

    <div id="pageContent">
      <?php require($OSCOM_Template->getPageContentsFile()); ?>
    </div>

    <div id="pageFooter">
      Copyright &copy; 2000-2011 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a> (<a href="http://www.oscommerce.com/about/copyright" target="_blank">Copyright Policy</a>, <a href="http://www.oscommerce.com/about/trademark" target="_blank">Trademark Policy</a>)<br />osCommerce is a registered trademark of Harald Ponce de Leon</a>
    </div>

  </body>

</html>
开发者ID:haraldpdl,项目名称:oscommerce,代码行数:30,代码来源:default.php


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