AAAAreset/metadata.xml000066600000000214151371557030010200 0ustar00 reset/index.html000066600000000037151371557030007676 0ustar00 reset/tmpl/index.html000066600000000037151371557030010652 0ustar00 reset/tmpl/complete.php000066600000002305151371557030011176 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

form->getFieldsets() as $fieldset): ?>

label); ?>

form->getFieldset($fieldset->name) as $name => $field): ?>
label; ?>
input; ?>
reset/tmpl/confirm.php000066600000002303151371557030011021 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

form->getFieldsets() as $fieldset): ?>

label); ?>

form->getFieldset($fieldset->name) as $name => $field): ?>
label; ?>
input; ?>
reset/tmpl/.htaccess000066600000000177151371557030010460 0ustar00 Order allow,deny Deny from all reset/tmpl/default.php000066600000002360151371557030011013 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

form->getFieldsets() as $fieldset): ?>

label); ?>

form->getFieldset($fieldset->name) as $name => $field): ?>
label; ?>
input; ?>
reset/tmpl/default.xml000066600000000462151371557030011025 0ustar00 reset/.htaccess000066600000000177151371557030007504 0ustar00 Order allow,deny Deny from all reset/view.html.php000066600000005305151371557030010332 0ustar00getLayout(); // Check that the name is valid - has an associated model. if( ! in_array($name, array('confirm', 'complete'))) { $name = 'default'; } if ('default' == $name) { $formname = 'Form'; } else { $formname = ucfirst($this->_name).ucfirst($name).'Form'; } // Get the view data. $this->form = $this->get($formname); $this->state = $this->get('State'); $this->params = $this->state->params; // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode('
', $errors)); return false; } //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); $this->prepareDocument(); parent::display($tpl); } /** * Prepares the document. * * @since 1.6 */ protected function prepareDocument() { $app = JFactory::getApplication(); $menus = $app->getMenu(); $title = null; // Because the application sets a default page title, // we need to get it from the menu item itself $menu = $menus->getActive(); if($menu) { $this->params->def('page_heading', $this->params->get('page_title', $menu->title)); } else { $this->params->def('page_heading', JText::_('COM_USERS_RESET')); } $title = $this->params->get('page_title', ''); if (empty($title)) { $title = $app->getCfg('sitename'); } elseif ($app->getCfg('sitename_pagetitles', 0) == 1) { $title = JText::sprintf('JPAGETITLE', $app->getCfg('sitename'), $title); } elseif ($app->getCfg('sitename_pagetitles', 0) == 2) { $title = JText::sprintf('JPAGETITLE', $title, $app->getCfg('sitename')); } $this->document->setTitle($title); if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } if ($this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } } } .htaccess000066600000000177151371557030006362 0ustar00 Order allow,deny Deny from all registration/view.html.php000066600000005174151371557030011726 0ustar00data = $this->get('Data'); $this->form = $this->get('Form'); $this->state = $this->get('State'); $this->params = $this->state->get('params'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode('
', $errors)); return false; } // Check for layout override $active = JFactory::getApplication()->getMenu()->getActive(); if (isset($active->query['layout'])) { $this->setLayout($active->query['layout']); } //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); $this->prepareDocument(); parent::display($tpl); } /** * Prepares the document. * * @since 1.6 */ protected function prepareDocument() { $app = JFactory::getApplication(); $menus = $app->getMenu(); $title = null; // Because the application sets a default page title, // we need to get it from the menu item itself $menu = $menus->getActive(); if ($menu) { $this->params->def('page_heading', $this->params->get('page_title', $menu->title)); } else { $this->params->def('page_heading', JText::_('COM_USERS_REGISTRATION')); } $title = $this->params->get('page_title', ''); if (empty($title)) { $title = $app->getCfg('sitename'); } elseif ($app->getCfg('sitename_pagetitles', 0) == 1) { $title = JText::sprintf('JPAGETITLE', $app->getCfg('sitename'), $title); } elseif ($app->getCfg('sitename_pagetitles', 0) == 2) { $title = JText::sprintf('JPAGETITLE', $title, $app->getCfg('sitename')); } $this->document->setTitle($title); if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } if ($this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } } } registration/metadata.xml000066600000000223151371557030011570 0ustar00 registration/.htaccess000066600000000177151371557030011074 0ustar00 Order allow,deny Deny from all registration/tmpl/default.php000066600000004326151371557030012407 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

form->getFieldsets() as $fieldset): // Iterate through the form fieldsets and display each one.?> form->getFieldset($fieldset->name);?>
label)):// If the fieldset has a label set, display it as the legend. ?> label);?>
hidden):// If the field is hidden, just display the input.?> input;?>
label; ?> required && $field->type!='Spacer'): ?>
type!='Spacer') ? $field->input : " "; ?>
registration/tmpl/.htaccess000066600000000177151371557030012050 0ustar00 Order allow,deny Deny from all registration/tmpl/default.xml000066600000000505151371557030012413 0ustar00 registration/tmpl/complete.php000066600000000767151371557030012600 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

registration/tmpl/index.html000066600000000037151371557030012242 0ustar00 registration/index.html000066600000000037151371557030011266 0ustar00 remind/view.html.php000066600000005067151371557030010473 0ustar00form = $this->get('Form'); $this->state = $this->get('State'); $this->params = $this->state->params; // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode('
', $errors)); return false; } // Check for layout override $active = JFactory::getApplication()->getMenu()->getActive(); if (isset($active->query['layout'])) { $this->setLayout($active->query['layout']); } //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); $this->prepareDocument(); parent::display($tpl); } /** * Prepares the document. * * @since 1.6 */ protected function prepareDocument() { $app = JFactory::getApplication(); $menus = $app->getMenu(); $title = null; // Because the application sets a default page title, // we need to get it from the menu item itself $menu = $menus->getActive(); if ($menu) { $this->params->def('page_heading', $this->params->get('page_title', $menu->title)); } else { $this->params->def('page_heading', JText::_('COM_USERS_REMIND')); } $title = $this->params->get('page_title', ''); if (empty($title)) { $title = $app->getCfg('sitename'); } elseif ($app->getCfg('sitename_pagetitles', 0) == 1) { $title = JText::sprintf('JPAGETITLE', $app->getCfg('sitename'), $title); } elseif ($app->getCfg('sitename_pagetitles', 0) == 2) { $title = JText::sprintf('JPAGETITLE', $title, $app->getCfg('sitename')); } $this->document->setTitle($title); if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } if ($this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } } } remind/metadata.xml000066600000000215151371557030010335 0ustar00 remind/tmpl/index.html000066600000000037151371557030011006 0ustar00 remind/tmpl/.htaccess000066600000000177151371557030010614 0ustar00 Order allow,deny Deny from all remind/tmpl/default.php000066600000002360151371557030011147 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

form->getFieldsets() as $fieldset): ?>

label); ?>

form->getFieldset($fieldset->name) as $name => $field): ?>
label; ?>
input; ?>
remind/tmpl/default.xml000066600000000461151371557030011160 0ustar00 remind/.htaccess000066600000000177151371557030007640 0ustar00 Order allow,deny Deny from all remind/index.html000066600000000037151371557030010032 0ustar00 profile/index.html000066600000000037151371557030010214 0ustar00 profile/tmpl/.htaccess000066600000000177151371557030010776 0ustar00 Order allow,deny Deny from all profile/tmpl/default_custom.php000066600000003233151371557030012723 0ustar00form->getFieldsets(); if (isset($fieldsets['core'])) unset($fieldsets['core']); if (isset($fieldsets['params'])) unset($fieldsets['params']); foreach ($fieldsets as $group => $fieldset): // Iterate through the form fieldsets $fields = $this->form->getFieldset($group); if (count($fields)): ?>
label)):// If the fieldset has a label set, display it as the legend.?> label); ?>
hidden) :?>
title; ?>
id)):?> id, $field->value);?> fieldname)):?> fieldname, $field->value);?> type)):?> type, $field->value);?> value);?>
profile/tmpl/default_params.php000066600000003163151371557030012676 0ustar00 form->getFieldset('params'); ?>
hidden) :?>
title; ?>
id)):?> id, $field->value);?> fieldname)):?> fieldname, $field->value);?> type)):?> type, $field->value);?> value);?>
profile/tmpl/default.xml000066600000000463151371557030011344 0ustar00 profile/tmpl/default.php000066600000001576151371557030011341 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

loadTemplate('core'); ?> loadTemplate('params'); ?> loadTemplate('custom'); ?> id == $this->data->id) : ?>
profile/tmpl/edit.php000066600000004166151371557030010640 0ustar00form->getFieldsets(); ?>
    form->getFieldset('user_details') as $field) :?>
  • label; ?> input; ?>
name == 'user_details') : continue; endif; echo JHtml::_('sliders.panel', JText::_($fieldset->label), $fieldset->name); ?>
    form->getFieldset($fieldset->name) as $field): ?> hidden): ?> input; ?>
  • label; ?> input; ?>
profile/tmpl/default_core.php000066600000002264151371557030012344 0ustar00
data->name; ?>
data->username); ?>
data->registerDate); ?>
data->lastvisitDate != '0000-00-00 00:00:00'){?>
data->lastvisitDate); ?>
profile/tmpl/edit.xml000066600000000470151371557030010643 0ustar00 profile/tmpl/index.html000066600000000037151371557030011170 0ustar00 profile/metadata.xml000066600000000216151371557030010520 0ustar00 profile/view.html.php000066600000002430151371557030010644 0ustar00form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->form->setValue('password', null); $this->form->setValue('password2', null); parent::display($tpl); $this->addToolbar(); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JRequest::setVar('hidemainmenu', 1); JToolBarHelper::title(JText::_('COM_ADMIN_VIEW_PROFILE_TITLE'), 'user-profile'); JToolBarHelper::apply('profile.apply'); JToolBarHelper::save('profile.save'); JToolBarHelper::cancel('profile.cancel', 'JTOOLBAR_CLOSE'); JToolBarHelper::divider(); JToolBarHelper::help('JHELP_ADMIN_USER_PROFILE_EDIT'); } } profile/.htaccess000066600000000177151371557030010022 0ustar00 Order allow,deny Deny from all index.html000066600000000037151371557030006554 0ustar00 login/index.html000066600000000037151371557030007664 0ustar00 login/view.html.php000066600000005311151371557030010315 0ustar00user = JFactory::getUser(); $this->form = $this->get('Form'); $this->state = $this->get('State'); $this->params = $this->state->get('params'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode('
', $errors)); return false; } // Check for layout override $active = JFactory::getApplication()->getMenu()->getActive(); if (isset($active->query['layout'])) { $this->setLayout($active->query['layout']); } //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); $this->prepareDocument(); parent::display($tpl); } /** * Prepares the document * @since 1.6 */ protected function prepareDocument() { $app = JFactory::getApplication(); $menus = $app->getMenu(); $user = JFactory::getUser(); $login = $user->get('guest') ? true : false; $title = null; // Because the application sets a default page title, // we need to get it from the menu item itself $menu = $menus->getActive(); if ($menu) { $this->params->def('page_heading', $this->params->get('page_title', $menu->title)); } else { $this->params->def('page_heading', $login ? JText::_('JLOGIN') : JText::_('JLOGOUT')); } $title = $this->params->get('page_title', ''); if (empty($title)) { $title = $app->getCfg('sitename'); } elseif ($app->getCfg('sitename_pagetitles', 0) == 1) { $title = JText::sprintf('JPAGETITLE', $app->getCfg('sitename'), $title); } elseif ($app->getCfg('sitename_pagetitles', 0) == 2) { $title = JText::sprintf('JPAGETITLE', $title, $app->getCfg('sitename')); } $this->document->setTitle($title); if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } if ($this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } } } login/metadata.xml000066600000000214151371557030010166 0ustar00 login/tmpl/default_logout.php000066600000003276151371557030012401 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

params->get('logoutdescription_show') == 1 && str_replace(' ', '', $this->params->get('logout_description')) != '')|| $this->params->get('logout_image') != '') : ?>
params->get('logoutdescription_show') == 1) : ?> params->get('logout_description'); ?> params->get('logout_image')!='')) :?> <?php echo JTEXT::_('COM_USER_LOGOUT_IMAGE_ALT')?> params->get('logoutdescription_show') == 1 && str_replace(' ', '', $this->params->get('logout_description')) != '')|| $this->params->get('logout_image') != '') : ?>
login/tmpl/index.html000066600000000037151371557030010640 0ustar00 login/tmpl/.htaccess000066600000000177151371557030010446 0ustar00 Order allow,deny Deny from all login/tmpl/default_login.php000066600000005672151371557030012202 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

params->get('logindescription_show') == 1 && str_replace(' ', '', $this->params->get('login_description')) != '') || $this->params->get('login_image') != '') : ?>
params->get('logindescription_show') == 1) : ?> params->get('login_description'); ?> params->get('login_image')!='')) :?> params->get('logindescription_show') == 1 && str_replace(' ', '', $this->params->get('login_description')) != '') || $this->params->get('login_image') != '') : ?>
form->getFieldset('credentials') as $field): ?> hidden): ?>
login/tmpl/default.xml000066600000004016151371557030011012 0ustar00
login/tmpl/default.php000066600000000706151371557030011003 0ustar00user->get('guest')): // The user is not logged in. echo $this->loadTemplate('login'); else: // The user is already logged in. echo $this->loadTemplate('logout'); endif; login/.htaccess000066600000000177151371557030007472 0ustar00 Order allow,deny Deny from all manufacturer/metadata.xml000066600000000317151371757770011573 0ustar00 manufacturer/view.html.php000066600000005712151371757770011723 0ustar00getPathway(); if (!class_exists('VmImage')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'image.php'); $virtuemart_manufacturer_id = JRequest::getInt('virtuemart_manufacturer_id', 0); $mf_category_id = JRequest::getInt('mf_category_id', 0); // get necessary models $model = VmModel::getModel('manufacturer'); if ($virtuemart_manufacturer_id !=0 ) { $manufacturer = $model->getManufacturer(); $model->addImages($manufacturer,1); $manufacturerImage = $manufacturer->images[0]->displayMediaThumb('class="manufacturer-image"',false); if (VmConfig::get('enable_content_plugin', 0)) { if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); shopFunctionsF::triggerContentPlugin($manufacturer, 'manufacturer','mf_desc'); } $document->setTitle(JText::_('COM_VIRTUEMART_MANUFACTURER_DETAILS').' '.strip_tags($manufacturer->mf_name)); //added so that the canonical points to page with visible products thx to P2Peter $document->addHeadLink( JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id='.$virtuemart_manufacturer_id, FALSE) , 'canonical', 'rel', '' ); $this->assignRef('manufacturerImage', $manufacturerImage); // $this->assignRef('manufacturerProductsURL', $manufacturerProductsURL); $this->assignRef('manufacturer', $manufacturer); $pathway->addItem(strip_tags($manufacturer->mf_name)); $this->setLayout('details'); // vmdebug('$manufacturer',$manufacturer); } else { $document->setTitle(JText::_('COM_VIRTUEMART_MANUFACTURER_PAGE')) ; $manufacturers = $model->getManufacturers(true, true, true); $model->addImages($manufacturers,1); $this->assignRef('manufacturers', $manufacturers); $this->setLayout('default'); } parent::display($tpl); } } // pure php no closing tag manufacturer/.htaccess000066600000000177151371757770011073 0ustar00 Order allow,deny Deny from all manufacturer/tmpl/index.html000066600000000001151371757770012230 0ustar00 manufacturer/tmpl/default.php000066600000005760151371757770012411 0ustar00'; // Lets output the categories, if there are some if (!empty($this->manufacturers)) { ?>
manufacturers as $manufacturer ) { // Show the horizontal seperator if ($iColumn == 1 && $iManufacturer > $manufacturerPerRow) { echo $horizontalSeparator; } // this is an indicator wether a row needs to be opened or not if ($iColumn == 1) { ?>
virtuemart_manufacturer_id, FALSE); $manufacturerIncludedProductsURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id, FALSE); $manufacturerImage = $manufacturer->images[0]->displayMediaThumb("",false); // Show Category ?>
'; $iColumn = 1; } else { $iColumn ++; } } // Do we need a final closing row tag? if ($iColumn != 1) { ?>
manufacturer/tmpl/default.xml000066600000000640151371757770012412 0ustar00 COM_VIRTUEMART_MANUFACTURER_VIEW_DEFAULT_TITLE manufacturer/tmpl/.htaccess000066600000000177151371757770012047 0ustar00 Order allow,deny Deny from all manufacturer/tmpl/details.php000066600000004430151371757770012403 0ustar00

manufacturer->mf_name; ?>

manufacturerImage)) { ?>
manufacturerImage; ?>
manufacturer->mf_email)) { ?>
manufacturer->mf_email,true,JText::_('COM_VIRTUEMART_EMAIL'),false) ?>
manufacturer->mf_url)) { ?>
manufacturer->mf_desc)) { ?>
manufacturer->mf_desc ?>
manufacturer->virtuemart_manufacturer_id, FALSE); if(!empty($this->manufacturer->virtuemart_manufacturer_id)) { ?>
manufacturer/tmpl/details.xml000066600000002201151371757770012406 0ustar00 COM_VIRTUEMART_MANUFACTURER_VIEW_DETAILS_TITLE
manufacturer/index.html000066600000000000151371757770011253 0ustar00invoice/tmpl/invoice.php000066600000007305151371757770011356 0ustar00_layout == "invoice") { $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_NUMBER') . ' ' . $this->orderDetails['details']['BT']->order_number . ' ' . $this->vendor->vendor_store_name); //$document->setName( JText::_('COM_VIRTUEMART_ACC_ORDER_INFO').' '.$this->orderDetails['details']['BT']->order_number); //$document->setDescription( JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_NUMBER').' '.$this->orderDetails['details']['BT']->order_number); } if ($this->headFooter) { ?>
format=="html")?$this->replaceVendorFields($this->vendor->vendor_letter_header_html, $this->vendor):$this->vendor->vendor_letter_header_html; ?>
vendor->vendor_store_desc.'
'; /* foreach($this->vendorAddress as $userfields){ foreach($userfields['fields'] as $item){ if(!empty($item['value'])){ if($item['name']==='agreed'){ $item['value'] = ($item['value']===0) ? JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_NO'):JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_YES'); } ?> escape($item['value']) ?>
print) { ?>
loadTemplate('order'); ?>
print) { echo $this->loadTemplate('items'); } else { // NOT in print mode, full HTML view for a browser: $tabarray = array('items'=>'COM_VIRTUEMART_ORDER_ITEM', 'history'=>'COM_VIRTUEMART_ORDER_HISTORY'); shopFunctionsF::buildTabs( $this, $tabarray); } ?>


headFooter) { echo ($this->format=="html")?$this->replaceVendorFields($this->vendor->vendor_letter_footer_html, $this->vendor):$this->vendor->vendor_letter_footer_html; } if ($this->vendor->vendor_letter_add_tos) {?>
vendor->vendor_letter_add_tos_newpage) { ?> style="page-break-before: always"> vendor->vendor_terms_of_service; ?>
print) { ?> invoice/tmpl/invoice_items.php000066600000024205151371757770012555 0ustar00doctype != 'invoice') { $colspan -= 4; } elseif ( ! VmConfig::get('show_tax')) { $colspan -= 1; } ?> doctype == 'invoice') { ?> doctype == 'invoice') { ?> orderDetails['details']['BT']->order_language); foreach($this->orderDetails['items'] as $item) { $qtt = $item->product_quantity ; $product_link = JURI::root().'index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $item->virtuemart_category_id . '&virtuemart_product_id=' . $item->virtuemart_product_id . '&Itemid=' . $menuItemID; ?> doctype == 'invoice') { ?> doctype == 'invoice') { ?> doctype == 'invoice') { ?> orderDetails['details']['BT']->coupon_discount <> 0.00) { $coupon_code=$this->orderDetails['details']['BT']->coupon_code?' ('.$this->orderDetails['details']['BT']->coupon_code.')':''; ?> orderDetails['calc_rules'] as $rule){ if ($rule->calc_kind== 'DBTaxRulesBill') { ?> calc_kind == 'taxRulesBill') { ?> calc_kind == 'DATaxRulesBill') { ?>
order_item_sku; ?>
order_item_name; ?>
product_attribute)) { if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php'); $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE'); echo $product_attribute; } ?>
orderstatuses[$item->order_status]; ?> product_discountedPriceWithoutTax = (float) $item->product_discountedPriceWithoutTax; if (!empty($item->product_priceWithoutTax) && $item->product_discountedPriceWithoutTax != $item->product_priceWithoutTax) { echo ''.$this->currency->priceDisplay($item->product_item_price, $this->currency) .'
'; echo ''.$this->currency->priceDisplay($item->product_discountedPriceWithoutTax, $this->currency) .'
'; } else { echo ''.$this->currency->priceDisplay($item->product_item_price, $this->currency) .'
'; } ?>
".$this->currency->priceDisplay($item->product_tax ,$this->currency, $qtt)."" ?> currency->priceDisplay( $item->product_subtotal_discount, $this->currency ); //No quantity is already stored with it ?> product_basePriceWithTax = (float) $item->product_basePriceWithTax; $class = ''; if(!empty($item->product_basePriceWithTax) && $item->product_basePriceWithTax != $item->product_final_price ) { echo ''.$this->currency->priceDisplay($item->product_basePriceWithTax,$this->currency,$qtt) .'
' ; } elseif (empty($item->product_basePriceWithTax) && $item->product_item_price != $item->product_final_price) { echo '' . $this->currency->priceDisplay($item->product_item_price,$this->currency,$qtt) . '
'; } echo $this->currency->priceDisplay( $item->product_subtotal_with_tax ,$this->currency); //No quantity or you must use product_final_price ?>
".$this->currency->priceDisplay($this->orderDetails['details']['BT']->order_tax, $this->currency)."" ?> ".$this->currency->priceDisplay($this->orderDetails['details']['BT']->order_discountAmount, $this->currency)."" ?> currency->priceDisplay($this->orderDetails['details']['BT']->order_salesPrice, $this->currency) ?>
currency->priceDisplay($this->orderDetails['details']['BT']->coupon_discount, $this->currency); ?>
calc_rule_name ?> currency->priceDisplay($rule->calc_amount, $this->currency); ?> currency->priceDisplay($rule->calc_amount, $this->currency); ?>
calc_rule_name ?> currency->priceDisplay($rule->calc_amount, $this->currency); ?> currency->priceDisplay($rule->calc_amount, $this->currency); ?>
calc_rule_name ?> currency->priceDisplay($rule->calc_amount, $this->currency); ?> currency->priceDisplay($rule->calc_amount, $this->currency); ?>
orderDetails['shipmentName'] ?> currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment_tax, $this->currency) ?> currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment + $this->orderDetails['details']['BT']->order_shipment_tax, $this->currency); ?>
orderDetails['paymentName'] ?> currency->priceDisplay($this->orderDetails['details']['BT']->order_payment_tax, $this->currency) ?> currency->priceDisplay($this->orderDetails['details']['BT']->order_payment + $this->orderDetails['details']['BT']->order_payment_tax, $this->currency); ?>
currency->priceDisplay($this->orderDetails['details']['BT']->order_billTaxAmount, $this->currency); ?> currency->priceDisplay($this->orderDetails['details']['BT']->order_billDiscountAmount, $this->currency); ?> currency->priceDisplay($this->orderDetails['details']['BT']->order_total, $this->currency); ?>
invoice/tmpl/mail_raw_shopper.php000066600000006074151371757770013257 0ustar00BTaddress, take a look for an exampel at shopperadresses.php * * With $this->cartData->paymentName or shipmentName, you get the name of the used paymentmethod/shippmentmethod * * In the array order you have details and items ($this->orderDetails['details']), the items gather the products, but that is done directly from the cart data * * $this->orderDetails['details'] contains the raw address data (use the formatted ones, like BTaddress). Interesting informatin here is, * order_number ($this->orderDetails['details']['BT']->order_number), order_pass, coupon_code, order_status, order_status_name, * user_currency_rate, created_on, customer_note, ip_address * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * 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. * */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); echo strip_tags(JText::_('COM_VIRTUEMART_MAIL_SHOPPER_YOUR_ORDER')) . "\n" . "\n"; echo strip_tags(JText::sprintf('COM_VIRTUEMART_MAIL_SHOPPER_SUMMARY', $this->vendor->vendor_store_name)) . "\n" . "\n"; echo JText::sprintf('COM_VIRTUEMART_MAIL_SHOPPER_CONTENT', $this->shopperName, $this->vendor->vendor_store_name, $this->orderDetails['details']['BT']->order_total, $this->orderDetails['details']['BT']->order_number, $this->orderDetails['details']['BT']->order_pass, $this->orderDetails['details']['BT']->created_on) . "\n" . "\n"; echo "\n" . strip_tags(JText::sprintf('COM_VIRTUEMART_MAIL_ORDER_STATUS', $this->orderDetails['details']['BT']->order_status_name)); echo "\n\n"; $nb = count($this->orderDetails['history']); if ($this->orderDetails['history'][$nb - 1]->customer_notified && !(empty($this->orderDetails['history'][$nb - 1]->comments))) { echo $this->orderDetails['history'][$nb - 1]->comments; } echo "\n\n"; echo "\n\n"; echo JText::_('COM_VIRTUEMART_MAIL_SHOPPER_YOUR_ORDER_LINK') . ' : ' . JURI::root() . 'index.php?option=com_virtuemart&view=orders&layout=details&order_number=' . $this->orderDetails['details']['BT']->order_number . '&order_pass=' . $this->orderDetails['details']['BT']->order_pass . "\n"; if (!empty($this->orderDetails['details']['BT']->customer_note)) { echo "\n" . strip_tags(JText::sprintf('COM_VIRTUEMART_MAIL_SHOPPER_QUESTION', $this->orderDetails['details']['BT']->customer_note)); } echo "\n\n"; //TODO if silent registration logindata //TODO if Paymentmethod needs Bank account data of vendor //We may wish to integrate later a kind of signature invoice/tmpl/mail_raw_shopperaddresses.php000066600000002544151371757770015153 0ustar00userfields['fields'] as $field) { if(!empty($field['value'])){ echo $field['title'].': '.$this->escape($field['value'])."\n"; } } echo "\n"; echo JText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'). "\n"; echo sprintf("%'-64.64s",''); echo "\n"; foreach ($this->shipmentfields['fields'] as $field) { if(!empty($field['value'])){ echo $field['title'].': '.$this->escape($field['value'])."\n"; } } echo "\n";invoice/tmpl/mail_html_header.php000066600000004055151371757770013177 0ustar00 vendor->vendor_letter_header>0) { ?> vendor->vendor_letter_header_image>0) { ?> vendor->vendor_letter_header_line == 1) { ?>
vendor->vendor_letter_header_html, $this->vendor); ?>

civility . ' ' . $this->orderDetails['details']['BT']->first_name . ' ' . $this->orderDetails['details']['BT']->last_name); ?>
invoice/tmpl/mail_raw_footer.php000066600000003026151371757770013067 0ustar00vendor)) { $vendorModel = VmModel::getModel('vendor'); $this->vendor = $vendorModel->getVendor(); } $link = JURI::root(). 'index.php?option=com_virtuemart' ; echo "\n\n"; $link= JHTML::_('link', $link, $this->vendor->vendor_name) ; // echo JText::_('COM_VIRTUEMART_MAIL_VENDOR_TITLE').$this->vendor->vendor_name.'
'; /* GENERAL FOOTER FOR ALL MAILS */ echo JText::_('COM_VIRTUEMART_MAIL_FOOTER' ) . $link; echo "\n"; echo $this->vendor->vendor_name ."\n".$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name ."\n".strip_tags($this->vendor->vendor_store_desc)."\n".strip_tags(str_replace('
',"\n",$this->replaceVendorFields($this->vendor->vendor_letter_footer_html, $this->vendor))); invoice/tmpl/mail_raw_pricelist.php000066600000012760151371757770013574 0ustar00setEscape('htmlspecialchars'); // TODO Temp fix !!!!! *********************************>>> //$skuPrint = echo sprintf( "%64.64s",strtoupper (JText::_('COM_VIRTUEMART_SKU') ) ) ; // Head of table echo strip_tags(JText::sprintf('COM_VIRTUEMART_ORDER_PRINT_TOTAL', $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total,$this->currency))) . "\n"; echo sprintf("%'-64.64s", '') . "\n"; echo JText::_('COM_VIRTUEMART_ORDER_ITEM') . "\n"; foreach ($this->orderDetails['items'] as $item) { echo "\n"; echo $item->product_quantity . ' X ' . $item->order_item_name . ' (' . strtoupper(JText::_('COM_VIRTUEMART_SKU')) . $item->order_item_sku . ')' . "\n"; if (!empty($item->product_attribute)) { if (!class_exists('VirtueMartModelCustomfields')) require(JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'customfields.php'); $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item, 'FE'); echo "\n" . $product_attribute . "\n"; } if (!empty($item->product_basePriceWithTax) && $item->product_basePriceWithTax != $item->product_final_price) { echo $item->product_basePriceWithTax . "\n"; } echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') . $item->product_final_price; if (VmConfig::get('show_tax')) { echo ' (' . JText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_TAX') . ':' . $this->currency->priceDisplay($item->product_tax,$this->currency) . ')' . "\n"; } echo "\n"; } echo sprintf("%'-64.64s", ''); echo "\n"; // Coupon if (!empty($this->orderDetails['details']['BT']->coupon_code)) { echo JText::_('COM_VIRTUEMART_COUPON_DISCOUNT') . ':' . $this->orderDetails['details']['BT']->coupon_code . ' ' . JText::_('COM_VIRTUEMART_PRICE') . ':' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->coupon_discount,$this->currency); echo "\n"; } foreach ($this->orderDetails['calc_rules'] as $rule) { if ($rule->calc_kind == 'DBTaxRulesBill') { echo $rule->calc_rule_name . $this->currency->priceDisplay($rule->calc_amount, $this->currency) . "\n"; } elseif ($rule->calc_kind == 'taxRulesBill') { echo $rule->calc_rule_name . ' ' . $this->currency->priceDisplay($rule->calc_amount,$this->currency) . "\n"; } elseif ($rule->calc_kind == 'DATaxRulesBill') { echo $rule->calc_rule_name . ' ' . $this->currency->priceDisplay($rule->calc_amount,$this->currency) . "\n"; } } echo strtoupper(JText::_('COM_VIRTUEMART_ORDER_PRINT_SHIPPING')) . ' (' . strip_tags(str_replace("
", "\n", $this->orderDetails['shipmentName'])) . ' ) ' . "\n"; echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment,$this->currency); if (VmConfig::get('show_tax')) { echo ' (' . JText::_('COM_VIRTUEMART_ORDER_PRINT_TAX') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment_tax,$this->currency) . ')'; } echo "\n"; echo strtoupper(JText::_('COM_VIRTUEMART_ORDER_PRINT_PAYMENT')) . ' (' . strip_tags(str_replace("
", "\n", $this->orderDetails['paymentName'])) . ' ) ' . "\n"; echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') . ':' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment,$this->currency); if (VmConfig::get('show_tax')) { echo ' (' . JText::_('COM_VIRTUEMART_ORDER_PRINT_TAX') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment_tax,$this->currency) . ')'; } echo "\n"; echo sprintf("%'-64.64s", '') . "\n"; // total order echo JText::_('COM_VIRTUEMART_MAIL_SUBTOTAL_DISCOUNT_AMOUNT') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_billDiscountAmount,$this->currency) . "\n"; echo strtoupper(JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL')) . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total,$this->currency) . "\n"; if (VmConfig::get('show_tax')) { echo ' (' . JText::_('COM_VIRTUEMART_ORDER_PRINT_TAX') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_billTaxAmount,$this->currency) . ')' . "\n"; } echo "\n"; invoice/tmpl/mail_raw_vendor.php000066600000002006151371757770013063 0ustar00productName,$this->url); if(!empty($this->orderDetails['details']['BT']->customer_note)) { echo "\n" . JText::sprintf('COM_VIRTUEMART_CART_MAIL_VENDOR_SHOPPER_QUESTION', $this->orderDetails['details']['BT']->customer_note); } echo "\n"; invoice/tmpl/mail_html_pricelist.php000066600000001524151371757770013743 0ustar00getLayout(); $this->setLayout('invoice'); echo $this->loadTemplate('items'); $this->setLayout($oldlayout); invoice/tmpl/mail_html_vendor_more.php000066600000001245151371757770014264 0ustar00 invoice/tmpl/index.html000066600000000000151371757770011167 0ustar00invoice/tmpl/mail_html_vendor.php000066600000002624151371757770013244 0ustar00
vendor->vendor_name.'
'; echo JText::sprintf('COM_VIRTUEMART_MAIL_VENDOR_CONTENT',$this->vendor->vendor_store_name,$this->shopperName,$this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total,$this->currency),$this->orderDetails['details']['BT']->order_number); if(!empty($this->orderDetails['details']['BT']->customer_note)){ echo '

'.JText::sprintf('COM_VIRTUEMART_CART_MAIL_VENDOR_SHOPPER_QUESTION',$this->orderDetails['details']['BT']->customer_note).'
'; } ?>
invoice/tmpl/invoice_history.php000066600000003063151371757770013134 0ustar00 orderDetails['history'] as $_hist) { if (!$_hist->customer_notified) { continue; } ?>
created_on, 'LC4', true); ?> orderstatuses[$_hist->order_status_code]; ?> comments; ?>
invoice/tmpl/mail_raw.php000066600000003603151371757770011512 0ustar00BTaddress, take a look for an exampel at shopper_adresses.php * * With $this->cartData->paymentName or shipmentName, you get the name of the used paymentmethod/shippmentmethod * * In the array order you have details and items ($this->orderDetails['details']), the items gather the products, but that is done directly from the cart data * * $this->orderDetails['details'] contains the raw address data (use the formatted ones, like BTaddress). Interesting informatin here is, * order_number ($this->orderDetails['details']['BT']->order_number), order_pass, coupon_code, order_status, order_status_name, * user_currency_rate, created_on, customer_note, ip_address * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * 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. * */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); ?> loadTemplate('header'); // Message for shopper or vendor echo $this->loadTemplate('shopper'); // render shipto billto adresses echo $this->loadTemplate('shopperaddresses'); // render price list echo $this->loadTemplate('pricelist'); //dump($salesPriceShipment , 'rawmail'); // more infos //echo $this->loadTemplate($this->recipient.'_more'); // end of mail echo $this->loadTemplate('footer'); ?> invoice/tmpl/mail_html_shopper_more.php000066600000001310151371757770014440 0ustar00 invoice/tmpl/mail_html_footer.php000066600000003707151371757770013250 0ustar00vendor)) { $vendorModel = VmModel::getModel('vendor'); $this->vendor = $vendorModel->getVendor(); } //$link = shopFunctionsF::getRootRoutedUrl('index.php?option=com_virtuemart'); $link = JURI::root().'index.php?option=com_virtuemart'; echo '

'; //$link=''.JHTML::_('link', JURI::root().$link, $this->vendor->vendor_name).' '; // echo JText::_('COM_VIRTUEMART_MAIL_VENDOR_TITLE').$this->vendor->vendor_name.'
'; /* GENERAL FOOTER FOR ALL MAILS */ echo JText::_('COM_VIRTUEMART_MAIL_FOOTER' ) . ''.$this->vendor->vendor_name.''; echo '
'; echo $this->vendor->vendor_name .'
'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .'
'.$this->vendor->vendor_store_desc.'
'; ?> vendor->vendor_letter_footer == 1) { ?> vendor->vendor_letter_footer_line == 1) { ?>
invoice/tmpl/.htaccess000066600000000177151371757770011007 0ustar00 Order allow,deny Deny from all invoice/tmpl/mail_html_shopperaddresses.php000066600000004334151371757770015325 0ustar00
userfields['fields'] as $field) { if (!empty($field['value'])) { ?> escape($field['value']) ?>
shipmentfields['fields'] as $field) { if (!empty($field['value'])) { ?> escape($field['value']) ?>
invoice/tmpl/invoice_order.php000066600000010160151371757770012542 0ustar00 doctype == 'invoice') { if ($this->invoiceNumber) { ?>

invoiceNumber; ?>

doctype == 'deliverynote') { ?>

doctype == 'confirmation') { ?>

invoiceNumber) { ?> orderDetails['details']['BT']->delivery_date)) { ?> orderDetails['details']['BT']->customer_note) { ?> doctype == 'invoice') { ?>
invoiceDate, 'LC4', true); ?>
orderDetails['details']['BT']->delivery_date ?>
orderDetails['details']['BT']->order_number; ?>
orderDetails['details']['BT']->created_on, 'LC4', true); ?>
orderstatuses[$this->orderDetails['details']['BT']->order_status]; ?>
orderDetails['shipmentName']; ?>
orderDetails['paymentName']; ?>
orderDetails['details']['BT']->customer_note; ?>
currency->priceDisplay($this->orderDetails['details']['BT']->order_total,$this->currency); ?>

userfields['fields'] as $field) { if (!empty($field['value'])) { echo '' . ''; } } ?>
' . $field['title'] . '' . $field['value'] . '

