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');
- Created on .