ã¯ããã«
åã®èšäºã§ãWordPressã®ããŒããäœæããæ¹æ³ãåŠã³ãŸããã ä»æ¥ã¯ãåãCorporate Blueãã³ãã¬ãŒãã§ããJoomlaïŒã«åºã¥ããŠã2çªç®ã«äººæ°ã®ããCMSã§ãµã€ããäœæããŠã¿ãŸãããã ãã®èšäºã§ã¯äž»ã«ã¬ã€ã¢ãŠãã«ã€ããŠèª¬æããŠãããããJoomlaïŒ æ¢ã«ã€ã³ã¹ããŒã«ãããŠããŸãã JoomlaïŒã®ã€ã³ã¹ããŒã«æ¹æ³ãããããªãå Žåã¯ãæé ãåç §ããŠãã ãã ã ãã®ã¬ã€ãã§ã¯ãCSSã¹ã¿ã€ã«ãšHTMLã³ãŒãã«ã€ããŠè©³ãã説æããŸãããããã¯æåã®èšäºã§è¡ãããŸãã ã 代ããã«ãJoomlaïŒå°çšã®ãã³ãã¬ãŒããäœæããæ©èœã詳现ã«æ€èšããŸãã
ãã³ãã¬ãŒããè¿œå ãã
æåã«ããã³ãã¬ãŒããwhitesquareãã®ãã©ã«ããŒãéœåã®è¯ãå Žæã«äœæããŸãã cssãç»åãèšèªã®3ã€ã®ãµããã©ã«ããŒãå«ããå¿ èŠããããŸãã cssããã³imagesãã©ã«ããŒã§ã次ã®å 容ã®index.htmlãã¡ã€ã«ãäœæããŸãã
<!DOCTYPE html><title></title>
ãããã®ãã¡ã€ã«ã¯ã¹ã¿ãã§ãããCMSã®èŠä»¶ã«åŸã£ãŠããããã®ãã©ã«ããŒã«çŽæ¥ã¢ã¯ã»ã¹ãããšãã«ç©ºçœããŒãžã衚瀺ããå¿ èŠããããŸãã
次ã«ãcssãã©ã«ããŒã§ç©ºã®template.cssã¹ã¿ã€ã«ãã¡ã€ã«ãäœæããèšèªãã©ã«ããŒã§ãµããã©ã«ããŒen-GBãäœæããŸãããµããã©ã«ããŒã«ã¯ç©ºã®ãã¡ã€ã«en-GB.tpl_whitesquare.iniãšæ¬¡ã®å 容ã®ãã¡ã€ã«en-GB.tpl_whitesquare.sys.iniãå«ãŸããŸãã
TPL_WHITESQUARE_XML_DESCRIPTION="Whitesquare is the Joomla 3 site template."
ãã®ãã¹ãŠã®æå³ã詳ããèŠãŠãããŸãããã èšèªãã©ã«ããŒã¯ããŒã«ã©ã€ãºã«å¿ èŠã§ãããç°ãªãèšèªïŒen-GBãru-RUãªã©ïŒã®ãµããã©ã«ããŒãå«ããããšãã§ããŸãã åèšèªãã©ã«ããŒã«ã¯2ã€ã®ããŒãã¡ã€ã«ãå«ãŸããŠããŸãã ããŒã¯ãããŒã®ååãšãã®å€ã®ãã¢ã§ãã ç°ãªãèšèªã®ããŒåã¯åãã«ãªããå€ã¯ç°ãªããŸãã ãã®ã¡ã«ããºã ã«ããããã³ãã¬ãŒãã䜿çšããŠç°ãªãèšèªã§ãµã€ããäœæã§ããŸãã ããã¯ã±ãŒã¹ã¹ã¿ãã£ã§ãããããè±èªïŒen-GBïŒã®ã¿ã䜿çšããŸãã æåã®en-GB.tpl_whitesquare.iniãã¡ã€ã«ã«ã¯ãµã€ãã®ãŠãŒã¶ãŒã«è¡šç€ºãããããŒãå«ãŸãã2çªç®ã®en-GB.tpl_whitesquare.sys.iniã«ã¯ç®¡çæ©èœã®ããŒãå«ãŸããŸãã
次ã«ã空ã®ãã¡ã€ã«component.phpãerror.phpãindex.phpãäœæããå¿ èŠããããŸãã ä»åŸå¿ èŠã«ãªããŸãã
次ã®ã¹ãããã¯ãç»åãè¿œå ããããšã§ãïŒfavicon.icoãtemplate_preview.pngãããã³template_thumbnail.pngã æåŸã®2ã€ã¯ãå°æ¥ã®ãã³ãã¬ãŒãã®ãã¬ãã¥ãŒã§ããããããã640x480ãš206x150ã®ãµã€ãºãæã£ãŠããŸãã
è¿œå ããæåŸã®ãã¡ã€ã«ã¯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>whitesquare</name> <creationDate>2015-02-25</creationDate> <author>pcklab</author> <authorEmail></authorEmail> <authorUrl>http://www.pcklab.com</authorUrl> <copyright>© 2014 Pixel Cook Laboratory. All Rights Reserved.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <version>1.0.0</version> <description>TPL_WHITESQUARE_XML_DESCRIPTION</description> <files> <folder>css</folder> <folder>images</folder> <folder>js</folder> <folder>language</folder> <filename>component.php</filename> <filename>error.php</filename> <filename>favicon.ico</filename> <filename>index.php</filename> <filename>template_preview.png</filename> <filename>template_thumbnail.png</filename> <filename>templateDetails.xml</filename> </files> <positions> </positions> <languages folder="language"> <language tag="en-GB">en-GB/en-GB.tpl_whitesquare.ini</language> <language tag="en-GB">en-GB/en-GB.tpl_whitesquare.sys.ini</language> </languages> </extension>
ãã®ãã¡ã€ã«ã®å 容ã®ã»ãšãã©ã¯ç解å¯èœã§ããã以äžãæ確ã«ããå¿ èŠããããŸãã
説æãã£ãŒã«ãã«ã¯ãen-GB.tpl_whitesquare.sys.iniã§æå®ãããã®ãšåãããŒã«ã©ã€ãºããŒãå«ãŸããŸã
filesãã£ãŒã«ãã«ã¯ããã³ãã¬ãŒãã®ã«ãŒãã«ãããã¹ãŠã®ãã¡ã€ã«ãšãã©ã«ããŒã®å®å šãªãªã¹ããå«ãŸããŠããŸãã
èšèªãã£ãŒã«ãã«ã¯èšèªãã¡ã€ã«ã®ãªã¹ããå«ãŸããŠãããå°ãåŸã§äœçœ®ãã£ãŒã«ããå¿ èŠã«ãªããŸãã
ãã³ãã¬ãŒããã¬ãŒã ã¯ãŒã¯ã®æºåãã§ããã®ã§ãCMSã«è¿œå ããŸãããã ãããè¡ãã«ã¯ãJoomlaïŒAdmin管çããã«ãéãã[æ¡åŒµæ©èœ]-> [æ¡åŒµæ©èœãããŒãžã£ãŒ]ã¡ãã¥ãŒé ç®ãéžæãã[ãã£ã¬ã¯ããªããã€ã³ã¹ããŒã«]ã¿ãã«ç§»åãã[ã€ã³ã¹ããŒã«ãã£ã¬ã¯ããª]ãã£ãŒã«ãã§ãã³ãã¬ãŒããã¡ã€ã«ãäœæããwhitesquareãã©ã«ããŒãžã®ãã¹ãæå®ããŸãã
[ã€ã³ã¹ããŒã«]ãã¿ã³ãã¯ãªãã¯ãããšããã³ãã¬ãŒããã·ã¹ãã ã«è¿œå ãããŸãã ãã³ãã¬ãŒããã¢ã¯ãã£ãã«ããããã ãã«æ®ããŸãã [æ¡åŒµæ©èœ]-> [ãã³ãã¬ãŒããããŒãžã£]ã¡ãã¥ãŒã«ç§»åãããªã¹ãã§ãã¯ã€ãã¹ã¯ãšã¢ãã³ãã¬ãŒããèŠã€ãã[ããã©ã«ã]ãã£ãŒã«ãã§ã¢ã¹ã¿ãªã¹ã¯ãã¯ãªãã¯ããŸããããã«ããããã³ãã¬ãŒããããã©ã«ããã³ãã¬ãŒãã«ãªããŸãã ãã®åŸãJoomlaïŒãã€ã³ã¹ããŒã«ãããŠãããµã€ãã®ã¢ãã¬ã¹ãæ¢ã«éãããšãã§ããŸãã ãµã€ãã®ç©ºçœããŒãžãã芧ãã ããã
äºåæ€æ»
ã¬ã€ã¢ãŠããèŠããšãããŒãžãããããŒãšããã¿ãŒã§æ§æãããŠããããã¹ãŠã®ããŒãžã§ç¹°ãè¿ãããŠããããšãããããŸãã ãŸããã¡ã€ã³ããŒãžãé€ããã¹ãŠã®ããŒãžã«ã¯ãå·ŠåŽã«ãµã€ãããŒãšããŒãžåããããŸãã æ€çŽ¢ãšãã¹ãŠã®çš®é¡ã®ã¡ãã¥ãŒãJoomlaïŒã¢ãžã¥ãŒã«ã®åœ¢åŒã§é 眮ãããã¹ãŠã®ããã¹ãã¯ããŒã«ã©ã€ãºã¡ã«ããºã ãä»ããŠçºè¡ãããŸãã
ããŒãžæ§é
JoomlaïŒã®ãã³ãã¬ãŒããäœæããããã®ã»ãšãã©ã®ã¬ã€ãã ã¬ã€ã¢ãŠããšã¹ã¿ã€ã«ã®äœæã«éå®ãããŸãã JoomlaïŒã§å®å šãªãµã€ããäœæããæé å šäœã説æããŸãã æäŸãããã¬ã€ã¢ãŠãå ã
ããŒãžæ§é ããå§ããŸãããã ããŒãžã¯ãã¡ãã¥ãŒã®[ã³ã³ãã³ã]-> [èšäºãããŒãžã£ãŒ]ã䜿çšããŠã管çããã«ã§ç®¡çãããŸãã æ°ããããŒãžãè¿œå ããã«ã¯ã[æ°èŠ]ãã¿ã³ãã¯ãªãã¯ããŠãã©ãŒã ã«å ¥åããŸãã [ã¿ã€ãã«]ãã£ãŒã«ãã«ãããŒãžã®ã¿ã€ãã«ãå ¥åããŸãã æ®ãã®ãã£ãŒã«ãã¯å€æŽããªãã§ãã ããã ãã®ããã«ãããŒã ãäŒç€ŸæŠèŠããµãŒãã¹ãããŒãããŒã顧客ããããžã§ã¯ãããã£ãªã¢ãé£çµ¡å ããŒãžãè¿œå ããŸãã è¿œå åŸãããŒãžã®ãªã¹ãã¯æ¬¡ã®ããã«ãªããŸãã
ããŒãžãã³ãã¬ãŒã
次ã®ã¹ãããã¯ãJoomlaïŒPageãã³ãã¬ãŒããäœæããããšã§ãã ãã³ãã¬ãŒããã©ã«ããŒã«äœæããindex.phpãã¡ã€ã«ãéããããŒãžãã¬ãŒã ãäœæããã³ãŒããè¿œå ããŸãã
<?php defined('_JEXEC') or die; $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $menu = $app->getMenu(); $lang = JFactory::getLanguage(); $template_url = $this->baseurl . '/templates/' . $this->template; $doc->addStyleSheet($template_url . '/css/template.css'); $doc->addStyleSheet('http://fonts.googleapis.com/css?family=Oswald:400,300'); $is_home_page = $menu->getActive() == $menu->getDefault($lang->getTag()); ?> <!doctype html> <html> <head> <jdoc:include type="head"/> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <div class="wrapper"> <header></header> <nav class="main-navigation"></nav> <div class="main-heading"></div> <jdoc:include type="message"/> <jdoc:include type="component"/> </div> <footer></footer> </body> </html>
ããã«æžãããŠããããšã詳ããèŠãŠã¿ãŸãããã ãŸããå¿ èŠãªå€æ°ãå®çŸ©ããPHPãããã¯ããããŸãã æåã®è¡ã¯ãæšæºã®JoomlaïŒã»ãã¥ãªãã£ãã§ãã¯ã§ãã 次ã«ãã¢ããªã±ãŒã·ã§ã³ãããã¥ã¡ã³ããã¡ãã¥ãŒãããã³èšèªã®å€æ°ãèšå®ããŸãã ã¹ã¿ã€ã«ãšç»åãæ¥ç¶ããã«ã¯ããã³ãã¬ãŒããžã®ãã¹ãå«ãå€æ°ãå¿ èŠã§ãã æåŸã®å€æ°ã«ã¯ãã§ãã¯ãå«ãŸããŸã-衚瀺ãããããŒãžãããŒã ãã©ããã ãšããããåããããã¯ã§ããã³ãã¬ãŒãã®ããŒã«ã«CSSãã¡ã€ã«ãšåé€ããããã©ã³ãã¹ã¿ã€ã«ãæ¥ç¶ããŸãã
次ã«ãæšæºã®htmlãã³ãã¬ãŒãããããŸããæ¬æã«ã¯ã2ã€ã®ãããã¯ïŒ.wrapperãšfooterïŒãé 眮ããŸãã ãããã»ã¯ã·ã§ã³ã¯ãæšæºã®JoomlaïŒããããŒãæ¥ç¶ããããšããå§ãŸããŸãã 次ã«ãInternet Explorerãã¢ãã³ã¢ãŒãã«å€æããã¡ã¿ã¿ã°ãããã次ã«IEã®å€ãããŒãžã§ã³ã§HTML5ã¿ã°ããµããŒãããç¹å¥ãªã¹ã¯ãªããããããŸãã .wrapperãããã¯ã«ã¯ãããããŒãšããŒãžã¿ã€ãã«ã®ç©ºã®ãããã¯ãå«ãŸããŠããŸãã æåŸã®ããããæãéèŠãªã³ãã³ãã¯ã.wrapperãããã¯å ã®ã³ã³ããŒãã³ããæ¥ç¶ããããšã§ã-ããŒãžã®ã³ã³ãã³ãããã³ãã¬ãŒãã«è¿œå ããæ å ±ã¡ãã»ãŒãžã衚瀺ããŸãã
次ã«ãçµæã®ããŒãžã®ã¹ã¿ã€ã«ãèšå®ããå¿ èŠããããŸãã ããŒãžã®èæ¯ãimages / bg.pngãã¡ã€ã«ã«ä¿åããããã€ãã®åºæ¬çãªã¹ã¿ã€ã«ãtemplate.cssãã¡ã€ã«ã«è¿œå ããŸãã
ã³ãŒãã衚瀺
body { margin: 0; border-top: 5px solid #7e7e7e; background: #f8f8f8 url(../images/bg.png); color: #8f8f8f; font: 12px Tahoma, sans-serif; } a { color: #525252; } img { border: 0; } p { margin: 20px 0; } .pull-left { float: left; } .pull-right { float: right; } .aligncenter { display: block; margin-right: auto; margin-left: auto; } .inputbox { padding: 0 10px; height: 30px; border: 1px solid #e7e7e7; background-color: #f3f3f3; color: #b2b2b2; vertical-align: top; } .button { height: 32px; border: none; background-color: #29c5e6; color: #fff; font-family: 'Oswald', sans-serif; } .image { outline: 1px solid #c9c9c9; border: 1px solid #fff; } figure img { display: block; } .wrapper { margin: auto; max-width: 960px; } header { padding: 20px 0; } aside { float: left; width: 250px; } aside + .item-page { margin-left: 280px; padding-bottom: 50px; } footer { clear: both; background: #7e7e7e; color: #dbdbdb; font-size: 11px; }
ãããã®æé ãå®è¡ãããšãã¹ã¿ã€ã«ãèšå®ãããŠããªã倧ããªã¿ã€ãã«ã®ã°ã¬ãŒããŒãžã衚瀺ãããŸãã åŸã§åœŒã«æ»ããŸãã
ããŽ
ã¡ã€ã³ããŒãžã®ãã¬ãŒã ãå®æãããããããåãå§ããŸãã ããŽããå§ããŸãããã ããŽç»åãimages / logo.pngã«ä¿åããŸãã ãã³ãã¬ãŒãã®ããããŒãããã¯ã«ãããŽã®ããŒã¯ã¢ãããæ¿å ¥ããŸãã
<header> <a href="/"><img src="<?php echo $template_url;?>/images/logo.png" alt="<?php echo JText::_('TPL_WHITESQUARE_LOGO');?>"></a> </header>
ç»åã®ä»£æ¿ããã¹ããšããŠãããã¹ãã¯æšæºã®ããŒã«ã©ã€ãºé¢æ°Text :: _ïŒïŒãä»ããŠæ¿å ¥ãããŸãã TPL_WHITESQUARE_LOGOããŒã¯ãŸã ãªãã®ã§ã\ language \ en-GB \ en-GB.tpl_whitesquare.iniãã¡ã€ã«ã«è¿œå ããŸãããã
TPL_WHITESQUARE_LOGO="Whitesquare logo"
æ®å¿µãªããããã®åŸãããã¹ãã¯ãµã€ãããŒãžã«è¡šç€ºãããŸããã å®éãã·ã¹ãã ã§ãã§ã«äœ¿çšãããŠãããã³ãã¬ãŒãã«ããŒã«ã©ã€ãºããŒãè¿œå ããJoomlaïŒ ãã³ãã¬ãŒãã®åæã€ã³ã¹ããŒã«äžã«ã®ã¿ããã®ãã¡ã€ã«ããããŒã«ã©ã€ãºããŒãèªã¿åãããã«èª¿æŽããŸããã ãã¡ããããã³ãã¬ãŒããåé€ããŠã·ã¹ãã ã«å床远å ããããšãã§ããŸãããç°¡åã«è¡ãããšãã§ããŸã-ã·ã¹ãã ãã¡ã€ã«{joomla_root} \ language \ en-GB \ en-GB.tpl_whitesquare.iniã«åãããŒãè¿œå ããŸãã{joomla_root}ã¯JoomlaïŒã«ãã£ãŠã€ã³ã¹ããŒã«ãããŸã
æ€çŽ¢ãã©ãŒã
JoomlaïŒ ç¬èªã®æ€çŽ¢ãã©ãŒã ã¢ãžã¥ãŒã«ãæ¢ã«å«ãŸããŠããŸãã 管çããã«ã®[æ¡åŒµæ©èœ]-> [ã¢ãžã¥ãŒã«ãããŒãžã£ãŒ]ã»ã¯ã·ã§ã³ã«ãããŸãã CMSã«ã€ã³ã¹ããŒã«ãããŠããªãå Žåã¯ã[æ°èŠ]ãã¿ã³ãã¯ãªãã¯ãããªã¹ããã[æ€çŽ¢]ãéžæããŠã€ã³ã¹ããŒã«ã§ããŸãã
ãã®ã¢ãžã¥ãŒã«ããã³ãã¬ãŒãã«é 眮ããã«ã¯ããã®ã¢ãžã¥ãŒã«ã«ç¬èªã®ãäœçœ®ããäœæããå¿ èŠããããŸãã äœçœ®ã¯ãã¢ãžã¥ãŒã«ãæ¿å ¥ããããã³ãã¬ãŒãã®ç¹å¥ã«ããŒã¯ãããé åã§ãã äœçœ®ã¯ãäœçœ®ãããã¯ã®templateDetails.xmlãã¡ã€ã«ã§èª¬æãããŠããŸãã
<positions> <position>search</position> </positions>
ãã®åŸãã¢ãžã¥ãŒã«ãããŒãžã£ãŒã«æ»ããæ€çŽ¢ã¢ãžã¥ãŒã«ãéããŠç·šéããŸãã ãŸãããã£ãŒã«ãã§æ¬¡ã®å€ãæå®ããŸãã
ããã¯ã¹ã©ãã«ïŒã¹ããŒã¹
ããã¯ã¹ããã¹ãïŒæ€çŽ¢
æ€çŽ¢ãã¿ã³ïŒã¯ã
ãã¿ã³ã®äœçœ®ïŒå³
æ€çŽ¢ãã¿ã³ã®ç»åïŒããã
ãã¿ã³ã®ããã¹ãïŒGO
ã¿ã€ãã«ã衚瀺ïŒé衚瀺
äœçœ®ïŒWhitesquare Search
[詳现èšå®]ã¿ãã®[ã¢ãžã¥ãŒã«ã¯ã©ã¹ãµãã£ãã¯ã¹]ãã£ãŒã«ãã«ã-blockããšå ¥åããŸãã ããã«ãããæ€çŽ¢ãã©ãŒã ã®ã¹ã¿ã€ã«ãæ€çŽ¢ããŒãžã®ã³ã³ãã³ãããåé¢ãããŸãã
ã¢ãžã¥ãŒã«ã®æºåãã§ããã®ã§ããããindex.phpãã³ãã¬ãŒãã«æ¿å ¥ããå¿ èŠããããŸãã
<header> ... <jdoc:include type="modules" name="search"/> </header>
template.cssã«ã¹ã¿ã€ã«ãè¿œå ããããšã¯æ®ããŸãïŒ
ã³ãŒãã衚瀺
.search-block { float: right; } .search-query { margin-right: -4px; }
ããã²ãŒã·ã§ã³
ãµã€ãã®ããŒãžã®ã¡ãã¥ãŒã¯3段éã§äœæãããŸãããŸããæœè±¡ã¡ãã¥ãŒãäœæããŠãã®ã¢ã€ãã ãå®çŸ©ãã次ã«ãã³ãã¬ãŒãå ã®äœçœ®ã決å®ããæåŸã®ã¹ãããã§ãæœè±¡ã¡ãã¥ãŒãç¹å®ã®äœçœ®ã«æ¥ç¶ããã¢ãžã¥ãŒã«ãäœæããŸãã
ã¡ãã¥ãŒãªã¹ãã¯ã管çããã«ã®[ã¡ãã¥ãŒ]-> [ã¡ãã¥ãŒãããŒãžã£ãŒ]ã»ã¯ã·ã§ã³ã§ç®¡çãããŸãã ããã©ã«ãã§ã¯ãã¡ã€ã³ã¡ãã¥ãŒãšåŒã°ããã¡ãã¥ãŒãæ¢ã«ãããŸãã ããã«è¡ããŸãã
次ã®ããã«ãæ°ããã¡ãã¥ãŒé ç®ãäœæããã«ã¯-[æ°èŠ]ãã¿ã³ãã¯ãªãã¯ããŠã衚瀺ããããã©ãŒã ã«å ¥åããŸãã
ã¡ãã¥ãŒã¿ã€ãã«ïŒããŒãžåãããšãã°äŒç€ŸæŠèŠ
ã¡ãã¥ãŒé ç®ã¿ã€ãïŒåäžã®èšäº
èšäºãéžæïŒäŒç€ŸæŠèŠ
ãã¹ãŠã®ã¡ã€ã³ã¡ãã¥ãŒé ç®ãåãæ¹æ³ã§äœæããŸãïŒããŒã ãäŒç€ŸæŠèŠããµãŒãã¹ãããŒãããŒã顧客ããããžã§ã¯ãããã£ãªã¢ãé£çµ¡å ã
次ã«ãtemplateDetails.xmlãéããã¡ã€ã³ã¡ãã¥ãŒã®äœçœ®ãè¿œå ããŸãã
<positions> ⊠<position>menu</position> </positions>
次ã«ãã¡ãã¥ãŒãå«ãã¢ãžã¥ãŒã«ãäœæããå¿ èŠããããŸãã ããã©ã«ãã®ã¡ã€ã³ã¡ãã¥ãŒã¢ãžã¥ãŒã«ã¯ãã§ã«JoomlaïŒã«ã€ã³ã¹ããŒã«ãããŠãããã¡ã€ã³ã¡ãã¥ãŒãšåŒã°ããŸãã ã¡ãã¥ãŒã®æ¡åŒµæ©èœ->ã¢ãžã¥ãŒã«ãããŒãžã£ãŒ->ã¡ã€ã³ã¡ãã¥ãŒããéããŸãã [ã¡ãã¥ãŒã®éžæ]ãã£ãŒã«ãã§[ã¡ã€ã³ã¡ãã¥ãŒ]ãæå®ãã[äœçœ®]ãã£ãŒã«ãã§[ãã¯ã€ãã¹ã¯ãšã¢ã¡ãã¥ãŒ]ãæå®ããŸãã ãããè¡ãã«ã¯ã[詳现èšå®]ã¿ãã«ç§»åãã[ã¢ãžã¥ãŒã«ã¿ã°]ãã£ãŒã«ãã§[nav]ãéžæãã[ã¡ãã¥ãŒã¯ã©ã¹ãµãã£ãã¯ã¹]ãã£ãŒã«ãã«ã-topããšå ¥åããŸãã ããã«ããããã®ã¡ãã¥ãŒã®CSSã¯ã©ã¹ãããæè»ãã€æå³çã«èšå®ã§ããŸãã
ããããŒã®çŽåŸã«ãã³ãã¬ãŒãèªäœã«ç®çã®äœçœ®ãè¿œå ããŸãããã
... </header> <nav class="main-navigation"> <jdoc:include type="modules" name="menu"/> </nav>
ãã®æç¹ã§ãã¡ãã¥ãŒã¯ãã§ã«ããŒãžã«è¡šç€ºãããŸãããã¹ã¿ã€ã«ã¯è¡šç€ºãããŸããã æ§åŒåããïŒ
ã³ãŒãã衚瀺
.main-navigation { border: 1px solid #e7e7e7; background: #f3f3f3; } .menu-top { margin: 0; padding: 0; } .menu-top li { display: inline-block; margin: 0; padding: 10px 30px; list-style-position: inside; text-transform: uppercase; font: 14px 'Oswald', sans-serif; } .menu-top li.current { background: #29c5e6; } .menu-top a { color: #b2b2b2; text-decoration: none; } .menu-top li.current a { color: #fff; }
ããŒãžã¿ã€ãã«
JoomlaïŒ èšäºã®ã¿ã€ãã«ãããŒãžã®ã³ã³ãã³ãã«èªåçã«æ¿å ¥ããŸãããã¡ã€ã³ããŒãžã«ã¿ã€ãã«ã¯å¿ èŠãããŸãããä»ã®å Žåã¯ãã¬ã€ã¢ãŠããå®å šã«å€ããå¿ èŠããããŸããã¿ã€ãã«ã®èªåæ¿å ¥ããªãã«ããŠãå¿ èŠã«å¿ããŠãã³ãã¬ãŒãã«ã¿ã€ãã«ãæ¿å ¥ããŸãããã
ãŸããå°ãã®çè«ã ããŒãžèŠçŽ ã衚瀺ããããã®èšå®ã¯ãJoomlaïŒ 3ã€ã®å Žæã§ïŒ
- èšäºãããŒãžã£ãŒã®èšå®ã¯ããã¹ãŠã®èšäºã®ã°ããŒãã«èšå®ãèšå®ããŸãã
- åèšäºã®ããããã£ã§ã¯ããã®èšäºã®èšå®ãèšå®ãããã°ããŒãã«ã«å²ã蟌ã¿ãŸã
- ããŒãžã«ã¡ãã¥ãŒãè¿œå ãããå Žåããã®ããŒãžãæãã¡ãã¥ãŒé ç®ã®èšå®ã¯ãä»ã®ãã¹ãŠã®èšå®ãäžæããŸã
ããã«åºã¥ããŠãããŒãžèŠçŽ ãã°ããŒãã«ã«ãªãã«ããŸãããããªããªãã ç§ãã¡ã®ãã¶ã€ã³ã¯å³æ Œã§ãããäžèŠãªèŠçŽ ã¯å«ãŸããŠããŸããã ãããŠãå¿ èŠã«å¿ããŠãç¹å®ã®ããŒãžã«å¿ èŠãªèšå®ãå«ããŸãã 以äžãå®è¡ããŸãã
- 管çããã«ã§ã[ã³ã³ãã³ã]-> [èšäºãããŒãžã£ãŒ]ã«ç§»åãã[ãªãã·ã§ã³]ãã¿ã³ãã¯ãªãã¯ããŠãæåã®[èšäº]ã¿ãã§ãã¹ãŠã®ãã£ãŒã«ãã®[é衚瀺]ãš[ããã]ãèšå®ããŸãã
- ããã«ãåãå Žæã®èšäºãããŒãžã£ãŒã§ã[ãªãã·ã§ã³]ã¿ãã®åèšäºã«ç§»åãããã¹ãŠã®ãã£ãŒã«ãã«[ã°ããŒãã«å€ã䜿çš]ãèšå®ããŸãã
- æåŸã®ã¹ãããã§ã¯ã[ã¡ãã¥ãŒ]-> [ã¡ãã¥ãŒãããŒãžã£]-> [ã¡ã€ã³ã¡ãã¥ãŒ]ã«ç§»åãã[ãªãã·ã§ã³]ã¿ãã®åããŒãžã§ãããã¹ãŠã®ãã£ãŒã«ãã§[ã°ããŒãã«ã䜿çš]ã«å€ãèšå®ããŸãã
ãããã®æé ã®åŸããµã€ãã®ãã¹ãŠã®ããŒãžããããŒãžã¿ã€ãã«ãæ¶ããŸãã 次ã«ãããã²ãŒã·ã§ã³ã®çŽåŸã«index.phpã«åŒã³åºããæ¿å ¥ããŠãã¡ã€ã³ããŒãžä»¥å€ã®ãã¹ãŠã®ããŒãžã«æ»ãå¿ èŠããããŸãã
</nav> <?php if (!$is_home_page): ?> <div class="main-heading"> <h1><?php echo $this->getTitle();?></h1> </div> <?php endif;?>
次ã«ãçµæã®ãããã¯ãã¹ã¿ã€ã«ããå¿ èŠããããŸãã ç»åã®/h1-bg.pngãã¡ã€ã«ã«ããããŒã®èæ¯ãä¿åããã¹ã¿ã€ã«ã«ãŒã«ãè¿œå ããŸãã
ã³ãŒãã衚瀺
.main-heading { margin: 30px 0; padding-left: 20px; background: transparent url(../images/h1-bg.png); } .main-heading h1 { display: inline-block; margin: 0; padding: 0 10px; background: url(../images/bg.png); color: #7e7e7e; text-transform: uppercase; font: 40px/40px 'Oswald', sans-serif; }
ããã¿ãŒ
次ã«ããã³ãã¬ãŒãã®æãé£ããéšåã«é²ã¿ãŸãã ç»åãåãåããç»åãã©ã«ãã«ä¿åããŸããã
images / footer-logo.png-ããã¿ãŒããŽ
images / social.png-倧ããªã¢ã€ã³ã³ã®ã¹ãã©ã€ã
images / social-small.png-å°ããªã¢ã€ã³ã³ã®ã¹ãã©ã€ã
ãã¹ãŠã®ãªãœãŒã¹ã®æºåãã§ãããããµã€ãããããèŠãŠã¿ãŸãããã 2ã€ã®åã§æ§æãããŠããŸãã åéã§ããã¹ãã移åããããã®ãã€ãã£ããµããŒãã¯äžè¬çãªãã©ãŠã¶ã§ã¯ååã«ãµããŒããããŠããªãããã2åã¡ãã¥ãŒãäœæããã®ãã¯ããã«ç°¡åã«ãªããŸããã ãããè¡ãã«ã¯ã[ã¡ãã¥ãŒ]-> [ã¡ãã¥ãŒãããŒãžã£ãŒ]ã»ã¯ã·ã§ã³ã§ã[ããŒã ]ã[ããŒãžã§ã³æ å ±]ã[ãµãŒãã¹]ã[ããŒãããŒ]ã[ãµããŒã]ã[é£çµ¡å ]ãå«ããµã€ããããã®å·Šã¡ãã¥ãŒãäœæããŸãã ã¡ãã¥ãŒé ç®ã¯é¢é£èšäºã«ãªã³ã¯ããå¿ èŠããããŸãã ãããã®2ã€ã®ã¡ãã¥ãŒã®ããããã«ã€ããŠããµã€ããããå·Šããã³ãµã€ããããå³ã®äœçœ®ãäœæããæ°ããã¢ãžã¥ãŒã«ãµã€ããããå·Šããã³ãµã€ããããå³ãä»ããŠã¡ãã¥ãŒãäœçœ®ã«é¢é£ä»ããå¿ èŠããããŸãã [詳现èšå®]ã¿ãã®[ã¡ãã¥ãŒã¯ã©ã¹ãµãã£ãã¯ã¹]ãã£ãŒã«ãã«ã¢ãžã¥ãŒã«ãè¿œå ããå Žåãâsitemapå€ãæ¿å ¥ããŠããã®ã¿ã€ãã®ã¡ãã¥ãŒãCSSã¹ã¿ã€ã«ã®ä»ã®ã¡ãã¥ãŒãšåºå¥ããŸãã
次ã«ãindex.phpãã¡ã€ã«ã®ããã¿ãŒãããã¯ã«ã¬ã€ã¢ãŠããäœæããŸãã
<footer> <div class="footer-content"> <div class="twitter"> <h3 class="footer-heading"><?php echo JText::_('TPL_WHITESQUARE_TWITTER_FEED_TITLE');?></h3> <time datetime="2012-10-23"><a href="#" class="twitter-time">23 oct</a></time> <p>In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean aug</p> </div> <div class="sitemap"> <h3 class="footer-heading"><?php echo JText::_('TPL_WHITESQUARE_SITEMAP_TITLE');?></h3> <div class="column first"> <jdoc:include type="modules" name="sitemap-left"/> </div> <div class="column"> <jdoc:include type="modules" name="sitemap-right"/> </div> </div> <div class="social"> <h3 class="footer-heading"><?php echo JText::_('TPL_WHITESQUARE_SOCIAL_TITLE');?></h3> <a href="http://twitter.com/" class="social-icon twitter-icon"></a> <a href="http://facebook.com/" class="social-icon facebook-icon"></a> <a href="http://plus.google.com/" class="social-icon google-plus-icon"></a> <a href="http://vimeo.com/" class="social-icon-small vimeo-icon"></a> <a href="http://youtube.com/" class="social-icon-small youtube-icon"></a> <a href="http://flickr.com/" class="social-icon-small flickr-icon"></a> <a href="http://instagram.com/" class="social-icon-small instagram-icon"></a> <a href="/index.php?option=com_content&view=category&id=2&format=feed&type=rss" class="social-icon-small rss-icon"></a> </div> <div class="footer-logo"> <a href="/"><img src="<?php echo $template_url;?>/images/footer-logo.png" alt="<?php echo JText::_('TPL_WHITESQUARE_LOGO');?>"></a> <p><?php echo JText::_('TPL_WHITESQUARE_COPYRIGHT');?></p> </div> </div> </footer>
ãã®ãããã¯ã¯ããã€ãã®ããŒã«ã©ã€ãºãããè¡ã䜿çšããŸããããŽãããã¯ã§è¡ã£ãããã«ãããŒã«ã©ã€ãºãã¡ã€ã«ã«è¿œå ããŸãããã
TPL_WHITESQUARE_TWITTER_FEED_TITLE="Twitter feed" TPL_WHITESQUARE_SITEMAP_TITLE="Sitemap" TPL_WHITESQUARE_SOCIAL_TITLE="Social networks" TPL_WHITESQUARE_COPYRIGHT="Copyright © 2012 Whitesquare. A <a href="http://pcklab.com">pcklab</a> creation"
template.cssã«ã¹ã¿ã€ã«ãèšè¿°ããŸãã
ã³ãŒãã衚瀺
.footer-content { margin: auto; padding: 10px 0; max-width: 960px; height: 90px; } .footer-heading { margin: 0 0 10px 0; border-bottom: 1px solid #919191; color: #fff; text-transform: uppercase; font: 14px 'Oswald', sans-serif; } footer a { color: #dbdbdb; } footer p { margin: 5px 0; } .twitter-time { color: #b4aeae; } .twitter { float: left; width: 300px; } .twitter p { padding-right: 15px; } .sitemap { float: left; margin-left: 20px; padding-right: 15px; width: 150px; } .sitemap .column { display: inline-block; margin-left: 40px; } .sitemap .column.first { margin-left: 0; } .menu-sitemap { margin: 0; padding: 0; list-style-type: none; } .sitemap a { display: block; margin-bottom: 5px; text-decoration: none; font-size: 12px; } .sitemap a:hover { text-decoration: underline; } .social { float: left; margin-left: 20px; width: 130px; } .social-icon { display: inline-block; margin-right: 10px; width: 30px; height: 30px; background: url(../images/social.png) no-repeat; } .social-icon-small { display: inline-block; margin: 5px 6px 0 0; width: 16px; height: 16px; background: url(../images/social-small.png) no-repeat; } .twitter-icon { background-position: 0 0; } .facebook-icon { background-position: -30px 0; } .google-plus-icon { background-position: -60px 0; } .vimeo-icon { background-position: 0 0; } .youtube-icon { background-position: -16px 0; } .flickr-icon { background-position: -32px 0; } .instagram-icon { background-position: -48px 0; } .rss-icon { background-position: -64px 0; } .footer-logo { float: right; margin-top: 20px; text-align: right; font-size: 10px; }
ãã®çµæããµã€ãã®å éšããŒãžã¯æ¬¡ã®ããã«ãªããŸãã
ã¡ã€ã³ããŒãž
ã¡ã€ã³ããŒãžã¯æ¢ã«äœæãããŠããŸãã ãããã³ã³ãã³ãã§åããããšã¯ãJoomlaïŒãã³ãã¬ãŒããäœæããç¯å²ãè¶ ããŠããŸãããpsdã¬ã€ã¢ãŠãããå šäœåãåäœæããã¡ã€ã³ããŒãžãã³ã³ãã³ãã§åããããšããŸãã ããŒãžã«ã¯ç®¡çããã«ã®ã³ã³ãã³ãã衚瀺ãããããããµã€ãææè ã¯ãã®ããã«ã«å ¥ãããã³ãã¬ãŒãèªäœã®ã³ãŒããå€æŽããã«ããŒãžäžã®äœããå€æŽã§ããŸãã ãŸãããã®ããŒãžã®ãã¹ãŠã®ç»åãåãåããJoomlaïŒãã€ã³ã¹ããŒã«ãããŠãããã©ã«ããŒã®ã«ãŒãã«ããimagesãã©ã«ããŒã«ä¿åããå¿ èŠããããŸãã ãããã®ç»åã次ã®ããã«åŒã³åºããŸãããã
home-1.png
home-2.png
home-3.png
home-4.png
home-5.png
clients-1.png
clients-2.png
clients-3.png
clients-4.png
clients-5.png
clients-6.png
clients-7.png
次ã«ã管çããã«ã®ã¡ã€ã³ããŒãžã®ç·šéãã©ãŒã ã«ç§»åãã[ã³ã³ãã³ã]-> [èšäºãããŒãžã£ãŒ]-> [ããŒã ]ãã¯ãªãã¯ãã[ã³ã³ãã³ã]ã¿ãã§[ããŒã«]-> [ãœãŒã¹ã³ãŒã]ãã¯ãªãã¯ããŠãããŒãžã³ã³ãã³ããå ¥åããŸãïŒ
ã³ãŒãã衚瀺
<div class="slider"> <div class="content"> <div class="title">Fusce vitae nibn quis diam fermentum</div> <div class="subtitle">Etiam adipscing ultricies commodo.</div> </div> <ol class="links"> <li class="active">Lorem ipsum dolop</li> <li>Ultricies pellentesque</li> <li>Aliquam ipsum</li> <li>Nullam sed mauris ut</li> </ol> </div> <article class="teaser" style="width: 50%;"> <div class="heading"> <h3 class="heading-text">About whitesquare</h3> </div> <figure class="image"><img src="images/home-1.png" alt="" width="135" height="135" /></figure> In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean augue arcu, convallis ac vulputate vitae, mollis non lectus. Donec hendrerit lacus ac massa ornare hendrerit sagittis lacus tempor. Vivamus et dui et neque accumsan varius et ut erat. Enean augue arcu, convallis ac ultrices. <p class="more"><a href="about-us/">Read more</a></p> </article> <article class="teaser" style="width: 50%;"> <div class="heading"> <h3 class="heading-text">A word from our ceo</h3> </div> <figure class="image"><img src="images/home-2.png" alt="" width="135" height="135" /></figure> <i>In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean augue arcu, convallis ac vulputate vitae, mollis non lectus. Donec hendrerit lacus ac massa ornare hendrerit sagittis lacus tempor. Vivamus et dui et neque accumsan varius et ut erat. Enean augue arcu, convallis ac ultrices.</i> <p class="more">Yane Naumoski, CEO</p> </article> <article class="teaser" style="width: 33%;"> <div class="heading"> <h3 class="heading-text">Services</h3> </div> In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean augue arcu, convallis ac vulputate vitae, mollis non lectus. Donec hendrerit lacus ac massa ornare hendrerit sagittis lacus tempor. Vivamus et dui et neque accumsan varius et ut erat. Enean augue arcu, convallis ac ultrices. <p class="more"><a href="services/">Read more</a></p> </article> <article class="teaser" style="width: 33%;"> <div class="heading"> <h3 class="heading-text">Our teams</h3> </div> <div class="small-block"> <figure class="image"><img src="images/home-3.png" alt="" width="35" height="35" /></figure> <h4 class="teaser-small-heading">Lorem ipsum</h4> <p class="teaser-small-paragraph">In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et</p> </div> <div class="small-block"> <figure class="image"><img src="images/home-4.png" alt="" width="35" height="35" /></figure> <h4 class="teaser-small-heading">Lorem ipsum</h4> <p class="teaser-small-paragraph">In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et</p> </div> <div class="small-block"> <figure class="image"><img src="images/home-5.png" alt="" width="35" height="35" /></figure> <h4 class="teaser-small-heading">Lorem ipsum</h4> <p class="teaser-small-paragraph">In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et</p> </div> </article> <article class="teaser" style="width: 33%;"> <div class="heading"> <h3 class="heading-text">24/7/365 Support</h3> </div> <p class="teaser-small-paragraph">In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean augue arcu, convallis ac vulputate vitae, mollis non lectus. Donec hendrerit lacus ac massa ornare hendrerit sagittis lacus tempor. Vivamus et dui et neque accumsan varius et ut erat. Enean augue arcu, convallis ac ultrices.</p> <p class="teaser-small-paragraph more"><a href="contact/">Read more</a></p> </article> <article class="teaser clients" style="width: 100%;"> <div class="heading"> <h3 class="heading-text">Our clients</h3> </div> <img src="images/clients-1.png" alt="" width="61" height="83" /> <img src="images/clients-2.png" alt="" width="74" height="83" /> <img src="images/clients-3.png" alt="" width="163" height="83" /> <img src="images/clients-4.png" alt="" width="72" height="83" /> <img src="images/clients-5.png" alt="" width="104" height="83" /> <img src="images/clients-6.png" alt="" width="78" height="83" /> <img src="images/clients-7.png" alt="" width="87" height="83" /></article>
ä»ããã®ã³ãŒããå®ååããããšãæ®ã£ãŠããŸãã
ã³ãŒãã衚瀺
.slider { margin-top: 30px; text-transform: uppercase; font-weight: 300; font-family: 'Oswald', sans-serif; } .slider .content { padding: 30px 40px; height: 220px; background: #e2e2e2; } .slider .title { color: #5a5a5a; font-size: 42px; } .slider .subtitle { color: #acacac; font-size: 20px; } .slider .links { display: block; margin: 0; padding: 10px; border-bottom: 1px solid #e7e7e7; background: #f3f3f3; color: #8f8f8f; counter-reset: list 0; } .slider .links li { display: inline-block; margin-right: 55px; font-size: 18px; line-height: 23px; cursor: pointer; } .slider .links li.active { color: #29c5e6; } .slider .links li:before { display: inline-block; margin-right: 10px; width: 23px; background: #8f8f8f; color: #fff; content: counter(list) " "; counter-increment: list; text-align: center; font-size: 16px; cursor: pointer; } .slider .links li.active:before { background: #29c5e6; } .teaser { display: block; float: left; box-sizing: border-box; padding: 0 10px; vertical-align: top; } .teaser .heading { margin: 40px 0 20px; height: 16px; background: transparent url(../images/h1-bg.png); } .teaser .bullet { display: inline-block; margin-right: -4px; width: 16px; height: 16px; background: #29c5e6; vertical-align: top; } .teaser .heading-text { display: inline-block; margin: 0; padding: 0 10px; background: url(../images/bg.png); text-transform: uppercase; font: normal 14px/16px 'Oswald', sans-serif; } .teaser .image { float: left; margin-right: 20px; } .teaser .small-block { margin-bottom: 10px; } .teaser .small-block .image { margin-right: 10px; } .teaser .more, .teaser .more a { margin-bottom: 0; color: #525252; } .teaser-small-heading { display: block; margin: 0; color: #525252; text-transform: uppercase; font-weight: normal; font-size: 11px; } .teaser-small-paragraph { margin: 4px 0; font-size: 11px; } .clients img { display: inline-block; margin-right: 30px; }
ãµã€ãããŒ
psdã¬ã€ã¢ãŠããèŠããšãå·ŠåŽã®åãååšããããšã«ãããå éšããŒãžãã¡ã€ã³ããŒãžãšç°ãªãããšãããããŸãã
ããŒãžã³ã³ãã³ããåŒã³åºãåã«ãindex.phpã«è¿œå ããŸãããã
<?php if (!$is_home_page): ?> <aside> <nav class="aside-navigation"> <jdoc:include type="modules" name="submenu"/> </nav> <h2 class="sidebar-heading"><?php echo JText::_('TPL_WHITESQUARE_OFFICES_TITLE');?></h2> <div class="map"> <img src="/images/sample.png" width="230" height="180" alt="<?php echo JText::_('TPL_WHITESQUARE_OFFICES_TITLE');?>"> </div> </aside> <?php endif;?> <jdoc:include type="component"/>
ãã®ãããã¯ã¯ãã¡ã€ã³ããŒãžãé€ããã¹ãŠã®ããŒãžã«è¡šç€ºãããŸããããã§ãã¬ã€ã¢ãŠãã¯2ã€ã®éšåã§æ§æãããŠããŸãïŒãµãã¡ãã¥ãŒã®ããã²ãŒã·ã§ã³ãšãªãã£ã¹ã®ããããããã¯ã衚瀺ããŸãã
å®å šãæãããã«ããµãã¡ãã¥ãŒãšããŠããµã€ãäžã®ãã¹ãŠã®æçš¿ã®ãªã¹ãã衚瀺ããããšããå§ãããŸãããµãã¡ãã¥ãŒã¯ãä»ã®ã¿ã€ãã®ã¡ãã¥ãŒãäœæããã®ãšåãæ¹æ³ã§äœæãããŸããã¿ã€ãã«ã®èšäºãäœæïŒLorem ipsumãDonec tincidunt laoreetãVestibulum elitãEtiam pharetraãPhasellus placeratã次ã«ããµãã¡ãã¥ãŒãšããæ°ããã¡ãã¥ãŒãäœæããäžèšã®ããŒãžãè¿œå ããŸãããã®åŸãtemplateDetails.xmlã«ãµãã¡ãã¥ãŒäœçœ®ãäœæãããã®äœçœ®ãšãµãã¡ãã¥ãŒã¡ãã¥ãŒã䜿çšããŠãµãã¡ãã¥ãŒã¢ãžã¥ãŒã«ãäœæããŸããã¢ãžã¥ãŒã«ããããã£ã®[詳现èšå®]ã¿ãã§ãã¡ãã¥ãŒã¯ã©ã¹ãµãã£ãã¯ã¹ãæå®ããŸããã-asideã
ããããããã¯ã¯ç¹å¥ãªåé¡ãåŒãèµ·ãããŸãããæ°ããããŒã«ã©ã€ãºããŒãè¿œå ããããšãå¿ããªãã§ãã ããã
TPL_WHITESQUARE_OFFICES_TITLE="Our offices"
ãããã®ã¹ã¿ããšããŠã空ã®sample.pngãã¡ã€ã«ãäœæããJoomlaïŒã®ã«ãŒãã«ããimagesãã©ã«ããŒã«ä¿åããŸãã
çµè«ãšããŠãã¬ã€ã¢ãŠãã®ã¹ã¿ã€ã«ãè¿œå ããå¿ èŠããããŸãã
ã³ãŒãã衚瀺
.aside-navigation { border: 1px solid #e7e7e7; background: #f3f3f3; } .menu-aside { margin: 0; padding: 0; text-transform: uppercase; } .menu-aside li { padding: 10px; border-top: 1px solid #e7e7e7; list-style: square inside; font: 14px 'Oswald', sans-serif; font-weight: 300; } .menu-aside li:first-child { border: none; } .menu-aside li.current-menu-item, .menu-aside li.current-menu-item a { color: #29c5e6; } .menu-aside a { color: #8f8f8f; text-decoration: none; } .sidebar-heading { margin: 30px 0 0 0; padding: 10px; background: #29c5e6; color: #fff; text-transform: uppercase; font: 14px 'Oswald', sans-serif; } .map { margin: 0 0 30px 0; padding: 10px; border: 1px solid #e7e7e7; background: #f3f3f3; }
ç§éã«ã€ããŠã®ããŒãž
次ã«ãAbout usããŒãžã®å 容ãå ¥åããŸããããã¡ã€ã³ããŒãžãåããã®ãšåãããã«ãç»åãæºåããJoomlaãµã€ãã®ç»åãã©ã«ãã«è¿œå ããŸãïŒãã®ãããªç»åã«ååãä»ãïŒ
çŽ-1.png
ã«ã€ããŠ-2.png
ããŒã Nobriga.jpg
ããŒã Pittsley.jpg
ããŒã Rousselle.jpg
ããŒã Shoff.jpg
ããŒã Simser.jpg
ããŒã Tondrea.jpg
ããŒã Venuti.jpgã
team-Wollman.jpg
次ã«ã管çããã«ã®èšäºç·šéã«ç§»åããããŒã«->ãœãŒã¹ã³ãŒãã¡ãã¥ãŒããã³ãŒããè¿œå ããŸãã
ã³ãŒãã衚瀺
<blockquote class="main-blockquote"> <p>âQUISQUE IN ENIM VELIT, AT DIGNISSIM EST. NULLA UL CORPER, DOLOR AC PELLENTESQUE PLACERAT, JUSTO TELLUS GRAVIDA ERAT, VEL PORTTITOR LIBERO ERAT.â</p> <cite>John Doe, Lorem Ipsum</cite></blockquote> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean non neque ac sem accumsan rhoncus ut ut turpis. In hac habitasse platea dictumst. Proin eget nisi erat, et feugiat arcu. Duis semper porttitor lectus, ac pharetra erat imperdiet nec. Morbi interdum felis nulla. Aenean eros orci, pellentesque sed egestas vitae, auctor aliquam nisi. Nulla nec libero eget sem rutrum iaculis. Quisque in enim velit, at dignissim est. Nulla ullamcorper, dolor ac pellentesque placerat, justo tellus gravida erat, vel porttitor libero erat condimentum metus. Donec sodales aliquam orci id suscipit. Proin sed risus sit amet massa ultrices laoreet quis a erat. Aliquam et metus id erat vulputate egestas. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p> <p>Donec vel nisl nibh. Aenean quam tortor, tempus sit amet mattis dapibus, egestas tempor dui. Duis vestibulum imperdiet risus pretium pretium. Nunc vitae porta ligula. Vestibulum sit amet nulla quam. Aenean lacinia, ante vitae sodales sagittis, leo felis bibendum neque, mattis sagittis neque urna vel magna. Sed at sem vitae lorem blandit feugiat.</p> <p>Donec vel orci purus, ut ornare orci. Aenean rutrum pellentesque quam. Quisque gravida adipiscing augue, eget commodo augue egestas varius. Integer volutpat, tellus porta tincidunt sodales, lacus est tempus odio, fringilla blandit tortor lectus ut sem. Pellentesque nec sem lacus, sit amet consequat neque. Etiam varius urna quis arcu cursus in consectetur dui tincidunt. Quisque arcu orci, lacinia eget pretium vel, iaculis pellentesque nibh. Etiam cursus lacus eget neque viverra vestibulum. Aliquam erat volutpat. Duis pulvinar tellus ut urna facilisis mollis. Maecenas ac pharetra dui. Pellentesque neque ante, luctus eget congue eget, rhoncus vel mauris. Duis nisi magna, aliquet a convallis non, venenatis at nisl. Nunc at quam eu magna malesuada dignissim. Duis bibendum iaculis felis, eu venenatis risus sodales non. In ligula mi, faucibus eu tristique sed, vulputate rutrum dolor.</p> <p><img class="image" src="/images/about-1.png" alt="about-1" width="320" height="175" /><img class="image pull-right" src="/images/about-2.png" alt="about-2" width="320" height="175" /></p> <h2 class="content-heading">Our team</h2> <div class="team-row"> <figure><img class="image" src="/images/team-Doe.jpg" alt="" width="96" height="96" /><figcaption>John Doe<span class="occupation">ceo</span></figcaption></figure> <figure><img class="image" src="/images/team-Pittsley.jpg" alt="" width="96" height="96" /><figcaption>Saundra Pittsley<span class="occupation">team leader</span></figcaption></figure> <figure><img class="image" src="/images/team-Pittsley.jpg" alt="" width="96" height="96" /><figcaption>Julio Simser<span class="occupation">senior developer</span></figcaption></figure> <figure><img class="image" src="/images/team-Simser.jpg" alt="" width="96" height="96" /><figcaption>Margery Venuti<span class="occupation">senior developer</span></figcaption></figure> <figure><img class="image" src="/images/team-Venuti.jpg" alt="" width="96" height="96" /><figcaption>Fernando Tondrea<span class="occupation">developer</span></figcaption></figure> </div> <div class="team-row"> <figure><img class="image" src="/images/team-Tondrea.jpg" alt="" width="96" height="96" /><figcaption>Ericka Nobriga<span class="occupation">art director</span></figcaption></figure> <figure><img class="image" src="/images/team-Nobriga.jpg" alt="" width="96" height="96" /><figcaption>Cody Rousselle<span class="occupation">senior ui designer</span></figcaption></figure> <figure><img class="image" src="/images/team-Rousselle.jpg" alt="" width="96" height="96" /><figcaption>Erik Wollman<span class="occupation">senior ui designer</span></figcaption></figure> <figure><img class="image" src="/images/team-Wollman.jpg" alt="" width="96" height="96" /><figcaption>Dona Shoff<span class="occupation">ux designer</span></figcaption></figure> <figure><img class="image" src="/images/team-Shoff.jpg" alt="" width="96" height="96" /><figcaption>Darryl Brunton<span class="occupation">ui designer</span></figcaption></figure> </div>
ãããŠãtemplate.cssã®ã¹ã¿ã€ã«ïŒ
ã³ãŒãã衚瀺
.main-blockquote { margin: 0; padding: 10px 20px; background: #29c5e6; font-weight: 300; font-family: 'Oswald', sans-serif; } .main-blockquote p { margin: 0; color: #fff; font-style: italic; font-size: 33px; } .main-blockquote cite { display: block; margin: 0; color: #1d8ea6; text-align: right; font-style: normal; font-size: 20px; } .content-heading { clear: both; margin: 30px 0 0 0; padding: 0 10px; background: #29c5e6; color: #fff; text-transform: uppercase; font: 30px 'Oswald', sans-serif; font-weight: 300; } .footer-content { margin: auto; padding: 10px 0; max-width: 960px; height: 90px; } .footer-heading { margin: 0 0 10px 0; border-bottom: 1px solid #919191; color: #fff; text-transform: uppercase; font: 14px 'Oswald', sans-serif; } footer a { color: #dbdbdb; } footer p { margin: 5px 0; } .team-row figure { display: inline-block; margin: 20px 0 0; font-weight: 300; font-family: 'Oswald', sans-serif; } .team-row figure + figure { margin-left: 43px; } .team-row figcaption { margin-top: 5px; font-weight: 300; font-size: 16px; } .team-row .occupation { display: block; color: #29c5e6; font-size: 14px; }
æ€çŽ¢ããŒãž
åé ã§ãããããŒãã³ãã¬ãŒããäœæãããšãã«ãæ€çŽ¢ãè¿œå ããŸãããæ€çŽ¢çµæã¯ãçŸæç¹ã§ã¯ããŸãèŠæ ãã®æªãããŒãžã§ãã圌女ã«ã¹ã¿ã€ã«ãè¿œå ããŸãããã
ã³ãŒãã衚瀺
.search { margin-left: 280px; padding-bottom: 50px; } .icon-search { display: inline-block; width: 21px; height: 21px; background: url(../images/search.png) center center no-repeat; } .search .btn-toolbar { height: 30px; }
æ€çŽ¢ã¢ãžã¥ãŒã«ã¯ããã³ãã¬ãŒãã«ãã¿ã³ã®æ€çŽ¢ã¢ã€ã³ã³ãå¿ èŠã§ããããšãæäŸããŸããããã¶ã€ã³ã«ã¯ãªããããèªåã§è¿œå ããå¿ èŠããããŸãããããè¡ãã«ã¯ãè«çŒé¡ç»åã®ããç¡æã®ã¢ã€ã³ã³ãèŠã€ããŠããã³ãã¬ãŒãã®ç»åãã©ã«ãã«ããsearch.pngãšããååã§ä¿åããŸããç»åãµã€ãºã¯16x16ãã¯ã»ã«ã§ããå¿ èŠããããŸãã
ããŒãžãå°å·
index.phpã«å ããŠãå¥ã®2ã€ã®phpãã¡ã€ã«ããã³ãã¬ãŒãã®ã«ãŒãã«ãããŸãããããã®æåã¯component.phpã§ãããã®ãã¡ã€ã«ã«ã¯ããŠãŒã¶ãŒãåèšäºã®ã³ã³ãã³ãã®å°å·ã¢ã€ã³ã³ãã¯ãªãã¯ããŠéãããšãã§ããå°å·ããŒãžã衚瀺ãããŸããæåã¯ãã¡ãã¥ãŒã®[ã³ã³ãã³ã]-> [èšäºãããŒãžã£ãŒ]-> [ãªãã·ã§ã³]-> [管çããã«ã®å°å·ã¢ã€ã³ã³ã衚瀺]ã䜿çšããŠãèšäºã®ãããã®ã¢ã€ã³ã³ã®è¡šç€ºããªãã«ããŸããããã ãããŠãããŒãµã«ãã³ãã¬ãŒããäœæããŠããããããã®ãã¡ã€ã«ãäœæããå¿ èŠããããŸãã次ã®å 容ãå ¥åããŸãã
<?php defined('_JEXEC') or die; $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $menu = $app->getMenu(); $lang = JFactory::getLanguage(); $template_url = $this->baseurl . '/templates/' . $this->template; $doc->addStyleSheet($template_url . '/css/template.css'); $doc->addStyleSheet('http://fonts.googleapis.com/css?family=Oswald:400,300'); $is_home_page = $menu->getActive() == $menu->getDefault($lang->getTag()); ?> <!doctype html> <html> <head> <jdoc:include type="head"/> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <div class="wrapper"> <?php if (!$is_home_page): ?> <div class="main-heading"> <h1><?php echo $this->getTitle();?></h1> </div> <?php endif;?> <jdoc:include type="component"/> </div> </body> </html>
ã芧ã®ãšããããã®ãã¡ã€ã«ã¯index.phpãã¡ã€ã«ã®æ§é ãå®å šã«ç¹°ãè¿ããŠããŸããå¯äžã®éãã¯ãå°å·ã«äžèŠãªãããã¯ïŒããããŒãããã¿ãŒããµã€ãã«ã©ã ïŒãåé€ããããšã§ãã
ãšã©ãŒããŒãž
èšå ¥ããæåŸã®ããŒãžã¯ãšã©ãŒåºåããŒãžã§ãããã®ãã³ãã¬ãŒãã¯error.phpãã¡ã€ã«ã«èšè¿°ãããŠããŸãããã®ãã¡ã€ã«ã®ã³ãŒãã¯æ¬¡ã®ããã«ãªããŸãã
<?php defined('_JEXEC') or die; $template_url = $this->baseurl . '/templates/' . $this->template; ?> <!doctype html> <html> <head> <title><?php echo $this->error->getCode(); ?> <?php echo $this->error->getMessage(); ?></title> <link rel="stylesheet" href="<?php echo $template_url; ?>/css/template.css" type="text/css"/> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oswald:400,300" type="text/css"/> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <div class="wrapper"> <header> <a href="/"><img src="<?php echo $template_url;?>/images/logo.png" alt="<?php echo JText::_('TPL_WHITESQUARE_LOGO');?>"></a> </header> <div class="main-heading"> <h1><?php echo JText::_('TPL_WHITESQUARE_ERROR');?></h1> </div> <?php echo $this->error->getCode(); ?> <?php echo $this->error->getMessage(); ?> </div> </body> </html>
äžè¬ã«ãããã®æ§é ã¯åã®ããŒãžãšäŒŒãŠããŸãããããã€ãã®ãã¥ã¢ã³ã¹ããããŸãããŸãããã®ããŒãžã¿ã€ãã¯ã<jdocïŒinclude type = "..." />ããšãã圢åŒã®æ§é ããµããŒãããŠããªãããããã¹ãŠã®ã¢ãžã¥ãŒã«ãšãã€ãããã¯ããããããã¯ãããæŸæ£ããå¿ èŠããã£ããããããããããã¯å ã®ã¿ã°ã¯æåã§ç»é²ãããŸããæ°ããããŒã«ã©ã€ãºããŒãããŒãžããããŒã«è¡šç€ºãããŠããŸãïŒTPL_WHITESQUARE_ERRORã§å€ã¯ãErrorãã§ããããŒã«ã©ã€ãºãã¡ã€ã«ã«ç»é²ããããšãå¿ããªãã§ãã ããããŸããããŒãžã®ã³ã³ãã³ãé åã«ã¯ãã³ãŒããšãšã©ãŒããã¹ããšãšãã«ã¡ãã»ãŒãžã衚瀺ãããŸãã
ãããã«
ãããJoomlaïŒãã³ãã¬ãŒãã®äœæã§ã çµãã£ããå®æãããããžã§ã¯ãã¯ããããããŠã³ããŒãã§ããŸãã
ãã®ãã³ãã¬ãŒãã®ã¬ã€ã¢ãŠãã«é¢ããä»ã®èšäºãžã®ãªã³ã¯ïŒ
WebããŒãžã®äœææ¹æ³ã ããŒã1
WebããŒãžã®äœææ¹æ³ãããŒã2-
æå°ã®ããŒãã¹ãã©ããã¬ã€ã¢ãŠããBEMã«ããããŒãžã¬ã€ã¢ãŠãïŒxnimïŒã
ããŒãã¹ãã©ããã¬ã€ã¢ãŠãïŒlexnekrïŒã«åºã¥ããŠ1C-Bitrixãã³ãã¬ãŒããäœæããŸã
WordPressã®ããŒããäœæããæ¹æ³