diff --git a/deployed/trada/templates/trada/component.php b/deployed/trada/templates/trada/component.php new file mode 100644 index 00000000..b805164d --- /dev/null +++ b/deployed/trada/templates/trada/component.php @@ -0,0 +1,40 @@ +language = $doc->language; +$this->direction = $doc->direction; + +// Add JavaScript Frameworks +JHtml::_('bootstrap.framework'); + +// Add Stylesheets +$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css'); + +// Load optional rtl Bootstrap css and Bootstrap bugfixes +JHtmlBootstrap::loadCss($includeMaincss = false, $this->direction); + +?> + + + + + + + + + + + + diff --git a/deployed/trada/templates/trada/error.php b/deployed/trada/templates/trada/error.php new file mode 100644 index 00000000..c9b6bb7b --- /dev/null +++ b/deployed/trada/templates/trada/error.php @@ -0,0 +1,139 @@ +language = $doc->language; +$this->direction = $doc->direction; +$doc->setTitle( $this->title ); + +// Getting params from template +$params = $app->getTemplate(true)->params; + +// Detecting Active Variables +$option = $app->input->getCmd('option', ''); +$view = $app->input->getCmd('view', ''); +$layout = $app->input->getCmd('layout', ''); +$task = $app->input->getCmd('task', ''); +$itemid = $app->input->getCmd('Itemid', ''); +$sitename = $app->get('sitename'); +$this->params = $app->getTemplate(true)->params; +$skin = $this->params->get( 'templateSkin', 'light' ); +$baseUrlSkin = $this->baseurl . '/templates/' . $this->template . '/skins/' . $skin . '/'; + +// Add JavaScript Frameworks +JHtml::_('bootstrap.framework'); + +/* JQUERY:: MAP.JS */ +$doc->addScript('//maps.googleapis.com/maps/api/js?sensor=false'); + +/* JQUERY:: PLUGIN.JS */ +$doc->addScript($baseUrlSkin . '/js/jquery.plugin.min.js'); + +/* JQUERY:: INDEX.JS **** FOR INDEX JQUERY CODE **** */ +$doc->addScript($baseUrlSkin . '/js/index.min.js'); + +/* JQUERY:: LIGHTBOX.JS */ +$doc->addScript($baseUrlSkin . '/js/lightbox-plus-jquery.min.js'); + + +// Add Stylesheets +$doc->addStyleSheet($baseUrlSkin . 'css/bootstrap.min.css'); + +/* CSS:: ANIMATION */ +$doc->addStyleSheet($baseUrlSkin . 'css/animator.css'); + +/* CSS:: ANIMATION */ +$doc->addStyleSheet($baseUrlSkin . 'css/jquery.slider.css'); + +/* CSS:: FONTS */ +$doc->addStyleSheet($baseUrlSkin . 'css/font-awesome.min.css'); +$doc->addStyleSheet($baseUrlSkin . 'css/simple-line-icons.css'); +$doc->addStyleSheet('//fonts.googleapis.com/css?family=Montserrat:400,700'); +$doc->addStyleSheet('//fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700'); + +/* CSS:: */ +$doc->addStyleSheet($baseUrlSkin . 'css/lightbox.css'); +$doc->addStyleSheet($baseUrlSkin . 'css/reset.css'); +$doc->addStyleSheet($baseUrlSkin . 'css/main.css'); + +?> + + + + + <?php echo $this->title; ?> <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?> + + + + + + + getBuffer('head'); ?> + + + + +
+ +
+ + +
+
+
+ +
+ countModules('position-0')) : ?> + getBuffer('modules', 'position-0', array('style' => 'none')); ?> + +
+
+ countModules('position-1')) : ?> + getBuffer('modules', 'position-1', array('style' => 'none')); ?> + +
+
+ +
+
+
+
+ + + countModules('position-4')) : ?> + getBuffer('modules', 'position-4', array('style' => 'none')); ?> + + +
+
+
+ +

+ +
+
+
+ + + diff --git a/deployed/trada/templates/trada/favicon.ico b/deployed/trada/templates/trada/favicon.ico new file mode 100644 index 00000000..45a3ec2d Binary files /dev/null and b/deployed/trada/templates/trada/favicon.ico differ diff --git a/deployed/trada/templates/trada/html/com_contact/categories/default.php b/deployed/trada/templates/trada/html/com_contact/categories/default.php new file mode 100644 index 00000000..09298dc3 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/categories/default.php @@ -0,0 +1,31 @@ +addScriptDeclaration(" +jQuery(function($) { + $('.categories-list').find('[id^=category-btn-]').each(function(index, btn) { + var btn = $(btn); + btn.on('click', function() { + btn.find('span').toggleClass('icon-plus'); + btn.find('span').toggleClass('icon-minus'); + }); + }); +});"); +?> +
+ loadTemplate('items'); + ?> +
diff --git a/deployed/trada/templates/trada/html/com_contact/categories/default_items.php b/deployed/trada/templates/trada/html/com_contact/categories/default_items.php new file mode 100644 index 00000000..aa531e4a --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/categories/default_items.php @@ -0,0 +1,62 @@ +items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : +?> + items[$this->parent->id] as $id => $item) : ?> + params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : + if (!isset($this->items[$this->parent->id][$id + 1])) + { + $class = ' class="last"'; + } + ?> +
> + + + params->get('show_subcat_desc_cat') == 1) :?> + description) : ?> +
+ description, '', 'com_contact.categories'); ?> +
+ + + + getChildren()) > 0 && $this->maxLevelcat > 1) :?> +
+ items[$item->id] = $item->getChildren(); + $this->parent = $item; + $this->maxLevelcat--; + echo $this->loadTemplate('items'); + $this->parent = $item->getParent(); + $this->maxLevelcat++; + ?> +
+ +
+ + diff --git a/deployed/trada/templates/trada/html/com_contact/category/default.php b/deployed/trada/templates/trada/html/com_contact/category/default.php new file mode 100644 index 00000000..1ab8362f --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/category/default.php @@ -0,0 +1,13 @@ +subtemplatename = 'items'; +echo JLayoutHelper::render('joomla.content.category_default', $this); diff --git a/deployed/trada/templates/trada/html/com_contact/category/default_children.php b/deployed/trada/templates/trada/html/com_contact/category/default_children.php new file mode 100644 index 00000000..db7bd9ff --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/category/default_children.php @@ -0,0 +1,55 @@ +children[$this->category->id]) > 0 && $this->maxLevel != 0) : +?> +
    +children[$this->category->id] as $id => $child) : ?> + params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) : + if (!isset($this->children[$this->category->id][$id + 1])) + { + $class = ' class="last"'; + } + ?> + > + +

    + + escape($child->title); ?> + + + params->get('show_cat_items') == 1) :?> + numitems; ?> + +

    + + params->get('show_subcat_desc') == 1) : ?> + description) : ?> +
    + description, '', 'com_contact.category'); ?> +
    + + + + getChildren()) > 0 ) : + $this->children[$child->id] = $child->getChildren(); + $this->category = $child; + $this->maxLevel--; + echo $this->loadTemplate('children'); + $this->category = $child->getParent(); + $this->maxLevel++; + endif; ?> + + + +
+ diff --git a/deployed/trada/templates/trada/html/com_contact/category/default_items.php b/deployed/trada/templates/trada/html/com_contact/category/default_items.php new file mode 100644 index 00000000..cedf9aa9 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/category/default_items.php @@ -0,0 +1,112 @@ +escape($this->state->get('list.ordering')); +$listDirn = $this->escape($this->state->get('list.direction')); +?> +items)) : ?> +

+ + +
+ params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) :?> +
+ params->get('filter_field') != 'hide') :?> +
+ + +
+ + + params->get('show_pagination_limit')) : ?> +
+ + pagination->getLimitBox(); ?> +
+ +
+ + +
    + items as $i => $item) : ?> + + access, $this->user->getAuthorisedViewLevels())) : ?> + items[$i]->published == 0) : ?> +
  • + +
  • + + + + params->get('show_telephone_headings') AND !empty($item->telephone)) : ?> + telephone); ?>
    + + + params->get('show_mobile_headings') AND !empty ($item->mobile)) : ?> + mobile); ?>
    + + + params->get('show_fax_headings') AND !empty($item->fax) ) : ?> + fax); ?>
    + +
    + +

    +

    + + name; ?> + items[$i]->published == 0) : ?> + + +
    + params->get('show_position_headings')) : ?> + con_position; ?>
    + + params->get('show_email_headings')) : ?> + email_to; ?> + + params->get('show_suburb_headings') AND !empty($item->suburb)) : ?> + suburb . ', '; ?> + + + params->get('show_state_headings') AND !empty($item->state)) : ?> + state . ', '; ?> + + + params->get('show_country_headings') AND !empty($item->country)) : ?> + country; ?>
    + +

    +
  • + + +
+ + params->get('show_pagination', 2)) : ?> + + +
+ + +
+
+ diff --git a/deployed/trada/templates/trada/html/com_contact/contact/default.php b/deployed/trada/templates/trada/html/com_contact/contact/default.php new file mode 100644 index 00000000..e33826aa --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/contact/default.php @@ -0,0 +1,36 @@ + + +
+
+
+ contact->name && $this->params->get('show_name')) : ?> +
+

contact->name; ?>

+
+ + + +
+
+
+ contact->misc; ?> +
+ +
loadTemplate('form'); ?>
+
+
+
diff --git a/deployed/trada/templates/trada/html/com_contact/contact/default_address.php b/deployed/trada/templates/trada/html/com_contact/contact/default_address.php new file mode 100644 index 00000000..2e628c38 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/contact/default_address.php @@ -0,0 +1,127 @@ + +
+ params->get('address_check') > 0) && + ($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) : ?> + params->get('address_check') > 0) : ?> +
+ + params->get('marker_address'); ?> + +
+ + + contact->address && $this->params->get('show_street_address')) : ?> +
+ + contact->address) . '
'; ?> +
+
+ + + contact->suburb && $this->params->get('show_suburb')) : ?> +
+ + contact->suburb . '
'; ?> +
+
+ + contact->state && $this->params->get('show_state')) : ?> +
+ + contact->state . '
'; ?> +
+
+ + contact->postcode && $this->params->get('show_postcode')) : ?> +
+ + contact->postcode . '
'; ?> +
+
+ + contact->country && $this->params->get('show_country')) : ?> +
+ + contact->country . '
'; ?> +
+
+ + + +contact->email_to && $this->params->get('show_email')) : ?> +
+ + params->get('marker_email')); ?> + +
+
+ + contact->email_to; ?> + +
+ + +contact->telephone && $this->params->get('show_telephone')) : ?> +
+ + params->get('marker_telephone'); ?> + +
+
+ + contact->telephone); ?> + +
+ +contact->fax && $this->params->get('show_fax')) : ?> +
+ + params->get('marker_fax'); ?> + +
+
+ + contact->fax); ?> + +
+ +contact->mobile && $this->params->get('show_mobile')) :?> +
+ + params->get('marker_mobile'); ?> + +
+
+ + contact->mobile); ?> + +
+ +contact->webpage && $this->params->get('show_webpage')) : ?> +
+ + +
+
+ + + +
+ +
diff --git a/deployed/trada/templates/trada/html/com_contact/contact/default_articles.php b/deployed/trada/templates/trada/html/com_contact/contact/default_articles.php new file mode 100644 index 00000000..1b7167d9 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/contact/default_articles.php @@ -0,0 +1,25 @@ + +params->get('show_articles')) : ?> +
+ +
+ diff --git a/deployed/trada/templates/trada/html/com_contact/contact/default_form.php b/deployed/trada/templates/trada/html/com_contact/contact/default_form.php new file mode 100644 index 00000000..34c27301 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/contact/default_form.php @@ -0,0 +1,82 @@ +error)) : ?> +
+ error; ?> +
+ + +
+
+
+
+
form->getLabel('contact_name'); ?>
+
form->getInput('contact_name'); ?>
+
+
+
form->getLabel('contact_email'); ?>
+
form->getInput('contact_email'); ?>
+
+
+
form->getLabel('contact_subject'); ?>
+
form->getInput('contact_subject'); ?>
+
+ params->get('show_email_copy')) : ?> + + + + form->getFieldsets() as $fieldset) : ?> + name != 'contact') : ?> + form->getFieldset($fieldset->name); ?> + +
+ hidden) : ?> +
+ input; ?> +
+ +
+ label; ?> + required && $field->type != "Spacer") : ?> + + +
+
input; ?>
+ +
+ + + +
+
+
+
form->getLabel('contact_message'); ?>
+
form->getInput('contact_message'); ?>
+
+
+
+
+ + + + + + +
+
+
diff --git a/deployed/trada/templates/trada/html/com_contact/contact/default_links.php b/deployed/trada/templates/trada/html/com_contact/contact/default_links.php new file mode 100644 index 00000000..60765d60 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/contact/default_links.php @@ -0,0 +1,55 @@ + + +params->get('presentation_style') == 'sliders') : ?> + + +params->get('presentation_style') == 'tabs') : ?> + + +params->get('presentation_style') == 'plain'):?> + ' . JText::_('COM_CONTACT_LINKS') . ''; ?> + + + + +params->get('presentation_style') == 'sliders') : ?> + + +params->get('presentation_style') == 'tabs') : ?> + + diff --git a/deployed/trada/templates/trada/html/com_contact/contact/default_profile.php b/deployed/trada/templates/trada/html/com_contact/contact/default_profile.php new file mode 100644 index 00000000..5a8c188a --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/contact/default_profile.php @@ -0,0 +1,44 @@ + +item->profile->getFieldset('profile'); ?> +
+
+ value) : + echo '
' . $profile->label . '
'; + $profile->text = htmlspecialchars($profile->value, ENT_COMPAT, 'UTF-8'); + + switch ($profile->id) : + case "profile_website": + $v_http = substr($profile->value, 0, 4); + + if ($v_http == "http") : + echo '
' . JStringPunycode::urlToUTF8($profile->text) . '
'; + else : + echo '
' . JStringPunycode::urlToUTF8($profile->text) . '
'; + endif; + break; + + case "profile_dob": + echo '
' . JHtml::_('date', $profile->text, JText::_('DATE_FORMAT_LC4'), false) . '
'; + break; + + default: + echo '
' . $profile->text . '
'; + break; + endswitch; + endif; + endforeach; ?> +
+
+ diff --git a/deployed/trada/templates/trada/html/com_contact/featured/default.php b/deployed/trada/templates/trada/html/com_contact/featured/default.php new file mode 100644 index 00000000..54c4d155 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/featured/default.php @@ -0,0 +1,37 @@ + +
+params->get('show_page_heading') != 0 ) : ?> +

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

+ + +loadTemplate('items'); ?> +params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->pagesTotal > 1)) : ?> + + + +
diff --git a/deployed/trada/templates/trada/html/com_contact/featured/default_items.php b/deployed/trada/templates/trada/html/com_contact/featured/default_items.php new file mode 100644 index 00000000..3b7eb479 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_contact/featured/default_items.php @@ -0,0 +1,166 @@ +escape($this->state->get('list.ordering')); +$listDirn = $this->escape($this->state->get('list.direction')); + +// Create a shortcut for params. +$params = &$this->item->params; +?> + +items)) : ?> +

