View get_url_template.php
$app = JFactory::getApplication();
$path = JURI::base(true).'/templates/'.$app->getTemplate().'/';
View get_params_plugin.php
$plugin = JPluginHelper::getPlugin('my_plugin_type', 'my_plugin');
// Check if plugin is enabled
if ($plugin)
{
// Get plugin params
$pluginParams = new JRegistry($plugin->params);
$param1 = $pluginParams->get('param1');
$param2 = $pluginParams->get('param2');
View color-rrss.css
Twitter: #41b7d8
Facebook: #3b5997
Google: #d64937
LinkedIn: #0073b2
Vimeo: #388fc5
Flickr: #ff0084
Pinterest: #cb2027
Skype: #00aff0
RSS: #e0812a
View system_messages_joomla.css
#system-message-container #system-message dt{display:none;}
#system-message-container #system-message dd{margin:0; padding:10px;}
#system-message-container #system-message dd ul{margin:0; padding:0;}
#system-message-container #system-message dd ul li{margin:0; padding:0;}
#system-message-container #system-message dd.error.message{background: none repeat scroll 0 0 rgba(218, 49, 75, 0.2); color: #DA314B;}
#system-message-container #system-message dd.message.message{background: none repeat scroll 0 0 rgba(16, 151, 244, 0.2); color: #075C97;}
#system-message-container #system-message dd.success.message{background: none repeat scroll 0 0 rgba(140, 193, 76, 0.2); color: #8CC14C;}
#system-message-container #system-message dd.warning.message{background: none repeat scroll 0 0 rgba(250, 167, 50, 0.2); color: #FAA732;}
View itemid_article_joomla.php
<?php
$url = ContentHelperRoute::getArticleRoute($article->id.':'.$article->alias, $article->catid);
?>
View responsive.css
/* resolucion 800 x 600 */
@media (min-width: 800px) and (max-width: 959px) {
}
/* resolucion 768 x 1024 */
@media (min-width: 768px) and (max-width: 799px) {
}
View constantes_joomla.php
<?php
JPATH_ADMINISTRATOR The path to the administrator folder.
JPATH_BASE The path to the installed Joomla! site.
JPATH_CACHE The path to the cache folder.
JPATH_COMPONENT The path to the current component being executed.
JPATH_COMPONENT_ADMINISTRATOR The path to the administration folder of the current component being executed.
JPATH_COMPONENT_SITE The path to the site folder of the current component being executed.
JPATH_CONFIGURATION The path to folder containing the configuration.php file.
JPATH_INSTALLATION The path to the installation folder.
JPATH_LIBRARIES The path to the libraries folder.
View id_url_jooma.php
<?php
// Editar fichero components\com_content\router.php
// Dentro de función ContentBuildRoute(&$query)
// Cambiar $advanced = $params->get('sef_advanced_link', 0); por
$advanced = $params->get('sef_advanced_link', 1);
// Dentro de función ContentParseRoute($segments)
// Cambiar $advanced = $params->get('sef_advanced_link', 0); por
$advanced = $params->get('sef_advanced_link', 1);
View frontpage_joomla.php
// Básico
<?php $menu = & JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
echo 'This is the front page';
} ?>
// Multi-idioma
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
View url_joomla.php
<?php
$uri = & JFactory::getURI();
$absolute_url = $uri->toString();
echo $absolute_url;
?>