This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Send Email | |
function sendEmail($email_recipient = '', $subject = 'The mail subject goes here...', $body = 'The mail body goes here..') | |
{ | |
$mailer = JFactory::getMailer(); | |
$config = JFactory::getConfig(); | |
$sender = array($config->get('fromname'), $config->get('mailfrom')); | |
$email_recipient = (!empty($email_recipient)) ? $email_recipient : $config->get('mailfrom'); | |
$mailer->setSender($sender); | |
$mailer->setSubject($subject); | |
$mailer->isHTML(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the database object | |
$db = JFactory::getDbo(); | |
// JTableCategory is autoloaded in J! 3.0, so... | |
if (version_compare(JVERSION, '3.0', 'lt')) | |
{ | |
JTable::addIncludePath(JPATH_PLATFORM . 'joomla/database/table'); | |
} | |
// Initialize a new category |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="userItemCategory"> | |
<span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span> | |
<a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// BEGIN: Multiple Categories for K2, by Web357 | |
$w357_dispatcher = JDispatcher::getInstance(); | |
JPluginHelper::importPlugin('k2', 'k2multiplecategories'); | |
$k2multiplecategories = $w357_dispatcher->trigger('onK2AfterDisplayContentAdvanced', array($item)); | |
if (!empty($k2multiplecategories) && is_array($k2multiplecategories)): | |
?> | |
<!-- Item category name --> | |
<div class="userItemCategory"> | |
<span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cpnb data-cpnb-cookie-category-id="analytical-cookies"> | |
<script> | |
// The Javascript code for Analytical cookies (only) goes here... | |
</script> | |
</cpnb> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Google Tag Manager --> | |
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','GTM-WEB357012345');</script> | |
<!-- End Google Tag Manager --> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<!-- Google Tag Manager (noscript) --> | |
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P6BZQ92" | |
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | |
<!-- End Google Tag Manager (noscript) --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cpnb data-cpnb-cookie-category-id="analytical-cookies"> | |
<!-- Google Tag Manager --> | |
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','GTM-WEB357012345');</script> | |
<!-- End Google Tag Manager --> | |
</cpnb> | |
</head> |
OlderNewer