shipmentfields['fields'] as $field) { if (!empty($field['value'])) { echo '' . ''; } } ?>
' . $field['title'] . '' . $field['value'] . '
invoice/tmpl/mail_html.php000066600000010005151371757770011657 0ustar00BTaddress, take a look for an exampel at shopper_adresses.php * * With $this->orderDetails['shipmentName'] or paymentName, you get the name of the used paymentmethod/shippmentmethod * * In the array order you have details and items ($this->orderDetails['details']), the items gather the products, but that is done directly from the cart data * * $this->orderDetails['details'] contains the raw address data (use the formatted ones, like BTaddress). Interesting informatin here is, * order_number ($this->orderDetails['details']['BT']->order_number), order_pass, coupon_code, order_status, order_status_name, * user_currency_rate, created_on, customer_note, ip_address * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * 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. * */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); ?>
recipient == 'shopper') { echo $this->loadTemplate('header'); } // Message for shopper or vendor echo $this->loadTemplate($this->recipient); // render shipto billto adresses echo $this->loadTemplate('shopperaddresses'); // render price list echo $this->loadTemplate('pricelist'); // more infos echo $this->loadTemplate($this->recipient . '_more'); // end of mail echo $this->loadTemplate('footer'); ?>
invoice/tmpl/mail_html_shopper.php000066600000006514151371757770013431 0ustar00BTaddress['fields'], take a look for an exampel at shopper_adresses.php * * With $this->cartData->paymentName or shipmentName, you get the name of the used paymentmethod/shippmentmethod * * In the array order you have details and items ($this->orderDetails['details']), the items gather the products, but that is done directly from the cart data * * $this->orderDetails['details'] contains the raw address data (use the formatted ones, like BTaddress['fields']). Interesting informatin here is, * order_number ($this->orderDetails['details']['BT']->order_number), order_pass, coupon_code, order_status, order_status_name, * user_currency_rate, created_on, customer_note, ip_address * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * 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. * */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); ?> orderDetails['history']); if($this->orderDetails['history'][$nb-1]->customer_notified && !(empty($this->orderDetails['history'][$nb-1]->comments))) { ?> orderDetails['details']['BT']->customer_note)){ ?>

orderDetails['details']['BT']->order_number ?>

orderDetails['details']['BT']->order_pass ?>

currency->priceDisplay($this->orderDetails['details']['BT']->order_total,$this->currency) ); ?>

orderDetails['details']['BT']->order_status_name)) ; ?>

orderDetails['history'][$nb-1]->comments); ?>
orderDetails['details']['BT']->customer_note)) ?>
invoice/index.html000066600000000000151371757770010213 0ustar00invoice/view.html.php000066600000031301151371757770010654 0ustar00setMetaData('robots','NOINDEX, NOFOLLOW, NOARCHIVE, NOSNIPPET'); if(empty($this->uselayout)){ $layout = JRequest::getWord('layout','mail'); } else { $layout = $this->uselayout; } switch ($layout) { case 'invoice': $this->doctype = $layout; $title = JText::_('COM_VIRTUEMART_INVOICE'); break; case 'deliverynote': $this->doctype = $layout; $layout = 'invoice'; $title = JText::_('COM_VIRTUEMART_DELIVERYNOTE'); break; case 'confirmation': $this->doctype = $layout; $layout = 'confirmation'; $title = JText::_('COM_VIRTUEMART_CONFIRMATION'); break; case 'mail': if (VmConfig::get('order_mail_html')) { $layout = 'mail_html'; } else { $layout = 'mail_raw'; } } $this->setLayout($layout); $tmpl = JRequest::getWord('tmpl'); $print = false; if($tmpl){ $print = true; } $this->assignRef('print', $print); $this->format = JRequest::getWord('format','html'); if($layout == 'invoice'){ $document->setTitle( JText::_('COM_VIRTUEMART_INVOICE') ); } $order_print=false; if ($print and $this->format=='html') { $order_print=true; } $orderModel = VmModel::getModel('orders'); $orderDetails = $this->orderDetails; if($orderDetails==0){ $orderDetails = $orderModel ->getMyOrderDetails(); if(!$orderDetails or empty($orderDetails['details'])){ echo JText::_('COM_VIRTUEMART_CART_ORDER_NOTFOUND'); return; } } if(empty($orderDetails['details'])){ echo JText::_('COM_VIRTUEMART_ORDER_NOTFOUND'); return 0; } if(!empty($orderDetails['details']['BT']->order_language)) { VmConfig::loadJLang('com_virtuemart',true, $orderDetails['details']['BT']->order_language); VmConfig::loadJLang('com_virtuemart_shoppers',true, $orderDetails['details']['BT']->order_language); VmConfig::loadJLang('com_virtuemart_orders',true, $orderDetails['details']['BT']->order_language); } $this->assignRef('orderDetails', $orderDetails); // if it is order print, invoice number should not be created, either it is there, either it has not been created if(empty($this->invoiceNumber) and !$order_print){ $invoiceNumberDate=array(); if ( $orderModel->createInvoiceNumber($orderDetails['details']['BT'], $invoiceNumberDate)) { if (ShopFunctions::InvoiceNumberReserved( $invoiceNumberDate[0])) { if ($this->uselayout!='mail') { $document->setTitle( JText::_('COM_VIRTUEMART_PAYMENT_INVOICE') ); return ; } } $this->invoiceNumber = $invoiceNumberDate[0]; $this->invoiceDate = $invoiceNumberDate[1]; if(!$this->invoiceNumber or empty($this->invoiceNumber)){ vmError('Cant create pdf, createInvoiceNumber failed'); if ($this->uselayout!='mail') { return ; } } } else { // Could OR should not create Invoice Number, createInvoiceNumber failed if ($this->uselayout!='mail') { return ; } } } //Todo multix $vendorId=1; $emailCurrencyId = $orderDetails['details']['BT']->user_currency_id; $exchangeRate=FALSE; if(!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS.DS.'vmpsplugin.php'); JPluginHelper::importPlugin('vmpayment'); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('plgVmgetEmailCurrency',array( $orderDetails['details']['BT']->virtuemart_paymentmethod_id, $orderDetails['details']['BT']->virtuemart_order_id, &$emailCurrencyId)); if(!class_exists('CurrencyDisplay')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'currencydisplay.php'); $currency = CurrencyDisplay::getInstance($emailCurrencyId,$vendorId); if ($emailCurrencyId) { $currency->exchangeRateShopper=$orderDetails['details']['BT']->user_currency_rate; } $this->assignRef('currency', $currency); //Create BT address fields $userFieldsModel = VmModel::getModel('userfields'); $_userFields = $userFieldsModel->getUserFields( 'account' , array('captcha' => true, 'delimiters' => true) // Ignore these types , array('delimiter_userinfo','user_is_vendor' ,'username','password', 'password2', 'agreed', 'address_type') // Skips ); $userfields = $userFieldsModel->getUserFieldsFilled( $_userFields ,$orderDetails['details']['BT']); $this->assignRef('userfields', $userfields); //Create ST address fields $orderst = (array_key_exists('ST', $orderDetails['details'])) ? $orderDetails['details']['ST'] : $orderDetails['details']['BT']; $shipmentFieldset = $userFieldsModel->getUserFields( 'shipment' , array() // Default switches , array('delimiter_userinfo', 'username', 'email', 'password', 'password2', 'agreed', 'address_type') // Skips ); $shipmentfields = $userFieldsModel->getUserFieldsFilled( $shipmentFieldset ,$orderst ); $this->assignRef('shipmentfields', $shipmentfields); $civility=""; foreach ($userfields['fields'] as $field) { if ($field['name']=="title") { $civility=$field['value']; break; } } $company= empty($orderDetails['details']['BT']->company) ?"":$orderDetails['details']['BT']->company.", "; $shopperName = $company. $civility.' '.$orderDetails['details']['BT']->first_name.' '.$orderDetails['details']['BT']->last_name; $this->assignRef('shopperName', $shopperName); $this->assignRef('civility', $civility); // Create an array to allow orderlinestatuses to be translated // We'll probably want to put this somewhere in ShopFunctions.. $orderStatusModel = VmModel::getModel('orderstatus'); $_orderstatuses = $orderStatusModel->getOrderStatusList(); $orderstatuses = array(); foreach ($_orderstatuses as $_ordstat) { $orderstatuses[$_ordstat->order_status_code] = JText::_($_ordstat->order_status_name); } $this->assignRef('orderstatuslist', $orderstatuses); $this->assignRef('orderstatuses', $orderstatuses); $_itemStatusUpdateFields = array(); $_itemAttributesUpdateFields = array(); foreach($orderDetails['items'] as $_item) { // $_itemStatusUpdateFields[$_item->virtuemart_order_item_id] = JHTML::_('select.genericlist', $orderstatuses, "item_id[".$_item->virtuemart_order_item_id."][order_status]", 'class="selectItemStatusCode"', 'order_status_code', 'order_status_name', $_item->order_status, 'order_item_status'.$_item->virtuemart_order_item_id,true); $_itemStatusUpdateFields[$_item->virtuemart_order_item_id] = $_item->order_status; } if (empty($orderDetails['shipmentName']) ) { if (!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php'); JPluginHelper::importPlugin('vmshipment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmOnShowOrderFEShipment',array( $orderDetails['details']['BT']->virtuemart_order_id, $orderDetails['details']['BT']->virtuemart_shipmentmethod_id, &$orderDetails['shipmentName'])); } if (empty($orderDetails['paymentName']) ) { if(!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS.DS.'vmpsplugin.php'); JPluginHelper::importPlugin('vmpayment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmOnShowOrderFEPayment',array( $orderDetails['details']['BT']->virtuemart_order_id, $orderDetails['details']['BT']->virtuemart_paymentmethod_id, &$orderDetails['paymentName'])); } $virtuemart_vendor_id=1; $vendorModel = VmModel::getModel('vendor'); $vendor = $vendorModel->getVendor($virtuemart_vendor_id); $vendorModel->addImages($vendor); $vendor->vendorFields = $vendorModel->getVendorAddressFields(); if (VmConfig::get ('enable_content_plugin', 0)) { if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_store_desc'); shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_terms_of_service'); shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_legal_info'); } $this->assignRef('vendor', $vendor); // vmdebug('vendor', $vendor); if (strpos($layout,'mail') !== false) { $lineSeparator="
"; } else { $lineSeparator="\n"; } $this->assignRef('headFooter', $this->showHeaderFooter); //Attention, this function will be removed, it wont be deleted, but it is obsoloete in any view.html.php if(!class_exists('ShopFunctions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'shopfunctions.php'); $vendorAddress= shopFunctions::renderVendorAddress($virtuemart_vendor_id, $lineSeparator); $this->assignRef('vendorAddress', $vendorAddress); $vendorEmail = $vendorModel->getVendorEmail($virtuemart_vendor_id); $vars['vendorEmail'] = $vendorEmail; // this is no setting in BE to change the layout ! //shopFunctionsF::setVmTemplate($this,0,0,$layoutName); //vmdebug('renderMailLayout invoice '.date('H:i:s'),$this->order); if (strpos($layout,'mail') !== false) { if ($this->doVendor) { //Old text key COM_VIRTUEMART_MAIL_SUBJ_VENDOR_C $this->subject = JText::sprintf('COM_VIRTUEMART_MAIL_SUBJ_VENDOR_'.$orderDetails['details']['BT']->order_status, $this->shopperName, strip_tags($currency->priceDisplay($orderDetails['details']['BT']->order_total, $currency)), $orderDetails['details']['BT']->order_number); $recipient = 'vendor'; } else { $this->subject = JText::sprintf('COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_'.$orderDetails['details']['BT']->order_status, $vendor->vendor_store_name, strip_tags($currency->priceDisplay($orderDetails['details']['BT']->order_total, $currency)), $orderDetails['details']['BT']->order_number ); $recipient = 'shopper'; } $this->assignRef('recipient', $recipient); } $tpl = null; // vmdebug('my view data',$this->getLayout(),$layout); // ob_start(); // echo '
';
// 		echo debug_print_backtrace();
// 		echo '
'; // $dumptrace = ob_get_contents(); // ob_end_clean(); // return false; parent::display($tpl); } // FE public function renderMailLayout($doVendor=false) function renderMailLayout ($doVendor, $recipient) { $this->doVendor=$doVendor; $this->frompdf=false; $this->uselayout = 'mail'; $this->display(); } static function replaceVendorFields ($txt, $vendor) { // TODO: Implement more Placeholders (ordernr, invoicenr, etc.); // REMEMBER TO CHANGE VmVendorPDF::replace_variables IN vmpdf.php, TOO!!! // Page nrs. for mails is always "1" $txt = str_replace('{vm:pagenum}', "1", $txt); $txt = str_replace('{vm:pagecount}', "1", $txt); $txt = str_replace('{vm:vendorname}', $vendor->vendor_store_name, $txt); $imgrepl=''; if (!empty($vendor->images)) { $img = $vendor->images[0]; $imgrepl = "
".$img->displayIt($img->file_url,'','',false, '', false, false)."
"; } $txt = str_replace('{vm:vendorimage}', $imgrepl, $txt); $vendorAddress = shopFunctions::renderVendorAddress($vendor->virtuemart_vendor_id, "
"); // Trim the final
from the address, which is inserted by renderVendorAddress automatically! if (substr($vendorAddress, -5, 5) == '
') { $vendorAddress = substr($vendorAddress, 0, -5); } $txt = str_replace('{vm:vendoraddress}', $vendorAddress, $txt); $txt = str_replace('{vm:vendorlegalinfo}', $vendor->vendor_legal_info, $txt); $txt = str_replace('{vm:vendordescription}', $vendor->vendor_store_desc, $txt); $txt = str_replace('{vm:tos}', $vendor->vendor_terms_of_service, $txt); return "$txt"; } } invoice/.htaccess000066600000000177151371757770010033 0ustar00 Order allow,deny Deny from all recommend/view.html.php000066600000016211151371757770011174 0ustar00redirect(JRoute::_('index.php?option=com_virtuemart')); } $this->login = ''; if(!VmConfig::get('recommend_unauth',false)){ $user = JFactory::getUser(); if($user->guest){ $this->login = shopFunctionsF::getLoginForm(false); //$app->redirect(JRoute::_('index.php?option=com_virtuemart','JGLOBAL_YOU_MUST_LOGIN_FIRST')); } } // Load the product $productModel = VmModel::getModel('product'); $virtuemart_product_id = vRequest::getInt('virtuemart_product_id',0); $this->product = $productModel->getProduct ($virtuemart_product_id); $layout = $this->getLayout(); if($layout != 'form' and $layout != 'mail_confirmed'){ return $this->renderMailLayout('',''); } $show_prices = VmConfig::get('show_prices',1); if($show_prices == '1'){ if(!class_exists('calculationHelper')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'calculationh.php'); } $this->assignRef('show_prices', $show_prices); $document = JFactory::getDocument(); $document->setMetaData('robots','NOINDEX, NOFOLLOW, NOARCHIVE, NOSNIPPET'); /* add javascript for price and cart */ //vmJsApi::jPrice(); $mainframe = JFactory::getApplication(); $pathway = $mainframe->getPathway(); $task = JRequest::getCmd('task'); if (!class_exists('VmImage')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'image.php'); if(empty($virtuemart_product_id)){ self::showLastCategory($tpl); return; } //$product = $productModel->getProduct($virtuemart_product_id); /* Set Canonic link */ $format = JRequest::getWord('format', 'html'); if ($format == 'html') { $document->addHeadLink( $this->product->link , 'canonical', 'rel', '' ); } /* Set the titles */ $document->setTitle(JText::sprintf('COM_VIRTUEMART_PRODUCT_DETAILS_TITLE',$this->product->product_name.' - '.JText::_('COM_VIRTUEMART_PRODUCT_RECOMMEND'))); if(empty($this->product)){ self::showLastCategory($tpl); return; } $productModel->addImages($this->product,1); /* Load the category */ $category_model = VmModel::getModel('category'); /* Get the category ID */ $virtuemart_category_id = JRequest::getInt('virtuemart_category_id'); if ($virtuemart_category_id == 0 && !empty($this->product)) { if (array_key_exists('0', $this->product->categories)) $virtuemart_category_id = $this->product->categories[0]; } if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); shopFunctionsF::setLastVisitedCategoryId($virtuemart_category_id); if($category_model){ $category = $category_model->getCategory($virtuemart_category_id); $this->assignRef('category', $category); $pathway->addItem($category->category_name,JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$virtuemart_category_id, FALSE)); } //$pathway->addItem(JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), $uri->toString(array('path', 'query', 'fragment'))); $pathway->addItem($this->product->product_name,JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id='.$virtuemart_category_id.'&virtuemart_product_id='.$this->product->virtuemart_product_id, FALSE)); // for askquestion $pathway->addItem( JText::_('COM_VIRTUEMART_PRODUCT_ASK_QUESTION')); /* Check for editing access */ /** @todo build edit page */ /* Load the user details */ $this->assignRef('user', JFactory::getUser()); if ($this->product->metadesc) { $document->setDescription( $this->product->metadesc ); } if ($this->product->metakey) { $document->setMetaData('keywords', $this->product->metakey); } if ($mainframe->getCfg('MetaTitle') == '1') { $document->setMetaData('title', $this->product->product_s_desc); //Maybe better product_name } if ($mainframe->getCfg('MetaAuthor') == '1') { $document->setMetaData('author', $this->product->metaauthor); } parent::display($tpl); } function renderMailLayout($doVendor, $recipient) { $this->comment = nl2br(JRequest::getString('comment')); $this->name = vRequest::getString('name'); if (VmConfig::get ('order_mail_html')) { $tpl = 'mail_html'; } else { $tpl = 'mail_raw'; } $this->setLayout ($tpl); // Load the product $productModel = VmModel::getModel('product'); $virtuemart_product_id = vRequest::getInt('virtuemart_product_id',0); $this->product = $productModel->getProduct ($virtuemart_product_id); $productModel->addImages($this->product); $layout = $this->getLayout(); //if($layout != 'form' and $layout != 'mail_confirmed'){ $user = JFactory::getUser (); $vars['user'] = array('name' => $user->name, 'email' => $user->email); $vars['vendorEmail'] = $user->email; $vendorModel = VmModel::getModel ('vendor'); $this->vendor = $vendorModel->getVendor ($this->product->virtuemart_vendor_id); $vendorModel->addImages ($this->vendor); $this->vendor->vendorFields = $vendorModel->getVendorAddressFields(); $vars['vendorAddress']= shopFunctions::renderVendorAddress($this->product->virtuemart_vendor_id, ' - '); $this->vendor->vendor_name =$user->name; foreach( $vars as $key => $val ) { $this->$key = $val; } $this->subject = JText::sprintf('COM_VIRTUEMART_RECOMMEND_PRODUCT',$this->name, $this->product->product_name); parent::display(); } private function showLastCategory($tpl) { $virtuemart_category_id = shopFunctionsF::getLastVisitedCategoryId(); $categoryLink=''; if($virtuemart_category_id){ $categoryLink='&virtuemart_category_id='.$virtuemart_category_id; } $continue_link = JRoute::_('index.php?option=com_virtuemart&view=category'.$categoryLink, FALSE); $continue_link_html = ''.JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING').''; $this->assignRef('continue_link_html', $continue_link_html); // Display it all parent::display($tpl); } } // pure php no closing tagrecommend/metadata.xml000066600000000316151371757770011047 0ustar00 recommend/index.html000066600000000000151371757770010530 0ustar00recommend/tmpl/.htaccess000066600000000177151371757770011324 0ustar00 Order allow,deny Deny from all recommend/tmpl/index.html000066600000000000151371757770011504 0ustar00recommend/tmpl/form.php000066600000013033151371757770011175 0ustar00addScriptDeclaration(' jQuery(function($){ $("#askform").validationEngine("attach"); var counterResult = $("#comment").val().length; $("#counter").val( counterResult ); $("#comment").keyup( function () { var result = $(this).val(); $("#counter").val( result.length ); }); }); '); $vendorModel = VmModel::getModel ('vendor'); $this->vendor = $vendorModel->getVendor ($this->product->virtuemart_vendor_id); /* Let's see if we found the product */ if (empty ( $this->product )) { echo JText::_ ( 'COM_VIRTUEMART_PRODUCT_NOT_FOUND' ); echo '

' . $this->continue_link_html; } else { $session = JFactory::getSession(); $mailRecommendData = $session->get('mailrecommend', 0, 'vm'); if(!empty($this->login)){ echo $this->login; } if(empty($this->login) or VmConfig::get('recommend_unauth',false)){ ?>

product->product_name ?>

product->product_s_desc)) { ?>
product->product_s_desc ?>
product->images[0]->displayMediaThumb('class="modal product-image"',false); ?>
trigger('onInit','dynamic_recaptcha_1'); ?>
recommend/tmpl/form.xml000066600000000312151371757770011202 0ustar00 recommend/tmpl/mail_confirmed.php000066600000002164151371757770013205 0ustar00
recommend/tmpl/mail_html.php000066600000006467151371757770012215 0ustar00
vendorAddress; ?>
recommend/tmpl/mail_raw.php000066600000003451151371757770012030 0ustar00vendorAddress; echo "\n"; echo "\n"; echo JText::sprintf ('COM_VIRTUEMART_MAIL_SHOPPER_NAME', $this->user->name); echo "\n"; echo "\n"; echo JText::sprintf('COM_VIRTUEMART_RECOMMEND_MAIL_MSG', $this->product->product_name, $this->comment); echo "\n"; $link = JURI::root().'index.php?option=com_virtuemart'; echo "\n\n"; $link= JHTML::_('link', $link, $this->vendor->vendor_name) ; /* GENERAL FOOTER FOR ALL MAILS */ echo JText::_('COM_VIRTUEMART_MAIL_FOOTER' ) . $link; echo "\n"; echo $this->vendor->vendor_name ."\n".$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name ."\n".strip_tags($this->vendor->vendor_store_desc)."\n".str_replace('
',"\n",$this->vendor->vendor_legal_info); echo JText::sprintf('COM_VIRTUEMART_RECOMMEND_MAIL_MSG', $this->product->product_name, $this->comment); $link = JURI::root().'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id ; echo '
'.JHTML::_('link',$link, $this->product->product_name).''; include(JPATH_VM_SITE.DS.'views'.DS.'cart'.DS.'tmpl'.DS.'mail_html_footer.php'); recommend/.htaccess000066600000000177151371757770010350 0ustar00 Order allow,deny Deny from all productdetails/view.html.php000066600000030600151371757770012247 0ustar00assignRef('show_prices', $show_prices); $document = JFactory::getDocument(); // add javascript for price and cart, need even for quantity buttons, so we need it almost anywhere vmJsApi::jPrice(); $mainframe = JFactory::getApplication(); $pathway = $mainframe->getPathway(); $task = JRequest::getCmd('task'); if (!class_exists('VmImage')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'image.php'); // Load the product //$product = $this->get('product'); //Why it is sensefull to use this construction? Imho it makes it just harder $product_model = VmModel::getModel('product'); $this->assignRef('product_model', $product_model); $virtuemart_product_idArray = JRequest::getVar('virtuemart_product_id', 0); if (is_array($virtuemart_product_idArray) and count($virtuemart_product_idArray) > 0) { $virtuemart_product_id = (int)$virtuemart_product_idArray[0]; } else { $virtuemart_product_id = (int)$virtuemart_product_idArray; } $quantityArray = JRequest::getVar ('quantity', array()); //is sanitized then JArrayHelper::toInteger ($quantityArray); $quantity = 1; if (!empty($quantityArray[0])) { $quantity = $quantityArray[0]; } $product = $product_model->getProduct($virtuemart_product_id,TRUE,TRUE,TRUE,$quantity); if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); $last_category_id = shopFunctionsF::getLastVisitedCategoryId(); if (empty($product->slug)) { //Todo this should be redesigned to fit better for SEO $mainframe->enqueueMessage(JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND')); $categoryLink = ''; if (!$last_category_id) { $last_category_id = JRequest::getInt('virtuemart_category_id', false); } if ($last_category_id) { $categoryLink = '&virtuemart_category_id=' . $last_category_id; } if (VmConfig::get('handle_404',1)) { $mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=category' . $categoryLink . '&error=404', FALSE)); } else { JError::raise(E_ERROR,'404','Not found'); } return; } if (!empty($product->customfields)) { foreach ($product->customfields as $k => $custom) { if (!empty($custom->layout_pos)) { $product->customfieldsSorted[$custom->layout_pos][] = $custom; unset($product->customfields[$k]); } } $product->customfieldsSorted['normal'] = $product->customfields; unset($product->customfields); } $product->event = new stdClass(); $product->event->afterDisplayTitle = ''; $product->event->beforeDisplayContent = ''; $product->event->afterDisplayContent = ''; if (VmConfig::get('enable_content_plugin', 0)) { shopFunctionsF::triggerContentPlugin($product, 'productdetails','product_desc'); } $product_model->addImages($product); $this->assignRef('product', $product); if (isset($product->min_order_level) && (int) $product->min_order_level > 0) { $min_order_level = $product->min_order_level; } else { $min_order_level = 1; } $this->assignRef('min_order_level', $min_order_level); if (isset($product->step_order_level) && (int) $product->step_order_level > 0) { $step_order_level = $product->step_order_level; } else { $step_order_level = 1; } $this->assignRef('step_order_level', $step_order_level); // Load the neighbours if (VmConfig::get('product_navigation', 1)) { $product->neighbours = $product_model->getNeighborProducts($product); } // Load the category $category_model = VmModel::getModel('category'); shopFunctionsF::setLastVisitedCategoryId($product->virtuemart_category_id); if ($category_model) { $category = $category_model->getCategory($product->virtuemart_category_id); $category_model->addImages($category, 1); $this->assignRef('category', $category); //Seems we dont need this anylonger, destroyed the breadcrumb if ($category->parents) { foreach ($category->parents as $c) { if(is_object($c) and isset($c->category_name)){ $pathway->addItem(strip_tags($c->category_name), JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $c->virtuemart_category_id, FALSE)); } else { vmdebug('Error, parent category has no name, breadcrumb maybe broken, category',$c); } } } $category->children = $category_model->getChildCategoryList($product->virtuemart_vendor_id, $product->virtuemart_category_id); $category_model->addImages($category->children, 1); } if (!empty($tpl)) { $format = $tpl; } else { $format = JRequest::getWord('format', 'html'); } if ($format == 'html') { // Set Canonic link $document->addHeadLink($product->canonical, 'canonical', 'rel', ''); } $pathway->addItem(strip_tags($product->product_name)); // Set the titles // $document->setTitle should be after the additem pathway if ($product->customtitle) { $document->setTitle(strip_tags($product->customtitle)); } else { $document->setTitle(strip_tags(($category->category_name ? ($category->category_name . ' : ') : '') . $product->product_name)); } $ratingModel = VmModel::getModel('ratings'); $allowReview = $ratingModel->allowReview($product->virtuemart_product_id); $this->assignRef('allowReview', $allowReview); $showReview = $ratingModel->showReview($product->virtuemart_product_id); $this->assignRef('showReview', $showReview); if ($showReview) { $review = $ratingModel->getReviewByProduct($product->virtuemart_product_id); $this->assignRef('review', $review); $rating_reviews = $ratingModel->getReviews($product->virtuemart_product_id); $this->assignRef('rating_reviews', $rating_reviews); } $showRating = $ratingModel->showRating($product->virtuemart_product_id); $this->assignRef('showRating', $showRating); if ($showRating) { $vote = $ratingModel->getVoteByProduct($product->virtuemart_product_id); $this->assignRef('vote', $vote); $rating = $ratingModel->getRatingByProduct($product->virtuemart_product_id); $this->assignRef('rating', $rating); } $allowRating = $ratingModel->allowRating($product->virtuemart_product_id); $this->assignRef('allowRating', $allowRating); // Check for editing access // @todo build edit page if (!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'permissions.php'); //if (Permissions::getInstance()->check("admin,storeadmin")) { $perm = Permissions::getInstance(); $admin = $perm->check("admin"); if(!$admin) vmdebug('No admin'); $storeadmin = $perm->check("admin,storeadmin"); if(!$storeadmin) vmdebug('No $storeadmin'); $superVendor = $perm->isSuperVendor(); if(!$superVendor) vmdebug('No $superVendor'); if($admin or ($perm->isSuperVendor()==$product->virtuemart_vendor_id and $storeadmin)){ $edit_link = JURI::root() . 'index.php?option=com_virtuemart&tmpl=component&view=product&task=edit&virtuemart_product_id=' . $product->virtuemart_product_id; $edit_link = $this->linkIcon($edit_link, 'COM_VIRTUEMART_PRODUCT_FORM_EDIT_PRODUCT', 'edit', false, false); } else { $edit_link = ""; } $this->assignRef('edit_link', $edit_link); // todo: atm same form for "call for price" and "ask a question". Title of the form should be different $askquestion_url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id . '&tmpl=component', FALSE); $this->assignRef('askquestion_url', $askquestion_url); // Load the user details $user = JFactory::getUser(); $this->assignRef('user',$user); // More reviews link $uri = JURI::getInstance(); $uri->setVar('showall', 1); $uristring = vmURI::getCleanUrl(); $this->assignRef('more_reviews', $uristring); if ($product->metadesc) { $document->setDescription($product->metadesc); } if ($product->metakey) { $document->setMetaData('keywords', $product->metakey); } if ($product->metarobot) { $document->setMetaData('robots', $product->metarobot); } if ($mainframe->getCfg('MetaTitle') == '1') { $document->setMetaData('title', $product->product_name); //Maybe better product_name } if ($mainframe->getCfg('MetaAuthor') == '1') { $document->setMetaData('author', $product->metaauthor); } $showBasePrice = Permissions::getInstance()->check('admin'); //todo add config settings $this->assignRef('showBasePrice', $showBasePrice); $productDisplayShipments = array(); $productDisplayPayments = array(); if (!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php'); JPluginHelper::importPlugin('vmshipment'); JPluginHelper::importPlugin('vmpayment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmOnProductDisplayShipment', array($product, &$productDisplayShipments)); $returnValues = $dispatcher->trigger('plgVmOnProductDisplayPayment', array($product, &$productDisplayPayments)); $this->assignRef('productDisplayPayments', $productDisplayPayments); $this->assignRef('productDisplayShipments', $productDisplayShipments); if (empty($category->category_template)) { $category->category_template = VmConfig::get('categorytemplate'); } shopFunctionsF::setVmTemplate($this, $category->category_template, $product->product_template, $category->category_product_layout, $product->layout); shopFunctionsF::addProductToRecent($virtuemart_product_id); $currency = CurrencyDisplay::getInstance(); $this->assignRef('currency', $currency); if(JRequest::getCmd( 'layout', 'default' )=='notify') $this->setLayout('notify'); //Added by Seyi Awofadeju to catch notify layout parent::display($tpl); } function renderMailLayout ($doVendor, $recipient) { $tpl = VmConfig::get('order_mail_html') ? 'mail_html_notify' : 'mail_raw_notify'; $this->doVendor=$doVendor; $this->fromPdf=false; $this->uselayout = $tpl; $this->subject = !empty($this->subject) ? $this->subject : JText::_('COM_VIRTUEMART_CART_NOTIFY_MAIL_SUBJECT'); $this->layoutName = $tpl; $this->setLayout($tpl); parent::display(); } private function showLastCategory($tpl) { $virtuemart_category_id = shopFunctionsF::getLastVisitedCategoryId(); $categoryLink = ''; if ($virtuemart_category_id) { $categoryLink = '&virtuemart_category_id=' . $virtuemart_category_id; } $continue_link = JRoute::_('index.php?option=com_virtuemart&view=category' . $categoryLink, FALSE); $continue_link_html = '' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . ''; $this->assignRef('continue_link_html', $continue_link_html); // Display it all parent::display($tpl); } } // pure php no closing tagproductdetails/tmpl/default_relatedcategories.php000066600000002301151371757770016475 0ustar00 productdetails/tmpl/default_reviews.php000066600000017560151371757770014510 0ustar00allowRating || $this->showReview) { $maxrating = VmConfig::get ('vm_maximum_rating_scale', 5); $ratingsShow = VmConfig::get ('vm_num_ratings_show', 3); // TODO add vm_num_ratings_show in vmConfig $stars = array(); $showall = JRequest::getBool ('showall', FALSE); $ratingWidth = $maxrating * 24; for ($num = 0; $num <= $maxrating; $num++) { $stars[] = ' '; } ?>
showReview) { ?>

rating_reviews) { foreach ($this->rating_reviews as $review) { if ($i % 2 == 0) { $color = 'normal'; } else { $color = 'highlight'; } /* Check if user already commented */ // if ($review->virtuemart_userid == $this->user->id ) { if ($review->created_by == $this->user->id && !$review->review_editable) { $review_editable = FALSE; } ?> rating_reviews) && $review->published) { $reviews_published++; ?>
created_on, JText::_ ('DATE_FORMAT_LC')); ?> review_rating] ?>
comment; ?>
customer ?>
= $ratingsShow) { $attribute = array('class'=> 'details', 'title'=> JText::_ ('COM_VIRTUEMART_MORE_REVIEWS')); echo JHTML::link ($this->more_reviews, JText::_ ('COM_VIRTUEMART_MORE_REVIEWS'), $attribute); } break; } } } else { // "There are no reviews for this product" ?>
allowReview) { ?>
" . VmConfig::get ('reviews_maximum_comment_length', 2000) . ") { alert('" . addslashes (JText::sprintf ('COM_VIRTUEMART_REVIEW_ERR_COMMENT2_JS', VmConfig::get ('reviews_maximum_comment_length', 2000))) . "'); return false; } else { return true; } } function refresh_counter() { var form = document.getElementById('reviewform'); form.counter.value= form.comment.value.length; } jQuery(function($) { var steps = " . $maxrating . "; var parentPos= $('.write-reviews .ratingbox').position(); var boxWidth = $('.write-reviews .ratingbox').width();// nbr of total pixels var starSize = (boxWidth/steps); var ratingboxPos= $('.write-reviews .ratingbox').offset(); $('.write-reviews .ratingbox').mousemove( function(e){ var span = $(this).children(); var dif = e.pageX-ratingboxPos.left; // nbr of pixels difRatio = Math.floor(dif/boxWidth* steps )+1; //step span.width(difRatio*starSize); $('#vote').val(difRatio); //console.log('note = ', difRatio); }); }); //]]> "; $document = JFactory::getDocument (); $document->addScriptDeclaration ($reviewJavascript); if ($this->showRating) { if ($this->allowRating && $review_editable) { ?>





' . JText::_ ('COM_VIRTUEMART_DEAR') . $this->user->name . ',
'; echo JText::_ ('COM_VIRTUEMART_REVIEW_ALREADYDONE'); } ?>
allowRating || $this->showReview) { ?>
productdetails/tmpl/default_relatedproducts.php000066600000002347151371757770016225 0ustar00 productdetails/tmpl/default_showcategory.php000066600000005613151371757770015536 0ustar00category->haschildren) { $iCol = 1; $iCategory = 1; $categories_per_row = VmConfig::get('categories_per_row', 3); $category_cellwidth = ' width' . floor(100 / $categories_per_row); $verticalseparator = " vertical-separator"; ?>
category->children)) { foreach ($this->category->children as $category) { // Show the horizontal seperator if ($iCol == 1 && $iCategory > $categories_per_row) { ?>
virtuemart_category_id, FALSE); // Show Category ?>
product->prices['salesPrice'])) { echo "" . JText::_ ('COM_VIRTUEMART_CART_PRICE') . ""; } //vmdebug('view productdetails layout default show prices, prices',$this->product); if ($this->product->prices['salesPrice']<=0 and VmConfig::get ('askprice', 1) and isset($this->product->images[0]) and !$this->product->images[0]->file_is_downloadable) { ?> showBasePrice) { echo $this->currency->createPriceDiv ('basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices); if (round($this->product->prices['basePrice'],$this->currency->_priceConfig['basePriceVariant'][1]) != $this->product->prices['basePriceVariant']) { echo $this->currency->createPriceDiv ('basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices); } } echo $this->currency->createPriceDiv ('variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices); if (round($this->product->prices['basePriceWithTax'],$this->currency->_priceConfig['salesPrice'][1]) != $this->product->prices['salesPrice']) { echo '' . $this->currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices) . ""; } if (round($this->product->prices['salesPriceWithDiscount'],$this->currency->_priceConfig['salesPrice'][1]) != $this->product->prices['salesPrice']) { echo $this->currency->createPriceDiv ('salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices); } echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices); if ($this->product->prices['discountedPriceWithoutTax'] != $this->product->prices['priceWithoutTax']) { echo $this->currency->createPriceDiv ('discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices); } else { echo $this->currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices); } echo $this->currency->createPriceDiv ('discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices); echo $this->currency->createPriceDiv ('taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices); $unitPriceDescription = JText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', JText::_('COM_VIRTUEMART_UNIT_SYMBOL_'.$this->product->product_unit)); echo $this->currency->createPriceDiv ('unitPrice', $unitPriceDescription, $this->product->prices); } ?>
productdetails/tmpl/default_customfields.php000066600000003416151371757770015520 0ustar00
product->customfieldsSorted[$this->position] as $field) { if ( $field->is_hidden ) //OSP http://forum.virtuemart.net/index.php?topic=99320.0 continue; if ($field->display) { ?>
custom_title != $custom_title && $field->show_title) { ?> custom_title); ?> custom_tip) echo JHTML::tooltip($field->custom_tip, JText::_($field->custom_title), 'tooltip.png'); } ?> display ?> custom_field_desc) ?>
custom_title; } } ?>
productdetails/tmpl/default_images.php000066600000006402151371757770014262 0ustar00addScriptDeclaration ($imageJS); if (!empty($this->product->images)) { $image = $this->product->images[0]; ?>
displayMediaFull("",true,"rel='vm-additional-images'"); ?>
product->images); if ($count_images > 1) { ?>
product->images[$i]; ?>
displayMediaThumb('class="product-image" style="cursor: pointer"',false,""); echo ''; } else { echo $image->displayMediaThumb("",true,"rel='vm-additional-images'"); } ?>
productdetails/tmpl/mail_raw_notify.php000066600000003242151371757770014473 0ustar00vendorAddress; echo "\n"; echo "\n"; echo JText::sprintf ('COM_VIRTUEMART_MAIL_SHOPPER_NAME', $this->user->name); echo "\n"; echo "\n"; if(!empty($this->mailbody)) { echo $this->mailbody; } else { echo str_replace( "
", "\n", JText::sprintf('COM_VIRTUEMART_CART_NOTIFY_MAIL_RAW', $this->productName,$this->link) ); } echo "\n"; $link = JURI::root().'index.php?option=com_virtuemart'; echo "\n\n"; $link= JHTML::_('link', $link, $this->vendor->vendor_name) ; // echo JText::_('COM_VIRTUEMART_MAIL_VENDOR_TITLE').$this->vendor->vendor_name.'
'; /* GENERAL FOOTER FOR ALL MAILS */ echo JText::_('COM_VIRTUEMART_MAIL_FOOTER' ) . $link; echo "\n"; echo $this->vendor->vendor_name ."\n".$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name ."\n".strip_tags($this->vendor->vendor_store_desc)."\n".str_replace('
',"\n",$this->vendor->vendor_legal_info); productdetails/tmpl/notify.php000066600000004245151371757770012624 0ustar00

product->product_name); ?>




productdetails/tmpl/pdf.xml000066600000000346151371757770012074 0ustar00 productdetails/tmpl/default_addtocart.php000066600000013210151371757770014755 0ustar00product->step_order_level)) $step=$this->product->step_order_level; else $step=1; if($step==0) $step=1; $alert=JText::sprintf ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED', $step); ?>
product->customfieldsCart)) { ?>
product->customfieldsCart as $field) { ?>
show_title) { ?> custom_title) ?> custom_tip) { echo JHTML::tooltip (vmText::_($field->custom_tip), vmText::_ ($field->custom_title), 'tooltip.png'); } ?> display ?> custom_field_desc) ?>

