本文整理汇总了PHP中OPCLang类的典型用法代码示例。如果您正苦于以下问题:PHP OPCLang类的具体用法?PHP OPCLang怎么用?PHP OPCLang使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了OPCLang类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: store
function store()
{
require_once JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'language.php';
// load basic stuff:
OPCLang::loadLang();
$user = JFactory::getUser();
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');
jimport('joomla.filesystem.archive');
jimport('joomla.archive.archive');
$msg = '';
$db = JFactory::getDBO();
$data = JRequest::get('post');
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');
foreach ($data as $k => $d) {
if (strpos($k, 'tid_') !== false && strpos($k, 'payment_contentid') === false) {
/* we have a standard variable:
tid_special_, tid_ai_, tid_num_, tid_back_, tid_forward_
tid_nummax_, tid_itemmax_
tid_type_
*/
if (!defined($k)) {
$this->setTemplateSetting($k, $data[$k]);
//echo 'template setting: '.$k.'value: '.$data[$k];
define($k, $data[$k]);
}
$a = explode('_', $k);
if (count($a) == 3) {
$tid = $a[2];
$checkboxes = array('tid_special_', 'tid_ai_', 'tid_num_', 'tid_forward_', 'tid_back_', 'tid_enabled_', 'tid_foreign_', 'tid_email_', 'tid_autocreate_');
foreach ($checkboxes as $ch) {
if (!isset($data[$ch . $tid]) && !defined($ch . $tid)) {
$this->setTemplateSetting($ch . $tid, 0);
define($ch . $tid, '0');
//echo ':'.$ch.$tid.' val: 0';
}
}
}
}
}
return true;
}
示例2:
<script src="<?php
echo JHTMLOPC::getFullUrl('onepage.js', 'components/com_onepage/assets/js/');
?>
" type="text/javascript"></script>
<script src="<?php
echo JHTMLOPC::getFullUrl('tabcontent.js', $path, false);
?>
" type="text/javascript"></script>
<script src="<?php
echo JHTMLOPC::getFullUrl('jquery.mobile.stepper.js', 'components/com_onepage/themes/extra/jQuery-Mobile-Stepper-Widget-master/', false);
?>
" type="text/javascript"></script>
<title><?php
echo OPCLang::_('COM_VIRTUEMART_CART_TITLE');
?>
</title>
<script src="/components/com_virtuemart/assets/js/jquery.ui.datepicker.min.js" type="text/javascript"></script>
<script src="/components/com_virtuemart/assets/js/i18n/jquery.ui.datepicker-en-GB.js" type="text/javascript"></script>
<script src="/components/com_virtuemart/assets/js/vmcreditcard.js" type="text/javascript"></script>
<script src="/components/com_onepage/ext/doublemail/js/doublemail.js?opcversion=2_0_257_268_140914" type="text/javascript"></script>
<script src="/cache/com_onepage/opc_dynamic_en-GB_2ff4261d13f52233a0d498969562a168.js?opcversion=2_0_257_268_140914" type="text/javascript"></script>
</head>
<body>
<div data-role="page" data-quicklinks="false" data-add-back-btn="true" data-back-btn-text="Back" data-theme="d" class="page-0">
示例3:
<?php
}
?>
<!-- end show TOS and checkbox before button -->
<div style="float: left;">
<button type="submit" autocomplete="off" <?php
echo $op_onclick;
?>
id="confirmbtn_button" ><span class="op_round"><span id="confirmbtn" style="width: 250px;"><?php
echo OPCLang::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU');
?>
</span></span></button>
</div>
<br style="clear: both;"/>
</div>
<?php
echo $captcha;
?>
<!-- end of submit button -->
</div>
示例4: getRegistrationHhtml
public static function getRegistrationHhtml(&$obj, &$OPCloader)
{
// if (!empty($no_login_in_template)) return "";
include JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'config' . DS . 'onepage.cfg.php';
if (!class_exists('VirtueMartCart')) {
require JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php';
}
if (!empty($obj->cart)) {
$cart =& $obj->cart;
} else {
$cart = VirtueMartCart::getCart();
}
$type = 'BT';
// for unlogged
$virtuemart_userinfo_id = 0;
$new = 1;
$fieldtype = $type . 'address';
/*
if (method_exists($cart, 'prepareAddressDataInCart'))
$cart->prepareAddressDataInCart($type, $new);
*/
require_once JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'userfields.php';
OPCUserFields::populateCart($cart, $type, true);
/*
if (method_exists($cart, 'prepareAddressFieldsInCart'))
$cart->prepareAddressFieldsInCart();
*/
OPCloader::setRegType();
if (!class_exists('VirtuemartModelUserfields')) {
require JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'userfields.php';
}
$corefields = VirtueMartModelUserfields::getCoreFields();
$userFields = $cart->{$fieldtype};
require_once JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'mini.php';
$layout = 'default';
foreach ($userFields['fields'] as $key => $uf) {
if (!in_array($key, $corefields) || $key == 'agreed') {
unset($userFields['fields'][$key]);
continue;
}
if (!empty($opc_email_in_bt) || $OPCloader->isNoLogin() || $OPCloader->isNoLogin()) {
if ($userFields['fields'][$key]['name'] == 'email') {
unset($userFields['fields'][$key]);
continue;
}
}
if ($key == 'email') {
$user = JFactory::getUser();
$uid = $user->get('id');
// user is logged, but does not have a VM account
if (!OPCloader::logged($cart) && !empty($uid)) {
// the user is logged in only in joomla, but does not have an account with virtuemart
$userFields['fields'][$key]['formcode'] = str_replace('/>', ' readonly="readonly" />', $userFields['fields'][$key]['formcode']);
}
}
}
require_once JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'userfields.php';
OPCUserFields::getUserFields($userFields, $OPCloader, $cart);
// lets move email to the top
$copy = array();
// we will reorder the fields, so the email is first when used as username
$u = OPCLang::_('COM_VIRTUEMART_REGISTER_UNAME');
//$e = OPCLang::_('COM_VIRTUEMART_USER_FORM_EMAIL');
// disable when used for logged in
if (!empty($userFields['fields'])) {
/*
if (empty($opc_email_in_bt) && (!empty($double_email)))
{
// email is in BT, let's check for double mail
$email2 = $userFields['fields']['email'];
$email2['name'] = 'email2';
$title = OPCLang::_('COM_ONEPAGE_EMAIL2');
if ($title != 'COM_ONEPAGE_EMAIL2')
$email2['title'] = $title;
$email2['formcode'] = str_replace('"email', '"email2', $email2['formcode']);
$email2['formcode'] = str_replace('id=', ' onblur="javascript: doublemail_checkMail();" id=', $email2['formcode']);
$h = '<span style="display: none; position: relative; color: red; font-size: 10px; background: none; border: none; padding: 0; margin: 0;" id="email2_info" class="email2_class">';
$emailerr = OPCLang::_('COM_ONEPAGE_EMAIL_DONT_MATCH');
if ($emailerr != 'COM_ONEPAGE_EMAIL_DONT_MATCH')
$h .= $emailerr;
else $h .= "Emails don't match!";
$h .= '</span>';
$email2['formcode'] .= $h;
}
*/
/*
if (!empty($opc_check_username))
if ((!OPCloader::logged($cart)) && (empty($uid)))
if (!empty($userFields['fields']['username']))
{
$un = $userFields['fields']['username']['formcode'];
$un = str_replace('id=', ' onblur="javascript: Onepage.username_check(this);" id=', $un);
$un .= '<span class="username_already_exist" style="display: none; position: relative; color: red; font-size: 10px; background: none; border: none; padding: 0; margin: 0;" id="username_already_exists">';
$un .= OPCLang::sprintf('COM_VIRTUEMART_STRING_ERROR_NOT_UNIQUE_NAME', $u);
$un .= '</span>';
$userFields['fields']['username']['formcode'] = $un;
}
//.........这里部分代码省略.........
示例5:
echo $item['title'];
?>
</div>
<div class="valueForm">
<?php
//var_dump($item['value']);
// prior 2.0.116: echo $this->escape($item['value'])
echo $item['value'];
?>
</div>
</div>
<?php
}
}
?>
<div>
<div style="clear:both; width:100%;text-align:center;"><a href="<?php
echo $edit_link;
?>
">
(<?php
echo OPCLang::_('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL');
?>
)</a>
</div>
</div>
</div>
<!-- customer information ends -->
示例6: Array
} else {
echo '<div class="formLabel">
<input type="checkbox" autocomplete="off" id="register_account" name="register_account" value="1" class="inputbox" onclick="return Onepage.showFields( this.checked, new Array(';
if (empty($op_usernameisemail)) {
echo '\'username\', \'password\', \'password2\'';
} else {
echo '\'password\', \'password2\'';
}
echo ') );" ';
if (empty($op_create_account_unchecked)) {
echo ' checked="checked" ';
}
echo '/>
</div>
<div class="formField">
<label for="register_account">' . OPCLang::_('COM_VIRTUEMART_ORDER_REGISTER') . '</label>
</div>
';
}
} elseif ($field['name'] == 'username') {
echo '<input type="hidden" id="register_account" name="register_account" value="1" />';
}
// a delimiter marks the beginning of a new fieldset and
// the end of a previous fieldset
/*
if( $field['type'] == 'delimiter') {
if( $delimiter > 0) {
echo "</fieldset>\n";
}
if( VM_REGISTRATION_TYPE == 'SILENT_REGISTRATION' && $field['title'] == OPCLang::_('COM_VIRTUEMART_ORDER_PRINT_CUST_INFO_LBL') && $page == 'checkout.index' ) {
continue;
示例7: str_replace
echo '<label for="' . $field['name'] . '_field">' . $field['title'] . '</label>';
$count = 0;
$field['formcode'] = str_replace('class="', 'class="checkbox inline ', $field['formcode'], $count);
if (empty($count)) {
$field['formcode'] = str_replace('type="', 'class="checkbox " type="', $field['formcode'], $count);
}
}
} else {
echo '<label for="' . $field['name'] . '_field">' . $field['title'] . '</label>';
$count = 0;
$field['formcode'] = str_replace('class="', 'class="checkbox inline ', $field['formcode'], $count);
if (empty($count)) {
$field['formcode'] = str_replace('type="', 'class="checkbox " type="', $field['formcode'], $count);
}
}
if ($isPlaceholder) {
$field['formcode'] = str_replace('type="', ' alt="' . $field['title'] . '" placeholder="' . $field['title'] . '" type="', $field['formcode']);
} else {
$field['formcode'] = str_replace('type="', ' alt="' . $field['title'] . '" type="', $field['formcode']);
}
echo ' </div>';
}
}
}
if ($delimiter > 0) {
if (!empty($required_fields)) {
echo '<div style="padding:5px;text-align:center;"><strong>(* = ' . OPCLang::_('CMN_REQUIRED') . ')</strong></div>';
}
echo "</fieldset>\n";
}
echo '</div>';
示例8: die
die('Direct Access to ' . basename(__FILE__) . ' is not allowed.');
}
/*
*
* @copyright Copyright (C) 2007 - 2010 RuposTel - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* One Page checkout is free software released under GNU/GPL and uses code from VirtueMart
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*
*/
?>
<div class="cart-view">
<div>
<div class="width:50%; float:left;">
<h1><?php
echo OPCLang::_('COM_VIRTUEMART_CART_TITLE');
?>
</h1>
</div>
<?php
echo OPCLang::_('COM_VIRTUEMART_EMPTY_CART');
?>
</div>
<?php
echo '<a class="continue_link" href="' . $continue_link . '" >' . OPCLang::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
?>
</div>
示例9: checkLoad
public static function checkLoad()
{
$app = JFactory::getApplication();
// if we are not at FE, do not alter anything
if ($app->getName() != 'site') {
return false;
}
require_once JPATH_SITE . DIRECTORY_SEPARATOR . 'administrator' . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_onepage' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'compatibility.php';
// if (!class_exists('VmConfig'))
// require(JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_virtuemart'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'config.php');
if (!file_exists(JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_onepage' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'language.php')) {
return false;
}
// test format:
$format = JRequest::getVar('format', 'html');
$option = JRequest::getCmd('option');
$tmpl = JRequest::getVar('tmpl', '');
if ($tmpl == 'component' && $format != 'opchtml') {
return false;
}
// speed up json requests
$okformat = array('opchtml', 'html');
if (!in_array($format, $okformat)) {
return false;
}
$doc = JFactory::getDocument();
$class = get_class($doc);
$class = strtolower($class);
$format = str_replace('jdocument', '', $class);
if (!in_array($format, $okformat)) {
return;
}
if ($app->isAdmin()) {
return false;
}
require_once JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_onepage' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'language.php';
// load basic stuff:
OPCLang::loadLang();
if (!defined('DS')) {
define('DS', DIRECTORY_SEPARATOR);
}
if (!defined('JPATH_OPC')) {
define('JPATH_OPC', JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_onepage');
}
//VmConfig::loadConfig();
return true;
}
示例10: showSA2
* One Page checkout is free software released under GNU/GPL and uses code from VirtueMart
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*
* THIS FILE RENDERS THE SELECT THE CHECKBOX AND THE SINGLE SHIPPING ADDRESS
*
* TO FORMAT EDITING OF THE ADDRESS USE list_user_fields_shipping.tpl.php WHICH IS USED FOR UNLOGGED AS WELL
*
* This file is loaded from \components\com_onepage\helpers\loader.php function getUserInfoST
*
* This file is used by unlogged or by logged when single shipping address is enabled
*/
// MISSING LANGUAGE STRINGS
$CLICK_HERE_TO_ADD_SHIPPING_ADDRESS = OPCLang::_('COM_ONEPAGE_CLICK_HERE_TO_ADD_SHIPPING_ADDRESS');
//Verzendadres wijkt van contact adres af
?>
<div id="ship_to_wrapper">
<div class="arrowup"><div class="opc_arrow_up"> </div></div>
<div class="opc_heading" ><button name="stbutton" onkeypress="return showSA2(this, 'idsa');" class="button_checkbox_uned" onclick="javascript: return showSA2(this, 'idsa');" autocomplete="off" >
<div class="chckbx" > </div>
<span class="opc_title"><?php
echo $CLICK_HERE_TO_ADD_SHIPPING_ADDRESS;
?>
</span></button>
<?php
// echo OPCLang::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL');
// OR echo OPCLang::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL');
?>
</div>
示例11:
" name="acylistsdisplayed_dispall" />
<input type="checkbox" id="acy_list_<?php
echo $opc_acy_id;
?>
" class="acymailing_checkbox" name="acysub[]" value="<?php
echo $opc_acy_id;
?>
"/>
<input type="hidden" name="allVisibleLists" value="<?php
echo $opc_acy_id;
?>
" />
</div>
<div style="width: 95%; float:left;"><label for="acy_list_<?php
echo $opc_acy_id;
?>
" style="float: none; white-space: normal;"><span style="font-weight:bold;"><?php
echo OPCLang::_('COM_VIRTUEMART_FIELDS_NEWSLETTER');
?>
</span><br />
<?php
echo OPCLang::_('COM_ONEPAGE_NEWSLETTER_SUBSCRIPTION_DESC');
?>
</label></div>
</div>
<!-- END italian privacy checkbox -->
示例12: store
function store()
{
require_once JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'language.php';
require_once JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'config.php';
// load basic stuff:
OPCLang::loadLang();
$this->removeCache();
$this->loadVmConfig();
$user = JFactory::getUser();
$this->storeRegistration();
$opc_load_jquery = JRequest::getVar('opc_load_jquery', false);
if (!empty($opc_load_jquery)) {
$opc_load_jquery = true;
}
OPCConfig::store('opc_load_jquery', '', 0, $opc_load_jquery);
if (!class_exists('JFile')) {
require JPATH_LIBRARIES . DIRECTORY_SEPARATOR . 'joomla' . DIRECTORY_SEPARATOR . 'filesystem' . DIRECTORY_SEPARATOR . 'file.php';
}
if (!class_exists('JFolder')) {
require JPATH_LIBRARIES . DIRECTORY_SEPARATOR . 'joomla' . DIRECTORY_SEPARATOR . 'filesystem' . DIRECTORY_SEPARATOR . 'folder.php';
}
$msg = '';
$rename = JRequest::getVar('rename_to_custom', false);
if ($rename) {
$msg .= $this->renameTheme();
}
$db = JFactory::getDBO();
$data = JRequest::get('post');
$this->storeTY($data);
$cfg = urldecode('%3C%3Fphp') . '
if( !defined( \'_VALID_MOS\' ) && !defined( \'_JEXEC\' ) ) die( \'Direct Access to \'.basename(__FILE__).\' is not allowed.\' );
/*
* One Page Checkout configuration file
* Copyright RuposTel s.r.o. under GPL license
* Version 2 of date 31.March 2012
* Feel free to modify this file according to your needs
*
*
* @copyright Copyright (C) 2007 - 2012 RuposTel - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* One Page checkout is free software released under GNU/GPL and uses code from VirtueMart
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*
*/
';
$cfg .= '
if (!class_exists(\'VmConfig\'))
require(JPATH_ADMINISTRATOR.DS.\'components\'.DS.\'com_virtuemart\'.DS.\'helpers\'.DS.\'config.php\');
VmConfig::loadConfig();
';
if (!empty($data['delete_ht'])) {
if (JFile::delete(JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'assets' . DS . 'js' . DS . '.htaccess') === false) {
$msg .= JText::sprintf('COM_VIRTUEMART_STRING_DELETED_ERROR', JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'assets' . DS . 'js' . DS . '.htaccess');
}
}
if (!empty($data['opc_cr_type'])) {
$cfg .= ' $opc_cr_type = \'' . $data['opc_cr_type'] . '\'; ';
}
$data['do_not_show_opcregistration'] = (int) $data['do_not_show_opcregistration'];
if (!empty($data['do_not_show_opcregistration'])) {
$cfg .= ' $do_not_show_opcregistration = 1; ';
}
if (isset($data['bt_fields_from'])) {
$cfg .= ' $bt_fields_from = \'' . $data['bt_fields_from'] . '\'; ';
}
if (isset($data['op_default_shipping_search'])) {
$cfg .= ' $op_default_shipping_search = array(); ';
if (is_array($data['op_default_shipping_search'])) {
$i = 0;
foreach ($data['op_default_shipping_search'] as $key => $val) {
if (empty($val)) {
continue;
}
$cfg .= ' $op_default_shipping_search[' . $i . '] = "' . str_replace('"', '\\"', $val) . '"; ';
$i++;
}
} else {
$cfg .= ' $op_default_shipping_search[0] = "' . str_replace('"', '\\"', $val) . '"; ';
}
}
if (!empty($data['home_vat_countries'])) {
$home = str_replace('"', '', $data['home_vat_countries']);
$cfg .= ' $home_vat_countries = "' . $home . '"; ';
}
if (isset($data['opc_payment_refresh'])) {
$cfg .= '$opc_payment_refresh = true;
';
}
if (isset($data['use_original_basket'])) {
$cfg .= '$use_original_basket = true;
';
} else {
//.........这里部分代码省略.........
示例13: sendRegistrationMail
function sendRegistrationMail($user)
{
// Compile the notification mail values.
$data = $user->getProperties();
$config = JFactory::getConfig();
if (method_exists($config, 'get')) {
$data['fromname'] = $config->get('fromname');
$data['mailfrom'] = $config->get('mailfrom');
$data['sitename'] = $config->get('sitename');
} else {
$data['fromname'] = $config->getValue('config.fromname');
$data['mailfrom'] = $config->getValue('config.mailfrom');
$data['sitename'] = $config->getValue('config.sitename');
}
$data['siteurl'] = JUri::base();
$usersConfig = JComponentHelper::getParams('com_users');
$useractivation = $usersConfig->get('useractivation');
// Handle account activation/confirmation emails.
if ($useractivation == 2) {
// Set the link to confirm the user email.
$uri = JURI::getInstance();
$base = $uri->toString(array('scheme', 'user', 'pass', 'host', 'port'));
$data['activate'] = $base . JRoute::_('index.php?option=com_users&task=registration.activate&token=' . $data['activation'], false);
$emailSubject = OPCLang::sprintf('COM_USERS_EMAIL_ACCOUNT_DETAILS', $data['name'], $data['sitename']);
$emailBody = OPCLang::sprintf('COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY', $data['name'], $data['sitename'], $data['siteurl'] . 'index.php?option=com_users&task=registration.activate&token=' . $data['activation'], $data['siteurl'], $data['username'], $data['password_clear']);
} elseif ($useractivation == 1) {
// Set the link to activate the user account.
$uri = JURI::getInstance();
$base = $uri->toString(array('scheme', 'user', 'pass', 'host', 'port'));
$data['activate'] = $base . JRoute::_('index.php?option=com_users&task=registration.activate&token=' . $data['activation'], false);
$emailSubject = OPCLang::sprintf('COM_USERS_EMAIL_ACCOUNT_DETAILS', $data['name'], $data['sitename']);
$emailBody = OPCLang::sprintf('COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY', $data['name'], $data['sitename'], $data['siteurl'] . 'index.php?option=com_users&task=registration.activate&token=' . $data['activation'], $data['siteurl'], $data['username'], $data['password_clear']);
} else {
$emailSubject = OPCLang::sprintf('COM_USERS_EMAIL_ACCOUNT_DETAILS', $data['name'], $data['sitename']);
$emailBody = OPCLang::sprintf('COM_USERS_EMAIL_REGISTERED_BODY', $data['name'], $data['sitename'], $data['siteurl']);
}
// Send the registration email.
$return = JUtility::sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody);
}
示例14: str_replace
echo '<div class="field_wrapper ' . $field['type'] . '" ';
// special case
$fn = str_replace('shipto_', '', $field['name']);
if (!empty($business_fields) || !empty($custom_rendering_fields)) {
if (in_array($fn, $custom_rendering_fields) || in_array('virtuemart_country_id', $custom_rendering_fields) && $fn == 'virtuemart_state_id') {
echo ' id="opc_business_' . $field['name'] . '" style="display: none;';
echo '" ';
}
}
echo '>';
// a delimiter marks the beginning of a new fieldset and
// the end of a previous fieldset
$title = false;
echo '<div id="' . $field['name'] . '_div" class="formLabel ';
if (stristr($missing, $field['name'])) {
echo OPCLang::_('COM_ONEPAGE_MISSING');
}
echo '">';
// added as placeholder css3
$arr = array('select', 'dropdown', 'multicheckbox', 'multiselect', 'radio', 'checkbox');
if (in_array($field['type'], $arr)) {
echo '<label class="label_selects" style="clear: both; " for="' . $field['name'] . '_field">';
echo $field['title'];
echo '</label>';
}
// input ...
$field['formcode'] = str_replace('type="', ' title="' . $field['title'] . '" alt="' . $field['title'] . '" placeholder="' . $field['title'] . '" type="', $field['formcode']);
if (!empty($field['required'])) {
}
echo ' </div>
<div class="formField ';
示例15: op_openlink
<a target="_blank" href="<?php
echo $tos_link;
?>
" onclick="javascript: return op_openlink(this); " >(<?php
echo JText::_('COM_VIRTUEMART_CART_TOS');
?>
) *</a><?php
}
?>
</label>
</div>
<div id="onepage_submit_section" class="newclass">
<input type="submit" value="<?php
echo OPCLang::_('PHPSHOP_ORDER_CONFIRM_MNU');
?>
" id="confirmbtn" class="buttonopc" <?php
echo $op_onclick;
?>
/>
</div>
</div>
<br style="clear: both;"/>
</form>
<!-- end of submit button -->
<!-- end of checkout form -->
<!-- end of main onepage div, if javascript fails it will remain hidden -->