+ + +
+
+ + params->get('show_pagination_limit')) : ?> +
+   + pagination->getLimitBox(); ?> +
+ + + +
+ + + params->get('show_headings')) : ?> + + + + params->get('show_position_headings')) : ?> + + + params->get('show_email_headings')) : ?> + + + params->get('show_telephone_headings')) : ?> + + + + params->get('show_mobile_headings')) : ?> + + + + params->get('show_fax_headings')) : ?> + + + + params->get('show_suburb_headings')) : ?> + + + + params->get('show_state_headings')) : ?> + + + + params->get('show_country_headings')) : ?> + + + + + + + + + items as $i => $item) : ?> + " itemscope itemtype="http://schema.org/Person"> + + + + + params->get('show_position_headings')) : ?> + + + + params->get('show_email_headings')) : ?> + + + + params->get('show_telephone_headings')) : ?> + + + + params->get('show_mobile_headings')) : ?> + + + + params->get('show_fax_headings')) : ?> + + + + params->get('show_suburb_headings')) : ?> + + + + params->get('show_state_headings')) : ?> + + + + params->get('show_country_headings')) : ?> + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + items[$i]->published == 0) : ?> + + + + + con_position; ?> + + telephone; ?> + + mobile; ?> + + fax; ?> + + suburb; ?> + + state; ?> + + country; ?> +
+ +
+ diff --git a/deployed/trada/templates/trada/html/com_content/archive/default.php b/deployed/trada/templates/trada/html/com_content/archive/default.php new file mode 100644 index 00000000..3e466931 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/archive/default.php @@ -0,0 +1,46 @@ + +
+params->get('show_page_heading')) : ?> + + +
+
+ +
+
+ + loadTemplate('items'); ?> +
+
diff --git a/deployed/trada/templates/trada/html/com_content/archive/default_items.php b/deployed/trada/templates/trada/html/com_content/archive/default_items.php new file mode 100644 index 00000000..bade1eea --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/archive/default_items.php @@ -0,0 +1,216 @@ +params; +?> + +
+ items as $i => $item) : ?> + params->get('info_block_position', 0); ?> +
+ + get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date') + || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category')); ?> + + + + + get('show_intro')) : ?> + event->afterDisplayTitle; ?> + + event->beforeDisplayContent; ?> + get('show_intro')) :?> +
introtext, $params->get('introtext_limit')); ?>
+ + + + + + event->afterDisplayContent; ?> +
+ +
+ diff --git a/deployed/trada/templates/trada/html/com_content/article/default.php b/deployed/trada/templates/trada/html/com_content/article/default.php new file mode 100644 index 00000000..38f1237b --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/article/default.php @@ -0,0 +1,167 @@ +item->params; +$images = json_decode($this->item->images); +$urls = json_decode($this->item->urls); +$canEdit = $params->get('access-edit'); +$user = JFactory::getUser(); +$info = $params->get('info_block_position', 0); +JHtml::_('behavior.caption'); +?> +
+ + params->get('show_page_heading')) : ?> + + item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative) + { + echo $this->item->pagination; + } + ?> + + + get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date') + || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') ); ?> + + print) : ?> +
+ item, $params); ?> +
+
+ + get('show_title') || $params->get('show_author')) : ?> + + + print) : ?> + get('show_print_icon') || $params->get('show_email_icon')) : ?> + $params, 'item' => $this->item, 'print' => false)); ?> + + + +
+ item, $params); ?> +
+ + + + + $this->item, 'params' => $params, 'position' => 'above')); ?> + + + get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> + item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> + + item->tagLayout->render($this->item->tags->itemTags); ?> + + + get('show_intro')) : echo $this->item->event->afterDisplayTitle; endif; ?> + item->event->beforeDisplayContent; ?> + + urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position))) + || (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?> + loadTemplate('links'); ?> + + get('access-view')):?> + image_fulltext) && !empty($images->image_fulltext)) : ?> + float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?> +
image_fulltext_caption): + echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"'; + endif; ?> + src="image_fulltext); ?>" alt="image_fulltext_alt); ?>" itemprop="image"/>
+ + item->pagination) && $this->item->pagination && !$this->item->paginationposition && !$this->item->paginationrelative): + echo $this->item->pagination; + endif; + ?> + item->toc)) : + echo $this->item->toc; + endif; ?> +
+ item->text; ?> +
+ + + $this->item, 'params' => $params, 'position' => 'below')); ?> + get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> + item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> + item->tagLayout->render($this->item->tags->itemTags); ?> + + + + item->pagination) && $this->item->pagination && $this->item->paginationposition && !$this->item->paginationrelative): + echo $this->item->pagination; + ?> + + urls_position) && ($urls->urls_position == '1')) || ($params->get('urls_position') == '1'))) : ?> + loadTemplate('links'); ?> + + + get('show_noauth') == true && $user->get('guest')) : ?> + item->introtext; ?> + + get('show_readmore') && $this->item->fulltext != null) : ?> + getMenu(); ?> + getActive(); ?> + id; ?> + + setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false))); ?> +

+ + item->attribs); ?> + alternative_readmore == null) : + echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE'); + elseif ($readmore = $this->item->alternative_readmore) : + echo $readmore; + if ($params->get('show_readmore_title', 0) != 0) : + echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); + endif; + elseif ($params->get('show_readmore_title', 0) == 0) : + echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE'); + else : + echo JText::_('COM_CONTENT_READ_MORE'); + echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); + endif; ?> + +

+ + + item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) : + echo $this->item->pagination; + ?> + + item->event->afterDisplayContent; ?> +
diff --git a/deployed/trada/templates/trada/html/com_content/article/default_links.php b/deployed/trada/templates/trada/html/com_content/article/default_links.php new file mode 100644 index 00000000..7aecec18 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/article/default_links.php @@ -0,0 +1,79 @@ +item->urls); + +// Create shortcuts to some parameters. +$params = $this->item->params; +if ($urls && (!empty($urls->urla) || !empty($urls->urlb) || !empty($urls->urlc))) : +?> + + diff --git a/deployed/trada/templates/trada/html/com_content/categories/default-20151030-075729.php b/deployed/trada/templates/trada/html/com_content/categories/default-20151030-075729.php new file mode 100644 index 00000000..0b9b02a5 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/categories/default-20151030-075729.php @@ -0,0 +1,31 @@ +addScriptDeclaration(" +jQuery(function($) { + $('.categories-list').find('[id^=category-btn-]').each(function(index, btn) { + var btn = $(btn); + btn.on('click', function() { + btn.find('span').toggleClass('icon-plus'); + btn.find('span').toggleClass('icon-minus'); + }); + }); +});"); +?> +
+ loadTemplate('items'); + ?> +
diff --git a/deployed/trada/templates/trada/html/com_content/categories/default.php b/deployed/trada/templates/trada/html/com_content/categories/default.php new file mode 100644 index 00000000..0b9b02a5 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/categories/default.php @@ -0,0 +1,31 @@ +addScriptDeclaration(" +jQuery(function($) { + $('.categories-list').find('[id^=category-btn-]').each(function(index, btn) { + var btn = $(btn); + btn.on('click', function() { + btn.find('span').toggleClass('icon-plus'); + btn.find('span').toggleClass('icon-minus'); + }); + }); +});"); +?> +
+ loadTemplate('items'); + ?> +
diff --git a/deployed/trada/templates/trada/html/com_content/categories/default_items-20151030-075729.php b/deployed/trada/templates/trada/html/com_content/categories/default_items-20151030-075729.php new file mode 100644 index 00000000..63447b49 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/categories/default_items-20151030-075729.php @@ -0,0 +1,68 @@ +items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : +?> + items[$this->parent->id] as $id => $item) : ?> + params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : + if (!isset($this->items[$this->parent->id][$id + 1])) + { + $class = ' class="last"'; + } + ?> +
> + + + params->get('show_description_image') && $item->getParams()->get('image')) : ?> + <?php echo htmlspecialchars($item->getParams()->get('image_alt')); ?> + + params->get('show_subcat_desc_cat') == 1) :?> + description) : ?> +
+ description, '', 'com_content.categories'); ?> +
+ + + + getChildren()) > 0 && $this->maxLevelcat > 1) :?> +
+ items[$item->id] = $item->getChildren(); + $this->parent = $item; + $this->maxLevelcat--; + echo $this->loadTemplate('items'); + $this->parent = $item->getParent(); + $this->maxLevelcat++; + ?> +
+ +
+ + + diff --git a/deployed/trada/templates/trada/html/com_content/categories/default_items.php b/deployed/trada/templates/trada/html/com_content/categories/default_items.php new file mode 100644 index 00000000..63447b49 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/categories/default_items.php @@ -0,0 +1,68 @@ +items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : +?> + items[$this->parent->id] as $id => $item) : ?> + params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : + if (!isset($this->items[$this->parent->id][$id + 1])) + { + $class = ' class="last"'; + } + ?> +
> + + + params->get('show_description_image') && $item->getParams()->get('image')) : ?> + <?php echo htmlspecialchars($item->getParams()->get('image_alt')); ?> + + params->get('show_subcat_desc_cat') == 1) :?> + description) : ?> +
+ description, '', 'com_content.categories'); ?> +
+ + + + getChildren()) > 0 && $this->maxLevelcat > 1) :?> +
+ items[$item->id] = $item->getChildren(); + $this->parent = $item; + $this->maxLevelcat--; + echo $this->loadTemplate('items'); + $this->parent = $item->getParent(); + $this->maxLevelcat++; + ?> +
+ +
+ + + diff --git a/deployed/trada/templates/trada/html/com_content/category/blog.php b/deployed/trada/templates/trada/html/com_content/category/blog.php new file mode 100644 index 00000000..8a5bb822 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/category/blog.php @@ -0,0 +1,118 @@ + +
+ params->get('show_page_heading')) : ?> + + + + params->get('show_category_title', 1) or $this->params->get('page_subheading')) : ?> +

escape($this->params->get('page_subheading')); ?> + params->get('show_category_title')) : ?> + category->title; ?> + +

+ + + params->get('show_cat_tags', 1) && !empty($this->category->tags->itemTags)) : ?> + category->tagLayout = new JLayoutFile('joomla.content.tags'); ?> + category->tagLayout->render($this->category->tags->itemTags); ?> + + + params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?> +
+ params->get('show_description_image') && $this->category->getParams()->get('image')) : ?> + <?php echo htmlspecialchars($this->category->getParams()->get('image_alt')); ?> + + params->get('show_description') && $this->category->description) : ?> + category->description, '', 'com_content.category'); ?> + +
+ + + lead_items) && empty($this->link_items) && empty($this->intro_items)) : ?> + params->get('show_no_articles', 1)) : ?> +

+ + + + + lead_items)) : ?> +
+ lead_items as &$item) : ?> +
+ item = & $item; + echo $this->loadTemplate('item'); + ?> +
+ + +
+ + + intro_items)); + $counter = 0; + ?> + + intro_items)) : ?> + intro_items as $key => &$item) : ?> + columns) + 1; ?> + + columns; ?> +
+ +
+
+ item = & $item; + echo $this->loadTemplate('item'); + ?> +
+ + +
+ columns) or ($counter == $introcount)) : ?> +
+ + + + + link_items)) : ?> +
+ loadTemplate('links'); ?> +
+ + + children[$this->category->id]) && $this->maxLevel != 0) : ?> +
+ params->get('show_category_heading_title_text', 1) == 1) : ?> +

+ + loadTemplate('children'); ?>
+ + params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?> + + +
diff --git a/deployed/trada/templates/trada/html/com_content/category/blog_children.php b/deployed/trada/templates/trada/html/com_content/category/blog_children.php new file mode 100644 index 00000000..22ca2b1c --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/category/blog_children.php @@ -0,0 +1,81 @@ +children[$this->category->id]) > 0 && $this->maxLevel != 0) : ?> + + children[$this->category->id] as $id => $child) : ?> + params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) : + if (!isset($this->children[$this->category->id][$id + 1])) : + $class = ' class="last"'; + endif; + ?> + > + + isRtl()) : ?> + + + + + params->get('show_subcat_desc') == 1) : ?> + description) : ?> +
+ description, '', 'com_content.category'); ?> +
+ + + + getChildren()) > 0 && $this->maxLevel > 1) : ?> +
+ children[$child->id] = $child->getChildren(); + $this->category = $child; + $this->maxLevel--; + echo $this->loadTemplate('children'); + $this->category = $child->getParent(); + $this->maxLevel++; + ?> +
+ + + + + +item->params; +JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); +$canEdit = $this->item->params->get('access-edit'); +$info = $params->get('info_block_position', 0); +?> +item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate()) + || ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate())) : ?> +
+ + +item); ?> + +get('show_print_icon') || $params->get('show_email_icon')) : ?> + $params, 'item' => $this->item, 'print' => false)); ?> + + +get('show_tags') && !empty($this->item->tags->itemTags)) : ?> + item->tags->itemTags); ?> + + + +get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date') + || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') ); ?> + + + $this->item, 'params' => $params, 'position' => 'above')); ?> + + +item); ?> + + +get('show_intro')) : ?> + item->event->afterDisplayTitle; ?> + +item->event->beforeDisplayContent; ?> item->introtext; ?> + + + $this->item, 'params' => $params, 'position' => 'below')); ?> + + +get('show_readmore') && $this->item->readmore) : + if ($params->get('access-view')) : + $link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); + else : + $menu = JFactory::getApplication()->getMenu(); + $active = $menu->getActive(); + $itemId = $active->id; + $link = new JUri(JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false)); + $link->setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false))); + endif; ?> + + $this->item, 'params' => $params, 'link' => $link)); ?> + + + +item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate()) + || ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate())) : ?> +
+ + +item->event->afterDisplayContent; ?> diff --git a/deployed/trada/templates/trada/html/com_content/category/blog_links.php b/deployed/trada/templates/trada/html/com_content/category/blog_links.php new file mode 100644 index 00000000..653d406f --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/category/blog_links.php @@ -0,0 +1,23 @@ + + + + diff --git a/deployed/trada/templates/trada/html/com_content/category/default.php b/deployed/trada/templates/trada/html/com_content/category/default.php new file mode 100644 index 00000000..3894b2ed --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/category/default.php @@ -0,0 +1,23 @@ + +
+ +subtemplatename = 'articles'; +echo JLayoutHelper::render('joomla.content.category_default', $this); +?> + +
diff --git a/deployed/trada/templates/trada/html/com_content/category/default_articles.php b/deployed/trada/templates/trada/html/com_content/category/default_articles.php new file mode 100644 index 00000000..e3372694 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/category/default_articles.php @@ -0,0 +1,222 @@ +item->params; +$n = count($this->items); +$listOrder = $this->escape($this->state->get('list.ordering')); +$listDirn = $this->escape($this->state->get('list.direction')); + +// Check for at least one editable article +$isEditable = false; + +if (!empty($this->items)) +{ + foreach ($this->items as $article) + { + if ($article->params->get('access-edit')) + { + $isEditable = true; + break; + } + } +} +?> + +items)) : ?> + + params->get('show_no_articles', 1)) : ?> +

+ + + + +
+ params->get('show_headings') || $this->params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) :?> +
+ params->get('filter_field') != 'hide') :?> +
+ + +
+ + params->get('show_pagination_limit')) : ?> +
+ + pagination->getLimitBox(); ?> +
+ + + + + + +
+ + + + + params->get('show_headings')) : ?> + + + + + params->get('list_show_date')) : ?> + + + params->get('list_show_author')) : ?> + + + params->get('list_show_hits')) : ?> + + + + + + + + + + items as $i => $article) : ?> + items[$i]->state == 0) : ?> + + + + + + params->get('list_show_date')) : ?> + + + params->get('list_show_author', 1)) : ?> + + + params->get('list_show_hits', 1)) : ?> + + + + + + + + +
+ + + + + + + + + + + + + +
class="list-title"> + access, $this->user->getAuthorisedViewLevels())) : ?> + + escape($article->title); ?> + + + escape($article->title) . ' : '; + $menu = JFactory::getApplication()->getMenu(); + $active = $menu->getActive(); + $itemId = $active->id; + $link = new JUri(JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false)); + $link->setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language), false))); + ?> + + + + + state == 0) : ?> + + + + + publish_up) > strtotime(JFactory::getDate())) : ?> + + + + + publish_down) < strtotime(JFactory::getDate())) && $article->publish_down != JFactory::getDbo()->getNullDate()) : ?> + + + + + class="list-date small"> + displayDate, + $this->escape($this->params->get('date_format', JText::_('DATE_FORMAT_LC3'))) + ); ?> + class="list-author"> + author) || !empty($article->created_by_alias)) : ?> + author ?> + created_by_alias ? $article->created_by_alias : $author);?> + contact_link) && $this->params->get('link_author') == true) : ?> + contact_link, $author)); ?> + + + + + class="list-hits"> + + hits); ?> + + class="list-edit"> + params->get('access-edit')) : ?> + + +
+ + + +category->getParams()->get('access-create')) : ?> + category, $this->category->params); ?> + + + +items)) : ?> + params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?> + + +
+ diff --git a/deployed/trada/templates/trada/html/com_content/category/default_children.php b/deployed/trada/templates/trada/html/com_content/category/default_children.php new file mode 100644 index 00000000..2b8eff5d --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/category/default_children.php @@ -0,0 +1,81 @@ + + +children[$this->category->id]) > 0) : ?> + children[$this->category->id] as $id => $child) : ?> + params->get('show_empty_categories') || $child->getNumItems(true) || count($child->getChildren())) : + if (!isset($this->children[$this->category->id][$id + 1])) : + $class = ' class="last"'; + endif; + ?> + + > + + isRtl()) : ?> + + + + params->get('show_subcat_desc') == 1) :?> + description) : ?> +
+ description, '', 'com_content.category'); ?> +
+ + + + getChildren()) > 0 && $this->maxLevel > 1) :?> +
+ children[$child->id] = $child->getChildren(); + $this->category = $child; + $this->maxLevel--; + echo $this->loadTemplate('children'); + $this->category = $child->getParent(); + $this->maxLevel++; + ?> +
+ + + + + + diff --git a/deployed/trada/templates/trada/html/com_content/featured/default.php b/deployed/trada/templates/trada/html/com_content/featured/default.php new file mode 100644 index 00000000..884da2a4 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/featured/default.php @@ -0,0 +1,96 @@ + +
+params->get('show_page_heading') != 0) : ?> + + + + +lead_items)) : ?> +
+ lead_items as &$item) : ?> +
+ item = &$item; + echo $this->loadTemplate('item'); + ?> +
+ + +
+ +intro_items)); + $counter = 0; +?> +intro_items)) : ?> + intro_items as $key => &$item) : ?> + + columns) + 1; + $row = $counter / $this->columns; + + if ($rowcount == 1) : ?> + +
+ +
+ item = &$item; + echo $this->loadTemplate('item'); + ?> +
+ + + columns) or ($counter == $introcount)) : ?> + +
+ + + + + +link_items)) : ?> +
+ loadTemplate('links'); ?> +
+ + +params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->pagesTotal > 1)) : ?> + + + +
diff --git a/deployed/trada/templates/trada/html/com_content/featured/default_item.php b/deployed/trada/templates/trada/html/com_content/featured/default_item.php new file mode 100644 index 00000000..048ac1ab --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/featured/default_item.php @@ -0,0 +1,100 @@ +item->params; +$images = json_decode($this->item->images); +$canEdit = $this->item->params->get('access-edit'); +$info = $this->item->params->get('info_block_position', 0); + +?> + +item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate()) + || ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate())) : ?> +
+ + +get('show_title')) : ?> +

+ get('link_titles') && $params->get('access-view')) : ?> + + + escape($this->item->title); ?> + +