virtuemart_product_id as link to child product_id * custom_value is relation value to child */ if (!empty($this->product->customsChilds)) { ?>
product->customsChilds as $field) { ?>
field->custom_title) ?> field->custom_value) ?> display ?>

product->product_in_stock - $this->product->product_ordered) < 1) { ?> product->prices['costPrice']; if (!( VmConfig::get('askprice', 0) and empty($tmpPrice) ) ) { ?> product->orderable); // Display the add to cart button END ?>
productdetails/tmpl/pdf.php000066600000030422151371757770012061 0ustar00product )) { echo JText::_ ( 'COM_VIRTUEMART_PRODUCT_NOT_FOUND' ); echo '

' . $this->continue_link_html; return; } ?>

product->product_name ?>

product->images) && count($this->product->images)>0) { echo $this->product->images[0]->displayMediaFull('class="product-image"',false); ?>
product->images as $image) { echo $image->displayMediaThumb('class="product-image"'); //'class="modal"' } ?>
product->product_s_desc)) { ?>
product->product_s_desc; ?>
product->virtuemart_vendor_id); $text = JText::_('COM_VIRTUEMART_VENDOR_FORM_INFO_LBL'); echo ''. JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_VENDOR_LBL'). ''; ?>
*/ ?> rating)? JText::_('COM_VIRTUEMART_UNRATED'):$this->rating->rating; echo JText::_('COM_VIRTUEMART_RATING') . $rating; // Product Price if ($this->show_prices) { ?>
product->product_unit && VmConfig::get ( 'price_show_packaging_pricelabel' )) { echo "" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE_PER_UNIT' ) . ' (' . $this->product->product_unit . "):"; } else { echo "" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . ""; } if ($this->showBasePrice) { echo $this->currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices ); } echo $this->currency->createPriceDiv ( 'variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices ); echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices ); ?>
product->customfieldsCart)) { ?>
product->customfieldsCart as $field) { ?>
custom_title ?> custom_tip, $field->custom_title, 'tooltip.png'); ?> display ?> custom_field_desc ?>

virtuemart_product_id as link to child product_id * custom_value is relation value to child */ if (!empty($this->product->customsChilds)) { ?>
product->customsChilds as $field) { ?>
field->custom_title ?> field->custom_value ?> display ?>

product->product_availability)) { ?>
product->product_availability, $this->product->product_availability, array('class' => 'availability')); ?>
product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id.'&tmpl=component'); ?>
product->virtuemart_manufacturer_id)) { ?>
product->virtuemart_manufacturer_id.'&tmpl=component'); $text = $this->product->mf_name; /* Avoid JavaScript on PDF Output */ if (strtolower(JRequest::getWord('output')) == "pdf"){ echo JHTML::_('link', $link, $text); } else { ?>
product->product_desc)) { ?>
product->product_desc; ?>
product->customfields)) { ?>
product->customfields as $field){ ?>
custom_title != $custom_title) { ?> custom_title); ?> custom_tip, $field->custom_title, 'tooltip.png'); } ?> display ?> custom_field_desc) ?>
custom_title; } ?>
product->packaging || $this->product->box) { ?>

product->packaging) { $product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING1').$this->product->packaging; if ($this->product->box) $product_packaging .= '
'; } if ($this->product->box) $product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING2').$this->product->box; echo str_replace("{unit}",$this->product->product_unit ? $this->product->product_unit : JText::_('COM_VIRTUEMART_PRODUCT_FORM_UNIT_DEFAULT'), $product_packaging); ?>
showReview ) { $maxrating = VmConfig::get('vm_maximum_rating_scale',5); $ratingsShow = VmConfig::get('vm_num_ratings_show',3); // TODO add vm_num_ratings_show in vmConfig $starsPath = JURI::root().VmConfig::get('assets_general_path').'images/stars/'; $stars = array(); $showall = JRequest::getBool('showall', false); for ($num=0 ; $num <= $maxrating; $num++ ) { $title = (JText::_("VM_RATING_TITLE").' : '. $num . '/' . $maxrating) ; $stars[] = JHTML::image($starsPath.$num.'.gif', JText::_($num.'_STARS'), array("title" => $title) ); } ?>
showReview) { $alreadycommented = false; ?>

rating_reviews as $review ) { if ($i % 2 == 0) { $color = 'normal'; } else { $color = 'highlight'; } // Loop through all reviews if (!empty($this->rating_reviews)) { ?>
created_on, JText::_('DATE_FORMAT_LC')); ?> review_rating ] //Attention the review rating is the rating of the review itself, rating for the product is the vote !?>
comment; ?>
customer ?>
rating_reviews) < 1) { // "There are no reviews for this product" ?> rating_reviews) >= $ratingsShow ) { $attribute = array('class'=>'details', 'title'=>JText::_('COM_VIRTUEMART_MORE_REVIEWS')); echo JHTML::link($this->more_reviews, JText::_('COM_VIRTUEMART_MORE_REVIEWS'),$attribute); } } ?>
'.JText::_('COM_VIRTUEMART_DEAR').$this->user->name.',
' ; // echo JText::_('COM_VIRTUEMART_REVIEW_ALREADYDONE'); // } if( $this->showReview ) { ?>
productdetails/tmpl/default_manufacturer.php000066600000002660151371757770015513 0ustar00
product->virtuemart_manufacturer_id . '&tmpl=component', FALSE); $text = $this->product->mf_name; /* Avoid JavaScript on PDF Output */ if (strtolower(JRequest::getWord('output')) == "pdf") { echo JHTML::_('link', $link, $text); } else { ?>
productdetails/tmpl/.htaccess000066600000000177151371757770012401 0ustar00 Order allow,deny Deny from all productdetails/tmpl/default.php000066600000034722151371757770012743 0ustar00product)) { echo JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND'); echo '

' . $this->continue_link_html; return; } if(JRequest::getInt('print',false)){ ?> product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component'; $boxFuncReco = ''; $boxFuncAsk = ''; if(VmConfig::get('usefancy',1)){ vmJsApi::js( 'fancybox/jquery.fancybox-1.3.4.pack'); vmJsApi::css('jquery.fancybox-1.3.4'); if(VmConfig::get('show_emailfriend',0)){ $boxReco = "jQuery.fancybox({ href: '" . $MailLink . "', type: 'iframe', height: '550' });"; } if(VmConfig::get('ask_question', 0)){ $boxAsk = "jQuery.fancybox({ href: '" . $this->askquestion_url . "', type: 'iframe', height: '550' });"; } } else { vmJsApi::js( 'facebox' ); vmJsApi::css( 'facebox' ); if(VmConfig::get('show_emailfriend',0)){ $boxReco = "jQuery.facebox({ iframe: '" . $MailLink . "', rev: 'iframe|550|550' });"; } if(VmConfig::get('ask_question', 0)){ $boxAsk = "jQuery.facebox({ iframe: '" . $this->askquestion_url . "', rev: 'iframe|550|550' });"; } } if(VmConfig::get('show_emailfriend',0) ){ $boxFuncReco = "jQuery('a.recommened-to-friend').click( function(){ ".$boxReco." return false ; });"; } if(VmConfig::get('ask_question', 0)){ $boxFuncAsk = "jQuery('a.ask-a-question').click( function(){ ".$boxAsk." return false ; });"; } if(!empty($boxFuncAsk) or !empty($boxFuncReco)){ $document = JFactory::getDocument(); $document->addScriptDeclaration(" // "); } ?>
product->neighbours ['previous'][0])) { $prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id, FALSE); echo JHTML::_('link', $prev_link, $this->product->neighbours ['previous'][0] ['product_name'], array('rel'=>'prev', 'class' => 'previous-page')); } if (!empty($this->product->neighbours ['next'][0])) { $next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id, FALSE); echo JHTML::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_name'], array('rel'=>'next','class' => 'next-page')); } ?>
product->virtuemart_category_id) { $catURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$this->product->virtuemart_category_id, FALSE); $categoryName = $this->product->category_name ; } else { $catURL = JRoute::_('index.php?option=com_virtuemart'); $categoryName = jText::_('COM_VIRTUEMART_SHOP_HOME') ; } ?>

product->product_name ?>

product->event->afterDisplayTitle ?> edit_link; // Product Edit Link END ?>
product->virtuemart_product_id; echo $this->linkIcon($link . '&format=pdf', 'COM_VIRTUEMART_PDF', 'pdf_button', 'pdf_icon', false); echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon'); echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend', false,true,false,'class="recommened-to-friend"'); ?>
product->product_s_desc)) { ?>
product->product_s_desc); ?>
product->customfieldsSorted['ontop'])) { $this->position = 'ontop'; echo $this->loadTemplate('customfields'); } // Product Custom ontop end ?>
loadTemplate('images'); ?>
product->virtuemart_vendor_id); $text = JText::_('COM_VIRTUEMART_VENDOR_FORM_INFO_LBL'); echo ''. JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_VENDOR_LBL'). ''; ?>
*/ ?> showRating) { $maxrating = VmConfig::get('vm_maximum_rating_scale', 5); if (empty($this->rating)) { ?> rating->rating * 24; //I don't use round as percetntage with works perfect, as for me ?> rating->rating) . '/' . $maxrating; ?>
rating->rating) . '/' . $maxrating) ?>" class="ratingbox" style="display:inline-block;">
productDisplayShipments)) { foreach ($this->productDisplayShipments as $productDisplayShipment) { echo $productDisplayShipment . '
'; } } if (is_array($this->productDisplayPayments)) { foreach ($this->productDisplayPayments as $productDisplayPayment) { echo $productDisplayPayment . '
'; } } // Product Price // the test is done in show_prices //if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) { echo $this->loadTemplate('showprices'); //} ?> product->prices) and !empty($this->product->images[0]) and $this->product->images[0]->file_is_downloadable==0 ) { // if (!VmConfig::get('use_as_catalog', 0) and !empty($this->product->prices['salesPrice'])) { echo $this->loadTemplate('addtocart'); // } // Add To Cart Button END ?> product->product_available_date,0,10); $current_date = date("Y-m-d"); if (($this->product->product_in_stock - $this->product->product_ordered) < 1) { if ($product_available_date != '0000-00-00' and $current_date < $product_available_date) { ?>
product->product_available_date, JText::_('DATE_FORMAT_LC4')); ?>
product->product_availability)) { ?>
'availability')) : JText::_(VmConfig::get('rised_availability')); ?>
product->product_availability)) { ?>
product->product_availability)) ? JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' . $this->product->product_availability, $this->product->product_availability, array('class' => 'availability')) : JText::_($this->product->product_availability); ?>
product->product_available_date, JText::_('DATE_FORMAT_LC4')); ?>
product->virtuemart_manufacturer_id)) { echo $this->loadTemplate('manufacturer'); } ?>
product->event->beforeDisplayContent; ?> product->product_desc)) { ?>
product->product_desc; ?>
product->customfieldsSorted['normal'])) { $this->position = 'normal'; echo $this->loadTemplate('customfields'); } // Product custom_fields END // Product Packaging $product_packaging = ''; if ($this->product->product_box) { ?>
product->product_box; ?>
product->images as $fkey => $file) { // Todo add downloadable files again // if( $file->filesize > 0.5) $filesize_display = ' ('. number_format($file->filesize, 2,',','.')." MB)"; // else $filesize_display = ' ('. number_format($file->filesize*1024, 2,',','.')." KB)"; /* Show pdf in a new Window, other file types will be offered as download */ // $target = stristr($file->file_mimetype, "pdf") ? "_blank" : "_self"; // $link = JRoute::_('index.php?view=productdetails&task=getfile&virtuemart_media_id='.$file->virtuemart_media_id.'&virtuemart_product_id='.$this->product->virtuemart_product_id); // echo JHTMl::_('link', $link, $file->file_title.$filesize_display, array('target' => $target)); // } if (!empty($this->product->customfieldsRelatedProducts)) { echo $this->loadTemplate('relatedproducts'); } // Product customfieldsRelatedProducts END if (!empty($this->product->customfieldsRelatedCategories)) { echo $this->loadTemplate('relatedcategories'); } // Product customfieldsRelatedCategories END // Show child categories if (VmConfig::get('showCategory', 1)) { echo $this->loadTemplate('showcategory'); } if (!empty($this->product->customfieldsSorted['onbot'])) { $this->position='onbot'; echo $this->loadTemplate('customfields'); } // Product Custom ontop end ?> product->event->afterDisplayContent; ?> loadTemplate('reviews'); ?>
productdetails/tmpl/default.xml000066600000002163151371757770012746 0ustar00 COM_VIRTUEMART_PRODUCTDETAILS_VIEW_DEFAULT_TITLE
productdetails/tmpl/default_pdf.php000066600000032173151371757770013572 0ustar00type)) { $document = JFactory::getDocument(); $document->setTitle($this->product->product_name); $document->setName($this->product->product_name); $document->setDescription( $this->product->product_s_desc); } /* Let's see if we found the product */ if (empty ( $this->product )) { echo JText::_ ( 'COM_VIRTUEMART_PRODUCT_NOT_FOUND' ); echo '

' . $this->continue_link_html; return; } ?>

product->product_name ?>

product->images) && count($this->product->images)>0) { echo $this->product->images[0]->displayMediaFull('class="product-image"',false); ?>
product->images as $image) { echo $image->displayMediaThumb('class="product-image"'); //'class="modal"' } ?>
product->product_s_desc)) { ?>
product->product_s_desc; ?>
product->virtuemart_vendor_id); $text = JText::_('COM_VIRTUEMART_VENDOR_FORM_INFO_LBL'); echo ''. JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_VENDOR_LBL'). ''; ?>
*/ ?> rating)? JText::_('COM_VIRTUEMART_UNRATED'):$this->rating->rating; echo JText::_('COM_VIRTUEMART_RATING') . $rating; // Product Price if ($this->show_prices) { ?>
product->product_unit && VmConfig::get ( 'price_show_packaging_pricelabel' )) { echo "" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE_PER_UNIT' ) . ' (' . $this->product->product_unit . "):"; } else { echo "" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . ""; } echo $this->currency->createPriceDiv ( 'variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices ); echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices ); ?>
product->product_availability)) { ?>
product->product_availability, $this->product->product_availability, array('class' => 'availability')); ?>
product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id.'&tmpl=component'); ?>
product->virtuemart_manufacturer_id)) { ?>
product->virtuemart_manufacturer_id.'&tmpl=component'); $text = $this->product->mf_name; /* Avoid JavaScript on PDF Output */ if (strtolower(JRequest::getWord('output')) == "pdf"){ echo JHTML::_('link', $link, $text); } else { ?>
product->product_desc)) { ?>
product->product_desc; ?>
product->customfields)) { ?>
product->customfields as $field){ ?>
custom_title != $custom_title) { ?> custom_title); ?> custom_tip, $field->custom_title, 'tooltip.png'); } ?> display ?> custom_field_desc) ?>
custom_title; } ?>
product->product_box) { ?>
product->product_box; ?>
product->images as $fkey => $file) { // Todo add downloadable files again // if( $file->filesize > 0.5) $filesize_display = ' ('. number_format($file->filesize, 2,',','.')." MB)"; // else $filesize_display = ' ('. number_format($file->filesize*1024, 2,',','.')." KB)"; /* Show pdf in a new Window, other file types will be offered as download */ // $target = stristr($file->file_mimetype, "pdf") ? "_blank" : "_self"; // $link = JRoute::_('index.php?view=productdetails&task=getfile&virtuemart_media_id='.$file->virtuemart_media_id.'&virtuemart_product_id='.$this->product->virtuemart_product_id); // echo JHTMl::_('link', $link, $file->file_title.$filesize_display, array('target' => $target)); // } ?> product->related && !empty($this->product->related)) { $iRelatedCol = 1; $iRelatedProduct = 1; $RelatedProducts_per_row = 4 ; $Relatedcellwidth = ' width'.floor ( 100 / $RelatedProducts_per_row ); $verticalseparator = " vertical-separator"; ?>
allowRating || $this->showReview) { $maxrating = VmConfig::get('vm_maximum_rating_scale',5); $ratingsShow = VmConfig::get('vm_num_ratings_show',3); // TODO add vm_num_ratings_show in vmConfig $starsPath = JURI::root().VmConfig::get('assets_general_path').'images/stars/'; $stars = array(); $showall = JRequest::getBool('showall', false); for ($num=0 ; $num <= $maxrating; $num++ ) { $title = (JText::_("VM_RATING_TITLE").' : '. $num . '/' . $maxrating) ; $stars[] = JHTML::image($starsPath.$num.'.gif', JText::_($num.'_STARS'), array("title" => $title) ); } ?>
showReview) { $alreadycommented = false; ?>

rating_reviews as $review ) { if ($i % 2 == 0) { $color = 'normal'; } else { $color = 'highlight'; } ?> rating_reviews)) { ?>
created_on, JText::_('DATE_FORMAT_LC')); ?> review_rating ] //Attention the review rating is the rating of the review itself, rating for the product is the vote !?>
comment; ?>
customer ?>
rating_reviews) < 1) { // "There are no reviews for this product" ?> rating_reviews) >= $ratingsShow ) { $attribute = array('class'=>'details', 'title'=>JText::_('COM_VIRTUEMART_MORE_REVIEWS')); echo JHTML::link($this->more_reviews, JText::_('COM_VIRTUEMART_MORE_REVIEWS'),$attribute); } } ?>
allowRating || $this->showReview) { ?>
productdetails/tmpl/mail_html_notify.php000066600000006576151371757770014663 0ustar00

'; /* GENERAL FOOTER FOR ALL MAILS */ $link = JURI::root().'index.php?option=com_virtuemart'; echo JText::_('COM_VIRTUEMART_MAIL_FOOTER' ) . ''.$this->vendor->vendor_name.''; echo '
'; echo $this->vendor->vendor_name .'
'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .'
'.$this->vendor->vendor_store_desc.'
'.$this->vendor->vendor_legal_info; ?>
productdetails/.htaccess000066600000000177151371757770011425 0ustar00 Order allow,deny Deny from all productdetails/index.html000066600000000054151371757770011616 0ustar00pluginresponse/metadata.xml000066600000000331151371757770012150 0ustar00 pluginresponse/.htaccess000066600000000177151371757770011454 0ustar00 Order allow,deny Deny from all pluginresponse/view.html.php000066600000003046151371757770012302 0ustar00getPathway(); $document = JFactory::getDocument(); // $paymentResponse = JRequest::getVar('paymentResponse', ''); //Why do you we allow raw here? // $paymentResponseHtml = JRequest::getVar('paymentResponseHtml','','default','STRING',JREQUEST_ALLOWRAW); $layoutName = $this->getLayout(); $document->setMetaData('robots','NOINDEX, NOFOLLOW, NOARCHIVE, NOSNIPPET'); parent::display($tpl); } } //no closing tagpluginresponse/index.html000066600000000000151371757770011634 0ustar00pluginresponse/tmpl/default.php000066600000001722151371757770012764 0ustar00" . $this->paymentResponse . ""; if ($this->paymentResponseHtml) { echo "
"; echo $this->paymentResponseHtml; echo "
"; } // add something??? pluginresponse/tmpl/index.html000066600000000000151371757770012610 0ustar00pluginresponse/tmpl/.htaccess000066600000000177151371757770012430 0ustar00 Order allow,deny Deny from all virtuemart/view.html.php000066600000014757151371757770011442 0ustar00setId(1); $vendor = $vendorModel->getVendor(); if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); if (VmConfig::get ('enable_content_plugin', 0)) { shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_store_desc'); shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_terms_of_service'); } $this->assignRef('vendor',$vendor); $document = JFactory::getDocument(); if(!VmConfig::get('shop_is_offline',0)){ $categoryModel = VmModel::getModel('category'); $productModel = VmModel::getModel('product'); $ratingModel = VmModel::getModel('ratings'); $productModel->withRating = $ratingModel->showRating(); $products = array(); $categoryId = JRequest::getInt('catid', 0); $categoryChildren = $categoryModel->getChildCategoryList($vendorId, $categoryId); $categoryModel->addImages($categoryChildren,1); $this->assignRef('categories', $categoryChildren); if(!class_exists('CurrencyDisplay'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'currencydisplay.php'); $currency = CurrencyDisplay::getInstance( ); $this->assignRef('currency', $currency); $products_per_row = VmConfig::get('homepage_products_per_row',3); $featured_products_rows = VmConfig::get('featured_products_rows',1); $featured_products_count = $products_per_row * $featured_products_rows; if (!empty($featured_products_count) and VmConfig::get('show_featured', 1)) { $products['featured'] = $productModel->getProductListing('featured', $featured_products_count); $productModel->addImages($products['featured'],1); } $latest_products_rows = VmConfig::get('latest_products_rows'); $latest_products_count = $products_per_row * $latest_products_rows; if (!empty($latest_products_count) and VmConfig::get('show_latest', 1)) { $products['latest']= $productModel->getProductListing('latest', $latest_products_count); $productModel->addImages($products['latest'],1); } $topTen_products_rows = VmConfig::get('topTen_products_rows'); $topTen_products_count = $products_per_row * $topTen_products_rows; if (!empty($topTen_products_count) and VmConfig::get('show_topTen', 1)) { $products['topten']= $productModel->getProductListing('topten', $topTen_products_count); $productModel->addImages($products['topten'],1); } $recent_products_rows = VmConfig::get('recent_products_rows'); $recent_products_count = $products_per_row * $recent_products_rows; $recent_products = $productModel->getProductListing('recent'); if (!empty($recent_products_count) and VmConfig::get('show_recent', 1) and !empty($recent_products)) { $products['recent']= $productModel->getProductListing('recent', $recent_products_count); $productModel->addImages($products['recent'],1); } $this->assignRef('products', $products); if(!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'permissions.php'); $showBasePrice = Permissions::getInstance()->check('admin'); //todo add config settings $this->assignRef('showBasePrice', $showBasePrice); // $layoutName = VmConfig::get('vmlayout','default'); $layout = VmConfig::get('vmlayout','default'); $this->setLayout($layout); // Add feed links if ($products && (VmConfig::get('feed_featured_published', 0)==1 or VmConfig::get('feed_topten_published', 0)==1 or VmConfig::get('feed_latest_published', 0)==1)) { $link = '&format=feed&limitstart='; $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0'); $document->addHeadLink(JRoute::_($link . '&type=rss', FALSE), 'alternate', 'rel', $attribs); $attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0'); $document->addHeadLink(JRoute::_($link . '&type=atom', FALSE), 'alternate', 'rel', $attribs); } } else { $this->setLayout('off_line'); } $error = JRequest::getInt('error',0); //Todo this may not work everytime as expected, because the error must be set in the redirect links. if(!empty($error)){ $document->setTitle(JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND').JText::sprintf('COM_VIRTUEMART_HOME',$vendor->vendor_store_name)); } else { if(empty($vendor->customtitle)){ $app = JFactory::getApplication(); $menus = $app->getMenu(); $menu = $menus->getActive(); if ($menu){ $menuTitle = $menu->params->get('page_title'); if(empty($menuTitle)) { $menuTitle = JText::sprintf('COM_VIRTUEMART_HOME',$vendor->vendor_store_name); } $document->setTitle($menuTitle); } else { $title = JText::sprintf('COM_VIRTUEMART_HOME',$vendor->vendor_store_name); $document->setTitle($title); } } else { $document->setTitle($vendor->customtitle); } if(!empty($vendor->metadesc)) $document->setMetaData('description',$vendor->metadesc); if(!empty($vendor->metakey)) $document->setMetaData('keywords',$vendor->metakey); if(!empty($vendor->metarobot)) $document->setMetaData('robots',$vendor->metarobot); if(!empty($vendor->metaauthor)) $document->setMetaData('author',$vendor->metaauthor); } $template = VmConfig::get('vmtemplate',0); shopFunctionsF::setTemplate($template); parent::display($tpl); } } # pure php no closing tagvirtuemart/view.feed.php000066600000012643151371757770011371 0ustar00getProductListing ('featured', $featured_nb); } if (VmConfig::get ('feed_latest_published', 1)) { $latest_nb = VmConfig::get('feed_latest_nb'); $latest = $productModel->getProductListing ('latest', $latest_nb); } if ( VmConfig::get ('feed_topten_published', 1)) { $topTen_nb = VmConfig::get('feed_topten_nb'); $topten = $productModel->getProductListing ('topten',$topTen_nb); } $products = array_merge ($products, $featured, $latest, $topten); if ($feed_show_images == 1) { $productModel->addImages ($products, 1); } if ($products && $feed_show_prices == 1) { $currency = CurrencyDisplay::getInstance (); } foreach ($products as $product) { $title = $this->escape ($product->product_name); $title = html_entity_decode ($title, ENT_COMPAT, 'UTF-8'); $description = ""; if ($feed_show_images == 1) { $effect = " "; $return = true; $withDescr = false; $absUrl = true; $description = $product->images[0]->displayMediaThumb ('style="margin-right: 10px; margin-bottom: 10px; float: left;"', false, $effect, $return, $withDescr, $absUrl); } if ($feed_show_description == 1) { if ($feed_description_type == 'product_s_desc') { $description .= $product->product_s_desc; } else { if ($feed_max_text_length > 0) { $description .= shopFunctionsF::limitStringByWord ($product->product_desc, $feed_max_text_length); } else { $description .= $product->product_desc; } } } if ($feed_show_prices == 1 and $show_prices == 1) { $description .= $currency->createPriceDiv ('variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $product->prices); if (round ($product->prices['basePriceWithTax'], $currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) { $description .= '' . $currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices) . ""; } if (round ($product->prices['salesPriceWithDiscount'], $currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) { $description .= $currency->createPriceDiv ('salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $product->prices); } $description .= $currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices); $description .= $currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices); $description .= $currency->createPriceDiv ('discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $product->prices); $description .= $currency->createPriceDiv ('taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $product->prices); $unitPriceDescription = JText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', $product->product_unit); $description .= $currency->createPriceDiv ('unitPrice', $unitPriceDescription, $product->prices); } if ($feed_description_type == 'product_s_desc' OR $feed_max_text_length > 0) { $description .= '

link) . '">' . JText::_ ('COM_VIRTUEMART_FEED_READMORE') . '

'; } $item = new JFeedItem(); $item->title = $title; $item->link = $product->link; $item->date = $product->created_on; $item->description = '
' . $description . '
'; $item->category = $product->virtuemart_catgory_id; $doc->addItem ($item); } } }virtuemart/tmpl/default_products.php000066600000011543151371757770014036 0ustar00products as $type => $productList ) { // Calculating Products Per Row $products_per_row = VmConfig::get ( 'homepage_products_per_row', 3 ) ; $cellwidth = ' width'.floor ( 100 / $products_per_row ); // Category and Columns Counter $col = 1; $nb = 1; $productTitle = JText::_('COM_VIRTUEMART_'.$type.'_PRODUCT'); ?>

$products_per_row) { ?>

virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id, FALSE ), $product->product_name, array ('title' => $product->product_name ) ); ?>

images) { //echo JHTML::_ ( 'link', JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id, FALSE ), $product->images[0]->displayMediaThumb( 'class="featuredProductImage"',true,'class="modal"' ) ); echo $product->images[0]->displayMediaThumb( 'class="featuredProductImage"',true,'class="modal"' ) ; } ?>
product_unit && VmConfig::get('vm_price_show_packaging_pricelabel')) { // echo "". JText::_('COM_VIRTUEMART_CART_PRICE_PER_UNIT').' ('.$featProduct->product_unit."):"; // } else echo "". JText::_('COM_VIRTUEMART_CART_PRICE'). ": "; if ($this->showBasePrice) { echo $this->currency->createPriceDiv( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $product->prices ); echo $this->currency->createPriceDiv( 'basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $product->prices ); } echo $this->currency->createPriceDiv( 'variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $product->prices ); if (round($product->prices['basePriceWithTax'],$this->currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) { echo '
' . $this->currency->createPriceDiv( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices ) . "
"; } if (round($product->prices['salesPriceWithDiscount'],$this->currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) { echo $this->currency->createPriceDiv( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $product->prices ); } echo $this->currency->createPriceDiv( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices ); if ($product->prices['discountedPriceWithoutTax'] != $product->prices['priceWithoutTax']) { echo $this->currency->createPriceDiv( 'discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices ); } else { echo $this->currency->createPriceDiv( 'priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices ); } echo $this->currency->createPriceDiv( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $product->prices ); echo $this->currency->createPriceDiv( 'taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $product->prices ); } ?>
virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id , FALSE), JText::_ ( 'COM_VIRTUEMART_PRODUCT_DETAILS' ), array ('title' => $product->product_name, 'class' => 'product-details' ) ); ?>
vendor->vendor_store_desc) and VmConfig::get('show_store_desc', 1)) { ?>
vendor->vendor_store_desc; ?>
categories and VmConfig::get('show_categories', 1)) echo $this->loadTemplate('categories'); # Show template for : topten,Featured, Latest Products if selected in config BE if (!empty($this->products) ) { ?> loadTemplate('products'); } ?>virtuemart/tmpl/default.xml000066600000000606151371757770012122 0ustar00 COM_VIRTUEMART_VIRTUEMART_VIEW_DEFAULT_TITLE virtuemart/tmpl/default_categories.php000066600000003772151371757770014325 0ustar00

