Skip to content

Instantly share code, notes, and snippets.

@h4
Created March 21, 2012 16:34
Show Gist options
  • Save h4/2149360 to your computer and use it in GitHub Desktop.
Save h4/2149360 to your computer and use it in GitHub Desktop.
Шаблоны Joomla
<html>
<head>
<jdoc:include type="head" />
</head>
<body>
<jdoc:include type="component" />
</body>
</html>
<?php
defined('_JEXEC') or die('Доступ запрещён');
$templateUrl = $this->baseurl . '/templates/' . $this->template;
?>
<title>Простой шаблон</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<img src="<?php echo $templateUrl; ?>/i/logo.png" alt="" />
<?php
if ($this->countModules( 'user1' )) {
print "Есть модули в области user1";
}
?>
<?php
if ($this->countModules( 'right' )) {
?>
<body>
<?php
} else {
?>
<body class="twocolumn">
<?php
}
?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.dtd">
<extension version="2.5" type="template" client="site">
<name>Primitive</name>
<version>1.0</version>
<creationDate>2012</creationDate>
<author>Mikhail Baranov</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl></authorUrl>
<copyright></copyright>
<license></license>
<description>Учебная тема Joomla</description>
</extension>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.dtd">
<extension version="2.5" type="template" client="site">
<name>Primitive</name>
<version>1.0</version>
<creationDate>2012</creationDate>
<author>Mikhail Baranov</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl></authorUrl>
<copyright></copyright>
<license></license>
<description>Учебная тема Joomla</description>
<positions>
<position>left</position>
<position>right</position>
<position>top</position>
<position>breadcrumb</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>debug</position>
<position>syndicate</position>
</positions>
</extension>
<files>
<filename>css/style.css</filename>
<filename>i/logo.png</filename>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
<filename>template_thumbnail.png</filename>
</files>
<params>
<param
name="templateColour"
type="list"
default="white"
label="Цвет фона"
description="Укажите цвет фона.">
<option value="White">Белый</option>
<option value="red">Красный</option>
<option value="green">Зеленый</option>
<option value="blue">blue</option>
</param>
</params>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment