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
$app = JFactory::getApplication(); | |
$menuitem = $app->getMenu()->getActive(); // get the active item | |
$params = $menuitem->params; // get the params |
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
$uri = &JURI::getInstance(); | |
$myabsoluteurl = $uri->toString(array('path')); |
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
$db = &JFactory::getDBO(); | |
$sql = "SELECT introtext FROM #__content WHERE id = ".intval($articleId); | |
$db->setQuery($sql); | |
$fullArticle = $db->loadResult(); | |
if(!strlen(trim($fullArticle))) | |
$fullArticle = "Article is empty "; |
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
jimport( 'joomla.application.module.helper' ); | |
$module = JModuleHelper::getModule('mod_related_items'); | |
$attribs['style'] = 'xhtml'; | |
echo JModuleHelper::renderModule( $module, $attribs ); |
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
//old code | |
global $mainframe; | |
$params = &$mainframe->getParams(); | |
//in joomla 1.7/2.5 | |
$app = &JFactory::getApplication(); | |
$params = $app->getParams(); |
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
$document = JFactory::getDocument(); | |
$document->setTitle($this->escape($title)); |
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
$uri = &JURI::getInstance(); | |
$myabsoluteurl = $uri->toString(array('path')); | |
if($myabsoluteurl==JURI::base(true).'/') | |
$front_page = 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
$article_id = JFactory::getApplication()->input->get('id'); |
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
#include <opencv/cv.h> | |
#include <opencv/highgui.h> | |
#include <opencv/ml.h> | |
void doMosaic(IplImage* in, int x, int y, | |
int width, int height, int size); | |
int main (int argc, char **argv) | |
{ | |
int i, c; |
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
http://andreinc.net/2016/09/10/simple-authentication-with-spring-boot-and-jwt-tokens/ |
OlderNewer