categories as $category) { // Show the horizontal seperator if ($iCol == 1 && $iCategory > $categories_per_row) { ?>
virtuemart_category_id, FALSE); // Show Category ?>
virtuemart/tmpl/index.html000066600000000054151371757770011746 0ustar00virtuemart/tmpl/.htaccess000066600000000177151371757770011555 0ustar00 Order allow,deny Deny from all virtuemart/tmpl/off_line.php000066600000001364151371757770012250 0ustar00virtuemart/.htaccess000066600000000177151371757770010601 0ustar00 Order allow,deny Deny from all cart/view.html.php000066600000036431151371757770010162 0ustar00getPathway(); $document = JFactory::getDocument(); $document->setMetaData('robots','NOINDEX, NOFOLLOW, NOARCHIVE, NOSNIPPET'); // add javascript for price and cart, need even for quantity buttons, so we need it almost anywhere //vmJsApi::jPrice(); $layoutName = $this->getLayout(); if (!$layoutName) $layoutName = JRequest::getWord('layout', 'default'); $this->assignRef('layoutName', $layoutName); $format = JRequest::getWord('format'); if (!class_exists('VirtueMartCart')) require(JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php'); $cart = VirtueMartCart::getCart(); //$cart->getCartPrices(); $this->assignRef('cart', $cart); //Why is this here, when we have view.raw.php if ($format == 'raw') { $cart->prepareCartViewData(); JRequest::setVar('layout', 'mini_cart'); $this->setLayout('mini_cart'); $this->prepareContinueLink(); } /* if($layoutName=='edit_coupon'){ $cart->prepareCartViewData(); $this->lSelectCoupon(); $pathway->addItem(JText::_('COM_VIRTUEMART_CART_OVERVIEW'),JRoute::_('index.php?option=com_virtuemart&view=cart')); $pathway->addItem(JText::_('COM_VIRTUEMART_CART_SELECTCOUPON')); $document->setTitle(JText::_('COM_VIRTUEMART_CART_SELECTCOUPON')); } else */ if ($layoutName == 'select_shipment') { $cart->prepareCartViewData(); if (!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php'); JPluginHelper::importPlugin('vmshipment'); $this->lSelectShipment(); $pathway->addItem(JText::_('COM_VIRTUEMART_CART_OVERVIEW'), JRoute::_('index.php?option=com_virtuemart&view=cart', FALSE)); $pathway->addItem(JText::_('COM_VIRTUEMART_CART_SELECTSHIPMENT')); $document->setTitle(JText::_('COM_VIRTUEMART_CART_SELECTSHIPMENT')); } else if ($layoutName == 'select_payment') { /* Load the cart helper */ // $cartModel = VmModel::getModel('cart'); $cart->prepareCartViewData(); $this->lSelectPayment(); $pathway->addItem(JText::_('COM_VIRTUEMART_CART_OVERVIEW'), JRoute::_('index.php?option=com_virtuemart&view=cart', FALSE)); $pathway->addItem(JText::_('COM_VIRTUEMART_CART_SELECTPAYMENT')); $document->setTitle(JText::_('COM_VIRTUEMART_CART_SELECTPAYMENT')); } else if ($layoutName == 'order_done') { VmConfig::loadJLang('com_virtuemart_shoppers', TRUE); $this->lOrderDone(); $pathway->addItem(JText::_('COM_VIRTUEMART_CART_THANKYOU')); $document->setTitle(JText::_('COM_VIRTUEMART_CART_THANKYOU')); } else if ($layoutName == 'default') { VmConfig::loadJLang('com_virtuemart_shoppers', TRUE); $cart->prepareCartViewData(); if (VmConfig::get('enable_content_plugin', 0)) { shopFunctionsF::triggerContentPlugin($cart->vendor, 'vendor','vendor_terms_of_service'); } $cart->prepareAddressRadioSelection(); $this->prepareContinueLink(); $this->lSelectCoupon(); if (!class_exists ('CurrencyDisplay')) { require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php'); } $currencyDisplay = CurrencyDisplay::getInstance($this->cart->pricesCurrency); $this->assignRef('currencyDisplay',$currencyDisplay); $totalInPaymentCurrency = $this->getTotalInPaymentCurrency(); $checkoutAdvertise =$this->getCheckoutAdvertise(); if (!$cart->_inCheckOut and !VmConfig::get('use_as_catalog', 0)) { $cart->checkout(false); } if ($cart->getDataValidated()) { $pathway->addItem(JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU')); $document->setTitle(JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU')); $text = JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'); $checkout_task = 'confirm'; } else { $pathway->addItem(JText::_('COM_VIRTUEMART_CART_OVERVIEW')); $document->setTitle(JText::_('COM_VIRTUEMART_CART_OVERVIEW')); $text = JText::_('COM_VIRTUEMART_CHECKOUT_TITLE'); $checkout_task = 'checkout'; } $this->assignRef('checkout_task', $checkout_task); if (VmConfig::get('oncheckout_opc', 1)) { if (!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php'); JPluginHelper::importPlugin('vmshipment'); JPluginHelper::importPlugin('vmpayment'); $this->lSelectShipment(); $this->lSelectPayment(); } else { $this->checkPaymentMethodsConfigured(); $this->checkShipmentMethodsConfigured(); } if ($cart->virtuemart_shipmentmethod_id) { $shippingText = JText::_('COM_VIRTUEMART_CART_CHANGE_SHIPPING'); } else { $shippingText = JText::_('COM_VIRTUEMART_CART_EDIT_SHIPPING'); } $this->assignRef('select_shipment_text', $shippingText); if ($cart->virtuemart_paymentmethod_id) { $paymentText = JText::_('COM_VIRTUEMART_CART_CHANGE_PAYMENT'); } else { $paymentText = JText::_('COM_VIRTUEMART_CART_EDIT_PAYMENT'); } $this->assignRef('select_payment_text', $paymentText); if (!VmConfig::get('use_as_catalog')) { //$checkout_link_html = '' . $text . ''; $checkout_link_html = ''; } else { $checkout_link_html = ''; } $this->assignRef('checkout_link_html', $checkout_link_html); //set order language $lang = JFactory::getLanguage(); $order_language = $lang->getTag(); $this->assignRef('order_language',$order_language); } //dump ($cart,'cart'); $useSSL = VmConfig::get('useSSL', 0); $useXHTML = false; $this->assignRef('useSSL', $useSSL); $this->assignRef('useXHTML', $useXHTML); $this->assignRef('totalInPaymentCurrency', $totalInPaymentCurrency); $this->assignRef('checkoutAdvertise', $checkoutAdvertise); // @max: quicknirty $cart->setCartIntoSession(); shopFunctionsF::setVmTemplate($this, 0, 0, $layoutName); //We never want that the cart is indexed $document->setMetaData('robots','NOINDEX, NOFOLLOW, NOARCHIVE, NOSNIPPET'); // vmdebug('my cart ',$cart); parent::display($tpl); } private function prepareContinueLink() { // Get a continue link */ $virtuemart_category_id = shopFunctionsF::getLastVisitedCategoryId(); $categoryLink = ''; if ($virtuemart_category_id) { $categoryLink = '&virtuemart_category_id=' . $virtuemart_category_id; } $continue_link = JRoute::_('index.php?option=com_virtuemart&view=category' . $categoryLink, FALSE); $continue_link_html = '' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . ''; $this->assignRef('continue_link_html', $continue_link_html); $this->assignRef('continue_link', $continue_link); } private function lSelectCoupon() { $this->couponCode = (isset($this->cart->couponCode) ? $this->cart->couponCode : ''); $coupon_text = $this->cart->couponCode ? JText::_('COM_VIRTUEMART_COUPON_CODE_CHANGE') : JText::_('COM_VIRTUEMART_COUPON_CODE_ENTER'); $this->assignRef('coupon_text', $coupon_text); } /* * lSelectShipment * find al shipment rates available for this cart * * @author Valerie Isaksen */ private function lSelectShipment() { $found_shipment_method=false; $shipment_not_found_text = JText::_('COM_VIRTUEMART_CART_NO_SHIPPING_METHOD_PUBLIC'); $this->assignRef('shipment_not_found_text', $shipment_not_found_text); $this->assignRef('found_shipment_method', $found_shipment_method); $shipments_shipment_rates=array(); if (!$this->checkShipmentMethodsConfigured()) { $this->assignRef('shipments_shipment_rates',$shipments_shipment_rates); return; } $selectedShipment = (empty($this->cart->virtuemart_shipmentmethod_id) ? 0 : $this->cart->virtuemart_shipmentmethod_id); $shipments_shipment_rates = array(); if (!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php'); JPluginHelper::importPlugin('vmshipment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmDisplayListFEShipment', array( $this->cart, $selectedShipment, &$shipments_shipment_rates)); // if no shipment rate defined $found_shipment_method =count($shipments_shipment_rates); if ($found_shipment_method== 0 AND empty($this->cart->BT)) { $redirectMsg = JText::_('COM_VIRTUEMART_CART_ENTER_ADDRESS_FIRST'); $this->cart->setShipment(0); if (VmConfig::get('oncheckout_opc', 1)) { vmInfo($redirectMsg); } else { $mainframe = JFactory::getApplication(); $mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscheckout&addrtype=BT'), $redirectMsg); } } else { } $shipment_not_found_text = JText::_('COM_VIRTUEMART_CART_NO_SHIPPING_METHOD_PUBLIC'); $this->assignRef('shipment_not_found_text', $shipment_not_found_text); $this->assignRef('shipments_shipment_rates', $shipments_shipment_rates); $this->assignRef('found_shipment_method', $found_shipment_method); return; } /* * lSelectPayment * find al payment available for this cart * * @author Valerie Isaksen */ private function lSelectPayment() { $payment_not_found_text=''; $this->assignRef('payment_not_found_text', $payment_not_found_text); $paymentplugins_payments = array(); $this->assignRef('paymentplugins_payments', $paymentplugins_payments); if (!$found_payment_method = $this->checkPaymentMethodsConfigured()) { //return false; } else { $selectedPayment = empty($this->cart->virtuemart_paymentmethod_id) ? 0 : $this->cart->virtuemart_paymentmethod_id; if(!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS.DS.'vmpsplugin.php'); JPluginHelper::importPlugin('vmpayment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmDisplayListFEPayment', array($this->cart, $selectedPayment, &$paymentplugins_payments)); // if no payment defined $found_payment_method =count($paymentplugins_payments); } $this->assignRef('found_payment_method', $found_payment_method); if (!$found_payment_method) { $link=''; // todo $payment_not_found_text = JText::sprintf('COM_VIRTUEMART_CART_NO_PAYMENT_METHOD_PUBLIC', ''.$link.''); $this->assignRef('payment_not_found_text', $payment_not_found_text); $this->cart->setPaymentMethod(0); } else if ($found_payment_method== 0 AND empty($this->cart->BT)) { $redirectMsg = JText::_('COM_VIRTUEMART_CART_ENTER_ADDRESS_FIRST'); if (VmConfig::get('oncheckout_opc', 1)) { vmInfo($redirectMsg); } else { $mainframe = JFactory::getApplication(); $mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscheckout&addrtype=BT'), $redirectMsg); } } else { } } private function getTotalInPaymentCurrency() { if (empty($this->cart->virtuemart_paymentmethod_id)) { return null; } if (!$this->cart->paymentCurrency or ($this->cart->paymentCurrency==$this->cart->pricesCurrency)) { return null; } $paymentCurrency = CurrencyDisplay::getInstance($this->cart->paymentCurrency); $totalInPaymentCurrency = $paymentCurrency->priceDisplay( $this->cart->pricesUnformatted['billTotal'],$this->cart->paymentCurrency) ; $currencyDisplay = CurrencyDisplay::getInstance($this->cart->pricesCurrency); // $this->assignRef('currencyDisplay',$currencyDisplay); return $totalInPaymentCurrency; } /* * Trigger to place Coupon, payment, shipment advertisement on the cart */ private function getCheckoutAdvertise() { $checkoutAdvertise=array(); JPluginHelper::importPlugin('vmcoupon'); JPluginHelper::importPlugin('vmpayment'); JPluginHelper::importPlugin('vmshipment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmOnCheckoutAdvertise', array( $this->cart, &$checkoutAdvertise)); return $checkoutAdvertise; } private function lOrderDone() { $display_title = vRequest::getBool('display_title',true); $this->assignRef('display_title', $display_title); $this->html = vRequest::get('html', JText::_('COM_VIRTUEMART_ORDER_PROCESSED') ); //Show Thank you page or error due payment plugins like paypal express } private function checkPaymentMethodsConfigured() { //For the selection of the payment method we need the total amount to pay. $paymentModel = VmModel::getModel('Paymentmethod'); $this->payments = $paymentModel->getPayments(true, false); //vmdebug('checkPaymentMethodsConfigured',$this->payments); if (empty($this->payments)) { $text = ''; if (!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'permissions.php'); if (Permissions::getInstance()->check("admin,storeadmin")) { $uri = JFactory::getURI(); $link = $uri->root() . 'administrator/index.php?option=com_virtuemart&view=paymentmethod'; $text = JText::sprintf('COM_VIRTUEMART_NO_PAYMENT_METHODS_CONFIGURED_LINK', '' . $link . ''); } vmInfo('COM_VIRTUEMART_NO_PAYMENT_METHODS_CONFIGURED', $text); $tmp = 0; $this->assignRef('found_payment_method', $tmp); $this->cart->virtuemart_paymentmethod_id = 0; return false; } return true; } private function checkShipmentMethodsConfigured() { //For the selection of the shipment method we need the total amount to pay. $shipmentModel = VmModel::getModel('Shipmentmethod'); $shipments = $shipmentModel->getShipments(); //vmdebug('checkShipmentMethodsConfigured',$shipments); if (empty($shipments)) { $text = ''; if (!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'permissions.php'); if (Permissions::getInstance()->check("admin,storeadmin")) { $uri = JFactory::getURI(); $link = $uri->root() . 'administrator/index.php?option=com_virtuemart&view=shipmentmethod'; $text = JText::sprintf('COM_VIRTUEMART_NO_SHIPPING_METHODS_CONFIGURED_LINK', '' . $link . ''); } vmInfo('COM_VIRTUEMART_NO_SHIPPING_METHODS_CONFIGURED', $text); $tmp = 0; $this->assignRef('found_shipment_method', $tmp); $this->cart->virtuemart_shipmentmethod_id = 0; return false; } return true; } function getUserList() { $db = JFactory::getDbo(); $q = 'SELECT * FROM #__users ORDER BY name'; $db->setQuery($q); $result = $db->loadObjectList(); foreach($result as $user) { $user->displayedName = $user->name .'  ( '. $user->username .' )'; } return $result; } } //no closing tag cart/index.html000066600000000054151371757770007521 0ustar00cart/view.json.php000066600000004653151371757770010170 0ustar00getLayout(); if (!$layoutName) $layoutName = JRequest::getWord('layout', 'default'); $this->assignRef('layoutName', $layoutName); $format = JRequest::getWord('format'); if (!class_exists('VirtueMartCart')) require(JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php'); $cart = VirtueMartCart::getCart(); $this->assignRef('cart', $cart); $this->prepareContinueLink(); shopFunctionsF::setVmTemplate($this, 0, 0, $layoutName); parent::display($tpl); } private function prepareContinueLink() { // Get a continue link $menuid = JRequest::getInt('Itemid',''); if(!empty($menuid)){ $menuid = '&Itemid='.$menuid; } else $menuid = ''; $virtuemart_category_id = shopFunctionsF::getLastVisitedCategoryId(); $categoryLink = ''; if ($virtuemart_category_id) { $categoryLink = '&virtuemart_category_id=' . $virtuemart_category_id; } $continue_link = JRoute::_('index.php?option=com_virtuemart&view=category' . $categoryLink.$menuid, FALSE); $continue_link_html = '' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . ''; $this->assignRef('continue_link_html', $continue_link_html); $this->assignRef('continue_link', $continue_link); $cart_link = JRoute::_('index.php?option=com_virtuemart&view=cart'.$menuid, FALSE); $this->assignRef('cart_link', $cart_link); } } //no closing tag cart/tmpl/select_payment.php000066600000005111151371757770012224 0ustar00' . JText::_('COM_VIRTUEMART_USER_FORM_CART_STEP3') . ''; } if ($this->layoutName!='default') { $headerLevel = 1; if($this->cart->getInCheckOut()){ $buttonclass = 'button vm-button-correct'; } else { $buttonclass = 'default'; } ?>
".JText::_('COM_VIRTUEMART_CART_SELECT_PAYMENT').""; ?>
  layoutName!='default') { ?>
found_payment_method) { echo "
"; foreach ($this->paymentplugins_payments as $paymentplugin_payments) { if (is_array($paymentplugin_payments)) { foreach ($paymentplugin_payments as $paymentplugin_payment) { echo $paymentplugin_payment.'
'; } } } echo "
"; } else { echo "

".$this->payment_not_found_text."

"; } if ($this->layoutName!='default') { ?>
cart/tmpl/perror.php000066600000001275151371757770010530 0ustar00' . $this->cart->getError() . '

'; echo '' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . ''; echo '
'.$this->errorMsg.'
'; ?>
cart/tmpl/select_shipment.php000066600000005227151371757770012406 0ustar00' . JText::_('COM_VIRTUEMART_USER_FORM_CART_STEP2') . ''; } if ($this->layoutName!='default') { $headerLevel = 1; if($this->cart->getInCheckOut()){ $buttonclass = 'button vm-button-correct'; } else { $buttonclass = 'default'; } ?>
".JText::_('COM_VIRTUEMART_CART_SELECT_SHIPMENT').""; ?>
  layoutName!='default') { ?>
found_shipment_method ) { echo "
\n"; // if only one Shipment , should be checked by default foreach ($this->shipments_shipment_rates as $shipment_shipment_rates) { if (is_array($shipment_shipment_rates)) { foreach ($shipment_shipment_rates as $shipment_shipment_rate) { echo $shipment_shipment_rate."
\n"; } } } echo "
\n"; } else { echo "".$this->shipment_not_found_text.""; } if ($this->layoutName!='default') { ?>
cart/tmpl/.htaccess000066600000000177151371757770010304 0ustar00 Order allow,deny Deny from all cart/tmpl/default_pricelist.php000066600000044473151371757770012730 0ustar00
cart->BTaddress['fields'] as $item) { if (!empty($item['value'])) { if ($item['name'] === 'agreed') { $item['value'] = ($item['value'] === 0) ? JText::_ ('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_NO') : JText::_ ('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_YES'); } ?> escape ($item['value']) ?>
cart->STaddress['fields'])) { echo JText::sprintf ('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_EXPLAIN', JText::_ ('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL')); } else { if (!class_exists ('VmHtml')) { require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php'); } echo JText::_ ('COM_VIRTUEMART_USER_FORM_ST_SAME_AS_BT'); echo VmHtml::checkbox ('STsameAsBTjs', $this->cart->STsameAsBT) . '
'; ?>
cart->STaddress['fields'] as $item) { if (!empty($item['value'])) { ?> escape ($item['value']) ?> escape ($item['value']) ?>
cart->lists['current_id'])) { $this->cart->lists['current_id'] = 0; } ?>
cart->products',$this->cart->products); foreach ($this->cart->products as $pkey => $prow) { ?> cart->cartData['DBTaxRulesBill'] as $rule) { ?> cart->cartData['taxRulesBill'] as $rule) { ?> cart->cartData['DATaxRulesBill'] as $rule) { ?> cart->automaticSelectedShipment) { ?> */ ?> cart->pricesUnformatted['salesPrice']>0.0 ) { ?> cart->automaticSelectedPayment) { ?> totalInPaymentCurrency) { ?>
/ " . JText::_ ('COM_VIRTUEMART_CART_SUBTOTAL_TAX_AMOUNT') . '' ?> " . JText::_ ('COM_VIRTUEMART_CART_SUBTOTAL_DISCOUNT_AMOUNT') . '' ?>
virtuemart_media_id) { ?> image)) { echo $prow->image->displayMediaThumb ('', FALSE); } ?> url, $prow->product_name) . $prow->customfields; ?> product_sku ?> cart->pricesUnformatted[$pkey]['discountedPriceWithoutTax'] != $this->cart->pricesUnformatted[$pkey]['priceWithoutTax']) { echo '' . $this->currencyDisplay->createPriceDiv ('basePriceVariant', '', $this->cart->pricesUnformatted[$pkey], TRUE, FALSE) . '
'; } if ($this->cart->pricesUnformatted[$pkey]['discountedPriceWithoutTax']) { echo $this->currencyDisplay->createPriceDiv ('discountedPriceWithoutTax', '', $this->cart->pricesUnformatted[$pkey], FALSE, FALSE); } else { echo $this->currencyDisplay->createPriceDiv ('basePriceVariant', '', $this->cart->pricesUnformatted[$pkey], FALSE, FALSE); } // echo $prow->salesPrice ; ?>
min_order_level; if ($prow->step_order_level) $step=$prow->step_order_level; else $step=1; if($step==0) $step=1; $alert=JText::sprintf ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED', $step); ?> " . $this->currencyDisplay->createPriceDiv ('taxAmount', '', $this->cart->pricesUnformatted[$pkey], FALSE, FALSE, $prow->quantity) . "" ?> " . $this->currencyDisplay->createPriceDiv ('discountAmount', '', $this->cart->pricesUnformatted[$pkey], FALSE, FALSE, $prow->quantity) . "" ?> cart->pricesUnformatted[$pkey]['basePriceWithTax']) && $this->cart->pricesUnformatted[$pkey]['basePriceWithTax'] != $this->cart->pricesUnformatted[$pkey]['salesPrice']) { echo '' . $this->currencyDisplay->createPriceDiv ('basePriceWithTax', '', $this->cart->pricesUnformatted[$pkey], TRUE, FALSE, $prow->quantity) . '
'; } elseif (VmConfig::get ('checkout_show_origprice', 1) && empty($this->cart->pricesUnformatted[$pkey]['basePriceWithTax']) && $this->cart->pricesUnformatted[$pkey]['basePriceVariant'] != $this->cart->pricesUnformatted[$pkey]['salesPrice']) { echo '' . $this->currencyDisplay->createPriceDiv ('basePriceVariant', '', $this->cart->pricesUnformatted[$pkey], TRUE, FALSE, $prow->quantity) . '
'; } echo $this->currencyDisplay->createPriceDiv ('salesPrice', '', $this->cart->pricesUnformatted[$pkey], FALSE, FALSE, $prow->quantity) ?>
 
" . $this->currencyDisplay->createPriceDiv ('taxAmount', '', $this->cart->pricesUnformatted, FALSE) . "" ?> " . $this->currencyDisplay->createPriceDiv ('discountAmount', '', $this->cart->pricesUnformatted, FALSE) . "" ?> currencyDisplay->createPriceDiv ('salesPrice', '', $this->cart->pricesUnformatted, FALSE) ?>
layoutName) && $this->layoutName == 'default') { // echo JHTML::_('link', JRoute::_('index.php?view=cart&task=edit_coupon',$this->useXHTML,$this->useSSL), JText::_('COM_VIRTUEMART_CART_EDIT_COUPON')); echo $this->loadTemplate ('coupon'); } ?> cart->cartData['couponCode'])) { ?> cart->cartData['couponCode']; echo $this->cart->cartData['couponDescr'] ? (' (' . $this->cart->cartData['couponDescr'] . ')') : ''; ?> currencyDisplay->createPriceDiv ('couponTax', '', $this->cart->pricesUnformatted['couponTax'], FALSE); ?> currencyDisplay->createPriceDiv ('salesPriceCoupon', '', $this->cart->pricesUnformatted['salesPriceCoupon'], FALSE); ?>  
currencyDisplay->createPriceDiv ($rule['virtuemart_calc_id'] . 'Diff', '', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'] . 'Diff'], FALSE); ?> currencyDisplay->createPriceDiv ($rule['virtuemart_calc_id'] . 'Diff', '', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'] . 'Diff'], FALSE); ?>
currencyDisplay->createPriceDiv ($rule['virtuemart_calc_id'] . 'Diff', '', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'] . 'Diff'], FALSE); ?> currencyDisplay->createPriceDiv ($rule['virtuemart_calc_id'] . 'Diff', '', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'] . 'Diff'], FALSE); ?>
currencyDisplay->createPriceDiv ($rule['virtuemart_calc_id'] . 'Diff', '', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'] . 'Diff'], FALSE); ?> currencyDisplay->createPriceDiv ($rule['virtuemart_calc_id'] . 'Diff', '', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'] . 'Diff'], FALSE); ?>
cart->cartData['shipmentName']; ?>
layoutName) && $this->layoutName == 'default' && !$this->cart->automaticSelectedShipment) { if (VmConfig::get('oncheckout_opc', 1)) { $previouslayout = $this->setLayout('select'); echo $this->loadTemplate('shipment'); $this->setLayout($previouslayout); } else { echo JHTML::_('link', JRoute::_('index.php?view=cart&task=edit_shipment', $this->useXHTML, $this->useSSL), $this->select_shipment_text, 'class=""'); } } else { echo JText::_ ('COM_VIRTUEMART_CART_SHIPPING'); }?>
cart->cartData['shipmentName']; ?> " . $this->currencyDisplay->createPriceDiv ('shipmentTax', '', $this->cart->pricesUnformatted['shipmentTax'], FALSE) . ""; ?> cart->pricesUnformatted['salesPriceShipment'] < 0) echo $this->currencyDisplay->createPriceDiv ('salesPriceShipment', '', $this->cart->pricesUnformatted['salesPriceShipment'], FALSE); ?> currencyDisplay->createPriceDiv ('salesPriceShipment', '', $this->cart->pricesUnformatted['salesPriceShipment'], FALSE); ?>
cart->cartData['paymentName']; ?>
layoutName) && $this->layoutName == 'default') { if (VmConfig::get('oncheckout_opc', 1)) { $previouslayout = $this->setLayout('select'); echo $this->loadTemplate('payment'); $this->setLayout($previouslayout); } else { echo JHTML::_('link', JRoute::_('index.php?view=cart&task=editpayment', $this->useXHTML, $this->useSSL), $this->select_payment_text, 'class=""'); } } else { echo JText::_ ('COM_VIRTUEMART_CART_PAYMENT'); } ?>
cart->cartData['paymentName']; ?> " . $this->currencyDisplay->createPriceDiv ('paymentTax', '', $this->cart->pricesUnformatted['paymentTax'], FALSE) . ""; ?> cart->pricesUnformatted['salesPricePayment'] < 0) echo $this->currencyDisplay->createPriceDiv ('salesPricePayment', '', $this->cart->pricesUnformatted['salesPricePayment'], FALSE); ?> currencyDisplay->createPriceDiv ('salesPricePayment', '', $this->cart->pricesUnformatted['salesPricePayment'], FALSE); ?>
 
: " . $this->currencyDisplay->createPriceDiv ('billTaxAmount', '', $this->cart->pricesUnformatted['billTaxAmount'], FALSE) . "" ?> " . $this->currencyDisplay->createPriceDiv ('billDiscountAmount', '', $this->cart->pricesUnformatted['billDiscountAmount'], FALSE) . "" ?>
currencyDisplay->createPriceDiv ('billTotal', '', $this->cart->pricesUnformatted['billTotal'], FALSE); ?>
: totalInPaymentCurrency; ?>
cart/tmpl/order_done.php000066600000001356151371757770011337 0ustar00display_title) { echo "

".JText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU')."

"; } echo $this->html; cart/tmpl/index.html000066600000000054151371757770010475 0ustar00cart/tmpl/default_coupon.php000066600000003355151371757770012227 0ustar00layoutName!='default') { ?>
layoutName!='default') { ?>
cart/tmpl/mini_cart.php000066600000002026151371757770011157 0ustar00
cart/tmpl/padded.php000066600000003466151371757770010444 0ustar00continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . ''; echo '' . JText::_('COM_VIRTUEMART_CART_SHOW') . ''; if($this->products){ foreach($this->products as $product){ echo '

'.JText::sprintf('COM_VIRTUEMART_CART_PRODUCT_ADDED',$product->product_name,$product->quantity).'

'; } } if ($this->errorMsg) echo '
'.$this->errorMsg.'
'; if(VmConfig::get('popup_rel',1)){ if($this->products and !empty($this->products[0]->customfieldsRelatedProducts)){ ?>
cart/tmpl/shopper_adresses.php000066600000003303151371757770012562 0ustar00
BTaddress['fields'] as $item){ if(!empty($item['value'])){ echo $item['title'].': '.$this->escape($item['value']).'
'; } } ?>
STaddress['fields'])){ foreach($this->STaddress['fields'] as $item){ if(!empty($item['value'])){ echo $item['title'].': '.$this->escape($item['value']).'
'; } } } else { foreach($this->BTaddress['fields'] as $item){ if(!empty($item['value'])){ echo $item['title'].': '.$this->escape($item['value']).'
'; } } } ?>
cart/tmpl/default.php000066600000015100151371757770010633 0ustar00 "; } else { vmJsApi::js ('facebox'); vmJsApi::css ('facebox'); $box = " // "; } JHtml::_ ('behavior.formvalidation'); $document = JFactory::getDocument (); $document->addScriptDeclaration ($box); $document->addScriptDeclaration (" // "); $document->addScriptDeclaration (" // "); $document->addStyleDeclaration ('#facebox .content {display: block !important; height: 480px !important; overflow: auto; width: 560px !important; }'); ?>

checkout_task === 'confirm') { vmdebug ('checkout_task', $this->checkout_task); echo '
' . JText::_ ('COM_VIRTUEMART_USER_FORM_CART_STEP4') . '
'; } ?>
continue_link_html)) { echo $this->continue_link_html; } ?>
cart, FALSE); // This displays the form to change the current shopper $adminID = JFactory::getSession()->get('vmAdminID'); if ((JFactory::getUser()->authorise('core.admin', 'com_virtuemart') || JFactory::getUser($adminID)->authorise('core.admin', 'com_virtuemart')) && (VmConfig::get ('oncheckout_change_shopper', 0))) { echo $this->loadTemplate ('shopperform'); } if ($this->checkout_task) { $taskRoute = '&task=' . $this->checkout_task; } else { $taskRoute = ''; } ?>
loadTemplate ('pricelist'); // added in 2.0.8 ?>
checkoutAdvertise)) { foreach ($this->checkoutAdvertise as $checkoutAdvertise) { ?>

getIfRequired ('agreed')) { if (!class_exists ('VmHtml')) { require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php'); } echo VmHtml::checkbox ('tosAccepted', $this->cart->tosAccepted, 1, 0, 'class="terms-of-service"'); if (VmConfig::get ('oncheckout_show_legal_info', 1)) { ?>

cart->vendor->vendor_terms_of_service; ?>
checkout_link_html; ?>
cart/tmpl/default_shopperform.php000066600000004335151371757770013267 0ustar00

getUserList(); $currentUser = $this->cart->user->_data->virtuemart_user_id; echo JHTML::_('Select.genericlist', $userList, 'userID', 'class="vm-chzn-select" style="width: 200px"', 'id', 'displayedName', $currentUser); $adminID = JFactory::getSession()->get('vmAdminID'); $instance = JFactory::getUser(); ?> id != $adminID) { ?> name; ?>

cart/tmpl/default.xml000066600000000553151371757770010652 0ustar00 COM_VIRTUEMART_CART_VIEW_DEFAULT_TITLE cart/.htaccess000066600000000177151371757770007330 0ustar00 Order allow,deny Deny from all orders/.htaccess000066600000000177151371757770007675 0ustar00 Order allow,deny Deny from all orders/view.html.php000066600000022207151371757770010523 0ustar00getPathway(); $task = JRequest::getWord('task', 'list'); $layoutName = JRequest::getWord('layout', 'list'); $this->setLayout($layoutName); $_currentUser = JFactory::getUser(); $document = JFactory::getDocument(); if(!empty($tpl)){ $format = $tpl; } else { $format = JRequest::getWord('format', 'html'); } $this->assignRef('format', $format); if($format=='pdf'){ $document->setTitle( JText::_('COM_VIRTUEMART_INVOICE') ); //PDF needs more RAM than usual VmConfig::ensureMemoryLimit(96); } else { if ($layoutName == 'details') { $document->setTitle( JText::_('COM_VIRTUEMART_ACC_ORDER_INFO') ); $pathway->additem(JText::_('COM_VIRTUEMART_ACC_ORDER_INFO')); } else { $document->setTitle( JText::_('COM_VIRTUEMART_ORDERS_VIEW_DEFAULT_TITLE') ); $pathway->additem(JText::_('COM_VIRTUEMART_ORDERS_VIEW_DEFAULT_TITLE')); } } $orderModel = VmModel::getModel('orders'); if ($layoutName == 'details') { $order_list_link = FALSE; $order_list_link = JRoute::_('index.php?option=com_virtuemart&view=orders&layout=list', FALSE); $this->assignRef('order_list_link', $order_list_link); $orderDetails = $orderModel ->getMyOrderDetails(); if(!$orderDetails or empty($orderDetails['details'])){ echo JText::_('COM_VIRTUEMART_ORDER_NOTFOUND'); return; } $userFieldsModel = VmModel::getModel('userfields'); $_userFields = $userFieldsModel->getUserFields( 'account' , array('captcha' => true, 'delimiters' => true) // Ignore these types , array('delimiter_userinfo','user_is_vendor' ,'username','password', 'password2', 'agreed', 'address_type') // Skips ); $orderbt = $orderDetails['details']['BT']; $orderst = (array_key_exists('ST', $orderDetails['details'])) ? $orderDetails['details']['ST'] : $orderbt; $userfields = $userFieldsModel->getUserFieldsFilled( $_userFields ,$orderbt ); $_userFields = $userFieldsModel->getUserFields( 'shipment' , array() // Default switches , array('delimiter_userinfo', 'username', 'email', 'password', 'password2', 'agreed', 'address_type') // Skips ); $shipmentfields = $userFieldsModel->getUserFieldsFilled( $_userFields ,$orderst ); $shipment_name=''; if (!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php'); JPluginHelper::importPlugin('vmshipment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmOnShowOrderFEShipment',array( $orderDetails['details']['BT']->virtuemart_order_id, $orderDetails['details']['BT']->virtuemart_shipmentmethod_id, &$shipment_name)); $payment_name=''; if(!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS.DS.'vmpsplugin.php'); JPluginHelper::importPlugin('vmpayment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmOnShowOrderFEPayment',array( $orderDetails['details']['BT']->virtuemart_order_id, $orderDetails['details']['BT']->virtuemart_paymentmethod_id, &$payment_name)); if($format=='pdf'){ $invoiceNumberDate = array(); $return = $orderModel->createInvoiceNumber($orderDetails['details']['BT'], $invoiceNumberDate ); if(empty($invoiceNumberDate)){ $invoiceNumberDate[0] = 'no invoice number accessible'; $invoiceNumberDate[1] = 'no invoice date accessible'; } $this->assignRef('invoiceNumber', $invoiceNumberDate[0]); $this->assignRef('invoiceDate', $invoiceNumberDate[1]); } $this->assignRef('userfields', $userfields); $this->assignRef('shipmentfields', $shipmentfields); $this->assignRef('shipment_name', $shipment_name); $this->assignRef('payment_name', $payment_name); $this->assignRef('orderdetails', $orderDetails); if($_currentUser->guest){ $details_url = juri::root().'index.php?option=com_virtuemart&view=orders&layout=details&tmpl=component&order_pass=' . JRequest::getString('order_pass',false) .'&order_number='.JRequest::getString('order_number',false); } else { $details_url = juri::root().'index.php?option=com_virtuemart&view=orders&layout=details&tmpl=component&virtuemart_order_id=' . $this->orderdetails['details']['BT']->virtuemart_order_id; } $this->assignRef('details_url', $details_url); $tmpl = JRequest::getWord('tmpl'); $print = false; if($tmpl){ $print = true; } $this->prepareVendor(); $this->assignRef('print', $print); $vendorId = 1; $emailCurrencyId = $orderDetails['details']['BT']->user_currency_id; $exchangeRate = FALSE; if (!class_exists ('vmPSPlugin')) { require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php'); } JPluginHelper::importPlugin ('vmpayment'); $dispatcher = JDispatcher::getInstance (); $dispatcher->trigger ('plgVmgetEmailCurrency', array($orderDetails['details']['BT']->virtuemart_paymentmethod_id, $orderDetails['details']['BT']->virtuemart_order_id, &$emailCurrencyId)); if (!class_exists ('CurrencyDisplay')) { require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php'); } $currency = CurrencyDisplay::getInstance ($emailCurrencyId, $vendorId); if ($emailCurrencyId) { vmdebug ('exchangerate', $orderDetails['details']['BT']->user_currency_rate); $currency->exchangeRateShopper = $orderDetails['details']['BT']->user_currency_rate; } $this->assignRef ('currency', $currency); // Implement the Joomla panels. If we need a ShipTo tab, make it the active one. // In tmpl/edit.php, this is the 4th tab (0-based, so set to 3 above) // jimport('joomla.html.pane'); // $pane = JPane::getInstance((__VM_ORDER_USE_SLIDERS?'Sliders':'Tabs')); // $this->assignRef('pane', $pane); } else { // 'list' -. default $useSSL = VmConfig::get('useSSL',0); $useXHTML = true; $this->assignRef('useSSL', $useSSL); $this->assignRef('useXHTML', $useXHTML); if ($_currentUser->get('id') == 0) { // getOrdersList() returns all orders when no userID is set (admin function), // so explicetly define an empty array when not logged in. $orderList = array(); } else { $orderList = $orderModel->getOrdersList($_currentUser->get('id'), TRUE); foreach ($orderList as $order) { $vendorId = 1; $emailCurrencyId = $order->user_currency_id; $exchangeRate = FALSE; if (!class_exists ('vmPSPlugin')) { require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php'); } JPluginHelper::importPlugin ('vmpayment'); $dispatcher = JDispatcher::getInstance (); $dispatcher->trigger ('plgVmgetEmailCurrency', array($order->virtuemart_paymentmethod_id, $order->virtuemart_order_id, &$emailCurrencyId)); if (!class_exists ('CurrencyDisplay')) { require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php'); } $currency = CurrencyDisplay::getInstance ($emailCurrencyId, $vendorId); $this->assignRef ('currency', $currency); if ($emailCurrencyId) { vmdebug ('exchangerate', $order->user_currency_rate); $currency->exchangeRateShopper = $order->user_currency_rate; } $order->currency = $currency; } } $this->assignRef('orderlist', $orderList); } /* if (!class_exists('CurrencyDisplay')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'currencydisplay.php'); $currency = CurrencyDisplay::getInstance(); $this->assignRef('currency', $currency); */ $orderStatusModel = VmModel::getModel('orderstatus'); $_orderstatuses = $orderStatusModel->getOrderStatusList(); $orderstatuses = array(); foreach ($_orderstatuses as $_ordstat) { $orderstatuses[$_ordstat->order_status_code] = JText::_($_ordstat->order_status_name); } $this->assignRef('orderstatuses', $orderstatuses); if(!class_exists('ShopFunctions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'shopfunctions.php'); $document = JFactory::getDocument(); $document->setMetaData('robots','NOINDEX, NOFOLLOW, NOARCHIVE, NOSNIPPET'); // this is no setting in BE to change the layout ! //shopFunctionsF::setVmTemplate($this,0,0,$layoutName); parent::display($tpl); } // add vendor for cart function prepareVendor(){ $vendorModel = VmModel::getModel('vendor'); $vendor = & $vendorModel->getVendor(); $this->assignRef('vendor', $vendor); $vendorModel->addImages($this->vendor,1); } } orders/index.html000066600000000000151371757770010055 0ustar00orders/tmpl/details_items.php000066600000023320151371757770012405 0ustar00format == 'pdf'){ $widthTable = '100'; $widthTitle = '27'; } else { $widthTable = '100'; $widthTitle = '49'; } ?> orderdetails['items'] as $item) { $qtt = $item->product_quantity ; $_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $item->virtuemart_category_id . '&virtuemart_product_id=' . $item->virtuemart_product_id, FALSE); ?> orderdetails['details']['BT']->coupon_discount <> 0.00) { $coupon_code=$this->orderdetails['details']['BT']->coupon_code?' ('.$this->orderdetails['details']['BT']->coupon_code.')':''; ?> orderdetails['calc_rules'] as $rule){ if ($rule->calc_kind== 'DBTaxRulesBill') { ?> calc_kind == 'taxRulesBill') { ?> calc_kind == 'DATaxRulesBill') { ?>
order_item_sku; ?>
order_item_name; ?>
product_attribute)) { if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php'); $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE'); echo $product_attribute; } ?>
orderstatuses[$item->order_status]; ?> product_discountedPriceWithoutTax = (float) $item->product_discountedPriceWithoutTax; if (!empty($item->product_priceWithoutTax) && $item->product_discountedPriceWithoutTax != $item->product_priceWithoutTax) { echo ''.$this->currency->priceDisplay($item->product_item_price, $this->currency) .'
'; echo ''.$this->currency->priceDisplay($item->product_discountedPriceWithoutTax, $this->currency) .'
'; } else { echo ''.$this->currency->priceDisplay($item->product_item_price, $this->currency) .'
'; } ?>
".$this->currency->priceDisplay($item->product_tax ,$this->currency, $qtt)."" ?> currency->priceDisplay( $item->product_subtotal_discount ,$this->currency); //No quantity is already stored with it ?> product_basePriceWithTax = (float) $item->product_basePriceWithTax; $class = ''; if(!empty($item->product_basePriceWithTax) && $item->product_basePriceWithTax != $item->product_final_price ) { echo ''.$this->currency->priceDisplay($item->product_basePriceWithTax,$this->currency,$qtt) .'
' ; } elseif (empty($item->product_basePriceWithTax) && $item->product_item_price != $item->product_final_price) { echo '' . $this->currency->priceDisplay($item->product_item_price,$this->currency,$qtt) . '
'; } echo $this->currency->priceDisplay( $item->product_subtotal_with_tax ,$this->currency); //No quantity or you must use product_final_price ?>
".$this->currency->priceDisplay($this->orderdetails['details']['BT']->order_tax,$this->currency)."" ?> ".$this->currency->priceDisplay($this->orderdetails['details']['BT']->order_discountAmount,$this->currency)."" ?> currency->priceDisplay($this->orderdetails['details']['BT']->order_salesPrice,$this->currency) ?>
    currency->priceDisplay($this->orderdetails['details']['BT']->coupon_discount,$this->currency); ?>
calc_rule_name ?> currency->priceDisplay($rule->calc_amount,$this->currency); ?> currency->priceDisplay($rule->calc_amount,$this->currency); ?>
calc_rule_name ?> currency->priceDisplay($rule->calc_amount,$this->currency); ?> currency->priceDisplay($rule->calc_amount,$this->currency); ?>
calc_rule_name ?> currency->priceDisplay($rule->calc_amount,$this->currency); ?> currency->priceDisplay($rule->calc_amount,$this->currency); ?>
".$this->currency->priceDisplay($this->orderdetails['details']['BT']->order_shipment_tax, $this->currency)."" ?>   currency->priceDisplay($this->orderdetails['details']['BT']->order_shipment+ $this->orderdetails['details']['BT']->order_shipment_tax, $this->currency); ?>
".$this->currency->priceDisplay($this->orderdetails['details']['BT']->order_payment_tax, $this->currency)."" ?>   currency->priceDisplay($this->orderdetails['details']['BT']->order_payment+ $this->orderdetails['details']['BT']->order_payment_tax, $this->currency); ?>
currency->priceDisplay($this->orderdetails['details']['BT']->order_billTaxAmount, $this->currency); ?> currency->priceDisplay($this->orderdetails['details']['BT']->order_billDiscountAmount, $this->currency); ?> currency->priceDisplay($this->orderdetails['details']['BT']->order_total, $this->currency); ?>
orders/tmpl/details_pdf.php000066600000001324151371757770012035 0ustar00 Order allow,deny Deny from all orders/tmpl/details_history.php000066600000002750151371757770012771 0ustar00 orderdetails['history'] as $_hist) { if (!$_hist->customer_notified) { continue; } ?>
created_on,'LC2',true); ?> orderstatuses[$_hist->order_status_code]; ?> comments; ?>
orders/tmpl/details_order.php000066600000006403151371757770012402 0ustar00
orderdetails['details']['BT']->order_number; ?>
orderdetails['details']['BT']->created_on, 'LC4', true); ?>
orderstatuses[$this->orderdetails['details']['BT']->order_status]; ?>
orderdetails['details']['BT']->modified_on, 'LC4', true); ?>
shipment_name; ?>
payment_name; ?>
orderdetails['details']['BT']->customer_note; ?>
currency->priceDisplay($this->orderdetails['details']['BT']->order_total, $this->currency); ?>
 