+ + +item->state == 0) : ?> + + +item->publish_up) > strtotime(JFactory::getDate())) : ?> + + +item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate()) : ?> + + + +get('show_print_icon') || $params->get('show_email_icon')) : ?> + $params, 'item' => $this->item, 'print' => false)); ?> + + + +get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date') + || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') ); ?> + + + $this->item, 'params' => $params, 'position' => 'above')); ?> + + +image_intro) && !empty($images->image_intro)) : ?> + float_intro)) ? $params->get('float_intro') : $images->float_intro; ?> +
image_intro_caption): + echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"'; + endif; ?> + src="image_intro); ?>" alt="image_intro_alt); ?>"/>
+ + +get('show_intro')) : ?> + item->event->afterDisplayTitle; ?> + +item->event->beforeDisplayContent; ?> item->introtext; ?> + + + $this->item, 'params' => $params, 'position' => 'below')); ?> + get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> + item->tags->itemTags); ?> + + + +get('show_readmore') && $this->item->readmore) : + if ($params->get('access-view')) : + $link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); + else : + $menu = JFactory::getApplication()->getMenu(); + $active = $menu->getActive(); + $itemId = $active->id; + $link = new JUri(JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false)); + $link->setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false))); + endif; ?> + + $this->item, 'params' => $params, 'link' => $link)); ?> + + + +item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate()) + || ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?> +
+ + +item->event->afterDisplayContent; ?> diff --git a/deployed/trada/templates/trada/html/com_content/featured/default_links.php b/deployed/trada/templates/trada/html/com_content/featured/default_links.php new file mode 100644 index 00000000..f98832b2 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/featured/default_links.php @@ -0,0 +1,19 @@ + + diff --git a/deployed/trada/templates/trada/html/com_content/form/edit.php b/deployed/trada/templates/trada/html/com_content/form/edit.php new file mode 100644 index 00000000..d83bdef7 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_content/form/edit.php @@ -0,0 +1,173 @@ +state->get('params'); + +// This checks if the editor 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_urls_images_frontend = '0'; +} + +JFactory::getDocument()->addScriptDeclaration(" + Joomla.submitbutton = function(task) + { + if (task == 'article.cancel' || document.formvalidator.isValid(document.getElementById('adminForm'))) + { + " . $this->form->getField('articletext')->save() . " + Joomla.submitform(task); + } + } +"); +?> +
+ get('show_page_heading')) : ?> + + + +
+
+
+ +
+
+ +
+ get('save_history', 0)) : ?> +
+ form->getInput('contenthistory'); ?> +
+ +
+
+ + +
+
+ form->renderField('title'); ?> + + item->id)) : ?> + form->renderField('alias'); ?> + + + form->getInput('articletext'); ?> +
+ get('show_urls_images_frontend')): ?> +
+ form->renderField('image_intro', 'images'); ?> + form->renderField('image_intro_alt', 'images'); ?> + form->renderField('image_intro_caption', 'images'); ?> + form->renderField('float_intro', 'images'); ?> + form->renderField('image_fulltext', 'images'); ?> + form->renderField('image_fulltext_alt', 'images'); ?> + form->renderField('image_fulltext_caption', 'images'); ?> + form->renderField('float_fulltext', 'images'); ?> + form->renderField('urla', 'urls'); ?> + form->renderField('urlatext', 'urls'); ?> +
+
+ form->getInput('targeta', 'urls'); ?> +
+
+ form->renderField('urlb', 'urls'); ?> + form->renderField('urlbtext', 'urls'); ?> +
+
+ form->getInput('targetb', 'urls'); ?> +
+
+ form->renderField('urlc', 'urls'); ?> + form->renderField('urlctext', 'urls'); ?> +
+
+ form->getInput('targetc', 'urls'); ?> +
+
+
+ + form->getFieldsets('params') as $name => $fieldSet) : ?> +
+ form->getFieldset($name) as $field) : ?> + renderField(); ?> + +
+ +
+ form->renderField('catid'); ?> + form->renderField('tags'); ?> + get('save_history', 0)) : ?> + form->renderField('version_note'); ?> + + form->renderField('created_by_alias'); ?> + item->params->get('access-change')) : ?> + form->renderField('state'); ?> + form->renderField('featured'); ?> + form->renderField('publish_up'); ?> + form->renderField('publish_down'); ?> + + form->renderField('access'); ?> + item->id)):?> +
+
+
+
+ +
+
+ +
+
+ form->renderField('language'); ?> +
+
+ form->renderField('metadesc'); ?> + form->renderField('metakey'); ?> + + + + params->get('enable_category', 0) == 1) :?> + + +
+
+ +
+
+
diff --git a/deployed/trada/templates/trada/html/com_finder/search/default.php b/deployed/trada/templates/trada/html/com_finder/search/default.php new file mode 100644 index 00000000..b0814ee7 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_finder/search/default.php @@ -0,0 +1,41 @@ + + +
+params->get('show_page_heading')) : ?> +

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

