Новичок
Профиль
Группа: Участник
Сообщений: 11
Регистрация: 2.7.2010
Репутация: нет Всего: нет
|
вот с этого надо начать templateDetails.xml ! или же проще: Код | <?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>jumcasinoportal</name> <creationDate>22 May 2013</creationDate> <author>Alexsandr</author> <authorEmail>[email protected]</authorEmail> <authorUrl>http://www.casino-partal.ru</authorUrl> <copyright>Copyright (C) 20013</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <version>2.5.9</version> <description>TPL_jumcasinoportal_XML_DESCRIPTION</description>
<files> <folder>css</folder> <folder>html</folder> <folder>images</folder> <folder>javascript</folder> <folder>fonts</folder> <folder>language</folder> <filename>index.html</filename> <filename>index.php</filename> <filename>templateDetails.xml</filename> <filename>template_preview.png</filename> <filename>template_thumbnail.png</filename> <filename>favicon.ico</filename> <filename>component.php</filename> <filename>error.php</filename> </files>
<positions> <position>debug</position> <position>position-0</position> <position>position-1</position> <position>position-2</position> <position>position-3</position> <position>position-4</position> <position>position-5</position> <position>position-6</position> <position>position-7</position> <position>position-8</position> <position>position-9</position> <position>position-10</position> <position>position-11</position> <position>position-12</position> <position>position-13</position> <position>position-14</position> <position>position-15</position> </positions>
<!-- For core templates, we also install/uninstall the language files in the core language folders. --> <languages folder="language"> <language tag="en-GB">en-GB/en-GB.tpl_beez5.ini</language> <language tag="en-GB">en-GB/en-GB.tpl_beez5.sys.ini</language> </languages>
<config> <fields name="params"> <fieldset name="advanced"> <field name="wrapperSmall" type="text" default="53" label="TPL_jumcasinoportal_FIELD_WRAPPERSMALL_LABEL" description="TPL_jumcasinoportal_FIELD_WRAPPERSMALL_DESC" filter="integer" />
<field name="wrapperLarge" type="text" default="72" label="TPL_jumcasinoportal_FIELD_WRAPPERLARGE_LABEL" description="TPL_jumcasinoportal_FIELD_WRAPPERLARGE_DESC" filter="integer" /> <field name="logo" type="media" label="TPL_jumcasinoportal_FIELD_LOGO_LABEL" description="TPL_jumcasinoportal_FIELD_LOGO_DESC" />
<field name="sitetitle" type="text" default="" label="TPL_jumcasinoportal_FIELD_SITETITLE_LABEL" description="TPL_jumcasinoportal_FIELD_SITETITLE_DESC" filter="string" />
<field name="sitedescription" type="text" default="" label="TPL_jumcasinoportal_FIELD_DESCRIPTION_LABEL" description="TPL_jumcasinoportal_FIELD_DESCRIPTION_DESC" filter="string" />
<field name="navposition" type="list" default="center" label="TPL_jumcasinoportal_FIELD_NAVPOSITION_LABEL" description="TPL_jumcasinoportal_FIELD_NAVPOSITION_DESC" filter="word" > <option value="center">TPL_jumcasinoportal_OPTION_AFTER_CONTENT</option> <option value="left">TPL_jumcasinoportal_OPTION_BEFORE_CONTENT</option> </field>
<field name="html5" type="list" default="0" label="TPL_jumcasinoportal_FIELD_HTML5_LABEL" description="TPL_jumcasinoportal_FIELD_HTML5_DESC" filter="int" > <option value="0">TPL_jumcasinoportal_OPTION_XHTML</option> <option value="1">TPL_jumcasinoportal_OPTION_HTML5</option> </field> </fieldset> </fields> </config> </extension>
|
Ну это мой код сделайте свой Потом можете переходить к файлам component.php, error.php, вот это отвечает вывод вашей страницы файл с расширением пхп - index.php. Или же вот ну опять же моё index Код | <?php /** * @package обломаться и не встать * @subpackage а вы что хотели так сразу бац и всё готово нет так не пойдёт * @copyright Copyright (C) 2114 - 3012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */
// No direct access. defined('_JEXEC') or die;
// check modules $showRightColumn = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8')); $showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11')); $showleft = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
if ($showRightColumn==0 and $showleft==0) { $showno = 0; }
JHtml::_('behavior.framework', true);
// get params $color = $this->params->get('templatecolor'); $logo = $this->params->get('logo'); $navposition = $this->params->get('navposition'); $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $templateparams = $app->getTemplate(true)->params;
$doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/md_stylechanger.js', 'text/javascript', true); ?> <?php if(!$templateparams->get('html5', 0)): ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php else: ?> <?php echo '<!DOCTYPE html>'; ?> <?php endif; ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" > <head> <!--список стилей css--> <jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/jumcasinoportal-header.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/jumcasinoportal-menu.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/jumcasinoportal-all-modul.css" type="text/css" /> <!--список стилей css--> <?php $files = JHtml::_('stylesheet', 'templates/'.$this->template.'/css/general.css', null, false, true); if ($files): if (!is_array($files)): $files = array($files); endif; foreach($files as $file): ?> <link rel="stylesheet" href="<?php echo $file;?>" type="text/css" /> <?php endforeach; endif; ?> <?php if ($this->direction == 'rtl') : ?> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template_rtl.css" type="text/css" /> <?php endif; ?> <!--[if lte IE 6]> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ieonly.css" rel="stylesheet" type="text/css" /> <![endif]--> <!--[if IE 7]> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css" rel="stylesheet" type="text/css" /> <![endif]--> <?php if($templateparams->get('html5', 0)) { ?> <!--[if lt IE 9]> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/javascript/html5.js"></script> <![endif]--> <?php } ?> <!--список стилей css--> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/javascript/hide.js"></script>
<script type="text/javascript"> var big ='<?php echo (int)$this->params->get('wrapperLarge');?>%'; var small='<?php echo (int)$this->params->get('wrapperSmall'); ?>%'; var altopen='<?php echo JText::_('TPL_jumcasinoportal_ALTOPEN', true); ?>'; var altclose='<?php echo JText::_('TPL_jumcasinoportal_ALTCLOSE', true); ?>'; var bildauf='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/plus.png'; var bildzu='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/minus.png'; var rightopen='<?php echo JText::_('TPL_jumcasinoportal_TEXTRIGHTOPEN', true); ?>'; var rightclose='<?php echo JText::_('TPL_jumcasinoportal_TEXTRIGHTCLOSE', true); ?>'; var fontSizeTitle='<?php echo JText::_('TPL_jumcasinoportal_FONTSIZE', true); ?>'; var bigger='<?php echo JText::_('TPL_jumcasinoportal_BIGGER', true); ?>'; var reset='<?php echo JText::_('TPL_jumcasinoportal_RESET', true); ?>'; var smaller='<?php echo JText::_('TPL_jumcasinoportal_SMALLER', true); ?>'; var biggerTitle='<?php echo JText::_('TPL_jumcasinoportal_INCREASE_SIZE', true); ?>'; var resetTitle='<?php echo JText::_('TPL_jumcasinoportal_REVERT_STYLES_TO_DEFAULT', true); ?>'; var smallerTitle='<?php echo JText::_('TPL_jumcasinoportal_DECREASE_SIZE', true); ?>'; </script>
</head> <div class="b"> <div class="a"></div> <div class="s"></div> <div class="d"></div> <div class="f"></div> <div class="bb"></div> <div class="aa"><div class="kk"><jdoc:include type="modules" name="position-1" /></div> </div> <div class="joomla-search"> <jdoc:include type="modules" name="position-0" /> </div> <div class="ss"></div> <div class="dd"></div> <div class="ff"></div> <div class="bq"><br></br><script src='http://www.goldfishkapartners.com/media/AC_RunActiveContent1.js' type='text/javascript'></script><script type='text/javascript'>AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','flashvars','link1=http://www.winfishka.net?sv=1%26btag=aff-728x90flsl_Linorig_55542','width','728','height','90','src','http://www.goldfishkapartners.com/showbanner.aspx?id=728x90flsl&btag=aff-728x90flsl_Linorig_55542','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','http://www.goldfishkapartners.com/showbanner.aspx?id=728x90flsl&btag=aff-728x90flsl_Linorig_55542' ); //end AC code</script><noscript><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='728' height='90'><param name='movie' value='http://www.goldfishkapartners.com/showbanner.aspx?id=728x90flsl&btag=aff-728x90flsl_Linorig_55542' /><param name='quality' value='high' /><param name='flashvars' value='link1=http://www.winfishka.net?sv=1%26btag=aff-728x90flsl_Linorig_55542' /><embed src='http://www.goldfishkapartners.com/showbanner.aspx?id=728x90flsl&btag=aff-728x90flsl_Linorig_55542' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' flashvars='link1=http://www.winfishka.net?sv=1%26btag=aff-728x90flsl_Linorig_55542' type='application/x-shockwave-flash' width='728' height='90'></embed></object></noscript></div> <div class="aw"></div> <!--меню вертикальное контент и баннеры--> <div class="jy"> <div class="se"></div>
<div class="ft"> <div class="gt"> <jdoc:include type="modules" name="position-7" style="diz" headerLevel="3" /> <p><p/> <p><p/> <p><p/> <div class="ip">Топ Казино</div> <div class="ipy"><script src='http://office.partnerearning.com/getrotatorbannerlist?id=6833&refid=6a135c33dc24ea5bfc4311bddcd08b95'></script> </div> <div class="ipy"> <script src="http://casinoxaffiliates.com/j/base.js?2" type="text/javascript"></script> <script src="http://casinoxaffiliates.com/j/swfobject.js" type="text/javascript"></script> <script type="text/javascript">ggsaffiliates.getBanner('p12732p16085p9021', 0, {width:200, height:200});</script> </div> <div class="ipy"><script src="http://online.europacasino.com/js/m.js" language="javascript" type="text/javascript"></script><a class="m_link" href="http://online.europacasino.com?key=ej0yMTg3NzI5MDg3Jmw9MCZwPTk1MTIzNg%3D%3D">Description</a></div> <div class="ipy"><script src="http://online.titanbet.com/js/m.js" language="javascript" type="text/javascript"></script><a class="m_link" href="http://online.titanbet.com?key=ej0yMTg4MjE4OTI4Jmw9MCZwPTk1MTIzNg%3D%3D">Description</a></div> <div class="ipy"> <a href="http://site.betredkings.com/index.cgi?aname=linorig"> <img src="http://bannerhost.egamingonline.com/SP/Banners/RU/200x200/BRK_AB_webmoney_200x200_RU.gif" width="200" height="200" style="border: none; padding: 0; margin: 0;" /> </a></div> <div class="ipy"> <a href="http://site.gotoeucasino.com/index.cgi?aname=linorig"> <img src="http://bannerhost.egamingonline.com/EU/Banners/RU/200x300/EU_IB_Vampire_200x300_RU.gif" width="200" height="300" style="border: none; padding: 0; margin: 0;" /> </a> </div> <div class="ipy"><script type="text/javascript"> AC_FL_RunContent( 'width','200 px','height','200 px','src','http://post.rmbn.ru/banners/images/test/partgrand/200x200/gold200-200','flashvars','link=http://migday.info/grand/play1568','quality','hight','bgcolor','#876b3c','allowscriptaccess','always','pluginspage','http://www.macromedia.com/go/getflashplayer','scale','noscale','movie','http://post.rmbn.ru/banners/images/test/partgrand/200x200/gold200-200' ); //end AC code </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200 px" height="200 px"> <param name="flashvars" value="link=http://migday.info/grand/play1568"> <param name="allowscriptaccess" value="always"> <param name="scale" value="noscale"/><param name="movie" value="http://post.rmbn.ru/banners/images/test/partgrand/200x200/gold200-200.swf"/><embed src="http://post.rmbn.ru/banners/images/test/partgrand/200x200/gold200-200.swf" flashvars="link=http://migday.info/grand/play1568" quality="hight" bgcolor="#876b3c" width="200 px" height="200 px" type="application/x-shockwave-flash" allowscriptaccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed></object></noscript></div>
</div> <div class="lop"> <jdoc:include type="modules" name="position-2" /> <p></p> <jdoc:include type="message" /> <jdoc:include type="component" /> </div> </div> <div class="by"></div> </div> <!--меню вертикальное контент и баннеры--> <!--низ шапки--> <div class="nz"></div> <div class="nz1"></div> <div class="nz2"> <div class="spc"> <!-- [email protected] counter --> <script type="text/javascript">//<![CDATA[ var _tmr = _tmr || []; _tmr.push({id: '2356140', type: 'pageView', start: (new Date()).getTime()}); (function (d, w) { var ts = d.createElement('script'); ts.type = 'text/javascript'; ts.async = true; ts.src = (d.location.protocol == 'https:' ? 'https:' : 'http:') + '//top-fwz1.mail.ru/js/code.js'; var f = function () {var s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ts, s);}; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window); //]]></script><noscript><div style="position:absolute;left:-10000px;"> <img src="//top-fwz1.mail.ru/counter?id=2356140;js=na" style="border:0;" height="1" width="1" alt="Рейтинг@Mail.ru" /> </div></noscript> <!-- //[email protected] counter --><!-- [email protected] logo --> <a target="_blank" href="http://top.mail.ru/jump?from=2356140"> <img src="//top-fwz1.mail.ru/counter?id=2356140;t=470;l=1" border="0" height="31" width="88" alt="Рейтинг@Mail.ru"></a> <!-- //[email protected] logo --> </div> <div class="spc"> <!-- begin of Top100 code --> <script id="top100Counter" type="text/javascript" src="http://counter.rambler.ru/top100.jcn?2903080"></script> <noscript> <a href="http://top100.rambler.ru/navi/2903080/"> <img src="http://counter.rambler.ru/top100.cnt?2903080" alt="Rambler's Top100" border="0" /> </a> </noscript> <!-- end of Top100 code --> </div> </div> <div class="nz3"></div> <div class="nz4"></div> <!--низ шапки--> </div> </body> </html>
|
А потом переходить к созданиям компонентов и модулей Добавлено через 10 минут и 49 секундТолько смотри кириллицу придерживай и не за путайся utf8, если какие вопросы будут обращайся, а шаблон сам делай, ибо мне его лень писать заново, когда закончишь со всеми модулями и вёрсткой, переходи к самому муторному и быстрому css стили вот тебе в довесок книга мудреца http://css.manual.ru/, ну а по разработке модулей или компонентов для системы это там надо многое знать.
|