userfields['fields'] as $field) { if (!empty($field['value'])) { echo '' . ''; } } ?>
' . $field['title'] . '' . $field['value'] . '

shipmentfields['fields'] as $field) { if (!empty($field['value'])) { echo '' . ''; } } ?>
' . $field['title'] . '' . $field['value'] . '
orders/tmpl/details.xml000066600000000253151371757770011215 0ustar00 orders/tmpl/index.html000066600000000000151371757770011031 0ustar00orders/tmpl/details.php000066600000005313151371757770011206 0ustar00print){ ?>

vendor->vendor_store_name; ?>

vendor->vendor_name .' - '.$this->vendor->vendor_phone ?>

loadTemplate('order'); ?>
loadTemplate('items'); ?>
vendor->vendor_letter_footer_html; ?>

details_url', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');\" >"; //$details_link .= ' '; $button = (JVM_VERSION==1) ? '/images/M_images/printButton.png' : 'system/printButton.png'; $details_link .= JHtml::_('image',$button, JText::_('COM_VIRTUEMART_PRINT'), NULL, true); $details_link .= ''; echo $details_link; ?>

order_list_link){ ?>
loadTemplate('order'); ?>


orders/tmpl/list.php000066600000004563151371757770010542 0ustar00

orderlist) == 0) { //echo JText::_('COM_VIRTUEMART_ACC_NO_ORDER'); echo shopFunctionsF::getLoginForm(false,true); } else { ?>
orderlist as $row) { $editlink = JRoute::_('index.php?option=com_virtuemart&view=orders&layout=details&order_number=' . $row->order_number, FALSE); ?> ">
order_number; ?> created_on,'LC4',true); ?> order_status); ?> currency->priceDisplay($row->order_total, $row->currency); ?>
orders/tmpl/list.xml000066600000000607151371757770010546 0ustar00 COM_VIRTUEMART_ORDERS_VIEW_DEFAULT_TITLE askquestion/tmpl/mail_raw_question.php000066600000000757151371757770014362 0ustar00vendor->vendor_store_name) . "\n" . "\n"; echo JText::_('COM_VIRTUEMART_QUESTION_ABOUT') . ' '. $this->product->product_name; if ($this->product->product_sku) echo ' ('.JText::_('COM_VIRTUEMART_PRODUCT_SKU').' '.$this->product->product_sku .')' ; echo "\n" . "\n"; echo JText::sprintf('COM_VIRTUEMART_QUESTION_MAIL_FROM', $this->user->name, $this->user->email) . "\n"; echo $this->comment. "\n"; askquestion/tmpl/.htaccess000066600000000177151371757770011721 0ustar00 Order allow,deny Deny from all askquestion/tmpl/form.php000066600000012430151371757770011572 0ustar00addScriptDeclaration(' jQuery(function($){ $("#askform").validationEngine("attach"); $("#comment").keyup( function () { var result = $(this).val(); $("#counter").val( result.length ); }); }); '); /* Let's see if we found the product */ if (empty ( $this->product )) { echo JText::_ ( 'COM_VIRTUEMART_PRODUCT_NOT_FOUND' ); echo '

' . $this->continue_link_html; } else { $session = JFactory::getSession(); $askQuestionData = $session->get('askquestion', 0, 'vm'); if(!empty($this->login)){ echo $this->login; } if(empty($this->login) or VmConfig::get('recommend_unauth',false)){ ?>

product->product_name ?>

product->product_s_desc)) { ?>
product->product_s_desc ?>
product->images[0]->displayMediaThumb('class="product-image"',false); ?>
trigger('onInit','dynamic_recaptcha_1'); ?>
askquestion/tmpl/index.html000066600000000000151371757770012101 0ustar00askquestion/tmpl/mail_html_question.php000066600000006607151371757770014535 0ustar00
askquestion/tmpl/mail_confirmed.php000066600000002117151371757770013600 0ustar00
askquestion/.htaccess000066600000000177151371757770010745 0ustar00 Order allow,deny Deny from all askquestion/metadata.xml000066600000000322151371757770011441 0ustar00 askquestion/view.html.php000066600000016610151371757770011574 0ustar00redirect(JRoute::_('index.php?option=com_virtuemart','Disabled function')); } $this->login = ''; if(!VmConfig::get('recommend_unauth',false)){ $user = JFactory::getUser(); if($user->guest){ $this->login = shopFunctionsF::getLoginForm(false); //$app->redirect(JRoute::_('index.php?option=com_virtuemart','JGLOBAL_YOU_MUST_LOGIN_FIRST')); } } $show_prices = VmConfig::get ('show_prices', 1); if ($show_prices == '1') { if (!class_exists ('calculationHelper')) { require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'calculationh.php'); } } $this->assignRef ('show_prices', $show_prices); $document = JFactory::getDocument (); $mainframe = JFactory::getApplication (); $pathway = $mainframe->getPathway (); $task = JRequest::getCmd ('task'); if (!class_exists('VmImage')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'image.php'); // Load the product $product_model = VmModel::getModel ('product'); $category_model = VmModel::getModel ('Category'); $virtuemart_product_idArray = JRequest::getInt ('virtuemart_product_id', 0); if (is_array ($virtuemart_product_idArray)) { $virtuemart_product_id = $virtuemart_product_idArray[0]; } else { $virtuemart_product_id = $virtuemart_product_idArray; } if (empty($virtuemart_product_id)) { self::showLastCategory ($tpl); return; } if (!class_exists ('VirtueMartModelVendor')) { require(JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'vendor.php'); } $product = $product_model->getProduct ($virtuemart_product_id); // Set Canonic link $format = JRequest::getWord('format', 'html'); if ($format == 'html') { $document->addHeadLink ($product->canonical, 'canonical', 'rel', ''); } // Set the titles $document->setTitle (JText::sprintf ('COM_VIRTUEMART_PRODUCT_DETAILS_TITLE', $product->product_name . ' - ' . JText::_ ('COM_VIRTUEMART_PRODUCT_ASK_QUESTION'))); $this->assignRef ('product', $product); if (empty($product)) { self::showLastCategory ($tpl); return; } $product_model->addImages ($product, 1); /* Get the category ID */ $virtuemart_category_id = JRequest::getInt ('virtuemart_category_id'); if ($virtuemart_category_id == 0 && !empty($product)) { if (array_key_exists ('0', $product->categories)) { $virtuemart_category_id = $product->categories[0]; } } shopFunctionsF::setLastVisitedCategoryId ($virtuemart_category_id); if ($category_model) { $category = $category_model->getCategory ($virtuemart_category_id); $this->assignRef ('category', $category); $pathway->addItem ($category->category_name, JRoute::_ ('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $virtuemart_category_id, FALSE)); } //$pathway->addItem(JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), $uri->toString(array('path', 'query', 'fragment'))); $pathway->addItem ($product->product_name, JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $virtuemart_category_id . '&virtuemart_product_id=' . $product->virtuemart_product_id, FALSE)); // for askquestion $pathway->addItem (JText::_ ('COM_VIRTUEMART_PRODUCT_ASK_QUESTION')); $this->assignRef ('user', JFactory::getUser ()); if ($product->metadesc) { $document->setDescription ($product->metadesc); } if ($product->metakey) { $document->setMetaData ('keywords', $product->metakey); } //We never want that ask a question is indexed $document->setMetaData('robots','NOINDEX, NOFOLLOW, NOARCHIVE, NOSNIPPET'); if ($mainframe->getCfg ('MetaTitle') == '1') { $document->setMetaData ('title', $product->product_s_desc); //Maybe better product_name } if ($mainframe->getCfg ('MetaAuthor') == '1') { $document->setMetaData ('author', $product->metaauthor); } parent::display ($tpl); } function renderMailLayout () { $this->setLayout ('mail_html_question'); $this->comment = JRequest::getString ('comment'); $user = JFactory::getUser (); if (empty($user->id)) { $fromMail = JRequest::getVar ('email'); //is sanitized then $fromName = JRequest::getVar ('name', ''); //is sanitized then $fromMail = str_replace (array('\'', '"', ',', '%', '*', '/', '\\', '?', '^', '`', '{', '}', '|', '~'), array(''), $fromMail); $fromName = str_replace (array('\'', '"', ',', '%', '*', '/', '\\', '?', '^', '`', '{', '}', '|', '~'), array(''), $fromName); } else { $fromMail = $user->email; $fromName = $user->name; } $vars['user'] = array('name' => $fromName, 'email' => $fromMail); $vendorModel = VmModel::getModel ('vendor'); if(empty($this->vendor)){ $this->vendor = $vendorModel->getVendor (); $this->vendor->vendor_store_name = $fromName; } $vendorModel->addImages ($this->vendor); $virtuemart_product_id = vRequest::getInt ('virtuemart_product_id', 0); $productModel = VmModel::getModel ('product'); if(empty($this->product)){ $this->product = $productModel->getProduct ($virtuemart_product_id); } $productModel->addImages($this->product); $this->subject = Jtext::_ ('COM_VIRTUEMART_QUESTION_ABOUT') . $this->product->product_name; $this->vendorEmail = $this->user['email']; // in this particular case, overwrite the value for fix the recipient name $this->vendor->vendor_name = $this->user['name']; if (VmConfig::get ('order_mail_html')) { $tpl = 'mail_html_question'; } else { $tpl = 'mail_raw_question'; } $this->setLayout ($tpl); parent::display (); } private function showLastCategory ($tpl) { $virtuemart_category_id = shopFunctionsF::getLastVisitedCategoryId (); $categoryLink = ''; if ($virtuemart_category_id) { $categoryLink = '&virtuemart_category_id=' . $virtuemart_category_id; } $continue_link = JRoute::_ ('index.php?option=com_virtuemart&view=category' . $categoryLink, FALSE); $continue_link_html = '' . JText::_ ('COM_VIRTUEMART_CONTINUE_SHOPPING') . ''; $this->assignRef ('continue_link_html', $continue_link_html); // Display it all parent::display ($tpl); } } // pure php no closing tagaskquestion/index.html000066600000000000151371757770011125 0ustar00pdf/view.pdf.php000066600000002544151371757770007605 0ustar00display($tpl); } } } pdf/index.html000066600000000001151371757770007331 0ustar00 pdf/.htaccess000066600000000177151371757770007150 0ustar00 Order allow,deny Deny from all pdf/view.raw.php000066600000002111151371757770007613 0ustar00assignRef('type', $type); $viewName = jRequest::getWord('view','productdetails'); $class= 'VirtueMartView'.ucfirst($viewName); if(!class_exists($class)) require(JPATH_VM_SITE.DS.'views'.DS.$viewName.DS.'view.html.php'); $view = new $class ; $view->display($tpl); } } categories/view.html.php000066600000005361151371757770011354 0ustar00get('State'); $items = $this->get('Items'); $parent = $this->get('Parent'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseWarning(500, implode("\n", $errors)); return false; } if($items === false) { return JError::raiseError(404, JText::_('JGLOBAL_CATEGORY_NOT_FOUND')); } if($parent == false) { return JError::raiseError(404, JText::_('JGLOBAL_CATEGORY_NOT_FOUND')); } $params = &$state->params; $items = array($parent->id => $items); //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx')); $this->maxLevelcat = $params->get('maxLevelcat', -1); $this->assignRef('params', $params); $this->assignRef('parent', $parent); $this->assignRef('items', $items); $this->_prepareDocument(); parent::display($tpl); } /** * Prepares the document */ protected function _prepareDocument() { $app = JFactory::getApplication(); $menus = $app->getMenu(); $title = null; // Because the application sets a default page title, // we need to get it from the menu item itself $menu = $menus->getActive(); if($menu) { $this->params->def('page_heading', $this->params->get('page_title', $menu->title)); } else { $this->params->def('page_heading', JText::_('COM_WEBLINKS_DEFAULT_PAGE_TITLE')); } $title = $this->params->get('page_title', ''); if (empty($title)) { $title = $app->getCfg('sitename'); } elseif ($app->getCfg('sitename_pagetitles', 0) == 1) { $title = JText::sprintf('JPAGETITLE', $app->getCfg('sitename'), $title); } elseif ($app->getCfg('sitename_pagetitles', 0) == 2) { $title = JText::sprintf('JPAGETITLE', $title, $app->getCfg('sitename')); } $this->document->setTitle($title); if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } if ($this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } } } categories/.htaccess000066600000000177151371757770010524 0ustar00 Order allow,deny Deny from all categories/tmpl/index.html000066600000000037151371757770011672 0ustar00 categories/tmpl/.htaccess000066600000000177151371757770011500 0ustar00 Order allow,deny Deny from all categories/tmpl/default.xml000066600000015607151371757770012054 0ustar00
categories/tmpl/default.php000066600000002437151371757770012040 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading')); ?>

params->get('show_base_description')) : ?> params->get('categories_description')) : ?>
params->get('categories_description'), '', 'com_weblinks.categories'); ?>
parent->description) : ?>
parent->description, '', 'com_weblinks.categories'); ?>
loadTemplate('items'); ?>
categories/index.html000066600000000037151371757770010716 0ustar00 user/view.html.php000066600000036532151371757770010211 0ustar00assignRef('useSSL', $useSSL); $this->assignRef('useXHTML', $useXHTML); VmConfig::loadJLang('com_virtuemart_shoppers',TRUE); $mainframe = JFactory::getApplication(); $pathway = $mainframe->getPathway(); $layoutName = $this->getLayout(); // vmdebug('layout by view '.$layoutName); if (empty($layoutName) or $layoutName == 'default') { $layoutName = JRequest::getWord('layout', 'edit'); if ($layoutName == 'default'){ $layoutName = 'edit'; } $this->setLayout($layoutName); } if (empty($this->fTask)) { $ftask = 'saveUser'; $this->assignRef('fTask', $ftask); } if (!class_exists('ShopFunctions')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'shopfunctions.php'); // vmdebug('my layoutname',$layoutName); if ($layoutName == 'login') { parent::display($tpl); return; } if (!class_exists('VirtuemartModelUser')) require(JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'user.php'); $this->_model = new VirtuemartModelUser(); // $this->_model->setCurrent(); //without this, the administrator can edit users in the FE, permission is handled in the usermodel, but maybe unsecure? $editor = JFactory::getEditor(); //the cuid is the id of the current user $this->_currentUser = JFactory::getUser(); $this->_cuid = $this->_lists['current_id'] = $this->_currentUser->get('id'); $this->assignRef('userId', $this->_cuid); $this->_userDetails = $this->_model->getUser(); $this->assignRef('userDetails', $this->_userDetails); $address_type = JRequest::getWord('addrtype', 'BT'); $this->assignRef('address_type', $address_type); $new = false; if (JRequest::getInt('new', '0') == 1) { $new = true; } if ($new) { $virtuemart_userinfo_id = 0; } else { $virtuemart_userinfo_id = JRequest::getString('virtuemart_userinfo_id', '0', ''); } $this->assignRef('virtuemart_userinfo_id', $virtuemart_userinfo_id); $userFields = null; if ((strpos($this->fTask, 'cart') || strpos($this->fTask, 'checkout')) && empty($virtuemart_userinfo_id)) { //New Address is filled here with the data of the cart (we are in the cart) if (!class_exists('VirtueMartCart')) require(JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php'); $cart = VirtueMartCart::getCart(); $fieldtype = $address_type . 'address'; $cart->prepareAddressDataInCart($address_type, $new, $this->_cuid); $userFields = $cart->$fieldtype; $task = JRequest::getWord('task', ''); } else { $userFields = $this->_model->getUserInfoInUserFields($layoutName, $address_type, $virtuemart_userinfo_id); if (!$new && empty($userFields[$virtuemart_userinfo_id])) { $virtuemart_userinfo_id = $this->_model->getBTuserinfo_id(); // vmdebug('Try to get $virtuemart_userinfo_id by type BT', $virtuemart_userinfo_id); } $userFields = $userFields[$virtuemart_userinfo_id]; $task = 'editaddressST'; } $this->assignRef('userFields', $userFields); if ($layoutName == 'edit') { if ($this->_model->getId() == 0 && $this->_cuid == 0) { $button_lbl = JText::_('COM_VIRTUEMART_REGISTER'); } else { $button_lbl = JText::_('COM_VIRTUEMART_SAVE'); } $this->assignRef('button_lbl', $button_lbl); $this->lUser(); $this->shopper($userFields); $this->payment(); $this->lOrderlist(); $this->lVendor(); } $this->_lists['shipTo'] = ShopFunctions::generateStAddressList($this,$this->_model, $task); if ($this->_openTab < 0) { $_paneOffset = array(); } else { if (__VM_USER_USE_SLIDERS) { $_paneOffset = array('startOffset' => $this->_openTab, 'startTransition' => 1, 'allowAllClose' => true); } else { $_paneOffset = array('startOffset' => $this->_openTab); } } $this->assignRef('lists', $this->_lists); $this->assignRef('editor', $editor); $this->assignRef('pane', $pane); if ($layoutName == 'mailregisteruser') { $vendorModel = VmModel::getModel('vendor'); // $vendorModel->setId($this->_userDetails->virtuemart_vendor_id); $vendor = $vendorModel->getVendor(); $this->assignRef('vendor', $vendor); } if ($layoutName == 'editaddress') { $layoutName = 'edit_address'; $this->setLayout($layoutName); } if (!$this->userDetails->JUser->get('id')) { $corefield_title = JText::_('COM_VIRTUEMART_USER_CART_INFO_CREATE_ACCOUNT'); } else { $corefield_title = JText::_('COM_VIRTUEMART_YOUR_ACCOUNT_DETAILS'); } if ((strpos($this->fTask, 'cart') || strpos($this->fTask, 'checkout'))) { $pathway->addItem(JText::_('COM_VIRTUEMART_CART_OVERVIEW'), JRoute::_('index.php?option=com_virtuemart&view=cart', FALSE)); } else { //$pathway->addItem(JText::_('COM_VIRTUEMART_YOUR_ACCOUNT_DETAILS'), JRoute::_('index.php?option=com_virtuemart&view=user&&layout=edit')); } $pathway_text = JText::_('COM_VIRTUEMART_YOUR_ACCOUNT_DETAILS'); if (!$this->userDetails->JUser->get('id')) { if ((strpos($this->fTask, 'cart') || strpos($this->fTask, 'checkout'))) { if ($address_type == 'BT') { $vmfield_title = JText::_('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL'); } else { $vmfield_title = JText::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'); } } else { if ($address_type == 'BT') { $vmfield_title = JText::_('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL'); $title = JText::_('COM_VIRTUEMART_REGISTER'); } else { $vmfield_title = JText::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'); } } } else { if ($address_type == 'BT') { $vmfield_title = JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_LBL'); } else { $vmfield_title = JText::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'); } } $add_product_link=""; if(!class_exists('Permissions')) require(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_virtuemart' . DS . 'helpers' . DS . 'permissions.php'); if(!Permissions::getInstance()->isSuperVendor() or Vmconfig::get('multix','none')!=='none' ){ $add_product_link = JRoute::_( 'index.php?option=com_virtuemart&tmpl=component&view=product&view=product&task=edit&virtuemart_product_id=0' ); $add_product_link = $this->linkIcon($add_product_link, 'COM_VIRTUEMART_PRODUCT_ADD_PRODUCT', 'new', false, false, true, true); } $this->assignRef('add_product_link', $add_product_link); $document = JFactory::getDocument(); $document->setTitle($pathway_text); $pathway->additem($pathway_text); $document->setMetaData('robots','NOINDEX, NOFOLLOW, NOARCHIVE, NOSNIPPET'); $this->assignRef('page_title', $pathway_text); $this->assignRef('corefield_title', $corefield_title); $this->assignRef('vmfield_title', $vmfield_title); shopFunctionsF::setVmTemplate($this, 0, 0, $layoutName); parent::display($tpl); } function payment() { } function lOrderlist() { // Check for existing orders for this user $orders = VmModel::getModel('orders'); if ($this->_model->getId() == 0) { // getOrdersList() returns all orders when no userID is set (admin function), // so explicetly define an empty array when not logged in. $this->_orderList = array(); } else { $this->_orderList = $orders->getOrdersList($this->_model->getId(), true); if (empty($this->currency)) { if (!class_exists('CurrencyDisplay')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php'); $currency = CurrencyDisplay::getInstance(); $this->assignRef('currency', $currency); } } if($this->_orderList){ VmConfig::loadJLang('com_virtuemart_orders',TRUE); } $this->assignRef('orderlist', $this->_orderList); } function shopper($userFields) { // Shopper info if (!class_exists('VirtueMartModelShopperGroup')) require(JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'shoppergroup.php'); $_shoppergroup = VirtueMartModelShopperGroup::getShoppergroupById($this->_model->getId()); if (!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'permissions.php'); if (Permissions::getInstance()->check('admin,storeadmin')) { $shoppergrps = array(); foreach($_shoppergroup as $group){ $shoppergrps[] = $group['virtuemart_shoppergroup_id']; } $this->_lists['shoppergroups'] = ShopFunctions::renderShopperGroupList($shoppergrps); $this->_lists['vendors'] = ShopFunctions::renderVendorList($this->_userDetails->virtuemart_vendor_id); } else { $this->_lists['shoppergroups'] = ''; foreach($_shoppergroup as $group){ $this->_lists['shoppergroups'] .= $group['shopper_group_name'].', '; } $this->_lists['shoppergroups'] = substr($this->_lists['shoppergroups'],0,-2); if (!empty($this->_userDetails->virtuemart_vendor_id)) { $this->_lists['vendors'] = $this->_userDetails->virtuemart_vendor_id; } if (empty($this->_lists['vendors'])) { $this->_lists['vendors'] = JText::_('COM_VIRTUEMART_USER_NOT_A_VENDOR'); // . $_setVendor; } } // Load the required scripts if (count($userFields['scripts']) > 0) { foreach ($userFields['scripts'] as $_script => $_path) { JHTML::script($_script, $_path); } } // Load the required styresheets if (count($userFields['links']) > 0) { foreach ($userFields['links'] as $_link => $_path) { JHTML::stylesheet($_link, $_path); } } } function lUser() { $_groupList = $this->_model->getGroupList(); if (!is_array($_groupList)) { $this->_lists['gid'] = '' . JText::_($_groupList) . ''; } else { $this->_lists['gid'] = JHTML::_('select.genericlist', $_groupList, 'gid', 'size="10"', 'value', 'text', $this->_userDetails->JUser->get('gid')); } if (!class_exists('shopFunctionsF')) require(JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php'); $comUserOption = shopFunctionsF::getComUserOption(); $this->_lists['canBlock'] = ($this->_currentUser->authorize($comUserOption, 'block user') && ($this->_model->getId() != $this->_cuid)); // Can't block myself TODO I broke that, please retest if it is working again $this->_lists['canSetMailopt'] = $this->_currentUser->authorize('workflow', 'email_events'); $this->_lists['block'] = JHTML::_('select.booleanlist', 'block', 'class="inputbox"', $this->_userDetails->JUser->get('block'), 'COM_VIRTUEMART_YES', 'COM_VIRTUEMART_NO'); $this->_lists['sendEmail'] = JHTML::_('select.booleanlist', 'sendEmail', 'class="inputbox"', $this->_userDetails->JUser->get('sendEmail'), 'COM_VIRTUEMART_YES', 'COM_VIRTUEMART_NO'); $this->_lists['params'] = $this->_userDetails->JUser->getParameters(true); $this->_lists['custnumber'] = $this->_model->getCustomerNumberById(); //TODO I do not understand for what we have that by Max. if ($this->_model->getId() < 1) { $this->_lists['register_new'] = 1; } else { $this->_lists['register_new'] = 0; } } function lVendor() { // If the current user is a vendor, load the store data if ($this->_userDetails->user_is_vendor) { $front = JURI::root(true).'/components/com_virtuemart/assets/'; $admin = JURI::root(true).'/administrator/components/com_virtuemart/assets/'; $document = JFactory::getDocument(); $document->addScript($front.'js/fancybox/jquery.mousewheel-3.0.4.pack.js'); $document->addScript($front.'js/fancybox/jquery.easing-1.3.pack.js'); $document->addScript($front.'js/fancybox/jquery.fancybox-1.3.4.pack.js'); vmJsApi::js ('jquery-ui', FALSE, '', TRUE); vmJsApi::js ('jquery.ui.autocomplete.html'); vmJsApi::js( 'jquery.noConflict'); $document->addScript($admin.'js/vm2admin.js'); $currencymodel = VmModel::getModel('currency', 'VirtuemartModel'); $currencies = $currencymodel->getCurrencies(); $this->assignRef('currencies', $currencies); if (!$this->_orderList) { $this->lOrderlist(); } $vendorModel = VmModel::getModel('vendor'); if (Vmconfig::get('multix', 'none') === 'none') { $vendorModel->setId(1); } else { $vendorModel->setId($this->_userDetails->virtuemart_vendor_id); } $vendor = $vendorModel->getVendor(); $vendorModel->addImages($vendor); $this->assignRef('vendor', $vendor); } } /* * renderMailLayout * * @author Max Milbers * @author Valerie Isaksen */ public function renderMailLayout($doVendor, $recipient) { $useSSL = VmConfig::get('useSSL', 0); $useXHTML = true; $this->assignRef('useSSL', $useSSL); $this->assignRef('useXHTML', $useXHTML); $userFieldsModel = VmModel::getModel('UserFields'); $userFields = $userFieldsModel->getUserFields(); $this->userFields = $userFieldsModel->getUserFieldsFilled($userFields, $this->user); if (VmConfig::get('order_mail_html')) { $mailFormat = 'html'; $lineSeparator="
"; } else { $mailFormat = 'raw'; $lineSeparator="\n"; } $virtuemart_vendor_id=1; $vendorModel = VmModel::getModel('vendor'); $vendor = $vendorModel->getVendor($virtuemart_vendor_id); $vendorModel->addImages($vendor); $vendor->vendorFields = $vendorModel->getVendorAddressFields(); $this->assignRef('vendor', $vendor); if (!$doVendor) { $this->subject = JText::sprintf('COM_VIRTUEMART_NEW_SHOPPER_SUBJECT', $this->user->username, $this->vendor->vendor_store_name); $tpl = 'mail_' . $mailFormat . '_reguser'; } else { $this->subject = JText::sprintf('COM_VIRTUEMART_VENDOR_NEW_SHOPPER_SUBJECT', $this->user->username, $this->vendor->vendor_store_name); $tpl = 'mail_' . $mailFormat . '_regvendor'; } $this->assignRef('recipient', $recipient); $this->vendorEmail = $vendorModel->getVendorEmail($this->vendor->virtuemart_vendor_id); $this->layoutName = $tpl; $this->setLayout($tpl); parent::display(); } } //No Closing Tag user/.htaccess000066600000000177151371757770007355 0ustar00 Order allow,deny Deny from all user/tmpl/edit_vendor.php000066600000010762151371757770011547 0ustar00 langList; ?>
:
:
:
:
: currencies, 'vendor_currency', '', 'virtuemart_currency_id', 'currency_name', $this->vendor->vendor_currency); ?>
: currencies, 'vendor_accepted_currencies[]', 'size=10 multiple="multiple"', 'virtuemart_currency_id', 'currency_name', $this->vendor->vendor_accepted_currencies); ?>
vendor->images[0]->displayFilesHandler($this->vendor->virtuemart_media_id,'vendor'); ?>
editor->display('vendor_store_desc', $this->vendor->vendor_store_desc, '100%', 450, 70, 15)?>
editor->display('vendor_terms_of_service', $this->vendor->vendor_terms_of_service, '100%', 450, 70, 15)?>
editor->display('vendor_legal_info', $this->vendor->vendor_legal_info, '100%', 400, 70, 15)?>
user/tmpl/edit_address.php000066600000016052151371757770011675 0ustar00userFields['fields']); // Implement Joomla's form validation JHTML::_ ('behavior.formvalidation'); JHTML::stylesheet ('vmpanels.css', JURI::root () . 'components/com_virtuemart/assets/css/'); if ($this->fTask === 'savecartuser') { $rtask = 'registercartuser'; $url = 0; } else { $rtask = 'registercheckoutuser'; $url = JRoute::_('index.php?option=com_virtuemart&view=cart&task=checkout', 0, $this->useSSL); } ?>

page_title ?>

address_type == 'BT') { echo JText::_ ('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL'); } else { echo JText::_ ('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'); } ?>

