<?php
$modules
=& JModuleHelper::getModules(
'contact'
);
foreach
(
$modules
as
$module
)
{
echo
JModuleHelper::renderModule(
$module
);
}
?>
Where 'contact' is the name of the position
<?php
$modules
=& JModuleHelper::getModules(
'contact'
);
foreach
(
$modules
as
$module
)
{
echo
JModuleHelper::renderModule(
$module
);
}
?>
Where 'contact' is the name of the position
$included_files = get_included_files();
$stylesheet_dir = str_replace( '\\', '/', get_stylesheet_directory() );
$template_dir = str_replace( '\\', '/', get_template_directory() );
foreach ( $included_files as $key => $path ) {
$path = str_replace( '\\', '/', $path );
if ( false === strpos( $path, $stylesheet_dir ) && false === strpos( $path, $template_dir ) )
unset( $included_files[$key] );
}
print_r('<pre>'); print_r( $included_files );
print_r('</pre>');
add_filter( 'template_include', 'var_template_include', 1000 );
function var_template_include( $t ){
$GLOBALS['current_theme_template'] = basename($t);
return $t;
}
function get_current_template( $echo = false ) {
if( !isset( $GLOBALS['current_theme_template'] ) )
return false;
if( $echo )
echo $GLOBALS['current_theme_template'];
else
return $GLOBALS['current_theme_template'];
}
get_current_template()