+ + +params->get('show_search_form', 1)) : ?> +
+ loadTemplate('form'); ?> +
+query->search === true): +?> +
+ loadTemplate('results'); ?> +
+ +
diff --git a/deployed/trada/templates/trada/html/com_finder/search/default_form.php b/deployed/trada/templates/trada/html/com_finder/search/default_form.php new file mode 100644 index 00000000..d2dc92d5 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_finder/search/default_form.php @@ -0,0 +1,102 @@ +params->get('show_advanced', 1) || $this->params->get('show_autosuggest', 1)) +{ + JHtml::_('jquery.framework'); + + $script = " +jQuery(function() {"; + if ($this->params->get('show_advanced', 1)) + { + /* + * This segment of code disables select boxes that have no value when the + * form is submitted so that the URL doesn't get blown up with null values. + */ + $script .= " + jQuery('#finder-search').on('submit', function(e){ + e.stopPropagation(); + // Disable select boxes with no value selected. + jQuery('#advancedSearch').find('select').each(function(index, el) { + var el = jQuery(el); + if(!el.val()){ + el.attr('disabled', 'disabled'); + } + }); + });"; + } + /* + * This segment of code sets up the autocompleter. + */ + if ($this->params->get('show_autosuggest', 1)) + { + JHtml::_('script', 'media/jui/js/jquery.autocomplete.min.js', false, false, false, false, true); + + $script .= " + var suggest = jQuery('#q').autocomplete({ + serviceUrl: '" . JRoute::_('index.php?option=com_finder&task=suggestions.suggest&format=json&tmpl=component', false) . "', + paramName: 'q', + minChars: 1, + maxHeight: 400, + width: 300, + zIndex: 9999, + deferRequestBy: 500 + });"; + } + + $script .= " +});"; + + JFactory::getDocument()->addScriptDeclaration($script); +} +?> + + diff --git a/deployed/trada/templates/trada/html/com_finder/search/default_result.php b/deployed/trada/templates/trada/html/com_finder/search/default_result.php new file mode 100644 index 00000000..8f463036 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_finder/search/default_result.php @@ -0,0 +1,64 @@ +result->mime) ? 'mime-' . $this->result->mime : null; + +$show_description = $this->params->get('show_description', 1); + +if ($show_description) +{ + // Calculate number of characters to display around the result + $term_length = JString::strlen($this->query->input); + $desc_length = $this->params->get('description_length', 255); + $pad_length = $term_length < $desc_length ? floor(($desc_length - $term_length) / 2) : 0; + + // Find the position of the search term + $pos = JString::strpos(JString::strtolower($this->result->description), JString::strtolower($this->query->input)); + + // Find a potential start point + $start = ($pos && $pos > $pad_length) ? $pos - $pad_length : 0; + + // Find a space between $start and $pos, start right after it. + $space = JString::strpos($this->result->description, ' ', $start > 0 ? $start - 1 : 0); + $start = ($space && $space < $pos) ? $space + 1 : $start; + + $description = JHtml::_('string.truncate', JString::substr($this->result->description, $start), $desc_length, true); +} + +$route = $this->result->route; + +// Get the route with highlighting information. +if (!empty($this->query->highlight) + && empty($this->result->mime) + && $this->params->get('highlight_terms', 1) + && JPluginHelper::isEnabled('system', 'highlight')) +{ + $route .= '&highlight=' . base64_encode(json_encode($this->query->highlight)); +} + +?> + +
  • +

    + result->title; ?> +

    + +

    + +

    + + params->get('show_url', 1)) : ?> +
    + baseUrl, JRoute::_($this->result->route); ?> +
    + +
  • diff --git a/deployed/trada/templates/trada/html/com_finder/search/default_results.php b/deployed/trada/templates/trada/html/com_finder/search/default_results.php new file mode 100644 index 00000000..26b425cf --- /dev/null +++ b/deployed/trada/templates/trada/html/com_finder/search/default_results.php @@ -0,0 +1,81 @@ + + +suggested && $this->params->get('show_suggested_query', 1)) || ($this->explained && $this->params->get('show_explained_query', 1))) : ?> +
    + + suggested && $this->params->get('show_suggested_query', 1)) : ?> + + query->toUri()); ?> + setVar('q', $this->suggested); ?> + + + toString(array('path', 'query'))); ?> + ' . $this->escape($this->suggested) . ''; ?> + + + + + explained && $this->params->get('show_explained_query', 1)) : ?> + explained; ?> + +
    + + + +total == 0) : ?> +
    +

    + getLanguageFilter() ? '_MULTILANG' : ''; ?> +

    escape($this->query->input)); ?>

    +
    + + + + + + +query->highlight) && $this->params->get('highlight_terms', 1)) : ?> + query->highlight); ?> + + + +
    +
      + baseUrl = JUri::getInstance()->toString(array('scheme', 'host', 'port')); ?> + + results as $result) : ?> + result = &$result; ?> + getLayoutFile($this->result->layout); ?> + loadTemplate($layout); ?> + +
    +
    + + +
    + +
    + pagination->get('limitstart') + 1; + $total = (int) $this->pagination->get('total'); + $limit = (int) $this->pagination->get('limit') * $this->pagination->get('pages.current'); + $limit = (int) ($limit > $total ? $total : $limit); + + echo JText::sprintf('COM_FINDER_SEARCH_RESULTS_OF', $start, $limit, $total); + ?> +
    +
    diff --git a/deployed/trada/templates/trada/html/com_k2/default/category.php b/deployed/trada/templates/trada/html/com_k2/default/category.php new file mode 100644 index 00000000..f0dd148b --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/category.php @@ -0,0 +1,85 @@ + + + +
    + + leading) || isset($this->primary) || isset($this->secondary) || isset($this->links)) && (count($this->leading) || count($this->primary) || count($this->secondary) || count($this->links))): ?> + +
    + + leading) && count($this->leading)): ?> + leading as $key=>$item): ?> + item = $item; + echo $this->loadTemplate('item'); + ?> + + + + primary) && count($this->primary)): ?> + primary as $key=>$item): ?> + item=$item; + echo $this->loadTemplate('item'); + ?> + + + + secondary) && count($this->secondary)): ?> + secondary as $key=>$item): ?> + item = $item; + echo $this->loadTemplate('item'); + ?> + + + + links) && count($this->links)): ?> + links as $key=>$item): ?> + item=$item; + echo $this->loadTemplate('item'); + ?> + + + +
    + + + pagination->getPagesLinks()): ?> +
    +
    + params->get('catPagination')) echo $this->pagination->getPagesLinks(); ?> +
    +
    + pagination->getData(); ?> +
      + previous->link ) : ?> +
    • + + next->link ) : ?> +
    • + +
    +
    +
    + + +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/default/category_item.php b/deployed/trada/templates/trada/html/com_k2/default/category_item.php new file mode 100644 index 00000000..e8b048a7 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/category_item.php @@ -0,0 +1,113 @@ +item, 'itemlist', $this->params); + +?> + +
    + item->params->get('catItemImage') && !empty($this->item->image)): ?> + + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + + +
    +
    +
    +
    + item->params->get('catItemImage') && !empty($this->item->image)): ?> + + + item->author, 'avatar' )): ?> + + +
    +
    +
    +
    +
    + item->params->get('catItemTitle')): ?> +
    item->title; ?>
    + +
      + item->params->get('catItemDateCreated')): ?> + +
    • item->created , 'M d Y' ); ?>
    • + + item->params->get('catItemAuthor')): ?> + +
    • + item->author->profile->gender); ?> + item->author->link) && $this->item->author->link): ?> + + + item->author->name; ?> + +
    • + + item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?> + + + + item->params->get('catItemRating')): ?> + +
      +
      +
        +
      • +
      • 1
      • +
      • 2
      • +
      • 3
      • +
      • 4
      • +
      • 5
      • +
      +
      item->numOfvotes; ?>
      +
      +
      + +
    + item->params->get('catItemIntroText')): ?> + +
    + item->introtext; ?> +
    + + item->params->get('catItemReadMore')): ?> + + + + + +
    +
    +
    +
    + \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/com_k2/default/category_item_links.php b/deployed/trada/templates/trada/html/com_k2/default/category_item_links.php new file mode 100644 index 00000000..c6a9cd2f --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/category_item_links.php @@ -0,0 +1,46 @@ +item, 'itemlist', $this->params); + +?> + + +
    + item->params->get('catItemTitle')): ?> + +

    + item->params->get('catItemTitleLinked')): ?> + + item->title; ?> + + + item->title; ?> + +

    + + item->params->get('catItemImage') && !empty($this->item->image)): ?> + +
    + + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + + +
    +
    + + + +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/default/item.php b/deployed/trada/templates/trada/html/com_k2/default/item.php new file mode 100644 index 00000000..0d34398d --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/item.php @@ -0,0 +1,214 @@ + + +
    +
    +
    +
    + + item->author, 'avatar' )): ?> + + + +
    +
    +
    +
    + item->params->get('itemImage') && !empty($this->item->image)): ?> + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + +
    + item->params->get('itemTitle')): ?> +

    item->title; ?>

    + +
      + item->params->get('catItemDateCreated')): ?> + +
    • item->created , 'M d Y' ); ?>
    • + + item->params->get('catItemAuthor')): ?> + +
    • + item->author->profile->gender); ?> + item->author->name; ?> +
    • + + item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?> + + + + item->params->get('itemRating')): ?> + +
    • +
      +
      +
        +
      • +
      • 1
      • +
      • 2
      • +
      • 3
      • +
      • 4
      • +
      • 5
      • +
      +
      item->numOfvotes; ?>
      +
      +
      +
      +
      +
    • + +
    +
    +
    + item->fulltext)): ?> + item->params->get('itemIntroText')): ?> + +
    + item->introtext; ?> +
    + + item->params->get('itemFullText')): ?> + +
    + item->fulltext; ?> +
    + + + +
    + item->introtext; ?> +
    + +
    +
    + item->params->get('itemNavigation') && !JRequest::getCmd('print') && (isset($this->item->nextLink) || isset($this->item->previousLink))): ?> +
    +
      + item->previousLink)): ?> +
    • + + item->nextLink)): ?> +
    • + +
    +
    + + item->params->get('itemTwitterButton',1) || $this->item->params->get('itemFacebookButton',1) || $this->item->params->get('itemGooglePlusOneButton',1)): ?> + + + +
    +
    +
    + +item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?> + + + +
    + + item->params->get('commentsFormPosition')=='above' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?> + +
    + loadTemplate('comments_form'); ?> +
    + + + item->numOfComments>0 && $this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2'))): ?> + +
    +

    + item->numOfComments; ?> item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?> +

    + +
    + +
    + item->comments as $key=>$comment): ?> +
    +
    +
    userName); ?>
    + commentDate, JText::_('K2_DATE_FORMAT_LC2')); ?> +
    +
    +

    commentText; ?>

    +
    + reportUserLink): ?> + + + userImage): ?> +
    + <?php echo JFilterOutput::cleanText($comment->userName); ?> +
    + +
    + +
    + +
    + pagination->getPagesLinks(); ?> +
    +
    + + + item->params->get('commentsFormPosition')=='below' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?> + +
    + loadTemplate('comments_form'); ?> +
    + + + item->params->get('comments') == '2' && $user->guest): ?> +
    + + +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/default/item_comments_form.php b/deployed/trada/templates/trada/html/com_k2/default/item_comments_form.php new file mode 100644 index 00000000..1caccb17 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/item_comments_form.php @@ -0,0 +1,65 @@ + +
    +
    +

    + +
    + params->get('commentsFormNotes')): ?> +

    + params->get('commentsFormNotesText')): ?> + params->get('commentsFormNotesText')); ?> + + + +

    + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + params->get('recaptcha') && ($this->user->guest || $this->params->get('recaptchaForRegistered', 1))): ?> +
    + +
    +
    + +
    + +
    +
    + +
    +
    + + + + + +
    +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/com_k2/default/itemform.php b/deployed/trada/templates/trada/html/com_k2/default/itemform.php new file mode 100644 index 00000000..1469695d --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/itemform.php @@ -0,0 +1,959 @@ +addScriptDeclaration(" + Joomla.submitbutton = function(pressbutton){ + if (pressbutton == 'cancel') { + submitform( pressbutton ); + return; + } + if (\$K2.trim(\$K2('#title').val()) == '') { + alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' ); + } + else if (\$K2.trim(\$K2('#catid').val()) == '0') { + alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' ); + } + else { + syncExtraFieldsEditor(); + var validation = validateExtraFields(); + if(validation === true) { + \$K2('#selectedTags option').attr('selected', 'selected'); + submitform( pressbutton ); + } + } + } +"); + +?> + +
    + mainframe->isSite()): ?> +
    +
    + + + + + +
    + + + +
    +
    +

    + +

    +
    +
    +
    +
    +

    permissionsMessage; ?>

    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('publish') || ($this->permissions->get('editPublished') && $this->row->id && $this->row->published) )): ?> + permissions->get('publish')): ?> + + + + + + + + + + +
    + + + +
    + + + +
    + + + lists['categories']; ?> +
    + + + params->get('taggingSystem')): ?> + +
      + row->tags) && count($this->row->tags)): ?> + row->tags as $tag): ?> +
    • + name; ?> + x + +
    • + + +
    • + +
    • +
    • +
    + + + + params->get('lockTags') || $this->user->gid>23): ?> +
    + + +
    +
    +
    + + + + + + + + +
    + lists['tags']; ?> + + +
    +
    + +
    + lists['selectedTags']; ?> +
    + +
    + + + lists['featured']; ?> +
    + + + lists['published']; ?> +
    + + +
    +

    +
      +
    • +
    +
    + + +
    +
      +
    • + params->get('showImageTab')): ?> +
    • + + params->get('showImageGalleryTab')): ?> +
    • + + params->get('showVideoTab')): ?> +
    • + + params->get('showExtraFieldsTab')): ?> +
    • + + params->get('showAttachmentsTab')): ?> +
    • + + K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?> +
    • + +
    + + +
    + params->get('mergeEditors')): ?> +
    text; ?> +
    +
    +
    + +
    introtext; ?> +
    +
    +
    +
    fulltext; ?> +
    +
    +
    + + K2PluginsItemContent)): ?> +
    + K2PluginsItemContent as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    +
    + params->get('showImageTab')): ?> + +
    + + + + + + + + + + + + + + row->image)): ?> + + + + + +
    + + + + (: ) +
    +
    + + +
    +
    +
    + + + +
    + + + +
    + + + + <?php echo $this->row->title; ?> + + + +
    + K2PluginsItemImage)): ?> +
    + K2PluginsItemImage as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + params->get('showImageGalleryTab')): ?> + +
    + lists['checkSIG']): ?> + + + + + + + + +
    +
    +
    +
      +
    • +
    +
    +
    + +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    + +
    +

    +

    +
    + + + K2PluginsItemGallery)): ?> +
    + K2PluginsItemGallery as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + params->get('showVideoTab')): ?> + +
    + lists['checkAllVideos']): ?> + + + + + + + + + + + + + + row->video): ?> + + + + + +
    + + +
    +
      +
    • +
    • +
    • +
    • +
    +
    +
    + + (: )
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    lists['providers']; ?>

    + +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    + + + +
    + + + +
    + + + row->video; ?> +
    + + +
    + + +
    +
    +
    +
      +
    • +
    +
    +
    + +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    + +
    +

    +

    +
    + + + + + + + + + + + + + + + row->video): ?> + + + + + +
    + + +
    +
      +
    • +
    +
    +
    + +
    + +
    +
    +
    +
    + + + +
    + + + +
    + + + row->video; ?> +
    + + +
    + + K2PluginsItemVideo)): ?> +
    + K2PluginsItemVideo as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + params->get('showExtraFieldsTab')): ?> + +
    +
    + extraFields)): ?> + + extraFields as $extraField): ?> + type == 'header'): ?> + + + + + + + + + + +

    name; ?>

    + + + element; ?> +
    + + +
    +
    +
    +
      +
    • +
    +
    +
    + +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    + +
    +

    +
    +

    +
    +
    + + +
    + K2PluginsItemExtraFields)): ?> +
    + K2PluginsItemExtraFields as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + params->get('showAttachmentsTab')): ?> + +
    +
    + row->attachments)): ?> + + + + + + + + + row->attachments as $attachment): ?> + + + + + + + + +
    + + + + + + + + + +
    + filename; ?> + + title; ?> + + titleAttribute; ?> + + hits; ?> + + +
    + +
    +
    + + (: )
    +
    + K2PluginsItemAttachments)): ?> +
    + K2PluginsItemAttachments as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?> + +
    +
    + K2PluginsItemOther as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    +
    + +
    + + + + mainframe->isSite()): ?> + + + + + + + + +
    mainframe->isSite() && !$this->params->get('sideBarDisplayFrontend')): ?> style="display:none;" class="xmlParamsFields"> + row->id): ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + row->id): ?> + + + + +
    + + + row->id; ?> +
    + + + row->published > 0) ? JText::_('K2_YES') : JText::_('K2_NO'); ?> +
    + + + row->featured > 0) ? JText::_('K2_YES'): JText::_('K2_NO'); ?> +
    + + + lists['created']; ?> +
    + + + row->author; ?> +
    + + + lists['modified']; ?> +
    + + + row->moderator; ?> +
    + + + row->hits; ?> + row->hits): ?> + + +
    + + + row->ratingCount; ?> + row->ratingCount): ?> +
    + (: row->ratingSum/$this->row->ratingCount),2); ?>/5.00) + + +
    + +
    +

    +
    + + lists['language'])): ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + lists['language']; ?> +
    + + + row->author; ?> + mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('editAll'))): ?> + + + +
    + + + +
    + + + lists['access']; ?> +
    + + + lists['createdCalendar']; ?> +
    + + + lists['publish_up']; ?> +
    + + + lists['publish_down']; ?> +
    +
    +

    +
    + + + + + + + + + + + + + + + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    +
    + mainframe->isAdmin()): ?> +

    +
    + +
    +
      + form->getFieldset('item-view-options-listings') as $field): ?> +
    • + type=='header'): ?> +
      input; ?>
      + type=='Spacer'): ?> +
       
      +
      + +
      label; ?>
      +
      input; ?>
      +
      + +
    • + +
    +
    + + form->render('params', 'item-view-options-listings'); ?> + +
    +

    +
    + +
    +
      + form->getFieldset('item-view-options') as $field): ?> +
    • + type=='header'): ?> +
      input; ?>
      + type=='Spacer'): ?> +
       
      +
      + +
      label; ?>
      +
      input; ?>
      +
      + +
    • + +
    +
    + + form->render('params', 'item-view-options'); ?> + +
    + + aceAclFlag): ?> +

    +
    row->id, true); ?>
    + +
    +
    +
    + mainframe->isSite()): ?> +
    +
    + +
    diff --git a/deployed/trada/templates/trada/html/com_k2/default/latest.php b/deployed/trada/templates/trada/html/com_k2/default/latest.php new file mode 100644 index 00000000..908d305d --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/latest.php @@ -0,0 +1,160 @@ + + + +
    + + params->get('show_page_title')): ?> + +
    + escape($this->params->get('page_title')); ?> +
    + + + blocks as $key=>$block): ?> +
    + + source=='categories'): $category=$block; ?> + + params->get('categoryFeed') || $this->params->get('categoryImage') || $this->params->get('categoryTitle') || $this->params->get('categoryDescription')): ?> + +
    + params->get('categoryFeed')): ?> + +
    + + + +
    +
    + + + params->get('categoryImage') && !empty($category->image)): ?> +
    + <?php echo K2HelperUtilities::cleanHtml($category->name); ?> +
    + + + params->get('categoryTitle')): ?> +

    name; ?>

    + + + params->get('categoryDescription') && isset($category->description)): ?> +

    description; ?>

    + + +
    + + + event->K2CategoryDisplay; ?> +
    +
    + + + + + + params->get('userFeed') || $this->params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?> + +
    + + params->get('userFeed')): ?> + +
    + + + +
    +
    + + + params->get('userImage') && !empty($user->avatar)): ?> + <?php echo $user->name; ?> + + + params->get('userName')): ?> +

    + + + params->get('userDescription') && isset($user->profile->description)): ?> +

    profile->description; ?>

    + + + params->get('userURL') || $this->params->get('userEmail')): ?> +

    + params->get('userURL') && isset($user->profile->url)): ?> + + : profile->url; ?> + + + + params->get('userEmail')): ?> + + : email); ?> + + +

    + + +
    + + event->K2UserDisplay; ?> + +
    +
    + + + + + + +
    + params->get('latestItemsDisplayEffect')=="first"): ?> + + items as $itemCounter=>$item): K2HelperUtilities::setDefaultImage($item, 'latest', $this->params); ?> + + item=$item; echo $this->loadTemplate('item'); ?> + +

    + params->get('latestItemTitleLinked')): ?> + + title; ?> + + + title; ?> + +

    + + + + + + items as $item): K2HelperUtilities::setDefaultImage($item, 'latest', $this->params); ?> + item=$item; echo $this->loadTemplate('item'); ?> + + + +
    + + +
    + + params->get('latestItemsCols'))==0): ?> +
    + + + +
    +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/default/latest_item.php b/deployed/trada/templates/trada/html/com_k2/default/latest_item.php new file mode 100644 index 00000000..3bbccf4d --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/latest_item.php @@ -0,0 +1,167 @@ + + + +
    + + + item->event->BeforeDisplay; ?> + + + item->event->K2BeforeDisplay; ?> + +
    + item->params->get('latestItemTitle')): ?> + +

    + item->params->get('latestItemTitleLinked')): ?> + + item->title; ?> + + + item->title; ?> + +

    + +
    + + item->params->get('latestItemDateCreated')): ?> + + + item->created , JText::_('K2_DATE_FORMAT_LC2')); ?> + + + + + item->event->AfterDisplayTitle; ?> + + + item->event->K2AfterDisplayTitle; ?> + +
    + + + item->event->BeforeDisplayContent; ?> + + + item->event->K2BeforeDisplayContent; ?> + + item->params->get('latestItemImage') && !empty($this->item->image)): ?> + +
    + + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + + +
    +
    + + + item->params->get('latestItemIntroText')): ?> + +
    + item->introtext; ?> +
    + + +
    + + + item->event->AfterDisplayContent; ?> + + + item->event->K2AfterDisplayContent; ?> + +
    +
    + + item->params->get('latestItemCategory') || $this->item->params->get('latestItemTags')): ?> + + + +
    + + params->get('latestItemVideo') && !empty($this->item->video)): ?> + +
    +

    + item->video; ?> +
    + + + item->params->get('latestItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?> + + + + + item->params->get('latestItemReadMore')): ?> + +
    + + + +
    + + +
    + + + item->event->AfterDisplay; ?> + + + item->event->K2AfterDisplay; ?> + +
    +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/default/tag.php b/deployed/trada/templates/trada/html/com_k2/default/tag.php new file mode 100644 index 00000000..493878f4 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/tag.php @@ -0,0 +1,147 @@ + + + +
    + + params->get('show_page_title')): ?> + +
    + escape($this->params->get('page_title')); ?> +
    + + + params->get('tagFeedIcon',1)): ?> + +
    + + + +
    +
    + + + items)): ?> +
    + items as $item): ?> + + +
    + +
    + params->get('tagItemDateCreated',1)): ?> + + + created , JText::_('K2_DATE_FORMAT_LC2')); ?> + + + + params->get('tagItemTitle',1)): ?> + +

    + params->get('tagItemTitleLinked',1)): ?> + + title; ?> + + + title; ?> + +

    + +
    + +
    + params->get('tagItemImage',1) && !empty($item->imageGeneric)): ?> + +
    + + + <?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?> + + +
    +
    + + + params->get('tagItemIntroText',1)): ?> + +
    + introtext; ?> +
    + + +
    +
    + +
    + + params->get('tagItemExtraFields',0) && count($item->extra_fields)): ?> + +
    +

    +
      + extra_fields as $key=>$extraField): ?> + value != ''): ?> +
    • typetype); ?> groupgroup; ?>"> + type == 'header'): ?> +

      name; ?>

      + + name; ?> + value; ?> + +
    • + + +
    +
    +
    + + + params->get('tagItemCategory')): ?> + + + + + params->get('tagItemReadMore')): ?> + +
    + + + +
    + + +
    +
    + + + +
    + + + pagination->getPagesLinks()): ?> +
    + pagination->getPagesLinks(); ?> +
    + pagination->getPagesCounter(); ?> +
    + + + + +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/default/tag_item.php b/deployed/trada/templates/trada/html/com_k2/default/tag_item.php new file mode 100644 index 00000000..e8b048a7 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/tag_item.php @@ -0,0 +1,113 @@ +item, 'itemlist', $this->params); + +?> + +
    + item->params->get('catItemImage') && !empty($this->item->image)): ?> + + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + + +
    +
    +
    +
    + item->params->get('catItemImage') && !empty($this->item->image)): ?> + + + item->author, 'avatar' )): ?> + + +
    +
    +
    +
    +
    + item->params->get('catItemTitle')): ?> +
    item->title; ?>
    + +
      + item->params->get('catItemDateCreated')): ?> + +
    • item->created , 'M d Y' ); ?>
    • + + item->params->get('catItemAuthor')): ?> + +
    • + item->author->profile->gender); ?> + item->author->link) && $this->item->author->link): ?> + + + item->author->name; ?> + +
    • + + item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?> + + + + item->params->get('catItemRating')): ?> + +
      +
      +
        +
      • +
      • 1
      • +
      • 2
      • +
      • 3
      • +
      • 4
      • +
      • 5
      • +
      +
      item->numOfvotes; ?>
      +
      +
      + +
    + item->params->get('catItemIntroText')): ?> + +
    + item->introtext; ?> +
    + + item->params->get('catItemReadMore')): ?> + + + + + +
    +
    +
    +
    + \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/com_k2/default/user.php b/deployed/trada/templates/trada/html/com_k2/default/user.php new file mode 100644 index 00000000..9d1188ff --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/default/user.php @@ -0,0 +1,272 @@ + + + + +
    + + params->get('show_page_title') && $this->params->get('page_title')!=$this->user->name): ?> + +
    + escape($this->params->get('page_title')); ?> +
    + + + params->get('userFeedIcon',1)): ?> + +
    + + + +
    +
    + + + params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?> +
    + + addLink) && JRequest::getInt('id')==$user->id): ?> + + + + + + + + + params->get('userImage') && !empty($this->user->avatar)): ?> + <?php echo htmlspecialchars($this->user->name, ENT_QUOTES, 'UTF-8'); ?> + + + params->get('userName')): ?> +

    user->name; ?>

    + + + params->get('userDescription') && trim($this->user->profile->description)): ?> +
    user->profile->description; ?>
    + + + params->get('userURL') && isset($this->user->profile->url) && $this->user->profile->url) || $this->params->get('userEmail')): ?> +
    + params->get('userURL') && isset($this->user->profile->url) && $this->user->profile->url): ?> + + : user->profile->url; ?> + + + + params->get('userEmail')): ?> + + : user->email); ?> + + +
    + + +
    + + user->event->K2UserDisplay; ?> + +
    +
    + + + + + items)): ?> + +
    + items as $item): ?> + + +
    + + + event->BeforeDisplay; ?> + + + event->K2BeforeDisplay; ?> + +
    + params->get('userItemDateCreated')): ?> + + + created , JText::_('K2_DATE_FORMAT_LC2')); ?> + + + + params->get('userItemTitle')): ?> + +

    + editLink)): ?> + + + + + + + + + params->get('userItemTitleLinked') && $item->published): ?> + + title; ?> + + + title; ?> + + published || ($item->publish_up != $this->nullDate && $item->publish_up > $this->now) || ($item->publish_down != $this->nullDate && $item->publish_down < $this->now)): ?> + + + + + + +

    + +
    + + + event->AfterDisplayTitle; ?> + + + event->K2AfterDisplayTitle; ?> + +
    + + + event->BeforeDisplayContent; ?> + + + event->K2BeforeDisplayContent; ?> + + params->get('userItemImage') && !empty($item->imageGeneric)): ?> + +
    + + + <?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?> + + +
    +
    + + + params->get('userItemIntroText')): ?> + +
    + introtext; ?> +
    + + +
    + + + event->AfterDisplayContent; ?> + + + event->K2AfterDisplayContent; ?> + +
    +
    + + params->get('userItemCategory') || $this->params->get('userItemTags')): ?> + + + +
    + + params->get('userItemCommentsAnchor') && ( ($this->params->get('comments') == '2' && !$this->user->guest) || ($this->params->get('comments') == '1')) ): ?> + + + + + params->get('userItemReadMore')): ?> + +
    + + + +
    + + +
    + + + event->AfterDisplay; ?> + + + event->K2AfterDisplay; ?> + +
    +
    + + + +
    + + + pagination->getPagesLinks())): ?> +
    + pagination->getPagesLinks(); ?> +
    + pagination->getPagesCounter(); ?> +
    + + + + +
    + + diff --git a/deployed/trada/templates/trada/html/com_k2/list/category.php b/deployed/trada/templates/trada/html/com_k2/list/category.php new file mode 100644 index 00000000..ac8e0610 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/category.php @@ -0,0 +1,85 @@ + + + +
    + + leading) || isset($this->primary) || isset($this->secondary) || isset($this->links)) && (count($this->leading) || count($this->primary) || count($this->secondary) || count($this->links))): ?> + +
    + + leading) && count($this->leading)): ?> + leading as $key=>$item): ?> + item = $item; + echo $this->loadTemplate('item'); + ?> + + + + primary) && count($this->primary)): ?> + primary as $key=>$item): ?> + item=$item; + echo $this->loadTemplate('item'); + ?> + + + + secondary) && count($this->secondary)): ?> + secondary as $key=>$item): ?> + item = $item; + echo $this->loadTemplate('item'); + ?> + + + + links) && count($this->links)): ?> + links as $key=>$item): ?> + item=$item; + echo $this->loadTemplate('item'); + ?> + + + +
    + + + pagination->getPagesLinks()): ?> +
    +
    + params->get('catPagination')) echo $this->pagination->getPagesLinks(); ?> +
    +
    + pagination->getData(); ?> +
      + previous->link ) : ?> +
    • + + next->link ) : ?> +
    • + +
    +
    +
    + + +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/list/category_item.php b/deployed/trada/templates/trada/html/com_k2/list/category_item.php new file mode 100644 index 00000000..282e50f3 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/category_item.php @@ -0,0 +1,113 @@ +item, 'itemlist', $this->params); + +?> + +
    + item->params->get('catItemImage') && !empty($this->item->image)): ?> + + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + + +
    +
    +
    +
    + item->params->get('catItemImage') && !empty($this->item->image)): ?> + + + item->author, 'avatar' )): ?> + + +
    +
    +
    +
    +
    + item->params->get('catItemTitle')): ?> +
    item->title; ?>
    + +
      + item->params->get('catItemDateCreated')): ?> + +
    • item->created , 'M d Y' ); ?>
    • + + item->params->get('catItemAuthor')): ?> + +
    • + item->author->profile->gender); ?> + item->author->link) && $this->item->author->link): ?> + + + item->author->name; ?> + +
    • + + item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?> + + + + item->params->get('catItemRating')): ?> + +
      +
      +
        +
      • +
      • 1
      • +
      • 2
      • +
      • 3
      • +
      • 4
      • +
      • 5
      • +
      +
      item->numOfvotes; ?>
      +
      +
      + +
    + item->params->get('catItemIntroText')): ?> + +
    + item->introtext; ?> +
    + + item->params->get('catItemReadMore')): ?> + + + + + +
    +
    +
    +
    + \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/com_k2/list/category_item_links.php b/deployed/trada/templates/trada/html/com_k2/list/category_item_links.php new file mode 100644 index 00000000..c6a9cd2f --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/category_item_links.php @@ -0,0 +1,46 @@ +item, 'itemlist', $this->params); + +?> + + +
    + item->params->get('catItemTitle')): ?> + +

    + item->params->get('catItemTitleLinked')): ?> + + item->title; ?> + + + item->title; ?> + +

    + + item->params->get('catItemImage') && !empty($this->item->image)): ?> + +
    + + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + + +
    +
    + + + +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/list/item.php b/deployed/trada/templates/trada/html/com_k2/list/item.php new file mode 100644 index 00000000..ee8037f7 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/item.php @@ -0,0 +1,214 @@ + + +
    +
    +
    +
    + + item->author, 'avatar' )): ?> + + + +
    +
    +
    +
    + item->params->get('itemImage') && !empty($this->item->image)): ?> + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + +
    + item->params->get('itemTitle')): ?> +

    item->title; ?>

    + +
      + item->params->get('catItemDateCreated')): ?> + +
    • item->created , 'M d Y' ); ?>
    • + + item->params->get('catItemAuthor')): ?> + +
    • + item->author->profile->gender); ?> + item->author->name; ?> +
    • + + item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?> + + + + item->params->get('itemRating')): ?> + +
    • +
      +
      +
        +
      • +
      • 1
      • +
      • 2
      • +
      • 3
      • +
      • 4
      • +
      • 5
      • +
      +
      item->numOfvotes; ?>
      +
      +
      +
      +
      +
    • + +
    +
    +
    + item->fulltext)): ?> + item->params->get('itemIntroText')): ?> + +
    + item->introtext; ?> +
    + + item->params->get('itemFullText')): ?> + +
    + item->fulltext; ?> +
    + + + +
    + item->introtext; ?> +
    + +
    +
    + item->params->get('itemNavigation') && !JRequest::getCmd('print') && (isset($this->item->nextLink) || isset($this->item->previousLink))): ?> +
    +
      + item->previousLink)): ?> +
    • + + item->nextLink)): ?> +
    • + +
    +
    + + item->params->get('itemTwitterButton',1) || $this->item->params->get('itemFacebookButton',1) || $this->item->params->get('itemGooglePlusOneButton',1)): ?> + + + +
    +
    +
    + +item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?> + + + +
    + + item->params->get('commentsFormPosition')=='above' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?> + +
    + loadTemplate('comments_form'); ?> +
    + + + item->numOfComments>0 && $this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2'))): ?> + +
    +

    + item->numOfComments; ?> item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?> +

    + +
    + +
    + item->comments as $key=>$comment): ?> +
    +
    +
    userName); ?>
    + commentDate, JText::_('K2_DATE_FORMAT_LC2')); ?> +
    +
    +

    commentText; ?>

    +
    + reportUserLink): ?> + + + userImage): ?> +
    + <?php echo JFilterOutput::cleanText($comment->userName); ?> +
    + +
    + +
    + +
    + pagination->getPagesLinks(); ?> +
    +
    + + + item->params->get('commentsFormPosition')=='below' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?> + +
    + loadTemplate('comments_form'); ?> +
    + + + item->params->get('comments') == '2' && $user->guest): ?> +
    + + +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/list/item_comments_form.php b/deployed/trada/templates/trada/html/com_k2/list/item_comments_form.php new file mode 100644 index 00000000..1caccb17 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/item_comments_form.php @@ -0,0 +1,65 @@ + +
    +
    +

    + +
    + params->get('commentsFormNotes')): ?> +

    + params->get('commentsFormNotesText')): ?> + params->get('commentsFormNotesText')); ?> + + + +

    + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + params->get('recaptcha') && ($this->user->guest || $this->params->get('recaptchaForRegistered', 1))): ?> +
    + +
    +
    + +
    + +
    +
    + +
    +
    + + + + + +
    +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/com_k2/list/itemform.php b/deployed/trada/templates/trada/html/com_k2/list/itemform.php new file mode 100644 index 00000000..1469695d --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/itemform.php @@ -0,0 +1,959 @@ +addScriptDeclaration(" + Joomla.submitbutton = function(pressbutton){ + if (pressbutton == 'cancel') { + submitform( pressbutton ); + return; + } + if (\$K2.trim(\$K2('#title').val()) == '') { + alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' ); + } + else if (\$K2.trim(\$K2('#catid').val()) == '0') { + alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' ); + } + else { + syncExtraFieldsEditor(); + var validation = validateExtraFields(); + if(validation === true) { + \$K2('#selectedTags option').attr('selected', 'selected'); + submitform( pressbutton ); + } + } + } +"); + +?> + +
    + mainframe->isSite()): ?> +
    +
    + + + + + +
    + + + +
    +
    +

    + +

    +
    +
    +
    +
    +

    permissionsMessage; ?>

    +
    + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('publish') || ($this->permissions->get('editPublished') && $this->row->id && $this->row->published) )): ?> + permissions->get('publish')): ?> + + + + + + + + + + +
    + + + +
    + + + +
    + + + lists['categories']; ?> +
    + + + params->get('taggingSystem')): ?> + +
      + row->tags) && count($this->row->tags)): ?> + row->tags as $tag): ?> +
    • + name; ?> + x + +
    • + + +
    • + +
    • +
    • +
    + + + + params->get('lockTags') || $this->user->gid>23): ?> +
    + + +
    +
    +
    + + + + + + + + +
    + lists['tags']; ?> + + +
    +
    + +
    + lists['selectedTags']; ?> +
    + +
    + + + lists['featured']; ?> +
    + + + lists['published']; ?> +
    + + +
    +

    +
      +
    • +
    +
    + + +
    +
      +
    • + params->get('showImageTab')): ?> +
    • + + params->get('showImageGalleryTab')): ?> +
    • + + params->get('showVideoTab')): ?> +
    • + + params->get('showExtraFieldsTab')): ?> +
    • + + params->get('showAttachmentsTab')): ?> +
    • + + K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?> +
    • + +
    + + +
    + params->get('mergeEditors')): ?> +
    text; ?> +
    +
    +
    + +
    introtext; ?> +
    +
    +
    +
    fulltext; ?> +
    +
    +
    + + K2PluginsItemContent)): ?> +
    + K2PluginsItemContent as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    +
    + params->get('showImageTab')): ?> + +
    + + + + + + + + + + + + + + row->image)): ?> + + + + + +
    + + + + (: ) +
    +
    + + +
    +
    +
    + + + +
    + + + +
    + + + + <?php echo $this->row->title; ?> + + + +
    + K2PluginsItemImage)): ?> +
    + K2PluginsItemImage as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + params->get('showImageGalleryTab')): ?> + +
    + lists['checkSIG']): ?> + + + + + + + + +
    +
    +
    +
      +
    • +
    +
    +
    + +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    + +
    +

    +

    +
    + + + K2PluginsItemGallery)): ?> +
    + K2PluginsItemGallery as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + params->get('showVideoTab')): ?> + +
    + lists['checkAllVideos']): ?> + + + + + + + + + + + + + + row->video): ?> + + + + + +
    + + +
    +
      +
    • +
    • +
    • +
    • +
    +
    +
    + + (: )
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    lists['providers']; ?>

    + +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    + + + +
    + + + +
    + + + row->video; ?> +
    + + +
    + + +
    +
    +
    +
      +
    • +
    +
    +
    + +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    + +
    +

    +

    +
    + + + + + + + + + + + + + + + row->video): ?> + + + + + +
    + + +
    +
      +
    • +
    +
    +
    + +
    + +
    +
    +
    +
    + + + +
    + + + +
    + + + row->video; ?> +
    + + +
    + + K2PluginsItemVideo)): ?> +
    + K2PluginsItemVideo as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + params->get('showExtraFieldsTab')): ?> + +
    +
    + extraFields)): ?> + + extraFields as $extraField): ?> + type == 'header'): ?> + + + + + + + + + + +

    name; ?>

    + + + element; ?> +
    + + +
    +
    +
    +
      +
    • +
    +
    +
    + +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    + +
    +

    +
    +

    +
    +
    + + +
    + K2PluginsItemExtraFields)): ?> +
    + K2PluginsItemExtraFields as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + params->get('showAttachmentsTab')): ?> + +
    +
    + row->attachments)): ?> + + + + + + + + + row->attachments as $attachment): ?> + + + + + + + + +
    + + + + + + + + + +
    + filename; ?> + + title; ?> + + titleAttribute; ?> + + hits; ?> + + +
    + +
    +
    + + (: )
    +
    + K2PluginsItemAttachments)): ?> +
    + K2PluginsItemAttachments as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    + +
    + + K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?> + +
    +
    + K2PluginsItemOther as $K2Plugin): ?> + +
    + name; ?> + fields; ?> +
    + + +
    +
    + +
    + + + + mainframe->isSite()): ?> + + + + + + + + +
    mainframe->isSite() && !$this->params->get('sideBarDisplayFrontend')): ?> style="display:none;" class="xmlParamsFields"> + row->id): ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + row->id): ?> + + + + +
    + + + row->id; ?> +
    + + + row->published > 0) ? JText::_('K2_YES') : JText::_('K2_NO'); ?> +
    + + + row->featured > 0) ? JText::_('K2_YES'): JText::_('K2_NO'); ?> +
    + + + lists['created']; ?> +
    + + + row->author; ?> +
    + + + lists['modified']; ?> +
    + + + row->moderator; ?> +
    + + + row->hits; ?> + row->hits): ?> + + +
    + + + row->ratingCount; ?> + row->ratingCount): ?> +
    + (: row->ratingSum/$this->row->ratingCount),2); ?>/5.00) + + +
    + +
    +

    +
    + + lists['language'])): ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + lists['language']; ?> +
    + + + row->author; ?> + mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('editAll'))): ?> + + + +
    + + + +
    + + + lists['access']; ?> +
    + + + lists['createdCalendar']; ?> +
    + + + lists['publish_up']; ?> +
    + + + lists['publish_down']; ?> +
    +
    +

    +
    + + + + + + + + + + + + + + + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    +
    + mainframe->isAdmin()): ?> +

    +
    + +
    +
      + form->getFieldset('item-view-options-listings') as $field): ?> +
    • + type=='header'): ?> +
      input; ?>
      + type=='Spacer'): ?> +
       
      +
      + +
      label; ?>
      +
      input; ?>
      +
      + +
    • + +
    +
    + + form->render('params', 'item-view-options-listings'); ?> + +
    +

    +
    + +
    +
      + form->getFieldset('item-view-options') as $field): ?> +
    • + type=='header'): ?> +
      input; ?>
      + type=='Spacer'): ?> +
       
      +
      + +
      label; ?>
      +
      input; ?>
      +
      + +
    • + +
    +
    + + form->render('params', 'item-view-options'); ?> + +
    + + aceAclFlag): ?> +

    +
    row->id, true); ?>
    + +
    +
    +
    + mainframe->isSite()): ?> +
    +
    + +
    diff --git a/deployed/trada/templates/trada/html/com_k2/list/latest.php b/deployed/trada/templates/trada/html/com_k2/list/latest.php new file mode 100644 index 00000000..ae211ff8 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/latest.php @@ -0,0 +1,98 @@ + + + +
    + + params->get('show_page_title')): ?> + +
    + escape($this->params->get('page_title')); ?> +
    + + + blocks as $key=>$block): ?> +
    + + source=='categories'): $category=$block; ?> + + + + params->get('userFeed') || $this->params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?> + +
    + + params->get('userFeed')): ?> + +
    + + + +
    +
    + + + params->get('userImage') && !empty($user->avatar)): ?> + <?php echo $user->name; ?> + + + params->get('userName')): ?> +

    + + + params->get('userDescription') && isset($user->profile->description)): ?> +

    profile->description; ?>

    + + + params->get('userURL') || $this->params->get('userEmail')): ?> +

    + params->get('userURL') && isset($user->profile->url)): ?> + + : profile->url; ?> + + + + params->get('userEmail')): ?> + + : email); ?> + + +

    + + +
    + + event->K2UserDisplay; ?> + +
    +
    + + + + + + +
    + items as $item): K2HelperUtilities::setDefaultImage($item, 'latest', $this->params); ?> + item=$item; echo $this->loadTemplate('item'); ?> + +
    + + +
    + + + +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/list/latest_item.php b/deployed/trada/templates/trada/html/com_k2/list/latest_item.php new file mode 100644 index 00000000..821919da --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/latest_item.php @@ -0,0 +1,80 @@ + +
    +
    +
    +
    + + item->created_by ) ) : ?> + + +
    +
    +
    + item->params->get('latestItemImage') && !empty($this->item->image)): ?> +
    + +
    + + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + + +
    +
    + +
    +
    + item->params->get('latestItemTitle')): ?> +
    item->title; ?>
    + +
      + item->params->get('latestItemDateCreated')): ?> +
    • item->created , 'M d, Y'); ?>
    • + +
    • + + item->created_by )->name; ?> +
    • +
    • + item->event->K2CommentsCounter)): ?> + + +  item->event->K2CommentsCounter; ?> + + + item->numOfComments > 0): ?> + +  item->numOfComments; ?> + + + +  0 + + + +
    • +
    + item->params->get('latestItemIntroText')): ?> + item->introtext; ?> + + item->params->get('latestItemReadMore')): ?> + + + + + +
    +
    +
    diff --git a/deployed/trada/templates/trada/html/com_k2/list/tag.php b/deployed/trada/templates/trada/html/com_k2/list/tag.php new file mode 100644 index 00000000..493878f4 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/tag.php @@ -0,0 +1,147 @@ + + + +
    + + params->get('show_page_title')): ?> + +
    + escape($this->params->get('page_title')); ?> +
    + + + params->get('tagFeedIcon',1)): ?> + +
    + + + +
    +
    + + + items)): ?> +
    + items as $item): ?> + + +
    + +
    + params->get('tagItemDateCreated',1)): ?> + + + created , JText::_('K2_DATE_FORMAT_LC2')); ?> + + + + params->get('tagItemTitle',1)): ?> + +

    + params->get('tagItemTitleLinked',1)): ?> + + title; ?> + + + title; ?> + +

    + +
    + +
    + params->get('tagItemImage',1) && !empty($item->imageGeneric)): ?> + +
    + + + <?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?> + + +
    +
    + + + params->get('tagItemIntroText',1)): ?> + +
    + introtext; ?> +
    + + +
    +
    + +
    + + params->get('tagItemExtraFields',0) && count($item->extra_fields)): ?> + +
    +

    +
      + extra_fields as $key=>$extraField): ?> + value != ''): ?> +
    • typetype); ?> groupgroup; ?>"> + type == 'header'): ?> +

      name; ?>

      + + name; ?> + value; ?> + +
    • + + +
    +
    +
    + + + params->get('tagItemCategory')): ?> + + + + + params->get('tagItemReadMore')): ?> + +
    + + + +
    + + +
    +
    + + + +
    + + + pagination->getPagesLinks()): ?> +
    + pagination->getPagesLinks(); ?> +
    + pagination->getPagesCounter(); ?> +
    + + + + +
    + diff --git a/deployed/trada/templates/trada/html/com_k2/list/tag_item.php b/deployed/trada/templates/trada/html/com_k2/list/tag_item.php new file mode 100644 index 00000000..e8b048a7 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/tag_item.php @@ -0,0 +1,113 @@ +item, 'itemlist', $this->params); + +?> + +
    + item->params->get('catItemImage') && !empty($this->item->image)): ?> + + + <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> + + +
    +
    +
    +
    + item->params->get('catItemImage') && !empty($this->item->image)): ?> + + + item->author, 'avatar' )): ?> + + +
    +
    +
    +
    +
    + item->params->get('catItemTitle')): ?> +
    item->title; ?>
    + +
      + item->params->get('catItemDateCreated')): ?> + +
    • item->created , 'M d Y' ); ?>
    • + + item->params->get('catItemAuthor')): ?> + +
    • + item->author->profile->gender); ?> + item->author->link) && $this->item->author->link): ?> + + + item->author->name; ?> + +
    • + + item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?> + + + + item->params->get('catItemRating')): ?> + +
      +
      +
        +
      • +
      • 1
      • +
      • 2
      • +
      • 3
      • +
      • 4
      • +
      • 5
      • +
      +
      item->numOfvotes; ?>
      +
      +
      + +
    + item->params->get('catItemIntroText')): ?> + +
    + item->introtext; ?> +
    + + item->params->get('catItemReadMore')): ?> + + + + + +
    +
    +
    +
    + \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/com_k2/list/user.php b/deployed/trada/templates/trada/html/com_k2/list/user.php new file mode 100644 index 00000000..9d1188ff --- /dev/null +++ b/deployed/trada/templates/trada/html/com_k2/list/user.php @@ -0,0 +1,272 @@ + + + + +
    + + params->get('show_page_title') && $this->params->get('page_title')!=$this->user->name): ?> + +
    + escape($this->params->get('page_title')); ?> +
    + + + params->get('userFeedIcon',1)): ?> + +
    + + + +
    +
    + + + params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?> +
    + + addLink) && JRequest::getInt('id')==$user->id): ?> + + + + + + + + + params->get('userImage') && !empty($this->user->avatar)): ?> + <?php echo htmlspecialchars($this->user->name, ENT_QUOTES, 'UTF-8'); ?> + + + params->get('userName')): ?> +

    user->name; ?>

    + + + params->get('userDescription') && trim($this->user->profile->description)): ?> +
    user->profile->description; ?>
    + + + params->get('userURL') && isset($this->user->profile->url) && $this->user->profile->url) || $this->params->get('userEmail')): ?> +
    + params->get('userURL') && isset($this->user->profile->url) && $this->user->profile->url): ?> + + : user->profile->url; ?> + + + + params->get('userEmail')): ?> + + : user->email); ?> + + +
    + + +
    + + user->event->K2UserDisplay; ?> + +
    +
    + + + + + items)): ?> + +
    + items as $item): ?> + + +
    + + + event->BeforeDisplay; ?> + + + event->K2BeforeDisplay; ?> + +
    + params->get('userItemDateCreated')): ?> + + + created , JText::_('K2_DATE_FORMAT_LC2')); ?> + + + + params->get('userItemTitle')): ?> + +

    + editLink)): ?> + + + + + + + + + params->get('userItemTitleLinked') && $item->published): ?> + + title; ?> + + + title; ?> + + published || ($item->publish_up != $this->nullDate && $item->publish_up > $this->now) || ($item->publish_down != $this->nullDate && $item->publish_down < $this->now)): ?> + + + + + + +

    + +
    + + + event->AfterDisplayTitle; ?> + + + event->K2AfterDisplayTitle; ?> + +
    + + + event->BeforeDisplayContent; ?> + + + event->K2BeforeDisplayContent; ?> + + params->get('userItemImage') && !empty($item->imageGeneric)): ?> + +
    + + + <?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?> + + +
    +
    + + + params->get('userItemIntroText')): ?> + +
    + introtext; ?> +
    + + +
    + + + event->AfterDisplayContent; ?> + + + event->K2AfterDisplayContent; ?> + +
    +
    + + params->get('userItemCategory') || $this->params->get('userItemTags')): ?> + + + +
    + + params->get('userItemCommentsAnchor') && ( ($this->params->get('comments') == '2' && !$this->user->guest) || ($this->params->get('comments') == '1')) ): ?> + + + + + params->get('userItemReadMore')): ?> + +
    + + + +
    + + +
    + + + event->AfterDisplay; ?> + + + event->K2AfterDisplay; ?> + +
    +
    + + + +
    + + + pagination->getPagesLinks())): ?> +
    + pagination->getPagesLinks(); ?> +
    + pagination->getPagesCounter(); ?> +
    + + + + +
    + + diff --git a/deployed/trada/templates/trada/html/com_mailto/mailto/default.php b/deployed/trada/templates/trada/html/com_mailto/mailto/default.php new file mode 100644 index 00000000..b92b2854 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_mailto/mailto/default.php @@ -0,0 +1,77 @@ +get('data'); + +JFactory::getDocument()->addScriptDeclaration(" + Joomla.submitbutton = function(pressbutton) + { + var form = document.getElementById('mailtoForm'); + + // do field validation + if (form.mailto.value == '' || form.from.value == '') + { + alert('" . JText::_('COM_MAILTO_EMAIL_ERR_NOINFO') . "'); + return false; + } + form.submit(); + } +"); +?> + +
    +

    + +

    +
    + + +
    + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +

    + + +

    + + + + + + + +
    +
    diff --git a/deployed/trada/templates/trada/html/com_mailto/sent/default.php b/deployed/trada/templates/trada/html/com_mailto/sent/default.php new file mode 100644 index 00000000..7935d392 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_mailto/sent/default.php @@ -0,0 +1,21 @@ + +
    +
    + + +
    + +

    + +

    +
    diff --git a/deployed/trada/templates/trada/html/com_newsfeeds/categories/default.php b/deployed/trada/templates/trada/html/com_newsfeeds/categories/default.php new file mode 100644 index 00000000..77abff10 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_newsfeeds/categories/default.php @@ -0,0 +1,31 @@ +addScriptDeclaration(" +jQuery(function($) { + $('.categories-list').find('[id^=category-btn-]').each(function(index, btn) { + var btn = $(btn); + btn.on('click', function() { + btn.find('span').toggleClass('icon-plus'); + btn.find('span').toggleClass('icon-minus'); + }); + }); +});"); +?> +
    + loadTemplate('items'); + ?> +
    diff --git a/deployed/trada/templates/trada/html/com_newsfeeds/categories/default_items.php b/deployed/trada/templates/trada/html/com_newsfeeds/categories/default_items.php new file mode 100644 index 00000000..fba60bc6 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_newsfeeds/categories/default_items.php @@ -0,0 +1,63 @@ +items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : +?> + items[$this->parent->id] as $id => $item) : ?> + params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : + if (!isset($this->items[$this->parent->id][$id + 1])) + { + $class = ' class="last"'; + } + ?> +
    > + + + params->get('show_subcat_desc_cat') == 1) :?> + description) : ?> +
    + description, '', 'com_newsfeeds.categories'); ?> +
    + + + + getChildren()) > 0 && $this->maxLevelcat > 1) :?> +
    + items[$item->id] = $item->getChildren(); + $this->parent = $item; + $this->maxLevelcat--; + echo $this->loadTemplate('items'); + $this->parent = $item->getParent(); + $this->maxLevelcat++; + ?> +
    + +
    + + + diff --git a/deployed/trada/templates/trada/html/com_newsfeeds/category/default.php b/deployed/trada/templates/trada/html/com_newsfeeds/category/default.php new file mode 100644 index 00000000..38fcc93e --- /dev/null +++ b/deployed/trada/templates/trada/html/com_newsfeeds/category/default.php @@ -0,0 +1,55 @@ +params->get('pageclass_sfx'); +?> +
    + params->get('show_page_heading')) : ?> +

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

    + + params->get('show_category_title', 1)) : ?> +

    + category->title, '', 'com_newsfeeds.category.title'); ?> +

    + + + params->get('show_tags', 1) && !empty($this->category->tags->itemTags)) : ?> + category->tagLayout = new JLayoutFile('joomla.content.tags'); ?> + category->tagLayout->render($this->category->tags->itemTags); ?> + + + params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?> +
    + params->get('show_description_image') && $this->category->getParams()->get('image')) : ?> + + + params->get('show_description') && $this->category->description) : ?> + category->description, '', 'com_newsfeeds.category'); ?> + +
    +
    + + + loadTemplate('items'); ?> + + children[$this->category->id]) && $this->maxLevel != 0) : ?> +
    +

    + loadTemplate('children'); ?> +
    + +
    diff --git a/deployed/trada/templates/trada/html/com_newsfeeds/category/default_children.php b/deployed/trada/templates/trada/html/com_newsfeeds/category/default_children.php new file mode 100644 index 00000000..3086cc21 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_newsfeeds/category/default_children.php @@ -0,0 +1,57 @@ +children[$this->category->id]) > 0 && $this->maxLevel != 0) : +?> +
      +children[$this->category->id] as $id => $child) : ?> + params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) : + if (!isset($this->children[$this->category->id][$id + 1])) + { + $class = ' class="last"'; + } + ?> + > + + + escape($child->title); ?> + + + params->get('show_subcat_desc') == 1) :?> + description) : ?> +
      + description, '', 'com_newsfeeds.category'); ?> +
      + + + + params->get('show_cat_items') == 1) :?> +
      +
      +
      numitems; ?>
      +
      + + + getChildren()) > 0) : + $this->children[$child->id] = $child->getChildren(); + $this->category = $child; + $this->maxLevel--; + echo $this->loadTemplate('children'); + $this->category = $child->getParent(); + $this->maxLevel++; + endif; ?> + + + +
    +items); +$listOrder = $this->escape($this->state->get('list.ordering')); +$listDirn = $this->escape($this->state->get('list.direction')); + +?> + +items)) : ?> +

    + + +
    + params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) :?> +
    + params->get('filter_field') != 'hide') :?> +
    + + +
    + + params->get('show_pagination_limit')) : ?> +
    + + pagination->getLimitBox(); ?> +
    + +
    + +
      + items as $i => $item) : ?> + items[$i]->published == 0) : ?> +
    • + +
    • + + params->get('show_articles')) : ?> + + numarticles); ?> + + + + + + items[$i]->published == 0) : ?> + + +
      + params->get('show_link')) : ?> + link); ?> + + + +
      + +
    • + +
    + + + items)) : ?> + params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?> + + + +
    + diff --git a/deployed/trada/templates/trada/html/com_newsfeeds/newsfeed/default.php b/deployed/trada/templates/trada/html/com_newsfeeds/newsfeed/default.php new file mode 100644 index 00000000..16098f72 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_newsfeeds/newsfeed/default.php @@ -0,0 +1,135 @@ +msg)) +{ + echo $this->msg; +} +else +{ + $lang = JFactory::getLanguage(); + $myrtl = $this->newsfeed->rtl; + $direction = " "; + + if ($lang->isRtl() && $myrtl == 0) + { + $direction = " redirect-rtl"; + } + elseif ($lang->isRtl() && $myrtl == 1) + { + $direction = " redirect-ltr"; + } + elseif ($lang->isRtl() && $myrtl == 2) + { + $direction = " redirect-rtl"; + } + elseif ($myrtl == 0) + { + $direction = " redirect-ltr"; + } + elseif ($myrtl == 1) + { + $direction = " redirect-ltr"; + } + elseif ($myrtl == 2) + { + $direction = " redirect-rtl"; + } + $images = json_decode($this->item->images); + ?> +
    + params->get('display_num')) : ?> +

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

    + +

    + item->published == 0) : ?> + + + + item->name); ?> +

    + + params->get('show_tags', 1)) : ?> + item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> + item->tagLayout->render($this->item->tags->itemTags); ?> + + + + image_first) and !empty($images->image_first)) : ?> + float_first)) ? $this->params->get('float_first') : $images->float_first; ?> +
    image_first_caption): + echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_first_caption) . '"'; + endif; ?> + src="image_first); ?>" alt="image_first_alt); ?>"/>
    + + + image_second) and !empty($images->image_second)) : ?> + float_second)) ? $this->params->get('float_second') : $images->float_second; ?> +
    image_second_caption): + echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_second_caption) . '"'; + endif; ?> + src="image_second); ?>" alt="image_second_alt); ?>"/>
    + + + item->description; ?> + + + params->get('show_feed_description')) : ?> +
    + rssDoc->description); ?> +
    + + + + rssDoc->image) && isset($this->rssDoc->imagetitle) && $this->params->get('show_feed_image')) : ?> +
    + <?php echo $this->rssDoc->image->decription; ?> +
    + + + + rssDoc[0])) { ?> +
      + item->numarticles; $i++) { ?> + rssDoc[$i])) { break; } ?> + rssDoc[$i]->guid) || !is_null($this->rssDoc[$i]->guid) ? $this->rssDoc[$i]->guid : $this->rssDoc[$i]->uri; + $uri = substr($uri, 0, 4) != 'http' ? $this->item->link : $uri; + $text = !empty($this->rssDoc[$i]->content) || !is_null($this->rssDoc[$i]->content) ? $this->rssDoc[$i]->content : $this->rssDoc[$i]->description; + ?> +
    1. + rssDoc[$i]->uri)) : ?> + + rssDoc[$i]->title; ?> + +

      rssDoc[$i]->uri . '">' . $this->rssDoc[$i]->title . ''; ?>

      + + params->get('show_item_description') && !empty($text)) : ?> +
      + params->get('show_feed_image', 0) == 0) + { + $text = JFilterOutput::stripImages($text); + } + $text = JHtml::_('string.truncate', $text, $this->params->get('feed_character_count')); + echo str_replace(''', "'", $text); + ?> +
      + +
    2. + +
    + +
    + diff --git a/deployed/trada/templates/trada/html/com_search/search/default.php b/deployed/trada/templates/trada/html/com_search/search/default.php new file mode 100644 index 00000000..3c34b940 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_search/search/default.php @@ -0,0 +1,31 @@ + + +
    +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; ?> +
    diff --git a/deployed/trada/templates/trada/html/com_search/search/default_error.php b/deployed/trada/templates/trada/html/com_search/search/default_error.php new file mode 100644 index 00000000..03f2f265 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_search/search/default_error.php @@ -0,0 +1,17 @@ + + +error) : ?> +
    + escape($this->error); ?> +
    + diff --git a/deployed/trada/templates/trada/html/com_search/search/default_form.php b/deployed/trada/templates/trada/html/com_search/search/default_form.php new file mode 100644 index 00000000..81e4f623 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_search/search/default_form.php @@ -0,0 +1,80 @@ +getUpperLimitSearchWord(); +?> +
    + +
    +
    + +
    +
    + +
    + +
    +
    + +
    + searchword)):?> +

    ' . $this->total . '');?>

    + +
    + + params->get('search_phrases', 1)) : ?> +
    + + +
    + 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(); ?> +

    + + + +
    diff --git a/deployed/trada/templates/trada/html/com_search/search/default_results.php b/deployed/trada/templates/trada/html/com_search/search/default_results.php new file mode 100644 index 00000000..af27c873 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_search/search/default_results.php @@ -0,0 +1,45 @@ + + +
    +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); ?> +
    + + +
    + + diff --git a/deployed/trada/templates/trada/html/com_tags/tag/default.php b/deployed/trada/templates/trada/html/com_tags/tag/default.php new file mode 100644 index 00000000..a62d0c7b --- /dev/null +++ b/deployed/trada/templates/trada/html/com_tags/tag/default.php @@ -0,0 +1,60 @@ +item) == 1); +?> +
    + params->get('show_page_heading')) : ?> +

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

    + + params->get('show_tag_title', 1)) : ?> +

    + tags_title, '', 'com_tag.tag'); ?> +

    + + + item) == 1 && (($this->params->get('tag_list_show_tag_image', 1)) || $this->params->get('tag_list_show_tag_description', 1))) : ?> +
    + item[0]->images); ?> + params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?> + + + params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?> + item[0]->description, '', 'com_tags.tag'); ?> + +
    +
    + + + params->get('tag_list_show_tag_description', 1) || $this->params->get('show_description_image', 1)): ?> + params->get('show_description_image', 1) == 1 && $this->params->get('tag_list_image')) : ?> + + + params->get('tag_list_description', '') > '') : ?> + params->get('tag_list_description'), '', 'com_tags.tag'); ?> + + + + + loadTemplate('items'); ?> + params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?> + + +
    diff --git a/deployed/trada/templates/trada/html/com_tags/tag/default_items.php b/deployed/trada/templates/trada/html/com_tags/tag/default_items.php new file mode 100644 index 00000000..92322c66 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_tags/tag/default_items.php @@ -0,0 +1,93 @@ +authorise('core.edit', 'com_tags'); +$canCreate = $user->authorise('core.create', 'com_tags'); +$canEditState = $user->authorise('core.edit.state', 'com_tags'); +$items = $this->items; +$n = count($this->items); + +?> + +
    + params->get('show_headings') || $this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?> +
    + params->get('filter_field')) :?> +
    + + +
    + + params->get('show_pagination_limit')) : ?> +
    + + pagination->getLimitBox(); ?> +
    + + + + + + +
    +
    + + + items == false || $n == 0) : ?> +

    + + +
      + $item) : ?> + core_state == 0) : ?> +
    • + +
    • +

      + + escape($item->core_title); ?> + +

      + + event->afterDisplayTitle; ?> + core_images);?> + params->get('tag_list_show_item_image', 1) == 1 && !empty($images->image_intro)) :?> + + <?php echo htmlspecialchars($images->image_intro_alt); ?> + + + params->get('tag_list_show_item_description', 1)) : ?> + event->beforeDisplayContent; ?> + + core_body, $this->params->get('tag_list_item_maximum_characters')); ?> + + event->afterDisplayContent; ?> + +
    • + +
    + + +
    diff --git a/deployed/trada/templates/trada/html/com_tags/tag/list.php b/deployed/trada/templates/trada/html/com_tags/tag/list.php new file mode 100644 index 00000000..11e21286 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_tags/tag/list.php @@ -0,0 +1,53 @@ +items); +?> +
    + params->get('show_page_heading')) : ?> +

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

    + + params->get('show_tag_title', 1)) : ?> +

    + tags_title, '', 'com_tag.tag'); ?> +

    + + + item) == 1 && (($this->params->get('tag_list_show_tag_image', 1)) || $this->params->get('tag_list_show_tag_description', 1))) : ?> +
    + item[0]->images); ?> + params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?> + + + params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?> + item[0]->description, '', 'com_tags.tag'); ?> + +
    +
    + + + params->get('tag_list_show_tag_description', 1) || $this->params->get('show_description_image', 1)): ?> + params->get('show_description_image', 1) == 1 && $this->params->get('tag_list_image')) : ?> + + + params->get('tag_list_description', '') > '') : ?> + params->get('tag_list_description'), '', 'com_tags.tag'); ?> + + + + + loadTemplate('items'); ?> +
    diff --git a/deployed/trada/templates/trada/html/com_tags/tag/list_items.php b/deployed/trada/templates/trada/html/com_tags/tag/list_items.php new file mode 100644 index 00000000..455e110a --- /dev/null +++ b/deployed/trada/templates/trada/html/com_tags/tag/list_items.php @@ -0,0 +1,122 @@ +items); +$listOrder = $this->escape($this->state->get('list.ordering')); +$listDirn = $this->escape($this->state->get('list.direction')); + +?> + +
    + params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?> +
    + params->get('filter_field')) :?> +
    + + +
    + + params->get('show_pagination_limit')) : ?> +
    + + pagination->getLimitBox(); ?> +
    + + + + + + +
    +
    + + + items == false || $n == 0) : ?> +

    + + + params->get('show_headings')) : ?> + + + + params->get('tag_list_show_date')) : ?> + + + + + + + + items as $i => $item) : ?> + items[$i]->core_state == 0) : ?> + + + + + + params->get('tag_list_show_date')) : ?> + + + + + + +
    + + + + + + + + + +
    + + escape($item->core_title); ?> + + core_state == 0) : ?> + + + + + + displayDate, + $this->escape($this->params->get('date_format', JText::_('DATE_FORMAT_LC3'))) + ); ?> +
    + + + +items)) : ?> + params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?> + + + +
    diff --git a/deployed/trada/templates/trada/html/com_tags/tags/default.php b/deployed/trada/templates/trada/html/com_tags/tags/default.php new file mode 100644 index 00000000..f62d056c --- /dev/null +++ b/deployed/trada/templates/trada/html/com_tags/tags/default.php @@ -0,0 +1,33 @@ +params->get('all_tags_description'); +$descriptionImage = $this->params->get('all_tags_description_image'); +?> +
    + params->get('show_page_heading')) : ?> +

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

    + + params->get('all_tags_show_description_image') && !empty($descriptionImage)): ?> +
    '; ?>
    + + +
    + + + loadTemplate('items'); ?> + +
    diff --git a/deployed/trada/templates/trada/html/com_tags/tags/default_items.php b/deployed/trada/templates/trada/html/com_tags/tags/default_items.php new file mode 100644 index 00000000..62646061 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_tags/tags/default_items.php @@ -0,0 +1,138 @@ +authorise('core.edit', 'com_tags'); +$canCreate = $user->authorise('core.create', 'com_tags'); +$canEditState = $user->authorise('core.edit.state', 'com_tags'); + +$columns = $this->params->get('tag_columns', 1); + +// Avoid division by 0 and negative columns. +if ($columns < 1) +{ + $columns = 1; +} + +$bsspans = floor(12 / $columns); + +if ($bsspans < 1) +{ + $bsspans = 1; +} + +$bscolumns = min($columns, floor(12 / $bsspans)); +$n = count($this->items); +?> + +
    + params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?> +
    + params->get('filter_field')) : ?> +
    + + +
    + + params->get('show_pagination_limit')) : ?> +
    + + pagination->getLimitBox(); ?> +
    + + + + + + +
    +
    + + +items == false || $n == 0) : ?> +

    + + items as $i => $item) : ?> + +
      + + access)) && in_array($item->access, $this->user->getAuthorisedViewLevels())) : ?> +
    • +

      + + escape($item->title); ?> + +

      + + params->get('all_tags_show_tag_image') && !empty($item->images)) : ?> + images); ?> + + image_intro)): ?> + float_intro)) ? $this->params->get('float_intro') : $images->float_intro; ?> +
      + image_intro_caption) : ?> + image_intro_caption) . '"'; ?> + + src="image_intro; ?>" alt="image_fulltext_alt); ?>"/> +
      + +
      + +
      + params->get('all_tags_show_tag_description', 1)) : ?> + + description, $this->params->get('tag_list_item_maximum_characters')); ?> + + + params->get('all_tags_show_tag_hits')) : ?> + + hits); ?> + + +
      +
    • + + +
    + + + + + + +items)) : ?> + params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?> + + +
    + diff --git a/deployed/trada/templates/trada/html/com_users/login/default.php b/deployed/trada/templates/trada/html/com_users/login/default.php new file mode 100644 index 00000000..304995ed --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/login/default.php @@ -0,0 +1,23 @@ +user->get('cookieLogin'); + +if ($this->user->get('guest') || !empty($cookieLogin)) +{ + // The user is not logged in or needs to provide a password. + echo $this->loadTemplate('login'); +} +else +{ + // The user is already logged in. + echo $this->loadTemplate('logout'); +} diff --git a/deployed/trada/templates/trada/html/com_users/login/default_login.php b/deployed/trada/templates/trada/html/com_users/login/default_login.php new file mode 100644 index 00000000..9013a636 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/login/default_login.php @@ -0,0 +1,105 @@ + +
    + params->get('show_page_heading')) : ?> + + + + params->get('logindescription_show') == 1 && str_replace(' ', '', $this->params->get('login_description')) != '') || $this->params->get('login_image') != '') : ?> + + + +
    + +
    + form->getFieldset('credentials') as $field) : ?> + hidden) : ?> +
    +
    + label; ?> +
    +
    + input; ?> +
    +
    + + + + tfa): ?> +
    +
    + form->getField('secretkey')->label; ?> +
    +
    + form->getField('secretkey')->input; ?> +
    +
    + + + +
    +
    +
    +
    + + +
    +
    + +
    +
    + + + +
    +
    +
    +
    + +
    diff --git a/deployed/trada/templates/trada/html/com_users/login/default_logout.php b/deployed/trada/templates/trada/html/com_users/login/default_logout.php new file mode 100644 index 00000000..393dc88d --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/login/default_logout.php @@ -0,0 +1,46 @@ + +
    + params->get('show_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') != '') : ?> +
    + + +
    +
    +
    + +
    +
    + + +
    +
    diff --git a/deployed/trada/templates/trada/html/com_users/profile/default.php b/deployed/trada/templates/trada/html/com_users/profile/default.php new file mode 100644 index 00000000..9f7df936 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/profile/default.php @@ -0,0 +1,34 @@ + +
    +params->get('show_page_heading')) : ?> + + +id == $this->data->id) : ?> + + +loadTemplate('core'); ?> + +loadTemplate('params'); ?> + +loadTemplate('custom'); ?> + +
    diff --git a/deployed/trada/templates/trada/html/com_users/profile/default_core.php b/deployed/trada/templates/trada/html/com_users/profile/default_core.php new file mode 100644 index 00000000..55622f00 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/profile/default_core.php @@ -0,0 +1,54 @@ + + +
    + + + +
    +
    + +
    +
    + data->name; ?> +
    +
    + +
    +
    + data->username); ?> +
    +
    + +
    +
    + data->registerDate); ?> +
    +
    + +
    + + data->lastvisitDate != '0000-00-00 00:00:00'){?> +
    + data->lastvisitDate); ?> +
    + +
    + +
    + + +
    +
    diff --git a/deployed/trada/templates/trada/html/com_users/profile/default_custom.php b/deployed/trada/templates/trada/html/com_users/profile/default_custom.php new file mode 100644 index 00000000..b52deda8 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/profile/default_custom.php @@ -0,0 +1,50 @@ +form->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)): ?> + label); ?> + +
    + hidden && $field->type != 'Spacer') : ?> +
    title; ?>
    +
    + id)) : ?> + id, $field->value); ?> + fieldname)) : ?> + fieldname, $field->value); ?> + type)) : ?> + type, $field->value); ?> + + value); ?> + +
    + + +
    +
    + + diff --git a/deployed/trada/templates/trada/html/com_users/profile/default_params.php b/deployed/trada/templates/trada/html/com_users/profile/default_params.php new file mode 100644 index 00000000..4819baf3 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/profile/default_params.php @@ -0,0 +1,44 @@ + +form->getFieldset('params'); ?> + +
    + +
    + hidden) :?> +
    title; ?>
    +
    + id)):?> + id, $field->value);?> + fieldname)):?> + fieldname, $field->value);?> + type)):?> + type, $field->value);?> + + value);?> + +
    + + +
    +
    + diff --git a/deployed/trada/templates/trada/html/com_users/profile/edit.php b/deployed/trada/templates/trada/html/com_users/profile/edit.php new file mode 100644 index 00000000..759cd5ff --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/profile/edit.php @@ -0,0 +1,141 @@ +load('plg_user_profile', JPATH_ADMINISTRATOR); + +?> +
    + params->get('show_page_heading')) : ?> + + + + + +
    + + form->getFieldsets() as $group => $fieldset) : ?> + form->getFieldset($group); ?> + +
    + + label)) : ?> + + label); ?> + + + + + + hidden) : ?> + input; ?> + +
    +
    + label; ?> + required && $field->type != 'Spacer') : ?> + + +
    +
    + fieldname == 'password1') : ?> + + + input; ?> +
    +
    + + +
    + + + + twofactormethods) > 1) : ?> +
    + + +
    +
    + +
    +
    + twofactormethods, 'jform[twofactor][method]', array('onchange' => 'Joomla.twoFactorMethodChange()'), 'value', 'text', $this->otpConfig->method, 'jform_twofactor_method', false); ?> +
    +
    +
    + twofactorform as $form) : ?> + otpConfig->method ? 'display: block' : 'display: none'; ?> +
    + +
    + +
    +
    + +
    + + + +
    + +
    + otpConfig->otep)) : ?> +
    + +
    + + otpConfig->otep as $otep) : ?> + + --- + + +
    + +
    + + +
    +
    + + + + +
    +
    + +
    +
    diff --git a/deployed/trada/templates/trada/html/com_users/registration/complete.php b/deployed/trada/templates/trada/html/com_users/registration/complete.php new file mode 100644 index 00000000..eaf712d9 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/registration/complete.php @@ -0,0 +1,18 @@ + +
    + params->get('show_page_heading')) : ?> +

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

    + +
    diff --git a/deployed/trada/templates/trada/html/com_users/registration/default.php b/deployed/trada/templates/trada/html/com_users/registration/default.php new file mode 100644 index 00000000..aeaa500b --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/registration/default.php @@ -0,0 +1,64 @@ + +
    + params->get('show_page_heading')) : ?> + + + +
    + + form->getFieldsets() as $fieldset): ?> + form->getFieldset($fieldset->name);?> + +
    + + label)): ?> + label);?> + + + + + hidden): ?> + input;?> + +
    +
    + label; ?> + required && $field->type != 'Spacer') : ?> + + +
    +
    + input;?> +
    +
    + + +
    + + +
    +
    + + + + +
    +
    + +
    +
    diff --git a/deployed/trada/templates/trada/html/com_users/remind/default.php b/deployed/trada/templates/trada/html/com_users/remind/default.php new file mode 100644 index 00000000..82d9821e --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/remind/default.php @@ -0,0 +1,47 @@ + +
    + params->get('show_page_heading')) : ?> + + + +
    + form->getFieldsets() as $fieldset) : ?> +
    +

    label); ?>

    + form->getFieldset($fieldset->name) as $name => $field) : ?> +
    +
    + label; ?> +
    +
    + input; ?> +
    +
    + +
    + +
    +
    + +
    +
    + +
    +
    diff --git a/deployed/trada/templates/trada/html/com_users/reset/complete.php b/deployed/trada/templates/trada/html/com_users/reset/complete.php new file mode 100644 index 00000000..3bf89f84 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/reset/complete.php @@ -0,0 +1,48 @@ + +
    + params->get('show_page_heading')) : ?> + + + +
    + form->getFieldsets() as $fieldset) : ?> +
    +

    label); ?>

    + form->getFieldset($fieldset->name) as $name => $field) : ?> +
    +
    + label; ?> +
    +
    + input; ?> +
    +
    + +
    + + +
    +
    + +
    +
    + +
    +
    diff --git a/deployed/trada/templates/trada/html/com_users/reset/confirm.php b/deployed/trada/templates/trada/html/com_users/reset/confirm.php new file mode 100644 index 00000000..f2136c78 --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/reset/confirm.php @@ -0,0 +1,48 @@ + +
    + params->get('show_page_heading')) : ?> + + + +
    + form->getFieldsets() as $fieldset) : ?> +
    +

    label); ?>

    + form->getFieldset($fieldset->name) as $name => $field) : ?> +
    +
    + label; ?> +
    +
    + input; ?> +
    +
    + +
    + + +
    +
    + +
    +
    + +
    +
    diff --git a/deployed/trada/templates/trada/html/com_users/reset/default.php b/deployed/trada/templates/trada/html/com_users/reset/default.php new file mode 100644 index 00000000..a88ddecb --- /dev/null +++ b/deployed/trada/templates/trada/html/com_users/reset/default.php @@ -0,0 +1,48 @@ + +
    + params->get('show_page_heading')) : ?> + + + +
    + form->getFieldsets() as $fieldset) : ?> +
    +

    label); ?>

    + form->getFieldset($fieldset->name) as $name => $field) : ?> +
    +
    + label; ?> +
    +
    + input; ?> +
    +
    + +
    + + +
    +
    + +
    +
    + +
    +
    diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/associations.php b/deployed/trada/templates/trada/html/layouts/joomla/content/associations.php new file mode 100644 index 00000000..444dc765 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/associations.php @@ -0,0 +1,22 @@ + +
      + $item) : ?> +
    • + link; ?> +
    • + +
    +params; +$canEdit = $displayData->params->get('access-edit'); +JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); +?> + + get('show_title') || $displayData->state == 0 || ($params->get('show_author') && !empty($displayData->author ))) : ?> + + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/blog_style_default_links.php b/deployed/trada/templates/trada/html/layouts/joomla/content/blog_style_default_links.php new file mode 100644 index 00000000..c31ffd3e --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/blog_style_default_links.php @@ -0,0 +1,19 @@ + + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/categories_default.php b/deployed/trada/templates/trada/html/layouts/joomla/content/categories_default.php new file mode 100644 index 00000000..6fe87c7e --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/categories_default.php @@ -0,0 +1,33 @@ + +params->get('show_page_heading')) : ?> +

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

    + + +params->get('show_base_description')) : ?> + + params->get('categories_description')) : ?> +
    + params->get('categories_description'), '', $displayData->get('extension') . '.categories'); ?> +
    + + + parent->description) : ?> +
    + parent->description, '', $displayData->parent->extension . '.categories'); ?> +
    + + + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/categories_default_items.php b/deployed/trada/templates/trada/html/layouts/joomla/content/categories_default_items.php new file mode 100644 index 00000000..cdd445eb --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/categories_default_items.php @@ -0,0 +1,25 @@ +item; +$items = $displayData->get('items'); +$params = $displayData->params; +$extension = $displayData->get('extension'); +$className = substr($extension, 4); +// This will work for the core components but not necessarily for other components +// that may have different pluralisation rules. +if (substr($className, -1) == 's') +{ + $className = rtrim($className, 's'); +} diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/category_default.php b/deployed/trada/templates/trada/html/layouts/joomla/content/category_default.php new file mode 100644 index 00000000..83af5deb --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/category_default.php @@ -0,0 +1,67 @@ +params; +$extension = $displayData->get('category')->extension; +$canEdit = $params->get('access-edit'); +$className = substr($extension, 4); + +// This will work for the core components but not necessarily for other components +// that may have different pluralisation rules. +if (substr($className, -1) == 's') +{ + $className = rtrim($className, 's'); +} +$tagsData = $displayData->get('category')->tags->itemTags; +?> +
    +
    + get('show_page_heading')) : ?> +

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

    + + get('show_category_title', 1)) : ?> +

    + get('category')->title, '', $extension . '.category.title'); ?> +

    + + get('show_cat_tags', 1)) : ?> + + + get('show_description', 1) || $params->def('show_description_image', 1)) : ?> +
    + get('show_description_image') && $displayData->get('category')->getParams()->get('image')) : ?> + <?php echo htmlspecialchars($displayData->get('category')->getParams()->get('image_alt')); ?> + + get('show_description') && $displayData->get('category')->description) : ?> + get('category')->description, '', $extension . '.category'); ?> + +
    +
    + + loadTemplate($displayData->subtemplatename); ?> + + get('children') && $displayData->maxLevel != 0) : ?> +
    + get('show_category_heading_title_text', 1) == 1) : ?> +

    + +

    + + loadTemplate('children'); ?> +
    + +
    +
    + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/icons.php b/deployed/trada/templates/trada/html/layouts/joomla/content/icons.php new file mode 100644 index 00000000..b54e78f4 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/icons.php @@ -0,0 +1,46 @@ +get('access-edit'); + +?> + +
    + + + get('show_print_icon') || $displayData['params']->get('show_email_icon')) : ?> +
    + + + +
    + + + + +
    + +
    + + +
    diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/author.php b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/author.php new file mode 100644 index 00000000..66b97a92 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/author.php @@ -0,0 +1,21 @@ + + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/block.php b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/block.php new file mode 100644 index 00000000..c7f6b35a --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/block.php @@ -0,0 +1,59 @@ +get('info_block_position', 0); + +?> + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/category.php b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/category.php new file mode 100644 index 00000000..41b83b57 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/category.php @@ -0,0 +1,21 @@ + +
    + escape($displayData['item']->category_title); ?> + get('link_category') && $displayData['item']->catslug) : ?> + catslug)) . '" itemprop="genre">' . $title . ''; ?> + + + ' . $title . ''); ?> + +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/create_date.php b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/create_date.php new file mode 100644 index 00000000..d97d2abc --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/create_date.php @@ -0,0 +1,18 @@ + +
    + + +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/hits.php b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/hits.php new file mode 100644 index 00000000..19ffd783 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/hits.php @@ -0,0 +1,17 @@ + +
    + + + hits); ?> +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/modify_date.php b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/modify_date.php new file mode 100644 index 00000000..e1bd3f57 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/modify_date.php @@ -0,0 +1,18 @@ + +
    + + +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/parent_category.php b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/parent_category.php new file mode 100644 index 00000000..78dcf13c --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/parent_category.php @@ -0,0 +1,21 @@ + +
    + escape($displayData['item']->parent_title); ?> + get('link_parent_category') && !empty($displayData['item']->parent_slug)) : ?> + parent_slug)) . '" itemprop="genre">' . $title . ''; ?> + + + ' . $title . ''); ?> + +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/publish_date.php b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/publish_date.php new file mode 100644 index 00000000..bc456af8 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/info_block/publish_date.php @@ -0,0 +1,17 @@ + +
    + + +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/intro_image.php b/deployed/trada/templates/trada/html/layouts/joomla/content/intro_image.php new file mode 100644 index 00000000..4a7b1a1f --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/intro_image.php @@ -0,0 +1,30 @@ +params; +?> +images); ?> +image_intro) && !empty($images->image_intro)) : ?> + float_intro)) ? $params->get('float_intro') : $images->float_intro; ?> +
    + get('link_titles') && $params->get('access-view')) : ?> + image_intro_caption): + echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"'; + endif; ?> + src="image_intro); ?>" alt="image_intro_alt); ?>" itemprop="thumbnailUrl"/> + image_intro_caption): + echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_intro_caption) . '"'; + endif; ?> + src="image_intro); ?>" alt="image_intro_alt); ?>" itemprop="thumbnailUrl"/> + +
    + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/options_default.php b/deployed/trada/templates/trada/html/layouts/joomla/content/options_default.php new file mode 100644 index 00000000..25b3b3c0 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/options_default.php @@ -0,0 +1,50 @@ + +
    + name ?> + description)): ?> +

    description; ?>

    + + fieldsname); + foreach($fieldsnames as $fieldname) + { + foreach ($displayData->form->getFieldset($fieldname) as $field) + { + $classnames = 'control-group'; + $rel = ''; + $showon = $displayData->form->getFieldAttribute($field->fieldname, 'showon'); + if (!empty($showon)) + { + JHtml::_('jquery.framework'); + JHtml::_('script', 'jui/cms.js', false, true); + + $id = $displayData->form->getFormControl(); + $showon = explode(':', $showon, 2); + $classnames .= ' showon_' . implode(' showon_', explode(',', $showon[1])); + $rel = ' rel="showon_' . $id . '['. $showon[0] . ']"'; + } + ?> +
    > + showlabel) || $displayData->showlabel): ?> +
    label; ?>
    + +
    input; ?>
    +
    + +
    diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/readmore.php b/deployed/trada/templates/trada/html/layouts/joomla/content/readmore.php new file mode 100644 index 00000000..f778f088 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/readmore.php @@ -0,0 +1,31 @@ + + +

    + +

    diff --git a/deployed/trada/templates/trada/html/layouts/joomla/content/tags.php b/deployed/trada/templates/trada/html/layouts/joomla/content/tags.php new file mode 100644 index 00000000..27d002af --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/content/tags.php @@ -0,0 +1,31 @@ + + +
      + $tag) : ?> + access, JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id')))) : ?> + params); ?> + get('tag_link_class', 'label label-info'); ?> +
    • + + escape($tag->title); ?> + +
    • + + +
    + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/edit/associations.php b/deployed/trada/templates/trada/html/layouts/joomla/edit/associations.php new file mode 100644 index 00000000..ce96e2a9 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/edit/associations.php @@ -0,0 +1,13 @@ +getForm()->renderFieldset('item_associations'); diff --git a/deployed/trada/templates/trada/html/layouts/joomla/edit/details.php b/deployed/trada/templates/trada/html/layouts/joomla/edit/details.php new file mode 100644 index 00000000..c8fce6ed --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/edit/details.php @@ -0,0 +1,55 @@ +getForm()->getValue('title'); +$published = $displayData->getForm()->getField('published'); +$saveHistory = $displayData->get('state')->get('params')->get('save_history', 0); +?> +
    +

    +
    +
    + +
    +
    + getForm()->getValue('name'); ?> +
    +
    + +
    +
    + getForm()->getValue('title'); ?> +
    +
    + + + getForm()->renderField('published'); ?> + + getForm()->renderField('state'); ?> + + getForm()->renderField('access'); ?> + getForm()->renderField('featured'); ?> + + getForm()->renderField('language'); ?> + + + + getForm()->renderField('tags'); ?> + + getForm()->renderField('version_note'); ?> + +
    +
    diff --git a/deployed/trada/templates/trada/html/layouts/joomla/edit/fieldset.php b/deployed/trada/templates/trada/html/layouts/joomla/edit/fieldset.php new file mode 100644 index 00000000..0593052c --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/edit/fieldset.php @@ -0,0 +1,63 @@ +getForm(); + +$name = $displayData->get('fieldset'); +$fieldSet = $form->getFieldset($name); + +if (empty($fieldSet)) +{ + return; +} + +$ignoreFields = $displayData->get('ignore_fields') ? : array(); +$extraFields = $displayData->get('extra_fields') ? : array(); + +if ($displayData->get('show_options', 1)) +{ + if (isset($extraFields[$name])) + { + foreach ($extraFields[$name] as $f) + { + if (in_array($f, $ignoreFields)) + { + continue; + } + if ($form->getField($f)) + { + $fieldSet[] = $form->getField($f); + } + } + } + + $html = array(); + + foreach ($fieldSet as $field) + { + $html[] = $field->renderField(); + } + + echo implode('', $html); +} +else +{ + $html = array(); + $html[] = '
    '; + foreach ($fieldSet as $field) + { + $html[] = $field->input; + } + $html[] = '
    '; + + echo implode('', $html); +} diff --git a/deployed/trada/templates/trada/html/layouts/joomla/edit/frontediting_modules.php b/deployed/trada/templates/trada/html/layouts/joomla/edit/frontediting_modules.php new file mode 100644 index 00000000..eeebe95b --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/edit/frontediting_modules.php @@ -0,0 +1,69 @@ +toString())); +$target = '_blank'; + +if (preg_match('/<(?:div|span|nav|ul|ol|h\d) [^>]*class="[^"]* jmoddiv"/', $moduleHtml)) +{ + // Module has already module edit button: + return; +} + +// Add css class jmoddiv and data attributes for module-editing URL and for the tooltip: +$editUrl = JUri::base() . 'administrator/index.php?option=com_modules&view=module&layout=edit&id=' . (int) $mod->id; + +if ($parameters->get('redirect_edit', 'site') == 'site') +{ + $editUrl = JUri::base() . 'index.php?option=com_config&controller=config.display.modules&id=' . (int) $mod->id . $redirectUri; + $target = '_self'; +} + +// Add class, editing URL and tooltip, and if module of type menu, also the tooltip for editing the menu item: +$count = 0; +$moduleHtml = preg_replace( + // Replace first tag of module with a class + '/^(\s*<(?:div|span|nav|ul|ol|h\d) [^>]*class="[^"]*)"/', + // By itself, adding class jmoddiv and data attributes for the url and tooltip: + '\\1 jmoddiv" data-jmodediturl="' . $editUrl . '" data-target="' . $target . '" data-jmodtip="' + . JHtml::tooltipText( + JText::_('JLIB_HTML_EDIT_MODULE'), + htmlspecialchars($mod->title) . '
    ' . sprintf(JText::_('JLIB_HTML_EDIT_MODULE_IN_POSITION'), htmlspecialchars($position)), + 0 + ) + . '"' + // And if menu editing is enabled and allowed and it's a menu module, add data attributes for menu editing: + . ($menusEditing && $mod->module == 'mod_menu' ? + '" data-jmenuedittip="' . JHtml::tooltipText('JLIB_HTML_EDIT_MENU_ITEM', 'JLIB_HTML_EDIT_MENU_ITEM_ID') . '"' + : + '' + ), + $moduleHtml, + 1, + $count +); + +if ($count) +{ + // Load once booststrap tooltip and add stylesheet and javascript to head: + JHtml::_('bootstrap.tooltip'); + JHtml::_('bootstrap.popover'); + + JHtml::_('stylesheet', 'system/frontediting.css', array(), true); + JHtml::_('script', 'system/frontediting.js', false, true); +} diff --git a/deployed/trada/templates/trada/html/layouts/joomla/edit/global.php b/deployed/trada/templates/trada/html/layouts/joomla/edit/global.php new file mode 100644 index 00000000..2a870821 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/edit/global.php @@ -0,0 +1,70 @@ +getForm(); +$input = $app->input; +$component = $input->getCmd('option', 'com_content'); + +if ($component == 'com_categories') +{ + $extension = $input->getCmd('extension', 'com_content'); + $parts = explode('.', $extension); + $component = $parts[0]; +} + +$saveHistory = JComponentHelper::getParams($component)->get('save_history', 0); + +$fields = $displayData->get('fields') ?: array( + array('parent', 'parent_id'), + array('published', 'state', 'enabled'), + array('category', 'catid'), + 'featured', + 'sticky', + 'access', + 'language', + 'tags', + 'note', + 'version_note', +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +if (!$saveHistory) +{ + $hiddenFields[] = 'version_note'; +} + +$html = array(); +$html[] = '
    '; + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + $html[] = $form->renderField($f); + break; + } + } +} + +$html[] = '
    '; + +echo implode('', $html); diff --git a/deployed/trada/templates/trada/html/layouts/joomla/edit/item_title.php b/deployed/trada/templates/trada/html/layouts/joomla/edit/item_title.php new file mode 100644 index 00000000..72d19aa8 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/edit/item_title.php @@ -0,0 +1,24 @@ +getForm()->getValue('title'); +$name = $displayData->getForm()->getValue('name'); + +?> + + +

    + + + +

    +getForm(); + +// JLayout for standard handling of metadata fields in the administrator content edit screens. +$fieldSets = $form->getFieldsets('metadata'); +?> + + $fieldSet) : ?> + description) && trim($fieldSet->description)) : ?> +

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

    + + + renderField('metadesc'); + echo $form->renderField('metakey'); + echo $form->renderField('xreference'); + } + + foreach ($form->getFieldset($name) as $field) + { + if ($field->name != 'jform[metadata][tags][]') + { + echo $field->renderField(); + } + } ?> + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/edit/params.php b/deployed/trada/templates/trada/html/layouts/joomla/edit/params.php new file mode 100644 index 00000000..88bfa369 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/edit/params.php @@ -0,0 +1,99 @@ +getForm(); +$fieldSets = $form->getFieldsets(); + +if (empty($fieldSets)) +{ + return; +} + +$ignoreFieldsets = $displayData->get('ignore_fieldsets') ?: array(); +$ignoreFields = $displayData->get('ignore_fields') ?: array(); +$extraFields = $displayData->get('extra_fields') ?: array(); + +if (!empty($displayData->hiddenFieldsets)) +{ + // These are required to preserve data on save when fields are not displayed. + $hiddenFieldsets = $displayData->hiddenFieldsets ?: array(); +} + +if (!empty($displayData->configFieldsets)) +{ + // These are required to configure showing and hiding fields in the editor. + $configFieldsets = $displayData->configFieldsets ?: array(); +} + +if ($displayData->get('show_options', 1)) +{ + foreach ($fieldSets as $name => $fieldSet) + { + // Ensure any fieldsets we don't want to show are skipped (including repeating formfield fieldsets) + if (in_array($name, $ignoreFieldsets) || (!empty($configFieldsets) && in_array($name, $configFieldsets)) + || !empty($hiddenFieldsets) && in_array($name, $hiddenFieldsets) + || (isset($fieldSet->repeat) && $fieldSet->repeat == true) + ) + { + continue; + } + + if (!empty($fieldSet->label)) + { + $label = JText::_($fieldSet->label, true); + } + else + { + $label = strtoupper('JGLOBAL_FIELDSET_' . $name); + if (JText::_($label, true) == $label) + { + $label = strtoupper($app->input->get('option') . '_' . $name . '_FIELDSET_LABEL'); + } + $label = JText::_($label, true); + } + + echo JHtml::_('bootstrap.addTab', 'myTab', 'attrib-' . $name, $label); + + if (isset($fieldSet->description) && trim($fieldSet->description)) + { + echo '

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

    '; + } + + $displayData->fieldset = $name; + echo JLayoutHelper::render('joomla.edit.fieldset', $displayData); + + echo JHtml::_('bootstrap.endTab'); + } +} +else +{ + $html = array(); + $html[] = '
    '; + foreach ($fieldSets as $name => $fieldSet) + { + if (in_array($name, $ignoreFieldsets)) + { + continue; + } + + if (in_array($name, $hiddenFieldsets)) + { + foreach ($form->getFieldset($name) as $field) + { + echo $field->input; + } + } + } + $html[] = '
    '; + + echo implode('', $html); +} diff --git a/deployed/trada/templates/trada/html/layouts/joomla/edit/publishingdata.php b/deployed/trada/templates/trada/html/layouts/joomla/edit/publishingdata.php new file mode 100644 index 00000000..3ad904cc --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/edit/publishingdata.php @@ -0,0 +1,46 @@ +getForm(); + +$fields = $displayData->get('fields') ?: array( + 'publish_up', + 'publish_down', + array('created', 'created_time'), + array('created_by', 'created_user_id'), + 'created_by_alias', + array('modified', 'modified_time'), + array('modified_by', 'modified_user_id'), + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/deployed/trada/templates/trada/html/layouts/joomla/edit/title_alias.php b/deployed/trada/templates/trada/html/layouts/joomla/edit/title_alias.php new file mode 100644 index 00000000..ddda035e --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/edit/title_alias.php @@ -0,0 +1,22 @@ +getForm(); + +$title = $form->getField('title') ? 'title' : ($form->getField('name') ? 'name' : ''); + +?> +
    + renderField($title) : ''; + echo $form->renderField('alias'); + ?> +
    diff --git a/deployed/trada/templates/trada/html/layouts/joomla/editors/buttons-20151030-075835.php b/deployed/trada/templates/trada/html/layouts/joomla/editors/buttons-20151030-075835.php new file mode 100644 index 00000000..47aad968 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/editors/buttons-20151030-075835.php @@ -0,0 +1,21 @@ + +
    + + + + + +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/layouts/joomla/editors/buttons.php b/deployed/trada/templates/trada/html/layouts/joomla/editors/buttons.php new file mode 100644 index 00000000..47aad968 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/editors/buttons.php @@ -0,0 +1,21 @@ + +
    + + + + + +
    \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/layouts/joomla/editors/buttons/button-20151030-075835.php b/deployed/trada/templates/trada/html/layouts/joomla/editors/buttons/button-20151030-075835.php new file mode 100644 index 00000000..ea6603e1 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/editors/buttons/button-20151030-075835.php @@ -0,0 +1,32 @@ + +get('name')) : ?> + get('class')) ? $button->get('class') : null; + $class .= ($button->get('modal')) ? ' modal-button' : null; + $href = ($button->get('link')) ? ' href="' . JUri::base() . $button->get('link') . '"' : null; + $onclick = ($button->get('onclick')) ? ' onclick="' . $button->get('onclick') . '"' : ''; + $title = ($button->get('title')) ? $button->get('title') : $button->get('text'); + + // Load modal popup behavior + if ($button->get('modal')) + { + JHtml::_('behavior.modal', 'a.modal-button'); + } + ?> + rel="get('options'); ?>"> + get('text'); ?> + + +get('name')) : ?> + get('class')) ? $button->get('class') : null; + $class .= ($button->get('modal')) ? ' modal-button' : null; + $href = ($button->get('link')) ? ' href="' . JUri::base() . $button->get('link') . '"' : null; + $onclick = ($button->get('onclick')) ? ' onclick="' . $button->get('onclick') . '"' : ''; + $title = ($button->get('title')) ? $button->get('title') : $button->get('text'); + + // Load modal popup behavior + if ($button->get('modal')) + { + JHtml::_('behavior.modal', 'a.modal-button'); + } + ?> + rel="get('options'); ?>"> + get('text'); ?> + + + +
    > + +
    + +
    +
    diff --git a/deployed/trada/templates/trada/html/layouts/joomla/form/renderlabel.php b/deployed/trada/templates/trada/html/layouts/joomla/form/renderlabel.php new file mode 100644 index 00000000..0520c9f4 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/form/renderlabel.php @@ -0,0 +1,50 @@ + + \ No newline at end of file diff --git a/deployed/trada/templates/trada/html/layouts/joomla/links/groupclose.php b/deployed/trada/templates/trada/html/layouts/joomla/links/groupclose.php new file mode 100644 index 00000000..9f45cf77 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/links/groupclose.php @@ -0,0 +1,12 @@ + + diff --git a/deployed/trada/templates/trada/html/layouts/joomla/links/groupopen.php b/deployed/trada/templates/trada/html/layouts/joomla/links/groupopen.php new file mode 100644 index 00000000..7a1800a5 --- /dev/null +++ b/deployed/trada/templates/trada/html/layouts/joomla/links/groupopen.php @@ -0,0 +1,13 @@ + + +