fTask, 'cart') || strpos ($this->fTask, 'checkout')) { $rview = 'cart'; } else { $rview = 'user'; } // echo 'rview = '.$rview; if (strpos ($this->fTask, 'checkout') || $this->address_type == 'ST') { $buttonclass = 'default'; } else { $buttonclass = 'button vm-button-correct'; } if (VmConfig::get ('oncheckout_show_register', 1) && $this->userId == 0 && !VmConfig::get ('oncheckout_only_registered', 0) && $this->address_type == 'BT' and $rview == 'cart') { echo JText::sprintf ('COM_VIRTUEMART_ONCHECKOUT_DEFAULT_TEXT_REGISTER', JText::_ ('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'), JText::_ ('COM_VIRTUEMART_CHECKOUT_AS_GUEST')); } else { //echo JText::_('COM_VIRTUEMART_REGISTER_ACCOUNT'); } if (VmConfig::get ('oncheckout_show_register', 1) && $this->userId == 0 && $this->address_type == 'BT' and $rview == 'cart') { ?>
trigger('onInit','dynamic_recaptcha_1'); $hide_captcha = (VmConfig::get ('oncheckout_only_registered') or $captcha_visible) ? '' : 'style="display: none;"'; ?>
>
userFields['functions']) > 0) { echo '' . "\n"; } echo $this->loadTemplate ('userfields'); ?>
userDetails->JUser->get ('id')) { echo $this->loadTemplate ('addshipto'); } ?> virtuemart_userinfo_id)) { echo ''; } echo JHTML::_ ('form.token'); ?> user/tmpl/mail_raw_reguser.php000066600000003560151371757770012572 0ustar00user->name) . $li . $li; if (!empty($this->activationLink)) { $activationLink = '   userDetails->virtuemart_user_id!=0) { echo $this->loadTemplate('vmshopper'); } ?> loadTemplate('address_userfields'); ?> userDetails->JUser->get('id') ) { echo $this->loadTemplate('address_addshipto'); } ?> virtuemart_userinfo_id)){ echo ''; } ?> user/tmpl/login.php000066600000021215151371757770010350 0ustar00show )) $this->show = TRUE; if (!isset( $this->from_cart )) $this->from_cart = FALSE; if (!isset( $this->order )) $this->order = FALSE ; if(!class_exists('shopFunctionsF')) require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); $comUserOption=shopFunctionsF::getComUserOption(); if (empty($this->url)){ $url = vmURI::getCleanUrl(); } else{ $url = $this->url; } $user = JFactory::getUser(); if ($this->show and $user->id == 0 ) { JHtml::_('behavior.formvalidation'); JHTML::_ ( 'behavior.modal' ); //Extra login stuff, systems like openId and plugins HERE if (JPluginHelper::isEnabled('authentication', 'openid')) { $lang = JFactory::getLanguage(); $lang->load('plg_authentication_openid', JPATH_ADMINISTRATOR); $langScript = ' // '; $document = JFactory::getDocument(); $document->addScriptDeclaration($langScript); JHTML::_('script', 'openid.js'); } $html = ''; JPluginHelper::importPlugin('vmpayment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmDisplayLogin', array($this, &$html, $this->from_cart)); if (is_array($html)) { foreach ($html as $login) { echo $login.'
'; } } else { echo $html; } //end plugins section //anonymous order section if ($this->order ) { ?>



from_cart ) { ?>

get('allowUserRegistration')) { ?>
id ) { ?>
name ); ?>
user/tmpl/mail_html_regvendor.php000066600000006144151371757770013265 0ustar00'; ?>
user/tmpl/edit.xml000066600000000541151371757770010175 0ustar00 COM_VIRTUEMART_USER_VIEW_DEFAULT_TITLE user/tmpl/edit.php000066600000011713151371757770010167 0ustar00

page_title ?>

userDetails->virtuemart_user_id==0) { echo JText::_('COM_VIRTUEMART_YOUR_ACCOUNT_REG'); }?>

userDetails->user_is_vendor){ ?>
 
userDetails->virtuemart_user_id!=0) { $tabarray = array(); if($this->userDetails->user_is_vendor){ if(!empty($this->add_product_link)) { echo $this->add_product_link; } $tabarray['vendor'] = 'COM_VIRTUEMART_VENDOR'; } $tabarray['shopper'] = 'COM_VIRTUEMART_SHOPPER_FORM_LBL'; //$tabarray['user'] = 'COM_VIRTUEMART_USER_FORM_TAB_GENERALINFO'; if (!empty($this->shipto)) { $tabarray['shipto'] = 'COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'; } if (($_ordcnt = count($this->orderlist)) > 0) { $tabarray['orderlist'] = 'COM_VIRTUEMART_YOUR_ORDERS'; } shopFunctionsF::buildTabs ( $this, $tabarray); } else { echo $this->loadTemplate ( 'shopper' ); } /* * TODO this Stuff should be converted in a payment module. But the idea to show already saved payment information to the user is a good one * So maybe we should place here a method (joomla plugin hook) which loads all published plugins, which already used by the user and display * them. */ // echo $this->pane->startPanel( JText::_('COM_VIRTUEMART_SHOPPER_PAYMENT_FORM_LBL'), 'edit_payment' ); // echo $this->loadTemplate('payment'); // echo $this->pane->endPanel(); // echo $this->pane->startPanel( JText::_('COM_VIRTUEMART_SHOPPER_SHIPMENT_FORM_LBL'), 'edit_shipto' ); // echo $this->loadTemplate('shipto'); // echo $this->pane->endPanel(); // if ($this->shipto !== 0) { // // Note: // // Of the order of the tabs change here, change the startOffset value for // // JPane::getInstance() as well in view.html.php! // echo $this->pane->startPanel( JText::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'), 'edit_shipto' ); // echo $this->loadTemplate('shipto'); // echo $this->pane->endPanel(); // } // if (($_ordcnt = count($this->orderlist)) > 0) { // echo $this->pane->startPanel( JText::_('COM_VIRTUEMART_ORDER_LIST_LBL') . ' (' . $_ordcnt . ')', 'edit_orderlist' ); // echo $this->loadTemplate('orderlist'); // echo $this->pane->endPanel(); // } // if (!empty($this->userDetails->user_is_vendor)) { // echo $this->pane->startPanel( JText::_('COM_VIRTUEMART_VENDOR_MOD'), 'edit_vendor' ); // echo $this->loadTemplate('vendor'); // echo $this->pane->endPanel(); // } // echo $this->pane->endPane(); // captcha addition if(VmConfig::get ('reg_captcha')){ JHTML::_('behavior.framework'); JPluginHelper::importPlugin('captcha'); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onInit','dynamic_recaptcha_1'); ?>
user/tmpl/mail_raw_regvendor.php000066600000003363151371757770013112 0ustar00 vendor->vendor_store_name) . $li. $li ?> user->username . $li; ?> user->name . $li. $li; ?> userFields['fields'] as $userField) { if (!empty($userField['value']) && $userField['type'] != 'delimiter' && $userField['type'] != 'BT') { echo $userField['title'] . ' ' . $userField['value'] . $li; } } echo $li; echo JURI::root() . 'index.php?option=com_virtuemart&view=user' . $li; echo $li; //echo JURI::root() . 'index.php?option=com_virtuemart&view=user&virtuemart_user_id=' . $this->_models['user']->_id . ' ' . $li; //echo JURI::root() . 'index.php?option=com_virtuemart&view=vendor&virtuemart_vendor_id=' . $this->vendor->virtuemart_vendor_id . ' ' . $li; ?> user/tmpl/index.html000066600000000000151371757770010511 0ustar00user/tmpl/.htaccess000066600000000177151371757770010331 0ustar00 Order allow,deny Deny from all user/tmpl/editaddress.xml000066600000000621151371757770011542 0ustar00 COM_VIRTUEMART_USER_EDITADDRESS_VIEW_DEFAULT_TITLE user/tmpl/mail_html_reguser.php000066600000006737151371757770012756 0ustar00'; ?>
user/tmpl/edit_orderlist.php000066600000003712151371757770012256 0ustar00
orderlist as $i => $row) { $editlink = JRoute::_('index.php?option=com_virtuemart&view=orders&layout=details&order_number=' . $row->order_number); ?> ">
order_number; ?> created_on); ?> modified_on); ?> order_status); ?> currency->priceDisplay($row->order_total); ?>
user/tmpl/edit_address_addshipto.php000066600000001744151371757770013736 0ustar00
' .JText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL').''; ?> lists['shipTo']; ?>
user/tmpl/edit_address_userfields.php000066600000004211151371757770014114 0ustar00userFields['fields'] as $field) { if($field['type'] == 'delimiter') { // For Every New Delimiter // We need to close the previous // table and delimiter if($closeDelimiter) { ?>
user/tmpl/edit_vmshopper.php000066600000003675151371757770012302 0ustar00
lists['shoppergroups']) { ?>
lists['vendors']; ?>
check('admin')) { ?> lists['custnumber']; } ?>
lists['shoppergroups']; ?>
user/index.html000066600000000000151371757770007535 0ustar00vendor/.htaccess000066600000000177151371757770007674 0ustar00 Order allow,deny Deny from all vendor/view.html.php000066600000012454151371757770010525 0ustar00getPathway(); $layoutName = $this->getLayout(); $model = VmModel::getModel(); $virtuemart_vendor_id = JRequest::getInt('virtuemart_vendor_id'); // if ($layoutName=='default') { if (empty($virtuemart_vendor_id)) { $document->setTitle( JText::_('COM_VIRTUEMART_VENDOR_LIST') ); $pathway->addItem(JText::_('COM_VIRTUEMART_VENDOR_LIST')); $vendors = $model->getVendors(); $model->addImages($vendors); $this->assignRef('vendors', $vendors); } else { $vendor = $model->getVendor($virtuemart_vendor_id); $model->addImages($vendor); if (VmConfig::get ('enable_content_plugin', 0)) { if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_store_desc'); shopFunctionsF::triggerContentPlugin($vendor, 'vendor','vendor_terms_of_service'); } $this->assignRef('vendor', $vendor); if(!class_exists('VirtueMartModelVendor')) require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'vendor.php'); $userId = VirtueMartModelVendor::getUserIdByVendorId($virtuemart_vendor_id); //$usermodel = VmModel::getModel('user'); //$virtuemart_userinfo_id = $usermodel->getBTuserinfo_id($userId); //$usermodel->getVendor($virtuemart_vendor_id); //$userFields = $usermodel->getUserInfoInUserFields($layoutName, 'BT', $virtuemart_userinfo_id,true,true); //$this->assignRef('userFields', $userFields); if ($layoutName=='tos') { $document->setTitle( JText::_('COM_VIRTUEMART_VENDOR_TOS') ); $pathway->addItem(JText::_('COM_VIRTUEMART_VENDOR_TOS')); } elseif ($layoutName=='contact') { $user = JFactory::getUser(); $document->setTitle( JText::_('COM_VIRTUEMART_VENDOR_CONTACT') ); $pathway->addItem(JText::_('COM_VIRTUEMART_VENDOR_CONTACT')); $this->assignRef('user', $user); } else { $document->setTitle( JText::_('COM_VIRTUEMART_VENDOR_DETAILS') ); $pathway->addItem(JText::_('COM_VIRTUEMART_VENDOR_DETAILS')); $this->setLayout('details'); } $linkdetails = ''.JText::_('COM_VIRTUEMART_VENDOR_DETAILS').''; $linkcontact = ''.JText::_('COM_VIRTUEMART_VENDOR_CONTACT').''; $linktos = ''.JText::_('COM_VIRTUEMART_VENDOR_TOS').''; //$this->assignRef('lineSeparator', $lineSeparator); $this->assignRef('linkdetails', $linkdetails); $this->assignRef('linkcontact', $linkcontact); $this->assignRef('linktos', $linktos); } parent::display($tpl); } function renderMailLayout($doVendor, $recipient) { $this->setLayout('mail_html_question'); $this->comment = JRequest::getString('comment'); $virtuemart_vendor_id = JRequest::getInt('virtuemart_vendor_id'); $this->doVendor=$doVendor; //$this->doVendor=TRUE; $vendorModel = VmModel::getModel('vendor'); $this->vendor = $vendorModel->getVendor($virtuemart_vendor_id); // in this particular case, overwrite the value for fix the recipient name $this->vendor->vendor_name= $this->user['name']; $this->subject = JText::_('COM_VIRTUEMART_VENDOR_CONTACT') .' '.$this->user['name']; $this->vendorEmail= $this->user['email']; //$this->vendorName= $this->user['email']; if (VmConfig::get('order_mail_html')) { $tpl = 'mail_html_question'; } else { $tpl = 'mail_raw_question'; } $this->setLayout($tpl); parent::display( ); } } //No Closing Tag vendor/metadata.xml000066600000000303151371757770010367 0ustar00 vendor/index.html000066600000000000151371757770010054 0ustar00vendor/tmpl/tos.php000066600000002570151371757770010367 0ustar00

vendor->vendor_store_name; if (!empty($this->vendor->images[0])) { ?>
vendor->images[0]->displayMediaThumb('',false); ?>

vendor->vendor_terms_of_service )) { ?>
vendor->vendor_terms_of_service ?>

linkdetails ?>
linkcontact ?>
vendor/tmpl/tos.xml000066600000002050151371757770010371 0ustar00 COM_VIRTUEMART_VENDOR_VIEW_TOS_TITLE
vendor/tmpl/.htaccess000066600000000177151371757770010650 0ustar00 Order allow,deny Deny from all vendor/tmpl/mail_html_question.php000066600000004144151371757770013456 0ustar00
vendor/tmpl/mail_confirmed.php000066600000002125151371757770012526 0ustar00

vendor/tmpl/details.xml000066600000002074151371757770011217 0ustar00 COM_VIRTUEMART_VENDOR_VIEW_DETAILS_TITLE
vendor/tmpl/details.php000066600000002662151371757770011211 0ustar00

vendor->vendor_store_name; if (!empty($this->vendor->images[0])) { ?>
vendor->images[0]->displayMediaThumb('',false); ?>

vendor->vendor_store_desc.'
'; if(!class_exists('ShopFunctions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'shopfunctions.php'); echo shopFunctions::renderVendorAddress($this->vendor->virtuemart_vendor_id); ?>
vendor->vendor_legal_info; ?>
linktos ?>
linkcontact ?>
vendor/tmpl/index.html000066600000000000151371757770011030 0ustar00vendor/tmpl/mail_raw_question.php000066600000000572151371757770013304 0ustar00vendor->vendor_store_name) . "\n" . "\n"; echo JText::_('COM_VIRTUEMART_QUESTION_ABOUT') . ' '. $this->product->product_name."\n" . "\n"; echo JText::sprintf('COM_VIRTUEMART_QUESTION_MAIL_FROM', $this->user->name, $this->user->email) . "\n"; echo $this->comment. "\n"; vendor/tmpl/default.xml000066600000000610151371757770011210 0ustar00 COM_VIRTUEMART_VENDOR_VIEW_DEFAULT_TITLE vendor/tmpl/contact.xml000066600000002074151371757770011225 0ustar00 COM_VIRTUEMART_VENDOR_VIEW_CONTACT_TITLE
vendor/tmpl/contact.php000066600000010474151371757770011217 0ustar00

vendor->vendor_store_name; if (!empty($this->vendor->images[0])) { ?>
vendor->images[0]->displayMediaThumb('',false); ?>

vendor->virtuemart_vendor_id); /* foreach($this->userFields as $userfields){ foreach($userfields['fields'] as $item){ if(!empty($item['value'])){ if($item['name']==='agreed'){ $item['value'] = ($item['value']===0) ? JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_NO'):JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_YES'); } ?> escape($item['value']) ?>
addScriptDeclaration(' jQuery(function($){ $("#askform").validationEngine("attach"); $("#comment").keyup( function () { var result = $(this).val(); $("#counter").val( result.length ); }); }); '); ?>




linkdetails ?>
linktos ?>
vendor/tmpl/default.php000066600000005650151371757770011210 0ustar00'; // Lets output the categories, if there are some if (!empty($this->vendors)) { ?>
vendors as $vendor ) { // Show the horizontal seperator if ($iColumn == 1 && $ivendor > $vendorPerRow) { echo $horizontalSeparator; } // this is an indicator wether a row needs to be opened or not if ($iColumn == 1) { ?>
virtuemart_vendor_id, FALSE); $vendorIncludedProductsURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_vendor_id=' . $vendor->virtuemart_vendor_id, FALSE); //$vendorImage = $vendor->images[0]->displayMediaThumb("",false); // Show Category ?>
vendor_name; ?>
'; $iColumn = 1; } else { $iColumn ++; } } // Do we need a final closing row tag? if ($iColumn != 1) { ?>
category/view.html.php000066600000015045151371757770011044 0ustar00getParams(); // Get some data from the models $state = $this->get('State'); $items = $this->get('Items'); $category = $this->get('Category'); $children = $this->get('Children'); $parent = $this->get('Parent'); $pagination = $this->get('Pagination'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } if ($category == false) { return JError::raiseWarning(404, JText::_('JGLOBAL_CATEGORY_NOT_FOUND')); } if ($parent == false) { return JError::raiseWarning(404, JText::_('JGLOBAL_CATEGORY_NOT_FOUND')); } // Check whether category access level allows access. // TODO: SHould already be computed in $category->params->get('access-view') $user = JFactory::getUser(); $groups = $user->getAuthorisedViewLevels(); if (!in_array($category->access, $groups)) { return JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR')); } // Prepare the data. // Compute the weblink slug & link url. for ($i = 0, $n = count($items); $i < $n; $i++) { $item = &$items[$i]; $item->slug = $item->alias ? ($item->id.':'.$item->alias) : $item->id; if ($item->params->get('count_clicks', $params->get('count_clicks')) == 1) { $item->link = JRoute::_('index.php?option=com_weblinks&task=weblink.go&id='. $item->id); } else { $item->link = $item->url; } $temp = new JRegistry(); $temp->loadString($item->params); $item->params = clone($params); $item->params->merge($temp); } // Setup the category parameters. $cparams = $category->getParams(); $category->params = clone($params); $category->params->merge($cparams); $children = array($category->id => $children); $maxLevel = $params->get('maxLevel', -1); $this->assignRef('maxLevel', $maxLevel); $this->assignRef('state', $state); $this->assignRef('items', $items); $this->assignRef('category', $category); $this->assignRef('children', $children); $this->assignRef('params', $params); $this->assignRef('parent', $parent); $this->assignRef('pagination', $pagination); //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx')); // Check for layout override only if this is not the active menu item // If it is the active menu item, then the view and category id will match $active = $app->getMenu()->getActive(); if ((!$active) || ((strpos($active->link, 'view=category') === false) || (strpos($active->link, '&id=' . (string) $this->category->id) === false))) { if ($layout = $category->params->get('category_layout')) { $this->setLayout($layout); } } elseif (isset($active->query['layout'])) { // We need to set the layout in case this is an alternative menu item (with an alternative layout) $this->setLayout($active->query['layout']); } $this->_prepareDocument(); parent::display($tpl); } /** * Prepares the document */ protected function _prepareDocument() { $app = JFactory::getApplication(); $menus = $app->getMenu(); $pathway = $app->getPathway(); $title = null; // Because the application sets a default page title, // we need to get it from the menu item itself $menu = $menus->getActive(); if ($menu) { $this->params->def('page_heading', $this->params->get('page_title', $menu->title)); } else { $this->params->def('page_heading', JText::_('COM_WEBLINKS_DEFAULT_PAGE_TITLE')); } $id = (int) @$menu->query['id']; if ($menu && ($menu->query['option'] != 'com_weblinks' || $id != $this->category->id)) { $this->params->set('page_subheading', $this->category->title); $path = array(array('title' => $this->category->title, 'link' => '')); $category = $this->category->getParent(); while (($menu->query['option'] != 'com_weblinks' || $id != $category->id) && $category->id > 1) { $path[] = array('title' => $category->title, 'link' => WeblinksHelperRoute::getCategoryRoute($category->id)); $category = $category->getParent(); } $path = array_reverse($path); foreach($path as $item) { $pathway->addItem($item['title'], $item['link']); } } $title = $this->params->get('page_title', ''); if (empty($title)) { $title = $app->getCfg('sitename'); } elseif ($app->getCfg('sitename_pagetitles', 0) == 1) { $title = JText::sprintf('JPAGETITLE', $app->getCfg('sitename'), $title); } elseif ($app->getCfg('sitename_pagetitles', 0) == 2) { $title = JText::sprintf('JPAGETITLE', $title, $app->getCfg('sitename')); } $this->document->setTitle($title); if ($this->category->metadesc) { $this->document->setDescription($this->category->metadesc); } elseif (!$this->category->metadesc && $this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } if ($this->category->metakey) { $this->document->setMetadata('keywords', $this->category->metakey); } elseif (!$this->category->metakey && $this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } if ($app->getCfg('MetaAuthor') == '1') { $this->document->setMetaData('author', $this->category->getMetadata()->get('author')); } $mdata = $this->category->getMetadata()->toArray(); foreach ($mdata as $k => $v) { if ($v) { $this->document->setMetadata($k, $v); } } // Add alternative feed link if ($this->params->get('show_feed_link', 1) == 1) { $link = '&format=feed&limitstart='; $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0'); $this->document->addHeadLink(JRoute::_($link.'&type=rss'), 'alternate', 'rel', $attribs); $attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0'); $this->document->addHeadLink(JRoute::_($link.'&type=atom'), 'alternate', 'rel', $attribs); } } } category/view.feed.php000066600000004303151371757770010776 0ustar00link = JRoute::_(WeblinksHelperRoute::getCategoryRoute(JRequest::getVar('id', null, '', 'int'))); JRequest::setVar('limit', $app->getCfg('feed_limit')); $params = $app->getParams(); $siteEmail = $app->getCfg('mailfrom'); $fromName = $app->getCfg('fromname'); $feedEmail = $app->getCfg('feed_email', 'author'); $document->editor = $fromName; if ($feedEmail != "none") { $document->editorEmail = $siteEmail; } // Get some data from the model $items = $this->get('Items'); $category = $this->get('Category'); foreach ($items as $item) { // strip html from feed item title $title = $this->escape($item->title); $title = html_entity_decode($title, ENT_COMPAT, 'UTF-8'); // url link to article $link = JRoute::_(WeblinksHelperRoute::getWeblinkRoute($item->id, $item->catid)); // strip html from feed item description text $description = $item->description; $author = $item->created_by_alias ? $item->created_by_alias : $item->author; $date = ($item->date ? date('r', strtotime($item->date)) : ''); // load individual item creator class $feeditem = new JFeedItem(); $feeditem->title = $title; $feeditem->link = $link; $feeditem->description = $description; $feeditem->date = $date; $feeditem->category = $category->title; $feeditem->author = $author; // We don't have the author email so we have to use site in both cases. if ($feedEmail == 'site') { $feeditem->authorEmail = $siteEmail; } elseif($feedEmail === 'author') { $feeditem->authorEmail = $item->author_email; } // loads item info into rss array $document->addItem($feeditem); } } } ?> category/index.html000066600000000037151371757770010406 0ustar00 category/.htaccess000066600000000177151371757770010214 0ustar00 Order allow,deny Deny from all category/tmpl/index.html000066600000000037151371757770011362 0ustar00 category/tmpl/categories.php000066600000005517151371757770012233 0ustar00category->haschildren) { // Category and Columns Counter $iCol = 1; $iCategory = 1; // Calculating Categories Per Row $categories_per_row = VmConfig::get ( 'categories_per_row', 3 ); $category_cellwidth = ' width'.floor ( 100 / $categories_per_row ); // Separator $verticalseparator = " vertical-separator"; ?>
category->children ) { foreach ( $this->category->children as $category ) { // Show the horizontal seperator if ($iCol == 1 && $iCategory > $categories_per_row) { ?>
virtuemart_category_id , FALSE); // Show Category ?>
category/tmpl/default.xml000066600000012442151371757770011536 0ustar00
category/tmpl/default.php000066600000003122151371757770011520 0ustar00 category/tmpl/.htaccess000066600000000177151371757770011170 0ustar00 Order allow,deny Deny from all search/view.html.php000066600000013735151372004600010452 0ustar00getPathway(); $uri = JFactory::getURI(); $error = null; $rows = null; $results= null; $total = 0; // Get some data from the model $areas = $this->get('areas'); $state = $this->get('state'); $searchword = $state->get('keyword'); $params = $app->getParams(); $menus = $app->getMenu(); $menu = $menus->getActive(); // because the application sets a default page title, we need to get it // right from the menu item itself if (is_object($menu)) { $menu_params = new JRegistry; $menu_params->loadString($menu->params); if (!$menu_params->get('page_title')) { $params->set('page_title', JText::_('COM_SEARCH_SEARCH')); } } else { $params->set('page_title', JText::_('COM_SEARCH_SEARCH')); } $title = $params->get('page_title'); if ($app->getCfg('sitename_pagetitles', 0) == 1) { $title = JText::sprintf('JPAGETITLE', $app->getCfg('sitename'), $title); } elseif ($app->getCfg('sitename_pagetitles', 0) == 2) { $title = JText::sprintf('JPAGETITLE', $title, $app->getCfg('sitename')); } $this->document->setTitle($title); if ($params->get('menu-meta_description')) { $this->document->setDescription($params->get('menu-meta_description')); } if ($params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $params->get('menu-meta_keywords')); } if ($params->get('robots')) { $this->document->setMetadata('robots', $params->get('robots')); } // built select lists $orders = array(); $orders[] = JHtml::_('select.option', 'newest', JText::_('COM_SEARCH_NEWEST_FIRST')); $orders[] = JHtml::_('select.option', 'oldest', JText::_('COM_SEARCH_OLDEST_FIRST')); $orders[] = JHtml::_('select.option', 'popular', JText::_('COM_SEARCH_MOST_POPULAR')); $orders[] = JHtml::_('select.option', 'alpha', JText::_('COM_SEARCH_ALPHABETICAL')); $orders[] = JHtml::_('select.option', 'category', JText::_('JCATEGORY')); $lists = array(); $lists['ordering'] = JHtml::_('select.genericlist', $orders, 'ordering', 'class="inputbox"', 'value', 'text', $state->get('ordering')); $searchphrases = array(); $searchphrases[] = JHtml::_('select.option', 'all', JText::_('COM_SEARCH_ALL_WORDS')); $searchphrases[] = JHtml::_('select.option', 'any', JText::_('COM_SEARCH_ANY_WORDS')); $searchphrases[] = JHtml::_('select.option', 'exact', JText::_('COM_SEARCH_EXACT_PHRASE')); $lists['searchphrase' ]= JHtml::_('select.radiolist', $searchphrases, 'searchphrase', '', 'value', 'text', $state->get('match')); // log the search SearchHelper::logSearch($searchword); //limit searchword $lang = JFactory::getLanguage(); $upper_limit = $lang->getUpperLimitSearchWord(); $lower_limit = $lang->getLowerLimitSearchWord(); if (SearchHelper::limitSearchWord($searchword)) { $error = JText::sprintf('COM_SEARCH_ERROR_SEARCH_MESSAGE', $lower_limit, $upper_limit); } //sanatise searchword if (SearchHelper::santiseSearchWord($searchword, $state->get('match'))) { $error = JText::_('COM_SEARCH_ERROR_IGNOREKEYWORD'); } if (!$searchword && count(JRequest::get('post'))) { //$error = JText::_('COM_SEARCH_ERROR_ENTERKEYWORD'); } // put the filtered results back into the model // for next release, the checks should be done in the model perhaps... $state->set('keyword', $searchword); if ($error == null) { $results = $this->get('data'); $total = $this->get('total'); $pagination = $this->get('pagination'); require_once JPATH_SITE . '/components/com_content/helpers/route.php'; for ($i=0, $count = count($results); $i < $count; $i++) { $row = &$results[$i]->text; if ($state->get('match') == 'exact') { $searchwords = array($searchword); $needle = $searchword; } else { $searchworda = preg_replace('#\xE3\x80\x80#s', ' ', $searchword); $searchwords = preg_split("/\s+/u", $searchworda); $needle = $searchwords[0]; } $row = SearchHelper::prepareSearchContent($row, $needle); $searchwords = array_unique($searchwords); $searchRegex = '#('; $x = 0; foreach ($searchwords as $k => $hlword) { $searchRegex .= ($x == 0 ? '' : '|'); $searchRegex .= preg_quote($hlword, '#'); $x++; } $searchRegex .= ')#iu'; $row = preg_replace($searchRegex, '\0', $row); $result = &$results[$i]; if ($result->created) { $created = JHtml::_('date', $result->created, JText::_('DATE_FORMAT_LC3')); } else { $created = ''; } $result->text = JHtml::_('content.prepare', $result->text, '', 'com_search.search'); $result->created = $created; $result->count = $i + 1; } } // Check for layout override $active = JFactory::getApplication()->getMenu()->getActive(); if (isset($active->query['layout'])) { $this->setLayout($active->query['layout']); } //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx')); $this->assignRef('pagination', $pagination); $this->assignRef('results', $results); $this->assignRef('lists', $lists); $this->assignRef('params', $params); $this->ordering = $state->get('ordering'); $this->searchword = $searchword; $this->origkeyword = $state->get('origkeyword'); $this->searchphrase = $state->get('match'); $this->searchareas = $areas; $this->total = $total; $this->error = $error; $this->action = $uri; parent::display($tpl); } } search/metadata.xml000066600000000215151372004600010313 0ustar00 search/tmpl/default_error.php000066600000000613151372004600012335 0ustar00 error): ?>
escape($this->error); ?>
search/tmpl/.htaccess000066600000000177151372004600010572 0ustar00 Order allow,deny Deny from all search/tmpl/index.html000066600000000037151372004600010764 0ustar00 search/tmpl/default_form.php000066600000004702151372004600012152 0ustar00getUpperLimitSearchWord(); ?>
searchword)):?>

total);?>

lists['searchphrase']; ?>
lists['ordering'];?>
params->get('search_areas', 1)) : ?>
searchareas['search'] as $val => $txt) : $checked = is_array($this->searchareas['active']) && in_array($val, $this->searchareas['active']) ? 'checked="checked"' : ''; ?> />
total > 0) : ?>
pagination->getLimitBox(); ?>

pagination->getPagesCounter(); ?>

search/tmpl/default.php000066600000001525151372004600011127 0ustar00
params->get('show_page_heading')) : ?>

escape($this->params->get('page_heading'))) :?> escape($this->params->get('page_heading')); ?> escape($this->params->get('page_title')); ?>

loadTemplate('form'); ?> error==null && count($this->results) > 0) : echo $this->loadTemplate('results'); else : echo $this->loadTemplate('error'); endif; ?>
search/tmpl/default.xml000066600000004406151372004600011141 0ustar00
search/tmpl/default_results.php000066600000002552151372004600012711 0ustar00
results as $result) : ?>
pagination->limitstart + $result->count.'. ';?> href) :?> browsernav == 1) :?> target="_blank"> escape($result->title);?> escape($result->title);?>
section) : ?>
(escape($result->section); ?>)
text; ?>
params->get('show_date')) : ?>
created); ?>
search/view.opensearch.php000066600000002352151372004600011626 0ustar00setShortName($params->get('opensearch_name', $app->getCfg('sitename'))); $doc->setDescription($params->get('opensearch_description', $app->getCfg('MetaDesc'))); // Add the URL for the search $searchUri = JURI::base().'index.php?option=com_search&searchword={searchTerms}'; // Find the menu item for the search $menu = $app->getMenu(); $items = $menu->getItems('link', 'index.php?option=com_search&view=search'); if (isset($items[0])) { $searchUri .= '&Itemid='.$items[0]->id; } $htmlSearch = new JOpenSearchUrl(); $htmlSearch->template = JRoute::_($searchUri); $doc->addUrl($htmlSearch); } } search/.htaccess000066600000000177151372004600007616 0ustar00 Order allow,deny Deny from all search/index.html000066600000000037151372004600010010 0ustar00 prevuuw/view.html.php000066600000003127151372052270010722 0ustar00client = JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int')); $this->id = JRequest::getVar('id', '', 'method', 'int'); $this->option = JRequest::getCmd('option'); $this->template = TemplatesHelper::getTemplateName($this->id); $this->tp = true; $this->url = $client->id ? JURI::base() : JURI::root(); if (!$this->template) { return JError::raiseWarning(500, JText::_('COM_TEMPLATES_TEMPLATE_NOT_SPECIFIED')); } // Set FTP credentials, if given JClientHelper::setCredentialsFromRequest('ftp'); parent::display($tpl); $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_TEMPLATES_MANAGER'), 'thememanager'); JToolBarHelper::custom('edit', 'back.png', 'back_f2.png', 'Back', false, false); } } prevuuw/.htaccess000066600000000177151372052270010074 0ustar00 Order allow,deny Deny from all prevuuw/index.html000066600000000037151372052270010266 0ustar00 prevuuw/tmpl/.htaccess000066600000000177151372052270011050 0ustar00 Order allow,deny Deny from all prevuuw/tmpl/index.html000066600000000037151372052270011242 0ustar00 prevuuw/tmpl/default.php000066600000002456151372052270011411 0ustar00

url.'index.php?tp='.$this->tp.'&template='.$this->id, JText::_('JBROWSERTARGET_NEW'), array('target' => '_blank')); ?>

url.'index.php?tp='.$this->tp.'&template='.$this->id, 'previewframe', array('class' => 'previewframe')) ?>
templates/tmpl/index.html000066600000000037151372052270011523 0ustar00 templates/tmpl/.htaccess000066600000000177151372052270011331 0ustar00 Order allow,deny Deny from all templates/tmpl/default.php000066600000011524151372052270011666 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
items as $i => $item) : ?>
 
pagination->getListFooter(); ?>
element, $item->client_id); ?> name)) ;?>

preview && $item->client_id == '0'): ?> client_id == '1'): ?>

client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?> escape($item->xmldata->get('version')); ?> escape($item->xmldata->get('creationDate')); ?> xmldata->get('author')) : ?>

escape($author); ?>

xmldata->get('authorEmail')) : ?>

escape($email); ?>

xmldata->get('authorUrl')) : ?>

escape($url); ?>

templates/index.html000066600000000037151372052270010547 0ustar00 templates/view.html.php000066600000003417151372052270011205 0ustar00items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->preview = JComponentHelper::getParams('com_templates')->get('template_positions_display'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } // Check if there are no matching items if(!count($this->items)) { JFactory::getApplication()->enqueueMessage( JText::_('COM_TEMPLATES_MSG_MANAGE_NO_TEMPLATES') , 'warning' ); } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @return void * @since 1.6 */ protected function addToolbar() { $state = $this->get('State'); $canDo = TemplatesHelper::getActions(); JToolBarHelper::title(JText::_('COM_TEMPLATES_MANAGER_TEMPLATES'), 'thememanager'); if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_templates'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_TEMPLATES'); } } templates/.htaccess000066600000000177151372052270010355 0ustar00 Order allow,deny Deny from all style/view.html.php000066600000004002151372052270010336 0ustar00item = $this->get('Item'); $this->state = $this->get('State'); $this->form = $this->get('Form'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JRequest::setVar('hidemainmenu', true); $user = JFactory::getUser(); $isNew = ($this->item->id == 0); $canDo = TemplatesHelper::getActions(); JToolBarHelper::title( $isNew ? JText::_('COM_TEMPLATES_MANAGER_ADD_STYLE') : JText::_('COM_TEMPLATES_MANAGER_EDIT_STYLE'), 'thememanager' ); // If not checked out, can save the item. if ($canDo->get('core.edit')) { JToolBarHelper::apply('style.apply'); JToolBarHelper::save('style.save'); } // If an existing item, can save to a copy. if (!$isNew && $canDo->get('core.create')) { JToolBarHelper::save2copy('style.save2copy'); } if (empty($this->item->id)) { JToolBarHelper::cancel('style.cancel'); } else { JToolBarHelper::cancel('style.cancel', 'JTOOLBAR_CLOSE'); } JToolBarHelper::divider(); // Get the help information for the template item. $lang = JFactory::getLanguage(); $help = $this->get('Help'); if ($lang->hasKey($help->url)) { $debug = $lang->setDebug(false); $url = JText::_($help->url); $lang->setDebug($debug); } else { $url = null; } JToolBarHelper::help($help->key, false, $url); } } style/.htaccess000066600000000177151372052270007517 0ustar00 Order allow,deny Deny from all style/index.html000066600000000037151372052270007711 0ustar00 style/tmpl/edit.php000066600000005770151372052270010337 0ustar00
  • form->getLabel('title'); ?> form->getInput('title'); ?>
  • form->getLabel('template'); ?> form->getInput('template'); ?> form->getLabel('client_id'); ?> form->getInput('client_id'); ?>
  • form->getLabel('home'); ?> form->getInput('home'); ?>
  • item->id) : ?>
  • form->getLabel('id'); ?> item->id; ?>
item->xml) : ?> item->xml->description)) : ?>

item->id); ?> loadTemplate('options'); ?>
authorise('core.edit', 'com_menu') && $this->item->client_id==0):?> get('core.edit.state')) : ?>
loadTemplate('assignment'); ?>
style/tmpl/.htaccess000066600000000177151372052270010473 0ustar00 Order allow,deny Deny from all style/tmpl/index.html000066600000000037151372052270010665 0ustar00 style/tmpl/edit_options.php000066600000002053151372052270012101 0ustar00form->getFieldsets('params'); foreach ($fieldSets as $name => $fieldSet) : $label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_TEMPLATES_'.$name.'_FIELDSET_LABEL'; echo JHtml::_('sliders.panel', JText::_($label), $name.'-options'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

