× This is the optional category header for the Suggestion Box.

Joomla - Run Jomres shortcodes in Joomla template files

  • Vince Waoll
  • Topic Author
  • Visitor
  • Visitor
3 months 1 week ago #5 by Vince Waoll
There's a feature which you can use to run Jomres shortcodes in Joomla template files.
<?php echo run_jomres_shortcode('{jomres property_widget}'); ?>


This allows you to put Jomres shortcodes directly into template files. If Jomres isn't shown anywhere else on the page, you may need to first include the Jomres framework, which can be done by doing this (ideally in the template's index.php file)
if (!defined('_JOMRES_INITCHECK'))
define('_JOMRES_INITCHECK', 1 );

if (!defined('JOMRES_ROOT_DIRECTORY')) {
if (file_exists(dirname(__FILE__).'/../../jomres_root.php')) {
require_once (dirname(__FILE__).'/../../jomres_root.php');
} else {
define ( 'JOMRES_ROOT_DIRECTORY' , "jomres" ) ;
}
}
require_once(JOMRES_ROOT_DIRECTORY.DIRECTORY_SEPARATOR.'core-plugins'.DIRECTORY_SEPARATOR.'alternative_init'.DIRECTORY_SEPARATOR.'alt_init.php');
 

Please Log in to join the conversation.

© 2023 JomresPlugins.com. All Rights Reserved.

Please publish modules in offcanvas position.