'.$this->escape(JText::_($fieldSet->description)).'

'; endif; ?>
style/tmpl/edit_assignment.php000066600000003341151372052270012557 0ustar00
source/.htaccess000066600000000177151372052270007657 0ustar00 Order allow,deny Deny from all source/view.html.php000066600000003104151372052270010500 0ustar00form = $this->get('Form'); $this->ftp = JClientHelper::setCredentialsFromRequest('ftp'); $this->source = $this->get('Source'); $this->state = $this->get('State'); $this->template = $this->get('Template'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JRequest::setVar('hidemainmenu', true); $user = JFactory::getUser(); $canDo = TemplatesHelper::getActions(); JToolBarHelper::title(JText::_('COM_TEMPLATES_MANAGER_EDIT_FILE'), 'thememanager'); // Can save the item. if ($canDo->get('core.edit')) { JToolBarHelper::apply('source.apply'); JToolBarHelper::save('source.save'); } JToolBarHelper::cancel('source.cancel'); JToolBarHelper::divider(); JToolBarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_TEMPLATES_EDIT_SOURCE'); } } source/tmpl/edit.php000066600000003154151372052270010471 0ustar00
ftp) : ?> loadTemplate('ftp'); ?>
source->filename, $this->template->element); ?> form->getLabel('source'); ?>
form->getInput('source'); ?>
form->getInput('extension_id'); ?> form->getInput('filename'); ?>
source/tmpl/.htaccess000066600000000177151372052270010633 0ustar00 Order allow,deny Deny from all source/tmpl/index.html000066600000000037151372052270011025 0ustar00 source/tmpl/edit_ftp.php000066600000002243151372052270011340 0ustar00
ftp instanceof Exception): ?>

ftp->message); ?>

source/index.html000066600000000037151372052270010051 0ustar00 styles/view.html.php000066600000004211151372052270010523 0ustar00items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->preview = JComponentHelper::getParams('com_templates')->get('template_positions_display'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } // Check if there are no matching items if(!count($this->items)) { JFactory::getApplication()->enqueueMessage( JText::_('COM_TEMPLATES_MSG_MANAGE_NO_STYLES') , 'warning' ); } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $state = $this->get('State'); $canDo = TemplatesHelper::getActions(); $isSite = ($state->get('filter.client_id') == 0); JToolBarHelper::title(JText::_('COM_TEMPLATES_MANAGER_STYLES'), 'thememanager'); if ($canDo->get('core.edit.state')) { JToolBarHelper::makeDefault('styles.setDefault', 'COM_TEMPLATES_TOOLBAR_SET_HOME'); JToolBarHelper::divider(); } if ($canDo->get('core.edit')) { JToolBarHelper::editList('style.edit'); } if ($canDo->get('core.create')) { JToolBarHelper::custom('styles.duplicate', 'copy.png', 'copy_f2.png', 'JTOOLBAR_DUPLICATE', true); JToolBarHelper::divider(); } if ($canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'styles.delete'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_templates'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_STYLES'); } } styles/tmpl/index.html000066600000000037151372052270011050 0ustar00 styles/tmpl/default.php000066600000015277151372052270011224 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
items as $i => $item) : $canCreate = $user->authorise('core.create', 'com_templates'); $canEdit = $user->authorise('core.edit', 'com_templates'); $canChange = $user->authorise('core.edit.state', 'com_templates'); ?>
 
pagination->getListFooter(); ?>
id); ?> preview && $item->client_id == '0'): ?> client_id == '1'): ?> escape($item->title);?> escape($item->title);?> client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?> home == '0' || $item->home == '1'):?> home!='0', $i, 'styles.', $canChange && $item->home!='1');?> image.'.gif', $item->language_title, array('title'=>JText::sprintf('COM_TEMPLATES_GRID_UNSET_LANGUAGE', $item->language_title)), true);?> image.'.gif', $item->language_title, array('title'=>$item->language_title), true);?> assigned > 0) : ?> assigned), array('title'=>JText::plural('COM_TEMPLATES_ASSIGNED', $item->assigned)), true); ?>   id; ?>
styles/tmpl/.htaccess000066600000000177151372052270010656 0ustar00 Order allow,deny Deny from all styles/index.html000066600000000037151372052270010074 0ustar00 styles/.htaccess000066600000000177151372052270007702 0ustar00 Order allow,deny Deny from all template/view.html.php000066600000002437151372052270011023 0ustar00files = $this->get('Files'); $this->state = $this->get('State'); $this->template = $this->get('Template'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JRequest::setVar('hidemainmenu', true); $user = JFactory::getUser(); $canDo = TemplatesHelper::getActions(); JToolBarHelper::title(JText::_('COM_TEMPLATES_MANAGER_VIEW_TEMPLATE'), 'thememanager'); JToolBarHelper::cancel('template.cancel', 'JTOOLBAR_CLOSE'); JToolBarHelper::divider(); JToolBarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_TEMPLATES_EDIT'); } } template/index.html000066600000000037151372052270010364 0ustar00 template/.htaccess000066600000000177151372052270010172 0ustar00 Order allow,deny Deny from all template/tmpl/default.php000066600000011440151372052270011500 0ustar00
template->element, $this->template->client_id); ?>

template->element); ?>

template->client_id); ?>

template->xmldata = TemplatesHelper::parseXMLTemplateFile($client->path, $this->template->element);?>

template->xmldata->description); ?>

files['css'])) : ?>
template/tmpl/index.html000066600000000037151372052270011340 0ustar00 template/tmpl/.htaccess000066600000000177151372052270011146 0ustar00 Order allow,deny Deny from all contact/.htaccess000066600000000177151372056740010020 0ustar00 Order allow,deny Deny from all contact/view.html.php000066600000005212151372056740010643 0ustar00form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JRequest::setVar('hidemainmenu', true); $user = JFactory::getUser(); $userId = $user->get('id'); $isNew = ($this->item->id == 0); $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId); // Since we don't track these assets at the item level, use the category id. $canDo = ContactHelper::getActions($this->item->catid, 0); JToolBarHelper::title(JText::_('COM_CONTACT_MANAGER_CONTACT'), 'contact.png'); // Build the actions for new and existing records. if ($isNew) { // For new records, check the create permission. if ($isNew && (count($user->getAuthorisedCategories('com_contact', 'core.create')) > 0)) { JToolBarHelper::apply('contact.apply'); JToolBarHelper::save('contact.save'); JToolBarHelper::save2new('contact.save2new'); } JToolBarHelper::cancel('contact.cancel'); } else { // Can't save the record if it's checked out. if (!$checkedOut) { // Since it's an existing record, check the edit permission, or fall back to edit own if the owner. if ($canDo->get('core.edit') || ($canDo->get('core.edit.own') && $this->item->created_by == $userId)) { JToolBarHelper::apply('contact.apply'); JToolBarHelper::save('contact.save'); // We can save this record, but check the create permission to see if we can return to make a new one. if ($canDo->get('core.create')) { JToolBarHelper::save2new('contact.save2new'); } } } // If checked out, we can still save if ($canDo->get('core.create')) { JToolBarHelper::save2copy('contact.save2copy'); } JToolBarHelper::cancel('contact.cancel', 'JTOOLBAR_CLOSE'); } JToolBarHelper::divider(); JToolBarHelper::help('JHELP_COMPONENTS_CONTACTS_CONTACTS_EDIT'); } } contact/tmpl/edit.php000066600000014040151372056740010626 0ustar00
item->id) ? JText::_('COM_CONTACT_NEW_CONTACT') : JText::sprintf('COM_CONTACT_EDIT_CONTACT', $this->item->id); ?>
  • form->getLabel('name'); ?> form->getInput('name'); ?>
  • form->getLabel('alias'); ?> form->getInput('alias'); ?>
  • form->getLabel('user_id'); ?> form->getInput('user_id'); ?>
  • form->getLabel('catid'); ?> form->getInput('catid'); ?>
  • form->getLabel('published'); ?> form->getInput('published'); ?>
  • form->getLabel('access'); ?> form->getInput('access'); ?>
  • form->getLabel('ordering'); ?> form->getInput('ordering'); ?>
  • form->getLabel('featured'); ?> form->getInput('featured'); ?>
  • form->getLabel('language'); ?> form->getInput('language'); ?>
  • form->getLabel('id'); ?> form->getInput('id'); ?>
form->getLabel('misc'); ?>
form->getInput('misc'); ?>
  • form->getLabel('created_by'); ?> form->getInput('created_by'); ?>
  • form->getLabel('created_by_alias'); ?> form->getInput('created_by_alias'); ?>
  • form->getLabel('created'); ?> form->getInput('created'); ?>
  • form->getLabel('publish_up'); ?> form->getInput('publish_up'); ?>
  • form->getLabel('publish_down'); ?> form->getInput('publish_down'); ?>
  • item->modified_by) : ?>
  • form->getLabel('modified_by'); ?> form->getInput('modified_by'); ?>
  • form->getLabel('modified'); ?> form->getInput('modified'); ?>

item->id) ? JText::_('COM_CONTACT_DETAILS') : JText::sprintf('COM_CONTACT_EDIT_DETAILS', $this->item->id); ?>

  • form->getLabel('image'); ?> form->getInput('image'); ?>
  • form->getLabel('con_position'); ?> form->getInput('con_position'); ?>
  • form->getLabel('email_to'); ?> form->getInput('email_to'); ?>
  • form->getLabel('address'); ?> form->getInput('address'); ?>
  • form->getLabel('suburb'); ?> form->getInput('suburb'); ?>
  • form->getLabel('state'); ?> form->getInput('state'); ?>
  • form->getLabel('postcode'); ?> form->getInput('postcode'); ?>
  • form->getLabel('country'); ?> form->getInput('country'); ?>
  • form->getLabel('telephone'); ?> form->getInput('telephone'); ?>
  • form->getLabel('mobile'); ?> form->getInput('mobile'); ?>
  • form->getLabel('fax'); ?> form->getInput('fax'); ?>
  • form->getLabel('webpage'); ?> form->getInput('webpage'); ?>
  • form->getLabel('sortname1'); ?> form->getInput('sortname1'); ?>
  • form->getLabel('sortname2'); ?> form->getInput('sortname2'); ?>
  • form->getLabel('sortname3'); ?> form->getInput('sortname3'); ?>
loadTemplate('params'); ?> loadTemplate('metadata'); ?>
contact/tmpl/edit_params.php000066600000001572151372056740012177 0ustar00form->getFieldsets('params'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel', JText::_($fieldSet->label), $name.'-params'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

'.$this->escape(JText::_($fieldSet->description)).'

'; endif; ?>
contact/tmpl/edit_metadata.php000066600000002476151372056740012500 0ustar00form->getFieldsets('metadata'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel', JText::_($fieldSet->label), $name.'-options'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

'.$this->escape(JText::_($fieldSet->description)).'

'; endif; ?>
contact/tmpl/.htaccess000066600000000177151372056740010774 0ustar00 Order allow,deny Deny from all contact/tmpl/index.html000066600000000037151372056740011166 0ustar00 contact/index.html000066600000000037151372056740010212 0ustar00 contacts/tmpl/index.html000066600000000037151372056740011351 0ustar00 contacts/tmpl/.htaccess000066600000000177151372056740011157 0ustar00 Order allow,deny Deny from all contacts/tmpl/default.php000066600000021357151372056740011521 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_contact.category'); $saveOrder = $listOrder == 'a.ordering'; ?>
items); foreach ($this->items as $i => $item) : $ordering = $listOrder == 'a.ordering'; $canCreate = $user->authorise('core.create', 'com_contact.category.'.$item->catid); $canEdit = $user->authorise('core.edit', 'com_contact.category.'.$item->catid); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0; $canEditOwn = $user->authorise('core.edit.own', 'com_contact.category.'.$item->catid) && $item->created_by == $userId; $canChange = $user->authorise('core.edit.state', 'com_contact.category.'.$item->catid) && $canCheckin; $item->cat_link = JRoute::_('index.php?option=com_categories&extension=com_contact&task=edit&type=other&id='.$item->catid); ?>
items, 'filesave.png', 'contacts.saveorder'); ?>
pagination->getListFooter(); ?>
id); ?> checked_out) : ?> editor, $item->checked_out_time, 'contacts.', $canCheckin); ?> escape($item->name); ?> escape($item->name); ?>

escape($item->alias));?>

linked_user)) : ?> linked_user;?> published, $i, 'contacts.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> featured, $i, $canChange); ?> category_title; ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'contacts.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $n, ($item->catid == @$this->items[$i+1]->catid), 'contacts.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'contacts.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $n, ($item->catid == @$this->items[$i+1]->catid), 'contacts.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" /> ordering; ?> access_level; ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
authorize('core.create', 'com_contacts') && $user->authorize('core.edit', 'com_contacts') && $user->authorize('core.edit.state', 'com_contacts')) : ?> loadTemplate('batch'); ?>
contacts/tmpl/modal.php000066600000011576151372056740011173 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
items as $i => $item) : ?>
pagination->getListFooter(); ?>
escape($item->name); ?> linked_user)) : ?> linked_user;?> escape($item->access_level); ?> escape($item->category_title); ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
contacts/tmpl/default_batch.php000066600000002155151372056740012655 0ustar00state->get('filter.published'); ?>

= 0) : ?>
contacts/index.html000066600000000037151372056740010375 0ustar00 contacts/view.html.php000066600000005076151372056740011036 0ustar00items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } // Preprocess the list of items to find ordering divisions. // TODO: Complete the ordering stuff with nested sets foreach ($this->items as &$item) { $item->order_up = true; $item->order_dn = true; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { require_once JPATH_COMPONENT.'/helpers/contact.php'; $canDo = ContactHelper::getActions($this->state->get('filter.category_id')); $user = JFactory::getUser(); JToolBarHelper::title(JText::_('COM_CONTACT_MANAGER_CONTACTS'), 'contact.png'); if ($canDo->get('core.create') || (count($user->getAuthorisedCategories('com_contact', 'core.create'))) > 0) { JToolBarHelper::addNew('contact.add'); } if (($canDo->get('core.edit')) || ($canDo->get('core.edit.own'))) { JToolBarHelper::editList('contact.edit'); } if ($canDo->get('core.edit.state')) { JToolBarHelper::divider(); JToolBarHelper::publish('contacts.publish', 'JTOOLBAR_PUBLISH', true); JToolBarHelper::unpublish('contacts.unpublish', 'JTOOLBAR_UNPUBLISH', true); JToolBarHelper::divider(); JToolBarHelper::archiveList('contacts.archive'); JToolBarHelper::checkin('contacts.checkin'); } if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'contacts.delete', 'JTOOLBAR_EMPTY_TRASH'); JToolBarHelper::divider(); } elseif ($canDo->get('core.edit.state')) { JToolBarHelper::trash('contacts.trash'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_contact'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_COMPONENTS_CONTACTS_CONTACTS'); } } contacts/.htaccess000066600000000177151372056740010203 0ustar00 Order allow,deny Deny from all media/.htaccess000066600000000177151372064650007443 0ustar00 Order allow,deny Deny from all media/tmpl/index.html000066600000000037151372064650010611 0ustar00 media/tmpl/default_folders.php000066600000001275151372064650012474 0ustar00 media/tmpl/.htaccess000066600000000177151372064650010417 0ustar00 Order allow,deny Deny from all media/tmpl/default_navigation.php000066600000001764151372064650013200 0ustar00getUserStateFromRequest('media.list.layout', 'layout', 'thumbs', 'word'); ?> media/tmpl/default.php000066600000010103151372064650010744 0ustar00
loadTemplate('folders'); ?>
authorise('core.create', 'com_media')) and $this->require_ftp): ?>
authorise('core.create', 'com_media')): ?>
authorise('core.create', 'com_media')):?>
config->get('upload_maxsize')=='0' ? JText::_('COM_MEDIA_UPLOAD_FILES_NOLIMIT') : JText::sprintf('COM_MEDIA_UPLOAD_FILES', $this->config->get('upload_maxsize')); ?>
media/view.html.php000066600000006771151372064650010301 0ustar00getUserStateFromRequest('media.list.layout', 'layout', 'thumbs', 'word'); $document = JFactory::getDocument(); $document->setBuffer($this->loadTemplate('navigation'), 'modules', 'submenu'); JHtml::_('behavior.framework', true); JHtml::_('script', 'media/mediamanager.js', true, true); JHtml::_('stylesheet', 'media/mediamanager.css', array(), true); if ($lang->isRTL()) : JHtml::_('stylesheet', 'media/mediamanager_rtl.css', array(), true); endif; JHtml::_('behavior.modal'); $document->addScriptDeclaration(" window.addEvent('domready', function() { document.preview = SqueezeBox; });"); JHtml::_('script', 'system/mootree.js', true, true, false, false); JHtml::_('stylesheet', 'system/mootree.css', array(), true); if ($lang->isRTL()) : JHtml::_('stylesheet', 'media/mootree_rtl.css', array(), true); endif; if (DIRECTORY_SEPARATOR == '\\') { $base = str_replace(DIRECTORY_SEPARATOR, "\\\\", COM_MEDIA_BASE); } else { $base = COM_MEDIA_BASE; } $js = " var basepath = '".$base."'; var viewstyle = '".$style."'; " ; $document->addScriptDeclaration($js); /* * Display form for FTP credentials? * Don't set them here, as there are other functions called before this one if there is any file write operation */ $ftp = !JClientHelper::hasCredentials('ftp'); $session = JFactory::getSession(); $state = $this->get('state'); $this->assignRef('session', $session); $this->assignRef('config', $config); $this->assignRef('state', $state); $this->require_ftp = $ftp; $this->folders_id = ' id="media-tree"'; $this->folders = $this->get('folderTree'); // Set the toolbar $this->addToolbar(); parent::display($tpl); echo JHtml::_('behavior.keepalive'); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { // Get the toolbar object instance $bar = JToolBar::getInstance('toolbar'); $user = JFactory::getUser(); // Set the titlebar text JToolBarHelper::title(JText::_('COM_MEDIA'), 'mediamanager.png'); // Add a delete button if ($user->authorise('core.delete', 'com_media')) { $title = JText::_('JTOOLBAR_DELETE'); $dhtml = " $title"; $bar->appendButton('Custom', $dhtml, 'delete'); JToolBarHelper::divider(); } // Add a delete button if ($user->authorise('core.admin', 'com_media')) { JToolBarHelper::preferences('com_media', 450, 800, 'JToolbar_Options', '', 'window.location.reload()'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_CONTENT_MEDIA_MANAGER'); } function getFolderLevel($folder) { $this->folders_id = null; $txt = null; if (isset($folder['children']) && count($folder['children'])) { $tmp = $this->folders; $this->folders = $folder; $txt = $this->loadTemplate('folders'); $this->folders = $tmp; } return $txt; } } media/index.html000066600000000037151372064650007635 0ustar00 images/tmpl/index.html000066600000000037151372064650010777 0ustar00 images/tmpl/default.php000066600000012020151372064650011132 0ustar00
folderList; ?>
state->get('field.id')):?> state->get('field.id')):?>
authorise('core.create', 'com_media')): ?>
config->get('upload_maxsize')=='0' ? JText::_('COM_MEDIA_UPLOAD_FILES_NOLIMIT') : JText::sprintf('COM_MEDIA_UPLOAD_FILES', $this->config->get('upload_maxsize')); ?>
images/tmpl/.htaccess000066600000000177151372064650010605 0ustar00 Order allow,deny Deny from all images/view.html.php000066600000002365151372064650010462 0ustar00isRTL()) { JHtml::_('stylesheet', 'media/popup-imagemanager_rtl.css', array(), true); } /* * Display form for FTP credentials? * Don't set them here, as there are other functions called before this one if there is any file write operation */ $ftp = !JClientHelper::hasCredentials('ftp'); $this->session = JFactory::getSession(); $this->config = $config; $this->state = $this->get('state'); $this->folderList = $this->get('folderList'); $this->require_ftp = $ftp; parent::display($tpl); } } images/.htaccess000066600000000177151372064650007631 0ustar00 Order allow,deny Deny from all images/index.html000066600000000037151372064650010023 0ustar00 medialist/.htaccess000066600000000177151372064650010337 0ustar00 Order allow,deny Deny from all medialist/view.html.php000066600000005222151372064650011163 0ustar00getUserStateFromRequest('media.list.layout', 'layout', 'thumbs', 'word'); $lang = JFactory::getLanguage(); JHtml::_('behavior.framework', true); $document = JFactory::getDocument(); $document->addStyleSheet('../media/media/css/medialist-'.$style.'.css'); if ($lang->isRTL()) : $document->addStyleSheet('../media/media/css/medialist-'.$style.'_rtl.css'); endif; $document->addScriptDeclaration(" window.addEvent('domready', function() { window.parent.document.updateUploader(); $$('a.img-preview').each(function(el) { el.addEvent('click', function(e) { new Event(e).stop(); window.top.document.preview.fromElement(el); }); }); });"); $images = $this->get('images'); $documents = $this->get('documents'); $folders = $this->get('folders'); $state = $this->get('state'); // Check for invalid folder name if (empty($state->folder)) { $dirname = JRequest::getVar('folder', '', '', 'string'); if (!empty($dirname)) { $dirname = htmlspecialchars($dirname, ENT_COMPAT, 'UTF-8'); if ($lang->hasKey('COM_MEDIA_ERROR_UNABLE_TO_BROWSE_FOLDER_WARNDIRNAME')) { JError::raiseWarning(100, JText::sprintf('COM_MEDIA_ERROR_UNABLE_TO_BROWSE_FOLDER_WARNDIRNAME', $dirname)); } else { JError::raiseWarning(100, sprintf('Unable to browse: %s. Directory name must only contain alphanumeric characters and no spaces.', $dirname)); } } } $this->baseURL = JURI::root(); $this->assignRef('images', $images); $this->assignRef('documents', $documents); $this->assignRef('folders', $folders); $this->assignRef('state', $state); parent::display($tpl); } function setFolder($index = 0) { if (isset($this->folders[$index])) { $this->_tmp_folder = &$this->folders[$index]; } else { $this->_tmp_folder = new JObject; } } function setImage($index = 0) { if (isset($this->images[$index])) { $this->_tmp_img = &$this->images[$index]; } else { $this->_tmp_img = new JObject; } } function setDoc($index = 0) { if (isset($this->documents[$index])) { $this->_tmp_doc = &$this->documents[$index]; } else { $this->_tmp_doc = new JObject; } } } medialist/index.html000066600000000037151372064650010531 0ustar00 medialist/tmpl/thumbs_folder.php000066600000003402151372064650013055 0ustar00
authorise('core.delete', 'com_media')):?> 16, 'height' => 16, 'border' => 0), true); ?>
_tmp_folder->name, 0, 10) . (strlen($this->_tmp_folder->name) > 10 ? '...' : ''); ?>
medialist/tmpl/thumbs_doc.php000066600000003470151372064650012354 0ustar00trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_doc, &$params)); ?>
authorise('core.delete', 'com_media')):?> 16, 'height' => 16), true); ?>
_tmp_doc->title; ?>
trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_doc, &$params)); ?> medialist/tmpl/thumbs_img.php000066600000004140151372064650012356 0ustar00trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_img, &$params)); ?>
authorise('core.delete', 'com_media')):?> 16, 'height' => 16), true); ?>
escape(substr($this->_tmp_img->title, 0, 10) . (strlen($this->_tmp_img->title) > 10 ? '...' : '')); ?>
trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_img, &$params)); ?> medialist/tmpl/details_doc.php000066600000003530151372064650012474 0ustar00trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_doc, &$params)); ?> _tmp_doc->icon_16, $this->_tmp_doc->title, null, true, true) ? JHtml::_('image', $this->_tmp_doc->icon_16, $this->_tmp_doc->title, array('width' => 16, 'height' => 16), true) : JHtml::_('image', 'media/con_info.png', $this->_tmp_doc->title, array('width' => 16, 'height' => 16), true);?> _tmp_doc->title; ?>   _tmp_doc->size); ?> authorise('core.delete', 'com_media')):?> 16, 'height' => 16, 'border' => 0), true);?> trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_doc, &$params)); ?> medialist/tmpl/details_img.php000066600000004121151372064650012500 0ustar00trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_img, &$params)); ?> _tmp_img->path_relative, JText::sprintf('COM_MEDIA_IMAGE_TITLE', $this->_tmp_img->title, MediaHelper::parseSize($this->_tmp_img->size)), array('width' => $this->_tmp_img->width_16, 'height' => $this->_tmp_img->height_16)); ?> escape($this->_tmp_img->title); ?> _tmp_img->width, $this->_tmp_img->height); ?> _tmp_img->size); ?> authorise('core.delete', 'com_media')):?> 16, 'height' => 16), true); ?> trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_img, &$params)); ?> medialist/tmpl/details_up.php000066600000001674151372064650012362 0ustar00 16, 'height' => 16), true); ?> ..     authorise('core.delete', 'com_media')):?>   medialist/tmpl/index.html000066600000000037151372064650011505 0ustar00 medialist/tmpl/details_folder.php000066600000003146151372064650013205 0ustar00 _tmp_folder->name, array('width' => 16, 'height' => 16), true); ?> _tmp_folder->name; ?>     authorise('core.delete', 'com_media')):?> 16, 'height' => 16), true); ?> medialist/tmpl/.htaccess000066600000000177151372064650011313 0ustar00 Order allow,deny Deny from all medialist/tmpl/thumbs_up.php000066600000001647151372064650012237 0ustar00
 
..
medialist/tmpl/details.php000066600000003227151372064650011652 0ustar00
authorise('core.delete', 'com_media')):?> loadTemplate('up'); ?> folders); $i<$n; $i++) : $this->setFolder($i); echo $this->loadTemplate('folder'); endfor; ?> documents); $i<$n; $i++) : $this->setDoc($i); echo $this->loadTemplate('doc'); endfor; ?> images); $i<$n; $i++) : $this->setImage($i); echo $this->loadTemplate('img'); endfor; ?>
medialist/tmpl/thumbs.php000066600000002174151372064650011527 0ustar00
loadTemplate('up'); ?> folders); $i<$n; $i++) : $this->setFolder($i); echo $this->loadTemplate('folder'); endfor; ?> documents); $i<$n; $i++) : $this->setDoc($i); echo $this->loadTemplate('doc'); endfor; ?> images); $i<$n; $i++) : $this->setImage($i); echo $this->loadTemplate('img'); endfor; ?>
medialist/tmpl/default.php000066600000000434151372064650011646 0ustar00isRTL()) : JHtml::_('stylesheet', 'media/popup-imagelist_rtl.css', array(), true); endif; $document = JFactory::getDocument(); $document->addScriptDeclaration("var ImageManager = window.parent.ImageManager;"); $images = $this->get('images'); $folders = $this->get('folders'); $state = $this->get('state'); $this->baseURL = COM_MEDIA_BASEURL; $this->assignRef('images', $images); $this->assignRef('folders', $folders); $this->assignRef('state', $state); parent::display($tpl); } function setFolder($index = 0) { if (isset($this->folders[$index])) { $this->_tmp_folder = &$this->folders[$index]; } else { $this->_tmp_folder = new JObject; } } function setImage($index = 0) { if (isset($this->images[$index])) { $this->_tmp_img = &$this->images[$index]; } else { $this->_tmp_img = new JObject; } } } imageslist/.htaccess000066600000000177151372064650010525 0ustar00 Order allow,deny Deny from all imageslist/index.html000066600000000037151372064650010717 0ustar00 imageslist/tmpl/default_image.php000066600000002153151372064650013176 0ustar00trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_img, &$params)); ?>
baseURL.'/'.$this->_tmp_img->path_relative, JText::sprintf('COM_MEDIA_IMAGE_TITLE', $this->_tmp_img->title, MediaHelper::parseSize($this->_tmp_img->size)), array('width' => $this->_tmp_img->width_60, 'height' => $this->_tmp_img->height_60)); ?> _tmp_img->title; ?>
trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_img, &$params)); ?> imageslist/tmpl/.htaccess000066600000000177151372064650011501 0ustar00 Order allow,deny Deny from all imageslist/tmpl/index.html000066600000000037151372064650011673 0ustar00 imageslist/tmpl/default.php000066600000001422151372064650012032 0ustar00 images) > 0 || count($this->folders) > 0) { ?>
folders); $i<$n; $i++) : $this->setFolder($i); echo $this->loadTemplate('folder'); endfor; ?> images); $i<$n; $i++) : $this->setImage($i); echo $this->loadTemplate('image'); endfor; ?>

imageslist/tmpl/default_folder.php000066600000001341151372064650013365 0ustar00
_tmp_folder->name, array('height' => 80, 'width' => 80), true); ?> _tmp_folder->name; ?>
sysinfo/tmpl/default_phpsettings.php000066600000007464151372065130014021 0ustar00
 
php_settings['safe_mode']); ?>
php_settings['open_basedir']); ?>
php_settings['display_errors']); ?>
php_settings['short_open_tag']); ?>
php_settings['file_uploads']); ?>
php_settings['magic_quotes_gpc']); ?>
php_settings['register_globals']); ?>
php_settings['output_buffering']); ?>
php_settings['session.save_path']); ?>
php_settings['session.auto_start']); ?>
php_settings['xml']); ?>
php_settings['zlib']); ?>
php_settings['zip']); ?>
php_settings['disable_functions']); ?>
php_settings['mbstring']); ?>
php_settings['iconv']); ?>
sysinfo/tmpl/index.html000066600000000037151372065130011216 0ustar00 sysinfo/tmpl/.htaccess000066600000000177151372065130011024 0ustar00 Order allow,deny Deny from all sysinfo/tmpl/default_directory.php000066600000002010151372065130013433 0ustar00
directory as $dir=>$info):?>
 
sysinfo/tmpl/default.php000066600000002714151372065130011362 0ustar00
loadTemplate('system'); ?>
loadTemplate('phpsettings'); ?>
loadTemplate('config'); ?>
loadTemplate('directory'); ?>
loadTemplate('phpinfo'); ?>
sysinfo/tmpl/default_navigation.php000066600000002261151372065130013576 0ustar00 sysinfo/tmpl/default_config.php000066600000001702151372065130012703 0ustar00
config as $key=>$value):?>
 
sysinfo/tmpl/default_phpinfo.php000066600000000655151372065130013107 0ustar00
php_info;?>
sysinfo/tmpl/default_system.php000066600000004421151372065130012763 0ustar00
 
info['php'];?>
info['dbversion'];?>
info['dbcollation'];?>
info['phpversion'];?>
info['server']); ?>
info['sapi_name'];?>
info['version'];?>
info['platform'];?>
info['useragent']);?>
sysinfo/.htaccess000066600000000177151372065130010050 0ustar00 Order allow,deny Deny from all sysinfo/index.html000066600000000037151372065130010242 0ustar00 sysinfo/view.html.php000066600000003342151372065130010675 0ustar00authorise('core.admin')) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } // Initialise variables. $this->php_settings = $this->get('PhpSettings'); $this->config = $this->get('config'); $this->info = $this->get('info'); $this->php_info = $this->get('PhpInfo'); $this->directory = $this->get('directory'); $this->addToolbar(); $this->_setSubMenu(); parent::display($tpl); } /** * Setup the SubMenu * * @since 1.6 */ protected function _setSubMenu() { $contents = $this->loadTemplate('navigation'); $document = JFactory::getDocument(); $document->setBuffer($contents, 'modules', 'submenu'); } /** * Setup the Toolbar * * @since 1.6 */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_ADMIN_SYSTEM_INFORMATION'), 'systeminfo.png'); JToolBarHelper::help('JHELP_SITE_SYSTEM_INFORMATION'); } } help/tmpl/.htaccess000066600000000177151372065130010262 0ustar00 Order allow,deny Deny from all help/tmpl/default.php000066600000005050151372065130010614 0ustar00
    toc as $k=>$v):?>
  • 'helpFrame'));?>
help/tmpl/index.html000066600000000037151372065130010454 0ustar00 help/view.html.php000066600000002623151372065130010134 0ustar00help_search = $this->get('HelpSearch'); $this->page = $this->get('Page'); $this->toc = $this->get('Toc'); $this->lang_tag = $this->get('LangTag'); $this->latest_version_check = $this->get('LatestVersionCheck'); $this->addToolbar(); parent::display($tpl); } /** * Setup the Toolbar * * @since 1.6 */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_ADMIN_HELP'), 'help_header.png'); } } help/index.html000066600000000037151372065130007500 0ustar00 help/.htaccess000066600000000177151372065130007306 0ustar00 Order allow,deny Deny from all articles/view.html.php000066600000006335151372065440011022 0ustar00items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); $this->authors = $this->get('Authors'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } // Levels filter. $options = array(); $options[] = JHtml::_('select.option', '1', JText::_('J1')); $options[] = JHtml::_('select.option', '2', JText::_('J2')); $options[] = JHtml::_('select.option', '3', JText::_('J3')); $options[] = JHtml::_('select.option', '4', JText::_('J4')); $options[] = JHtml::_('select.option', '5', JText::_('J5')); $options[] = JHtml::_('select.option', '6', JText::_('J6')); $options[] = JHtml::_('select.option', '7', JText::_('J7')); $options[] = JHtml::_('select.option', '8', JText::_('J8')); $options[] = JHtml::_('select.option', '9', JText::_('J9')); $options[] = JHtml::_('select.option', '10', JText::_('J10')); $this->f_levels = $options; // We don't need toolbar in the modal window. if ($this->getLayout() !== 'modal') { $this->addToolbar(); } parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $canDo = ContentHelper::getActions($this->state->get('filter.category_id')); $user = JFactory::getUser(); JToolBarHelper::title(JText::_('COM_CONTENT_ARTICLES_TITLE'), 'article.png'); if ($canDo->get('core.create') || (count($user->getAuthorisedCategories('com_content', 'core.create'))) > 0 ) { JToolBarHelper::addNew('article.add'); } if (($canDo->get('core.edit')) || ($canDo->get('core.edit.own'))) { JToolBarHelper::editList('article.edit'); } if ($canDo->get('core.edit.state')) { JToolBarHelper::divider(); JToolBarHelper::publish('articles.publish', 'JTOOLBAR_PUBLISH', true); JToolBarHelper::unpublish('articles.unpublish', 'JTOOLBAR_UNPUBLISH', true); JToolBarHelper::custom('articles.featured', 'featured.png', 'featured_f2.png', 'JFEATURED', true); JToolBarHelper::divider(); JToolBarHelper::archiveList('articles.archive'); JToolBarHelper::checkin('articles.checkin'); } if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'articles.delete', 'JTOOLBAR_EMPTY_TRASH'); JToolBarHelper::divider(); } elseif ($canDo->get('core.edit.state')) { JToolBarHelper::trash('articles.trash'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_content'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_CONTENT_ARTICLE_MANAGER'); } } articles/.htaccess000066600000000177151372065440010170 0ustar00 Order allow,deny Deny from all articles/tmpl/modal.php000066600000013305151372065440011150 0ustar00isSite()) { JSession::checkToken('get') or die(JText::_('JINVALID_TOKEN')); } require_once JPATH_ROOT . '/components/com_content/helpers/route.php'; JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); JHtml::_('behavior.tooltip'); $function = JRequest::getCmd('function', 'jSelectArticle'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
items as $i => $item) : ?> language && JLanguageMultilang::isEnabled()) { $tag = strlen($item->language); if ($tag == 5) { $lang = substr($item->language, 0, 2); } elseif ($tag == 6) { $lang = substr($item->language, 0, 3); } else { $lang = ""; } } elseif (!JLanguageMultilang::isEnabled()) { $lang = ""; } ?>
pagination->getListFooter(); ?>
escape($item->title); ?> escape($item->access_level); ?> escape($item->category_title); ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> created, JText::_('DATE_FORMAT_LC4')); ?> id; ?>
articles/tmpl/default.php000066600000023334151372065440011503 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $saveOrder = $listOrder == 'a.ordering'; ?>
items as $i => $item) : $item->max_ordering = 0; //?? $ordering = ($listOrder == 'a.ordering'); $canCreate = $user->authorise('core.create', 'com_content.category.'.$item->catid); $canEdit = $user->authorise('core.edit', 'com_content.article.'.$item->id); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0; $canEditOwn = $user->authorise('core.edit.own', 'com_content.article.'.$item->id) && $item->created_by == $userId; $canChange = $user->authorise('core.edit.state', 'com_content.article.'.$item->id) && $canCheckin; ?>
items, 'filesave.png', 'articles.saveorder'); ?>
pagination->getListFooter(); ?>
id); ?> checked_out) : ?> editor, $item->checked_out_time, 'articles.', $canCheckin); ?> escape($item->title); ?> escape($item->title); ?>

escape($item->alias));?>

state, $i, 'articles.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> featured, $i, $canChange); ?> escape($item->category_title); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'articles.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'articles.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'articles.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'articles.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" /> ordering; ?> escape($item->access_level); ?> created_by_alias) : ?> escape($item->author_name); ?>

escape($item->created_by_alias)); ?>

escape($item->author_name); ?>
created, JText::_('DATE_FORMAT_LC4')); ?> hits; ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
authorize('core.create', 'com_content') && $user->authorize('core.edit', 'com_content') && $user->authorize('core.edit.state', 'com_content')) : ?> loadTemplate('batch'); ?>
articles/tmpl/.htaccess000066600000000177151372065440011144 0ustar00 Order allow,deny Deny from all articles/tmpl/index.html000066600000000037151372065440011336 0ustar00 articles/tmpl/default_batch.php000066600000002040151372065440012633 0ustar00state->get('filter.published'); ?>

= 0) : ?>
articles/index.html000066600000000037151372065440010362 0ustar00 article/index.html000066600000000037151372065440010177 0ustar00 article/tmpl/edit_metadata.php000066600000001333151372065440012454 0ustar00 article/tmpl/index.html000066600000000037151372065440011153 0ustar00 article/tmpl/edit.php000066600000023742151372065440010624 0ustar00state->get('params'); $params = $params->toArray(); // This checks if the config options have ever been saved. If they haven't they will fall back to the original settings. $editoroptions = isset($params['show_publishing_options']); if (!$editoroptions): $params['show_publishing_options'] = '1'; $params['show_article_options'] = '1'; $params['show_urls_images_backend'] = '0'; $params['show_urls_images_frontend'] = '0'; endif; // Check if the article uses configuration settings besides global. If so, use them. if (!empty($this->item->attribs['show_publishing_options'])): $params['show_publishing_options'] = $this->item->attribs['show_publishing_options']; endif; if (!empty($this->item->attribs['show_article_options'])): $params['show_article_options'] = $this->item->attribs['show_article_options']; endif; if (!empty($this->item->attribs['show_urls_images_backend'])): $params['show_urls_images_backend'] = $this->item->attribs['show_urls_images_backend']; endif; ?>
item->id) ? JText::_('COM_CONTENT_NEW_ARTICLE') : JText::sprintf('COM_CONTENT_EDIT_ARTICLE', $this->item->id); ?>
  • form->getLabel('title'); ?> form->getInput('title'); ?>
  • form->getLabel('alias'); ?> form->getInput('alias'); ?>
  • form->getLabel('catid'); ?> form->getInput('catid'); ?>
  • form->getLabel('state'); ?> form->getInput('state'); ?>
  • form->getLabel('access'); ?> form->getInput('access'); ?>
  • canDo->get('core.admin')): ?>
  • form->getLabel('featured'); ?> form->getInput('featured'); ?>
  • form->getLabel('language'); ?> form->getInput('language'); ?>
  • form->getLabel('id'); ?> form->getInput('id'); ?>
form->getLabel('articletext'); ?>
form->getInput('articletext'); ?>
item->id, array('useCookie'=>1)); ?>
  • form->getLabel('created_by'); ?> form->getInput('created_by'); ?>
  • form->getLabel('created_by_alias'); ?> form->getInput('created_by_alias'); ?>
  • form->getLabel('created'); ?> form->getInput('created'); ?>
  • form->getLabel('publish_up'); ?> form->getInput('publish_up'); ?>
  • form->getLabel('publish_down'); ?> form->getInput('publish_down'); ?>
  • item->modified_by) : ?>
  • form->getLabel('modified_by'); ?> form->getInput('modified_by'); ?>
  • form->getLabel('modified'); ?> form->getInput('modified'); ?>
  • item->version) : ?>
  • form->getLabel('version'); ?> form->getInput('version'); ?>
  • item->hits) : ?>
  • form->getLabel('hits'); ?> form->getInput('hits'); ?>
form->getFieldsets('attribs'); ?> $fieldSet) : ?> label), $name.'-options'); ?> description) && trim($fieldSet->description)) : ?>

escape(JText::_($fieldSet->description));?>

    form->getFieldset($name) as $field) : ?>
  • label; ?> input; ?>
form->getFieldset('basic-limited') as $field) : ?> input; ?>
  • form->getLabel('xreference'); ?> form->getInput('xreference'); ?>
canDo->get('core.admin') ): ?>
    form->getFieldset('editorConfig') as $field) : ?>
  • label; ?> input; ?>
  • form->getLabel('images'); ?> form->getInput('images'); ?>
  • form->getGroup('images') as $field): ?>
  • hidden): ?> label; ?> input; ?>
  • form->getGroup('urls') as $field): ?>
  • hidden): ?> label; ?> input; ?>
loadTemplate('metadata'); ?>
canDo->get('core.admin')): ?>
item->id, array('useCookie'=>1)); ?>
form->getLabel('rules'); ?> form->getInput('rules'); ?>
article/tmpl/pagebreak.php000066600000003427151372065440011616 0ustar00";'."\n\t"; $script .= 'window.parent.jInsertEditorText(tag, \''.$this->eName.'\');'."\n\t"; $script .= 'window.parent.SqueezeBox.close();'."\n\t"; $script .= 'return false;'."\n"; $script .= '}'."\n"; JFactory::getDocument()->addScriptDeclaration($script); ?>
article/tmpl/.htaccess000066600000000177151372065440010761 0ustar00 Order allow,deny Deny from all article/view.html.php000066600000006147151372065440010640 0ustar00getLayout() == 'pagebreak') { // TODO: This is really dogy - should change this one day. $eName = JRequest::getVar('e_name'); $eName = preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', $eName ); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_CONTENT_PAGEBREAK_DOC_TITLE')); $this->assignRef('eName', $eName); parent::display($tpl); return; } // Initialiase variables. $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); $this->canDo = ContentHelper::getActions($this->state->get('filter.category_id')); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JRequest::setVar('hidemainmenu', true); $user = JFactory::getUser(); $userId = $user->get('id'); $isNew = ($this->item->id == 0); $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId); $canDo = ContentHelper::getActions($this->state->get('filter.category_id'), $this->item->id); JToolBarHelper::title(JText::_('COM_CONTENT_PAGE_'.($checkedOut ? 'VIEW_ARTICLE' : ($isNew ? 'ADD_ARTICLE' : 'EDIT_ARTICLE'))), 'article-add.png'); // Built the actions for new and existing records. // For new records, check the create permission. if ($isNew && (count($user->getAuthorisedCategories('com_content', 'core.create')) > 0)) { JToolBarHelper::apply('article.apply'); JToolBarHelper::save('article.save'); JToolBarHelper::save2new('article.save2new'); JToolBarHelper::cancel('article.cancel'); } else { // Can't save the record if it's checked out. if (!$checkedOut) { // Since it's an existing record, check the edit permission, or fall back to edit own if the owner. if ($canDo->get('core.edit') || ($canDo->get('core.edit.own') && $this->item->created_by == $userId)) { JToolBarHelper::apply('article.apply'); JToolBarHelper::save('article.save'); // We can save this record, but check the create permission to see if we can return to make a new one. if ($canDo->get('core.create')) { JToolBarHelper::save2new('article.save2new'); } } } // If checked out, we can still save if ($canDo->get('core.create')) { JToolBarHelper::save2copy('article.save2copy'); } JToolBarHelper::cancel('article.cancel', 'JTOOLBAR_CLOSE'); } JToolBarHelper::divider(); JToolBarHelper::help('JHELP_CONTENT_ARTICLE_MANAGER_EDIT'); } } article/.htaccess000066600000000177151372065440010005 0ustar00 Order allow,deny Deny from all featured/index.html000066600000000037151372065440010353 0ustar00 featured/.htaccess000066600000000177151372065440010161 0ustar00 Order allow,deny Deny from all featured/view.html.php000066600000004220151372065440011002 0ustar00items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $state = $this->get('State'); $canDo = ContentHelper::getActions($this->state->get('filter.category_id')); JToolBarHelper::title(JText::_('COM_CONTENT_FEATURED_TITLE'), 'featured.png'); if ($canDo->get('core.create')) { JToolBarHelper::addNew('article.add'); } if ($canDo->get('core.edit')) { JToolBarHelper::editList('article.edit'); } if ($canDo->get('core.edit.state')) { JToolBarHelper::divider(); JToolBarHelper::publish('articles.publish', 'JTOOLBAR_PUBLISH', true); JToolBarHelper::unpublish('articles.unpublish', 'JTOOLBAR_UNPUBLISH', true); JToolBarHelper::divider(); JToolBarHelper::archiveList('articles.archive'); JToolBarHelper::checkin('articles.checkin'); JToolBarHelper::custom('featured.delete', 'remove.png', 'remove_f2.png', 'JTOOLBAR_REMOVE', true); } if ($state->get('filter.published') == -2 && $canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'articles.delete', 'JTOOLBAR_EMPTY_TRASH'); JToolBarHelper::divider(); } elseif ($canDo->get('core.edit.state')) { JToolBarHelper::divider(); JToolBarHelper::trash('articles.trash'); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_content'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_CONTENT_FEATURED_ARTICLES'); } } featured/tmpl/.htaccess000066600000000177151372065440011135 0ustar00 Order allow,deny Deny from all featured/tmpl/default.php000066600000020271151372065440011471 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_content.article'); $saveOrder = $listOrder == 'fp.ordering'; ?>
items as $i => $item) : $item->max_ordering = 0; //?? $ordering = ($listOrder == 'fp.ordering'); $assetId = 'com_content.article.'.$item->id; $canCreate = $user->authorise('core.create', 'com_content.category.'.$item->catid); $canEdit = $user->authorise('core.edit', 'com_content.article.'.$item->id); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out==$user->get('id')|| $item->checked_out==0; $canChange = $user->authorise('core.edit.state', 'com_content.article.'.$item->id) && $canCheckin; ?>
items, 'filesave.png', 'featured.saveorder'); ?>
pagination->getListFooter(); ?>
id); ?> checked_out) : ?> editor, $item->checked_out_time, 'featured.', $canCheckin); ?> escape($item->title); ?> escape($item->title); ?>

escape($item->alias));?>

state, $i, 'articles.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> escape($item->category_title); ?> pagination->orderUpIcon($i, true, 'featured.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, true, 'featured.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, true, 'featured.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, true, 'featured.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" /> ordering; ?> escape($item->access_level); ?> created_by_alias) : ?> escape($item->author_name); ?>

escape($item->created_by_alias)); ?>

escape($item->author_name); ?>
created, JText::_('DATE_FORMAT_LC4')); ?> hits; ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
featured/tmpl/index.html000066600000000037151372065440011327 0ustar00 newsfeed/index.html000066600000000037151372073500010350 0ustar00 newsfeed/view.html.php000066600000004231151372073500011001 0ustar00state = $this->get('State'); $this->item = $this->get('Item'); $this->form = $this->get('Form'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JRequest::setVar('hidemainmenu', true); $user = JFactory::getUser(); $userId = $user->get('id'); $isNew = ($this->item->id == 0); $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id')); // Since we don't track these assets at the item level, use the category id. $canDo = NewsfeedsHelper::getActions($this->item->catid,0); JToolBarHelper::title(JText::_('COM_NEWSFEEDS_MANAGER_NEWSFEED'), 'newsfeeds.png'); // If not checked out, can save the item. if (!$checkedOut && ($canDo->get('core.edit')||count($user->getAuthorisedCategories('com_newsfeeds', 'core.create')) > 0)) { JToolBarHelper::apply('newsfeed.apply'); JToolBarHelper::save('newsfeed.save'); } if (!$checkedOut && count($user->getAuthorisedCategories('com_newsfeeds', 'core.create')) > 0){ JToolBarHelper::save2new('newsfeed.save2new'); } // If an existing item, can save to a copy. if (!$isNew && $canDo->get('core.create')) { JToolBarHelper::save2copy('newsfeed.save2copy'); } if (empty($this->item->id)) { JToolBarHelper::cancel('newsfeed.cancel'); } else { JToolBarHelper::cancel('newsfeed.cancel', 'JTOOLBAR_CLOSE'); } JToolBarHelper::divider(); JToolBarHelper::help('JHELP_COMPONENTS_NEWSFEEDS_FEEDS_EDIT'); } } newsfeed/tmpl/edit_params.php000066600000001565151372073500012337 0ustar00form->getFieldsets('params'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel', JText::_($fieldSet->label), $name.'-params'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

'.$this->escape(JText::_($fieldSet->description)).'

'; endif; ?>
newsfeed/tmpl/.htaccess000066600000000177151372073500011132 0ustar00 Order allow,deny Deny from all newsfeed/tmpl/index.html000066600000000037151372073500011324 0ustar00 newsfeed/tmpl/edit.php000066600000010302151372073500010761 0ustar00
item->id) ? JText::_('COM_NEWSFEEDS_NEW_NEWSFEED') : JText::sprintf('COM_NEWSFEEDS_EDIT_NEWSFEED', $this->item->id); ?>
  • form->getLabel('name'); ?> form->getInput('name'); ?>
  • form->getLabel('alias'); ?> form->getInput('alias'); ?>
  • form->getLabel('link'); ?> form->getInput('link'); ?>
  • form->getLabel('catid'); ?> form->getInput('catid'); ?>
  • form->getLabel('published'); ?> form->getInput('published'); ?>
  • form->getLabel('access'); ?> form->getInput('access'); ?>
  • form->getLabel('ordering'); ?> form->getInput('ordering'); ?>
  • form->getLabel('language'); ?> form->getInput('language'); ?>
  • form->getLabel('id'); ?> form->getInput('id'); ?>
item->id, array('useCookie'=>1)); ?>
  • form->getLabel('created_by'); ?> form->getInput('created_by'); ?>
  • form->getLabel('created_by_alias'); ?> form->getInput('created_by_alias'); ?>
  • form->getLabel('created'); ?> form->getInput('created'); ?>
  • form->getLabel('publish_up'); ?> form->getInput('publish_up'); ?>
  • form->getLabel('publish_down'); ?> form->getInput('publish_down'); ?>
  • item->modified_by) : ?>
  • form->getLabel('modified_by'); ?> form->getInput('modified_by'); ?>
  • form->getLabel('modified'); ?> form->getInput('modified'); ?>
  • form->getLabel('numarticles'); ?> form->getInput('numarticles'); ?>
  • form->getLabel('cache_time'); ?> form->getInput('cache_time'); ?>
  • form->getLabel('rtl'); ?> form->getInput('rtl'); ?>
  • form->getLabel('xreference'); // Missing from schema! ?> form->getInput('xreference'); ?>
loadTemplate('params'); ?> loadTemplate('metadata'); ?>
newsfeed/tmpl/edit_metadata.php000066600000002462151372073500012631 0ustar00form->getFieldsets('metadata'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel', JText::_($fieldSet->label), $name.'-options'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

'.$this->escape(JText::_($fieldSet->description)).'

'; endif; ?>
newsfeed/.htaccess000066600000000177151372073500010156 0ustar00 Order allow,deny Deny from all newsfeeds/tmpl/default.php000066600000020727151372073500011657 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_newsfeeds.category'); $saveOrder = $listOrder == 'a.ordering'; ?>
items as $i => $item) : $ordering = ($listOrder == 'a.ordering'); $canCreate = $user->authorise('core.create', 'com_newsfeeds.category.'.$item->catid); $canEdit = $user->authorise('core.edit', 'com_newsfeeds.category.'.$item->catid); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out==$user->get('id') || $item->checked_out==0; $canChange = $user->authorise('core.edit.state', 'com_newsfeeds.category.'.$item->catid) && $canCheckin; ?>
items, 'filesave.png', 'newsfeeds.saveorder'); ?>
pagination->getListFooter(); ?>
id); ?> checked_out) : ?> editor, $item->checked_out_time, 'newsfeeds.', $canCheckin); ?> escape($item->name); ?> escape($item->name); ?>

escape($item->alias));?>

published, $i, 'newsfeeds.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> escape($item->category_title); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'newsfeeds.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'newsfeeds.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'newsfeeds.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'newsfeeds.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" /> ordering; ?> escape($item->access_level); ?> numarticles; ?> cache_time; ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
authorize('core.create', 'com_newsfeeds') && $user->authorize('core.edit', 'com_newsfeeds') && $user->authorize('core.edit.state', 'com_newsfeeds')) : ?> loadTemplate('batch'); ?>
newsfeeds/tmpl/default_batch.php000066600000002051151372073500013006 0ustar00state->get('filter.published'); ?>

= 0) : ?>
newsfeeds/tmpl/modal.php000066600000011272151372073500011322 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
items as $i => $item) : ?>
pagination->getListFooter(); ?>
escape($item->name); ?> escape($item->access_level); ?> escape($item->category_title); ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
newsfeeds/tmpl/.htaccess000066600000000177151372073500011315 0ustar00 Order allow,deny Deny from all newsfeeds/tmpl/index.html000066600000000037151372073500011507 0ustar00 newsfeeds/.htaccess000066600000000177151372073500010341 0ustar00 Order allow,deny Deny from all newsfeeds/view.html.php000066600000004342151372073500011167 0ustar00items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } parent::display($tpl); $this->addToolbar(); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $state = $this->get('State'); $canDo = NewsfeedsHelper::getActions($state->get('filter.category_id')); $user = JFactory::getUser(); JToolBarHelper::title(JText::_('COM_NEWSFEEDS_MANAGER_NEWSFEEDS'), 'newsfeeds.png'); if (count($user->getAuthorisedCategories('com_newsfeeds', 'core.create')) > 0) { JToolBarHelper::addNew('newsfeed.add'); } if ($canDo->get('core.edit')) { JToolBarHelper::editList('newsfeed.edit'); } if ($canDo->get('core.edit.state')) { JToolBarHelper::divider(); JToolBarHelper::publish('newsfeeds.publish', 'JTOOLBAR_PUBLISH', true); JToolBarHelper::unpublish('newsfeeds.unpublish', 'JTOOLBAR_UNPUBLISH', true); JToolBarHelper::divider(); JToolBarHelper::archiveList('newsfeeds.archive'); } if ($canDo->get('core.admin')) { JToolBarHelper::checkin('newsfeeds.checkin'); } if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'newsfeeds.delete', 'JTOOLBAR_EMPTY_TRASH'); JToolBarHelper::divider(); } elseif ($canDo->get('core.edit.state')) { JToolBarHelper::trash('newsfeeds.trash'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_newsfeeds'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_COMPONENTS_NEWSFEEDS_FEEDS'); } } newsfeeds/index.html000066600000000037151372073500010533 0ustar00 discover/.htaccess000066600000000177151372073530010177 0ustar00 Order allow,deny Deny from all discover/index.html000066600000000037151372073530010371 0ustar00 discover/view.html.php000066600000002545151372073530011030 0ustar00state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $canDo = InstallerHelper::getActions(); /* * Set toolbar items for the page */ JToolBarHelper::custom('discover.install', 'upload', 'upload', 'JTOOLBAR_INSTALL', true, false); JToolBarHelper::custom('discover.refresh', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DISCOVER', false, false); JToolBarHelper::custom('discover.purge', 'purge', 'purge', 'JTOOLBAR_PURGE_CACHE', false, false); JToolBarHelper::divider(); parent::addToolbar(); JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DISCOVER'); } } discover/tmpl/default_item.php000066600000003671151372073530012532 0ustar00 item->index % 2; ?>" item->style; ?>> pagination->getRowOffset($this->item->index); ?> item->cbd; ?> /> item->name; ?> item->type ?> item->element) : ?> X item->img, $this->item->alt, array('title' => $this->item->action)); ?> item->folder != '' ? $this->item->folder : 'N/A'; ?> item->client != '' ? $this->item->client : 'N/A'; ?> item->author != '' ? $this->item->author : ' '; ?> discover/tmpl/default.php000066600000007327151372073530011516 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
showMessage) : ?> loadTemplate('message'); ?> ftp) : ?> loadTemplate('ftp'); ?> items)) : ?> items as $i => $item): ?>
pagination->getListFooter(); ?>
extension_id); ?> name; ?> type); ?> version != '' ? $item->version : ' '; ?> creationDate != '' ? $item->creationDate : ' '; ?> folder != '' ? $item->folder : JText::_('COM_INSTALLER_TYPE_NONAPPLICABLE'); ?> client; ?> author != '' ? $item->author : ' '; ?> extension_id ?>

discover/tmpl/.htaccess000066600000000177151372073530011153 0ustar00 Order allow,deny Deny from all discover/tmpl/index.html000066600000000037151372073530011345 0ustar00 manage/index.html000066600000000037151372073530010003 0ustar00 manage/tmpl/index.html000066600000000037151372073530010757 0ustar00 manage/tmpl/.htaccess000066600000000177151372073530010565 0ustar00 Order allow,deny Deny from all manage/tmpl/default.php000066600000010573151372073530011125 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
showMessage) : ?> loadTemplate('message'); ?> ftp) : ?> loadTemplate('ftp'); ?> loadTemplate('filter'); ?> items)) : ?> items as $i => $item): ?>
pagination->getListFooter(); ?>
extension_id); ?> name; ?> client; ?> element) : ?> X status, $i, $item->status < 2, 'cb'); ?> type); ?> version != '' ? $item->version : ' '; ?> system_data) : ?> createCompatibilityInfo($item->system_data)) : ?> creationDate != '' ? $item->creationDate : ' '; ?> author != '' ? $item->author : ' '; ?> folder != '' ? $item->folder : JText::_('COM_INSTALLER_TYPE_NONAPPLICABLE'); ?> extension_id ?>
manage/tmpl/default_filter.php000066600000001546151372073530012472 0ustar00
form->getFieldSet('select') as $field): ?> hidden): ?> label; ?> input; ?>
manage/.htaccess000066600000000177151372073530007611 0ustar00 Order allow,deny Deny from all manage/view.html.php000066600000005475151372073530010447 0ustar00state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->form = $this->get('Form'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } //Check if there are no matching items if(!count($this->items)){ JFactory::getApplication()->enqueueMessage( JText::_('COM_INSTALLER_MSG_MANAGE_NOEXTENSION') , 'warning' ); } // Include the component HTML helpers. JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); // Display the view parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $canDo = InstallerHelper::getActions(); if ($canDo->get('core.edit.state')) { JToolBarHelper::publish('manage.publish', 'JTOOLBAR_ENABLE', true); JToolBarHelper::unpublish('manage.unpublish', 'JTOOLBAR_DISABLE', true); JToolBarHelper::divider(); } JToolBarHelper::custom('manage.refresh', 'refresh', 'refresh', 'JTOOLBAR_REFRESH_CACHE', true); JToolBarHelper::divider(); if ($canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'manage.remove', 'JTOOLBAR_UNINSTALL'); JToolBarHelper::divider(); } parent::addToolbar(); JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_MANAGE'); } /** * Creates the content for the tooltip which shows compatibility information * * @var string $system_data System_data information * * @since 2.5.28 * * @return string Content for tooltip */ protected function createCompatibilityInfo($system_data) { $system_data = json_decode($system_data); if (empty($system_data->compatibility)) { return ''; } $compatibility = $system_data->compatibility; $info = JText::sprintf('COM_INSTALLER_COMPATIBILITY_TOOLTIP_INSTALLED', $compatibility->installed->version, implode(', ', $compatibility->installed->value) ) . '
' . JText::sprintf('COM_INSTALLER_COMPATIBILITY_TOOLTIP_AVAILABLE', $compatibility->available->version, implode(', ', $compatibility->available->value) ); return $info; } } database/view.html.php000066600000003642151372073530010755 0ustar00state = $this->get('State'); $this->changeSet = $this->get('Items'); $this->errors = $this->changeSet->check(); $this->results = $this->changeSet->getStatus(); $this->schemaVersion = $this->get('SchemaVersion'); $this->updateVersion = $this->get('UpdateVersion'); $this->filterParams =$this->get('DefaultTextFilters'); $this->schemaVersion = ($this->schemaVersion) ? $this->schemaVersion : JText::_('JNONE'); $this->updateVersion = ($this->updateVersion) ? $this->updateVersion : JText::_('JNONE'); $this->pagination = $this->get('Pagination'); $this->errorCount = count($this->errors); $errors = count($this->errors); if ($this->schemaVersion != $this->changeSet->getSchema()) { $this->errorCount++; } if (!$this->filterParams) { $this->errorCount++; } if (version_compare($this->updateVersion, JVERSION) != 0) { $this->errorCount++; } parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $canDo = InstallerHelper::getActions(); /* * Set toolbar items for the page */ JToolBarHelper::custom('database.fix', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DATABASE_FIX', false, false); JToolBarHelper::divider(); parent::addToolbar(); JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DATABASE'); } } database/tmpl/index.html000066600000000037151372073530011273 0ustar00 database/tmpl/default.php000066600000006037151372073530011441 0ustar00
errorCount === 0) : ?>

1)); ?>

1)); ?> errorCount); ?>
    filterParams) : ?>
  • schemaVersion != $this->changeSet->getSchema()) : ?>
  • schemaVersion, $this->changeSet->getSchema()); ?>
  • updateVersion, JVERSION) != 0) : ?>
  • updateVersion, JVERSION); ?>
  • errors as $line => $error) : ?> queryType; $msgs = $error->msgElements; $file = basename($error->file); $msg0 = (isset($msgs[0])) ? $msgs[0] : ' '; $msg1 = (isset($msgs[1])) ? $msgs[1] : ' '; $msg2 = (isset($msgs[2])) ? $msgs[2] : ' '; $message = JText::sprintf($key, $file, $msg0, $msg1, $msg2); ?>
  • schemaVersion); ?>
  • updateVersion); ?>
  • name); ?>
  • results['ok'])); ?>
  • results['skipped'])); ?>
database/tmpl/.htaccess000066600000000177151372073530011101 0ustar00 Order allow,deny Deny from all database/index.html000066600000000037151372073530010317 0ustar00 database/.htaccess000066600000000177151372073530010125 0ustar00 Order allow,deny Deny from all default/tmpl/default_message.php000066600000001237151372073530013022 0ustar00get('State'); $message1 = $state->get('message'); $message2 = $state->get('extension_message'); ?>
default/tmpl/index.html000066600000000037151372073530011153 0ustar00 default/tmpl/default_ftp.php000066600000002252151372073530012165 0ustar00
ftp instanceof Exception): ?>

ftp->getMessage()); ?>

default/tmpl/.htaccess000066600000000177151372073530010761 0ustar00 Order allow,deny Deny from all default/view.php000066600000003324151372073530007667 0ustar00_addPath('template', $this->_basePath . '/views/default/tmpl'); $this->_addPath('template', JPATH_THEMES.'/'.$app->getTemplate().'/html/com_installer/default'); } /** * @since 1.5 */ function display($tpl=null) { // Get data from the model $state = $this->get('State'); // Are there messages to display ? $showMessage = false; if (is_object($state)) { $message1 = $state->get('message'); $message2 = $state->get('extension_message'); $showMessage = ($message1 || $message2); } $this->showMessage = $showMessage; $this->assignRef('state', $state); JHtml::_('behavior.tooltip'); $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $canDo = InstallerHelper::getActions(); JToolBarHelper::title(JText::_('COM_INSTALLER_HEADER_' . $this->getName()), 'install.png'); if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_installer'); JToolBarHelper::divider(); } // Document $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_INSTALLER_TITLE_' . $this->getName())); } } default/.htaccess000066600000000177151372073530010005 0ustar00 Order allow,deny Deny from all default/index.html000066600000000037151372073530010177 0ustar00 languages/view.html.php000066600000004432151372073530011155 0ustar00items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } parent::display($tpl); $this->addToolbar(); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { require_once JPATH_COMPONENT.'/helpers/languages.php'; $canDo = LanguagesHelper::getActions(); JToolBarHelper::title(JText::_('COM_LANGUAGES_VIEW_LANGUAGES_TITLE'), 'langmanager.png'); if ($canDo->get('core.create')) { JToolBarHelper::addNew('language.add'); } if ($canDo->get('core.edit')) { JToolBarHelper::editList('language.edit'); JToolBarHelper::divider(); } if ($canDo->get('core.edit.state')) { if ($this->state->get('filter.published') != 2) { JToolBarHelper::publishList('languages.publish'); JToolBarHelper::unpublishList('languages.unpublish'); } } if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'languages.delete', 'JTOOLBAR_EMPTY_TRASH'); JToolBarHelper::divider(); } elseif ($canDo->get('core.edit.state')) { JToolBarHelper::trash('languages.trash'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { // Add install languages link to the lang installer component $bar = JToolBar::getInstance('toolbar'); $bar->appendButton('Link', 'extension', 'COM_LANGUAGES_INSTALL', 'index.php?option=com_installer&view=languages'); JToolBarHelper::divider(); JToolBarHelper::preferences('com_languages'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_CONTENT'); } } languages/tmpl/index.html000066600000000037151372073530011475 0ustar00 languages/tmpl/default.php000066600000016567151372073530011654 0ustar00get('id'); $n = count($this->items); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_languages'); $saveOrder = $listOrder == 'a.ordering'; ?>
items as $i => $item) : $ordering = ($listOrder == 'a.ordering'); $canCreate = $user->authorise('core.create', 'com_languages'); $canEdit = $user->authorise('core.edit', 'com_languages'); $canChange = $user->authorise('core.edit.state', 'com_languages'); ?>
items, 'filesave.png', 'languages.saveorder'); ?>
pagination->getListFooter(); ?>
pagination->getRowOffset($i); ?> lang_id); ?> escape($item->title); ?> escape($item->title); ?> escape($item->title_native); ?> escape($item->lang_code); ?> escape($item->sef); ?> escape($item->image); ?> published, $i, 'languages.', $canChange);?> pagination->orderUpIcon($i, true, 'languages.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, true, 'languages.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, true, 'languages.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, true, 'languages.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" /> ordering; ?> escape($item->access_level); ?> home == '1') : ?> escape($item->lang_id); ?>
languages/tmpl/default_filter.php000066600000001747151372073530013213 0ustar00
languages/tmpl/.htaccess000066600000000177151372073530011303 0ustar00 Order allow,deny Deny from all languages/.htaccess000066600000000177151372073530010327 0ustar00 Order allow,deny Deny from all languages/index.html000066600000000037151372073530010521 0ustar00 install/.htaccess000066600000000177151372073530010027 0ustar00 Order allow,deny Deny from all install/index.html000066600000000054151372073530010220 0ustar00install/tmpl/default.php000066600000007544151372073530011347 0ustar00
selectversion == 'current') echo JText::_('COM_CSVI_NONEW_VERSION'); else echo JText::sprintf('COM_CSVI_FOUND_VERSION', $this->selectversion); ?>
newversion); ?>
installoptions as $installoption) { if ($installoption->value == 'availablefields') $checked = 'checked="checked"'; else $checked = ''; ?> />text; ?>
selectversion != 'current') { ?>
install/tmpl/default_form.php000066600000006477151372073530012376 0ustar00
ftp) : ?> loadTemplate('ftp'); ?>
install/tmpl/index.html000066600000000054151372073530011174 0ustar00install/tmpl/.htaccess000066600000000177151372073530011003 0ustar00 Order allow,deny Deny from all install/view.html.php000066600000003050151372073530010650 0ustar00addStyleSheet(JURI::root().'administrator/components/com_csvi/assets/css/install.css'); // Load the installed version $this->selectversion = $this->get('Version'); $this->newversion = CSVI_VERSION; // Options of extra tasks to do during installation $this->installoptions = array(); $this->installoptions[] = JHtml::_('select.option', 'availablefields', JText::_('COM_CSVI_UPDATEAVAILABLEFIELDS_LABEL')); $this->installoptions[] = JHtml::_('select.option', 'sampletemplates', JText::_('COM_CSVI_INSTALLDEFAULTTEMPLATES_LABEL')); // Show the toolbar JToolBarHelper::title(JText::_('COM_CSVI_INSTALL'), 'csvi_install_48'); //JToolBarHelper::help('install.html', true); // Display it all parent::display($tpl); } } ?>warnings/.htaccess000066600000000177151372073530010211 0ustar00 Order allow,deny Deny from all warnings/view.html.php000066600000001445151372073530011040 0ustar00get('Items'); $this->assignRef('messages', $items); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { parent::addToolbar(); JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_WARNINGS'); } } warnings/index.html000066600000000037151372073530010403 0ustar00 warnings/tmpl/.htaccess000066600000000177151372073530011165 0ustar00 Order allow,deny Deny from all warnings/tmpl/default.php000066600000002371151372073530011522 0ustar00
messages)) { echo '

'. JText::_('COM_INSTALLER_MSG_WARNINGS_NONE').'

'; } else { echo JHtml::_('sliders.start', 'warning-sliders', array('useCookie'=>1)); foreach($this->messages as $message) { echo JHtml::_('sliders.panel', $message['message'], str_replace(' ', '', $message['message'])); echo '
'.$message['description'].'
'; } echo JHtml::_('sliders.panel', JText::_('COM_INSTALLER_MSG_WARNINGFURTHERINFO'), 'furtherinfo-pane'); echo '
'. JText::_('COM_INSTALLER_MSG_WARNINGFURTHERINFODESC') .'
'; echo JHtml::_('sliders.end'); } ?>
warnings/tmpl/index.html000066600000000037151372073530011357 0ustar00 update/index.html000066600000000037151372073530010035 0ustar00 update/.htaccess000066600000000177151372073530007643 0ustar00 Order allow,deny Deny from all update/tmpl/index.html000066600000000037151372073530011011 0ustar00 update/tmpl/default.php000066600000002647151372073530011162 0ustar00

'progress', 'id' => 'progress'), true); ?>
update/tmpl/.htaccess000066600000000177151372073530010617 0ustar00 Order allow,deny Deny from all update/view.html.php000066600000004010151372073530010461 0ustar00getUserState('com_joomlaupdate.password', null); $filesize = JFactory::getApplication()->getUserState('com_joomlaupdate.filesize', null); $ajaxUrl = JURI::base().'components/com_joomlaupdate/restore.php'; $returnUrl = 'index.php?option=com_joomlaupdate&task=update.finalise'; // Set the toolbar information JToolBarHelper::title(JText::_('COM_JOOMLAUPDATE_OVERVIEW'), 'install'); // Add toolbar buttons if (JFactory::getUser()->authorise('core.admin', 'com_joomlaupdate')) { JToolbarHelper::preferences('com_joomlaupdate'); } JToolBarHelper::divider(); JToolBarHelper::help('JHELP_COMPONENTS_JOOMLA_UPDATE'); // Load mooTools JHtml::_('behavior.framework', true); $updateScript = <<addScript('../media/com_joomlaupdate/json2.js'); $document->addScript('../media/com_joomlaupdate/encryption.js'); $document->addScript('../media/com_joomlaupdate/update.js'); JHtml::_('script', 'system/progressbar.js', true, true); JHtml::_('stylesheet', 'media/mediamanager.css', array(), true); $document->addScriptDeclaration($updateScript); // Render the view parent::display($tpl); } } default/tmpl/default.php000066600000007765151372127220011326 0ustar00ftp['enabled'] ? '' : 'style = "display: none"'; ?> updateInfo['object'])): ?>

updateInfo['object']->downloadurl->_data)): ?>

updateInfo['latest'], $this->updateInfo['latest']); ?>

> > > > >
updateInfo['installed'] ?>
updateInfo['latest'] ?>
updateInfo['object']->downloadurl->_data ?>
methodSelect ?>