Новости Joomla

Как триггерить события для плагинов на манер Joomla 5+?В Joomla 6 должны удалить метод...

Как триггерить события для плагинов на манер Joomla 5+?В Joomla 6 должны удалить метод...

👩‍💻 Как триггерить события для плагинов на манер Joomla 5+?В Joomla 6 должны удалить метод triggerEvent(), с помощью которого раньше вызывались события для плагинов. Теперь чтобы в своём коде вызвать событие для плагина и получить от него результаты нужно:- создать объект класса события- передать в него параметры

use Joomla\CMS\Event\AbstractEvent;use Joomla\CMS\Factory;use Joomla\CMS\Plugin\PluginHelper;// Грузим плагины нужных группPluginHelper::importPlugin('system');// Создаём объект события$event = AbstractEvent::create('onAfterInitUniverse', [    'subject' => $this,    'data'    => $data, // какие-то данные    'article' => $article, // ещё материал вдовесок    'product' => $product, // и товаров подвезли]);// Триггерим событиеFactory::getApplication()->getDispatcher()->dispatch(    $event->getName(), // Тут можно строку передать 'onAfterInitUniverse'    $event);// Получаем результаты// В случае с AbstractEvent это может быть не 'result',// а что-то ещё - куда сами отдадите данные.// 2-й аргумент - значение по умолчанию, // если не получены результаты$results = $event->getArgument('result', []);
Плюсы такого подхода - вам не нужно запоминать порядок аргументов и проверять их наличие. Если вы написали свой класс события, то в плагине можно получать аргументы с помощью методов $event->getArticle(), $event->getData(), $event->getProduct() и подобными - реализуете сами под свои нужды. Если такой класс события написали, то создаёте экземпляр своего класса события и укажите его явно в аргументе eventClass
use Joomla\Component\MyComponent\Administrator\Event\MyCoolEvent;$event = MyCoolEvent::create('onAfterInitUniverse', [    'subject'    => $this,    'eventClass' => MyCoolEvent::class, // ваш класс события    'data'       => $data, // какие-то данные    'article'    => $article, // ещё материал вдовесок    'product'    => $product, // и товаров подвезли]);
Ожидаемо, что класс вашего события будет расширять AbsractEvent или другие классы событий Joomla.🙁 Есть неприятный нюанс - нельзя просто так вызывать событие и ничего не передать в аргументы. Аргумент subject обязательный. Но если вы всё-таки не хотите туда ничего передавать - передайте туда пустой stdClass или объект Joomla\registry\Registry.
@joomlafeed#joomla #php #webdev

0 Пользователей и 1 Гость просматривают эту тему.
  • 2 Ответов
  • 1771 Просмотров
*

dancer

  • Новичок
  • 6
  • 0 / 0
У меня есть шаблон только с одной левой колонкой хочу добавить правую точно такую же как это сделать??Помогите пожалуйста! :'(
Вот файл index.php
Код
defined( '_JEXEC' ) or die( 'Restricted access' );

include_once (dirname(__FILE__).DS.'ja_vars_1.5.php');

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">

<head>
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>

<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/typo.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/ja.vm.css" type="text/css" />
<meta name="google-site-verification" content="jOdysul_De_KxBN1DHyf9LFEHW2X-M8oYZShGDhQYdo" />

<script language="javascript" type="text/javascript">
var siteurl = '<?php echo $tmpTools->baseurl();?>';
var tmplurl = '<?php echo $tmpTools->templateurl();?>';
</script>

<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script>
<!-- js for dragdrop -->

<!-- Menu head -->
<?php $jamenu->genMenuHead(); ?>

<link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo $tmpTools->getParam(JA_TOOL_COLOR); ?>.css" rel="stylesheet" type="text/css" />

<!--[if lte IE 6]>
<style type="text/css">
.clearfix {height: 1%;}
img {border: none;}
</style>
<![endif]-->

<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix {display: inline-block;}
</style>
<![endif]-->

<?php if ($tmpTools->isIE6()) { ?>
<!--[if lte IE 6]>
<link href="<?php echo $tmpTools->templateurl(); ?>/css/ie6.php" rel="stylesheet" type="text/css" />
<script type="text/javascript">
window.addEvent ('load', makeTransBG);
function makeTransBG() {
makeTransBg($$('img'));
}
</script>
<![endif]-->
<?php } ?>
</head>

<body id="bd" class="<?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>" >
<a name="Top" id="Top"></a>
<ul class="accessibility">
<li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>
<li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-mainnav" title="<?php echo JText::_("Skip to main navigation");?>"><?php echo JText::_("Skip to main navigation");?></a></li>
<li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-col1" title="<?php echo JText::_("Skip to 1st column");?>"><?php echo JText::_("Skip to 1st column");?></a></li>
<li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-col2" title="<?php echo JText::_("Skip to 2nd column");?>"><?php echo JText::_("Skip to 2nd column");?></a></li>
</ul>

<div id="ja-wrapper">
<div id="ja-wrapper-inner" class="clearfix">

<!-- BEGIN: HEADER -->
<div id="ja-headerwrap">
<div id="ja-header" class="clearfix">

<?php
$siteName = $tmpTools->sitename();
if ($tmpTools->getParam('logoType')=='image') { ?>
<h1 class="logo">
<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
</h1>
<?php } else {
$logoText = (trim($tmpTools->getParam('logoText'))=='')? $config->sitename : $tmpTools->getParam('logoText');
$sloganText = (trim($tmpTools->getParam('sloganText'))=='')? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText'); ?>
<h1 class="logo-text">
<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a>
</h1>
<p class="site-slogan"><?php echo $sloganText;?></p>
<?php } ?>

<?php if ($this->countModules('top')) { ?>
<div id="ja-vmcurrency">
<jdoc:include type="modules" name="top" style="xhtml" />
</div>
<?php } ?>

<?php if ($this->countModules('vm-cart')) { ?>
<div id="ja-vmcart">
<jdoc:include type="modules" name="vm-cart" style="xhtml" />
</div>
<?php } ?>

</div>
</div>
<!-- END: HEADER -->

<!-- BEGIN: MAIN NAVIGATION -->
<div id="ja-mainnavwrap">

<?php if ($this->countModules('user4')) { ?>
<div id="ja-search">
<jdoc:include type="modules" name="user4" style="raw" />
</div>
<?php } ?>

<div id="ja-mainnav">
<?php $jamenu->genMenu (0); ?>
</div>

</div>
<!-- END: MAIN NAVIGATION -->

<div id="ja-containerwrap<?php echo $divid; ?>">
<div id="ja-container" class="clearfix">

<!-- BEGIN: CONTENT -->
<div id="ja-mainbody" class="clearfix">

<jdoc:include type="message" />

<?php if($this->countModules('slideshow')) : ?>
<!-- BEGIN: SLIDESHOW -->
<div id="ja-topsl1">
<jdoc:include type="modules" name="slideshow" style="raw" />
</div>
<!-- END: SLIDESHOW -->
<?php endif; ?>

<?php if($this->countModules('vm-lp')) : ?>
<!-- BEGIN: LATEST PRODUCTS -->
<div id="ja-topsl2">
<jdoc:include type="modules" name="vm-lp" style="xhtml" />
</div>
<!-- END: LATEST PRODUCTS -->
<?php endif; ?>

<?php if($this->countModules('vm-fp')) : ?>
<!-- BEGIN: FEATURE PRODUCTS -->
<div id="ja-topsl3">
<jdoc:include type="modules" name="vm-fp" style="xhtml" />
</div>
<!-- END: FEATURE PRODUCTS -->
<?php endif; ?>

<?php if(!$tmpTools->isFrontPage()) : ?>
<div id="ja-pathway">
<strong>Вы здесь:</strong><jdoc:include type="module" name="breadcrumbs" />
</div>
<?php endif ; ?>

    <?php if($tmpTools->getParam('showFrontPage') || !$tmpTools->isFrontPage()) : ?>
<div id="ja-content" class="clearfix">
<jdoc:include type="component" />
</div>
<?php endif; ?>

<?php if($this->countModules('banner')) : ?>
<!-- BEGIN: BANNER -->
<div id="ja-banner">
<jdoc:include type="modules" name="banner" />
</div>

    <!-- END: BANNER -->
<?php endif; ?>

 <!-- BEGIN: JAZIN -->
    <div id="jazin-fp">
     <jdoc:include type="modules" name="ja-news" style="raw" />
    </div>
    <!-- END: JAZIN -->

<?php
$spotlight = array ('user1','user2','user5');
$botsl = $tmpTools->calSpotlight ($spotlight,99.5,50,'right');
if( $botsl ) {
?>
<!-- BEGIN: BOTTOM SPOTLIGHT -->
<div id="ja-botsl" class="clearfix">

 <?php if( $this->countModules('user1') ) {?>
 <div class="ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;">
<jdoc:include type="modules" name="user1" style="xhtml" />
 </div>
 <?php } ?>
 
 <?php if( $this->countModules('user2') ) {?>
 <div class="ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;">
<jdoc:include type="modules" name="user2" style="xhtml" />
 </div>
 <?php } ?>
 
 <?php if( $this->countModules('user5') ) {?>
 <div class="ja-box<?php echo $botsl['user5']['class']; ?>" style="width: <?php echo $botsl['user5']['width']; ?>;">
<jdoc:include type="modules" name="user5" style="xhtml" />
 </div>
 <?php } ?>

</div>
<!-- END: BOTTOM SPOTLIGHT -->
<?php } ?>
  
</div>
<!-- END: CONTENT -->
<?php if ($ja_col) { ?>
<!-- BEGIN: COLUMN -->
<div id="ja-col">
<jdoc:include type="modules" name="left" style="xhtml" />
<jdoc:include type="modules" name="right" style="xhtml" />
    </div><br />
 <!-- END: COLUMN -->
<?php } ?>

</div></div>

<!-- BEGIN: FOOTER -->

<div id="ja-footerwrap">


<div id="ja-footer" class="clearfix">

<div class="sublogo">
<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
</div>

<div class="copyright">

    <jdoc:include type="modules" name="user3" />
<jdoc:include type="modules" name="footer" />
 <!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='http://www.liveinternet.ru/click' "+
"target=_blank><img src='//counter.yadro.ru/hit?t21.15;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet: показано число просмотров за 24"+
" часа, посетителей за 24 часа и за сегодня' "+
"border='0' width='88' height='31'><\/a>")
//--></script><!--/LiveInternet-->


</div>

  <div class="foot-rss">

    <jdoc:include type="modules" name="syndicate" />

  </div>

</div>
</div>

<!-- END: FOOTER -->

</div>
</div>

<jdoc:include type="modules" name="debug" />
<script type="text/javascript">
addSpanToTitle();
</script>

</body>

</html>
и файл template.css


Код
-------------------------------------------------------------------------*/

/* COMMON STYLE
--------------------------------------------------------- */
html, body, form, fieldset {
margin: 0;
padding: 0;
}

body {
background: #FFFFFF;
color: #000000;
font-family: "Segoe UI", "Lucida Grande", Tahoma, Arial, sans-serif;
line-height: 1.6;
}

body#bd {
  color: #666666;
background: #E6E6E6;
margin: 30px 0;
}


body.contentpane {
color: #000000;
font-size: 12px;
line-height: 1.3em;
margin: 0;
margin: 1em 2em;
width: auto; /* Printable Page */
}

body.fs1 {font-size: 10px;}
body.fs2 {font-size: 11px;}
body.fs3 {font-size: 12px;}
body.fs4 {font-size: 13px;}
body.fs5 {font-size: 14px;}
body.fs6 {font-size: 15px;}

/* Normal link */
a {
color: #00A9DD;
text-decoration: none;
}

a:hover, a:active, a:focus {
color: #00A9DD;
text-decoration: underline;
}

a img {
border: none;
}

/* Title text */
.contentheading, .componentheading, .blog_more strong, h1, h2, h3, h4 {
line-height: normal;
}

.contentheading, .componentheading {
}

/* Small text */
small, .small, .smalldark, .img_caption, a.readon, #ja-footer {
font-size: 92%;
}

small, .small, .smalldark, .createby, .createdate, .modifydate, .img_caption p, p.site-slogan {
color: #999999;
}

img {
margin: 0;
padding: 0;
}

/* Heading */
h1 {font-size: 200%;}
h2 {font-size: 175%;}
h3 {font-size: 150%;}
h4 {font-size: 125%;}

p, pre, blockquote, ul, ol, h1, h2, h3, h4, h5, h6 {
margin: 1em 0;
padding: 0;
}

ul {
list-style: none;
}

ul li {
background: url(../images/bullet.gif) no-repeat 22px 8px;
line-height: 160%;
padding-left: 30px;
}

ol li {
line-height: 180%;
margin-left: 35px;
}

th {
font-weight: bold;
padding: 8px;
text-align: left;
}

fieldset {
border: none;
padding: 10px 5px;
background: url(../images/dot-h.gif) repeat-x top;
}

fieldset a {
font-weight: bold;
}

fieldset.input {
padding: 0;
background: none;
}

hr {
border-bottom: 0;
border-left: 0;
border-right: 0;
border-top: 1px solid #E6E6E6;
height: 1px;
}

br {
height: 1px;
font-size: 1px;
}

td, div {
font-size: 100%;
}

/* FORM
--------------------------------------------------------- */
form {
margin: 0;
padding: 0;
}

form label {
cursor: pointer;
}

input, select, textarea, .inputbox, .button {
font-family: "Segoe UI", Tahoma, Arial, sans-serif;
font-size: 100%;
color: #666666;
}

.inputbox {
padding: 2px;
border: 1px solid #CCCCCC;
background: #FFFFFF;
}

.inputbox:hover, .inputbox:focus {
border: 1px solid #999999;
background: #FFFFCC;
}

.button {
padding: 2px 8px;
border: 1px solid #00A9DD;
background: #00A9DD;
font-weight: bold;
color: #FFFFFF;
}

* HTML .button { /*IE 6*/
padding: 0 5px !important;
}

*+html .button { /*IE 7*/
padding: 0 5px !important;
}

/* Joomla STYLE
--------------------------------------------------------- */
.article_separator {
clear: both;
display: block;
height: 30px;
margin: 0;
background: url(../images/dot-h.gif) repeat-x center;
}

.column_separator {
padding: 0 25px;
}

/* content tables */
.sectiontableheader {
background: #333333;
padding: 8px;
color: #FFFFFF;
font-weight: bold;
}

.sectiontableheader a,
.sectiontableheader a:hover,
.sectiontableheader a:active,
.sectiontableheader a:focus {
color: #FFFFFF;
}

tr.sectiontableentry0 td,
tr.sectiontableentry1 td,
tr.sectiontableentry2 td {
padding: 8px;
background: url(../images/dot-h.gif) repeat-x bottom;
}

tr.sectiontableentry0:hover,
tr.sectiontableentry1:hover,
tr.sectiontableentry2:hover {
}

table.contentpane {
border: none;
width: 100%;
}

table.contentpaneopen {
border: none;
border-collapse: collapse;
border-spacing: 0;
}

table.contenttoc {
margin: 0 0 10px 10px;
padding: 0;
width: 30%;
float: right;
}

table.contenttoc td {
background: url(../images/bullet.gif) no-repeat 12px 8px;
padding: 1px 5px 1px 20px;
}

table.contenttoc th {
border-bottom: 1px solid #CCCCCC;
padding: 0 0 3px;
text-indent: 5px;
}

table.poll {
border-collapse: collapse;
padding: 0;
width: 100%;
}

table.pollstableborder {
border: none;
padding: 0;
text-align: left;
width: 100%;
}

table.pollstableborder img {
vertical-align: baseline;
}

table.pollstableborder td {
border-collapse: collapse;
border-spacing: 0;
padding: 4px !important;
background: none;
}

table.pollstableborder tr.sectiontableentry1 td {
background: #F7F7F7;
}

table.searchintro {
padding: 10px 0;
width: 100%;
}

table.searchintro td {
padding: 5px!important;
}

.blog_more {
margin: 15px 0 0;
padding: 10px 0 0;
background: url(../images/dot-h.gif) repeat-x top;
}

.blog_more strong {
display: block;
margin: 0 0 5px;
text-transform: uppercase;
}

.blog_more ul {
margin: 0;
padding: 0;
}

.blog_more ul li {
background: url(../images/bullet.gif) no-repeat 4px 8px;
margin: 0;
padding: 0 0 0 12px;
}

.category {
font-weight: bold;
text-transform: uppercase;
}

h1.componentheading, .componentheading {
margin: 0 0 10px;
padding: 0 0 10px;
font-size: 175%;
}

.componentheading {
font-size: 100%;
background: url(../images/dot.gif) repeat-x bottom;
text-transform: uppercase;
color: #666666;
}

.contentdescription {
padding-bottom: 30px;
}

h2.contentheading, .contentheading {
margin: 0;
padding: 0 0 5px;
font-size: 200%;
}

table.blog .contentheading {
font-size: 175%;
}

a.contentpagetitle,
a.contentpagetitle:hover,
a.contentpagetitle:active,
a.contentpagetitle:focus {
}

a.readon {
text-align: center;
text-decoration: none;
color: #666666;
text-transform: uppercase;
font-weight: bold;
background: url(../images/arrow-readon-1.png) no-repeat left 2px;
padding-left: 12px;
}

a.readon:hover, a.readon:focus, a.readon:active {
background: url(../images/arrow-readon-2.png) no-repeat left 2px;
}

table.contentpaneopen td, table.contentpane td {
}

table.contentpaneopen, table.contentpane, table.blog {
width: 100%;
}

.moduletable {
padding: 0;
}

ul.pagination {
margin: 15px auto 0;
padding: 10px 0 0;
background: url(../images/dot-h.gif) repeat-x top;
}

ul.pagination li {
background: none;
display: inline;
margin: 0;
padding: 0;
}

ul.pagination li span{
padding: 2px 5px;
}

ul.pagination a {
padding: 2px 3px;
text-decoration: none;
background: #666666;
color: #FFFFFF;
}

ul.pagination a:hover, ul.pagination a:active, ul.pagination a:focus {
background: #00A9DD;
color: #FFFFFF;
}

.pagenavbar {
background: url(../images/icon-pages.gif) no-repeat center left;
font-weight: bold;
padding-left: 14px;
}

.pagenavcounter {
background: url(../images/icon-pages.gif) no-repeat 0 11px;
font-weight: bold;
padding: 8px 14px 0 14px;
}

.smalldark {
text-align: left;
}

div.syndicate div {
text-align: center;
}

.pollstableborder tr.sectiontableentry1 td,
.pollstableborder tr.sectiontableentry2 td {
background: none;
}

ul.latestnews a, ul.mostread a {
color: #666666;
}

/* META
--------------------------------------------------------- */
.article-toolswrap {
display: block;
margin: 0 0 10px;
padding: 0;
text-transform: uppercase;
font-size: 92%;
position: relative;
}

.article-tools {
display: block;
padding: 0 10px 0 0;
white-space: nowrap;
}

.article-meta {
width: 70%;
float: left;
}

.createby {
padding: 0 5px 0;
background: #666666;
color: #FFFFFF;
}

.createdate {
padding: 0 5px 0 0;
}

.modifydate {
width: 100%;
display: block;
margin-bottom: 10px;
}

div.buttonheading {
position: absolute;
top: 0;
right: 10px;
}

.buttonheading img {
margin: 0 0 0 5px;
border: 0;
float: right;
}

/* MAIN LAYOUT DIVS
--------------------------------------------------------- */
#ja-wrapper {
width: 952px;
margin: 0 auto;
clear: both;
}

.narrow #ja-wrapper {
width: 752px;
}

#ja-wrapper-inner {
border: 1px solid #E6E6E6;
}

#ja-container {
position: relative;
}


/* PRIMARY COLUMN
--------------------------------------------------------- */
#ja-mainbody {
width: 760px;
float: right;
clear: both;
}

.narrow #ja-mainbody {
width: 600px;
}

#ja-content {
padding: 15px;
position: relative;
border-bottom: 1px solid #E6E6E6;
}

/* COLUMNS
--------------------------------------------------------- */
#ja-col {
float: left;
overflow: hidden;
width: 190px;
}

.narrow #ja-col {
width: 150px;
}

/*common style for column*/
#ja-col table {
border-collapse: collapse;
border-spacing: 0;
}

#ja-col .article_separator {
display: none;
}

/* COLLAPSIBLE LAYOUT
--------------------------------------------------------- */
#ja-containerwrap,
#ja-containerwrap-f {
padding: 0;
margin: 0;
border-top: 1px solid #CCCCCC;
border-bottom: 1px solid #E6E6E6;
}

#ja-containerwrap {
background: url(../images/dot.gif) repeat-y 190px 0 #FFFFFF;
}

.narrow #ja-containerwrap {
background: url(../images/dot.gif) repeat-y 150px 0 #FFFFFF;
}

/*full*/
#ja-containerwrap-f {
background: #FFFFFF;
}

#ja-containerwrap-f #ja-mainbody {
width: 100%;
}

/* MODULE
--------------------------------------------------------- */
div.moduletable h3,
div.moduletable_menu h3,
div.moduletable_text h3,
div.moduletable_hilite h3,
div.moduletable_menuhilite h3 {
font-size: 100%;
margin: 0 -15px 5px -16px;
padding: 10px 15px;
border-bottom: 1px solid #E6E6E6;
text-transform: uppercase;
background: url(../images/dot-hilite.gif) repeat-y left #F7F7F7;
}

div.moduletable h3 span,
div.moduletable_menu h3 span,
div.moduletable_text h3 span,
div.moduletable_hilite h3 span {
color: #00A9DD;
}

div.moduletable,
div.moduletable_menu,
div.moduletable_text,
div.moduletable_menuhilite,
div.moduletable_hilite1 {
margin: 0;
padding: 0 15px 10px;
border-bottom: 1px solid #E6E6E6;
}

div.moduletable_menu h3,
div.moduletable_menuhilite h3 {
margin-bottom: 0;
border-bottom: none;
}

div.moduletable_menu,
div.moduletable_menuhilite {
padding: 0 15px;
}

div.moduletable_menuhilite h3 {
background: #00A9DD;
color: #FFFFFF;
}

/* mis */
div.banneritem_text {
padding: 5px 0 !important;
}

div.advs {
clear: both;
display: block;
float: left;
width: 100%;
}

div.moduletable ul {
list-style: none;
}

div.moduletable li {
background: url(../images/bullet.gif) no-repeat 3px 8px;
line-height: 160%;
padding-left: 12px;
}

/* HEADER
--------------------------------------------------------- */
#ja-headerwrap {
height: 147px;
background: url(../images/main-tr.gif) no-repeat top right #FFFFFF;
}

#ja-header {
height: 100px;
line-height: normal;
position: relative;
background: url(../images/main-tl.gif) no-repeat top left;
}

h1.logo, h1.logo-text {
margin: 0;
padding: 0;
font-size: 200%;
}

h1.logo a {
width: 300px;
display: block;
background: url(../images/logo.gif) no-repeat;
position: absolute;
height: 150px;
top: 0;
left: 0px;
}

h1.logo a:hover, h1.logo a:active, h1.logo a:focus {
}

h1.logo a span {
position: absolute;
top: -1000px;
}

h1.logo-text a {
text-decoration: none;
outline: none;
position: absolute;
top: 25px;
left: 20px;
text-transform: uppercase;
}

h1.logo-text a:hover, logo-text a:active, logo-text a:focus {
}

p.site-slogan {
margin: 0;
padding: 0;
position: absolute;
top: 55px;
left: 20px;
text-transform: uppercase;
letter-spacing: 1px;
}

#ja-vmcurrency {
width: 300px;
position: absolute;
top: 45px;
right: 230px;
height: 65px;
border-right: 1px solid #E6E6E6;
}

#ja-vmcurrency div.moduletable {
padding: 15px 0 0 15px;
border: none;
}

#ja-vmcurrency div.moduletable h3 {
background: none;
border: none;
margin: 0 0 10px;
padding: 0;
}

/* MAIN NAVIGATION
--------------------------------------------------------- */
#ja-mainnavwrap {
background: #333333;
border-top: 1px solid #E6E6E6;
height: 35px;
z-index: 999;
}

#ja-mainnav {
height: 35px;
width: 760px;
float: right;
background: url(../images/dot-dark.gif) repeat-y left;
}

.narrow #ja-mainnav {
width: 600px;
}

#ja-mainnav a, #ja-subnav a {
outline: none;
}

#ja-subnav ul {
list-style: none;
margin: 0;
padding: 0;
}

#ja-subnav li {
background: none;
margin: 0;
padding: 1px 0;
}

#ja-subnav a {
display: block;
outline: none;
padding: 4px 2px 4px 14px;
text-decoration: none;
background: url(../images/bullet.gif) no-repeat 3px 10px;
}

#ja-subnav a:hover,
#ja-subnav a:active,
#ja-subnav a:focus {
}

#ja-subnav li.active a {
}

/* breadcrumbs */
#ja-pathway {
padding: 10px 15px;
margin-left: 1px;
text-transform: uppercase;
background: #F7F7F7;
border-bottom: 1px solid #E6E6E6;
line-height: normal;
}

#ja-pathway strong {
margin-right: 5px;
color: #00A9DD;
}

#ja-pathway a {
text-decoration: none;
}

#ja-pathway a:hover {
text-decoration: underline;
}

#ja-pathway img {
margin: 1px 5px;
}

/* Default Joomla! Menu */
ul.menu {
list-style: none;
margin: 0;
padding: 0;
display: block;
}

ul.menu li {
display: block;
background: none;
margin: 0;
padding: 0;
line-height: normal;
}

ul.menu li a {
display: block;
outline: none;
padding: 8px 15px 9px;
margin: 0 -15px;
text-decoration: none;
text-transform: uppercase;
color: #666666;
border-top: 1px solid #E6E6E6;
background: url(../images/arrow.png) no-repeat 92% 14px;
}

* HTML ul.menu li a {
padding: 7px 15px 8px;
width: 190px;
}

* HTML .narrow ul.menu li a {
padding: 7px 15px 8px;
width: 150px;
}

*+html ul.menu li a {
padding: 7px 15px 8px;
}

ul.menu li a:hover,
ul.menu li a:active,
ul.menu li a:focus {
background: url(../images/arrow.png) no-repeat 92% 14px #F7F7F7;
text-decoration: none;
}

ul.menu li.active a {
background: url(../images/arrow.png) no-repeat 92% 14px #FFFFCC;
font-weight: bold;
}

ul.menu li ul {
list-style: none;
margin: 0;
padding: 0;
background: #FFFFCC;
}

ul.menu li li {
border: none;
}

ul.menu li li a {
background: url(../images/bullet.gif) no-repeat 18px 14px #FFFFCC !important;
border: none;
padding-left: 26px !important;
text-transform: none;
font-weight: normal !important;
}

ul.menu li li a:hover,
ul.menu li li a:active,
ul.menu li li a:focus {
background: none;
color: #00A9DD;
}

ul.menu li li.active a {
color: #00A9DD;
font-weight: bold;
}

ul.menu li li li a {
color: #666666 !important;
font-weight: normal !important;
padding-left: 38px !important;
background: url(../images/bullet.gif) no-repeat 30px 14px #FFFFCC !important;
}

ul.menu li li li.active a {
font-weight: bold !important;
}

/* SPOTLIGHT
--------------------------------------------------------- */
/* Spotlight Box Style */
.ja-box-full, .ja-box-left, .ja-box-center, .ja-box-right {
float: left;
overflow: hidden;
}

.ja-box-left, .ja-box-center {
background: url(../images/dot.gif) repeat-y right;
}

/* Top spotlight */
#ja-topsl1 {
position: relative;
height: 250px;
margin-left: 1px;
border-bottom: 1px solid #E6E6E6;
}

#ja-topsl2, #ja-topsl3 {
margin-left: 1px;
}

#ja-topsl2 div.moduletable h3, #ja-topsl3 div.moduletable h3 {
background: #F7F7F7;
color: #666666;
margin-left: -15px;
}

#ja-topsl3 table {
padding: 0;
margin: 0;
}

#ja-topsl3 td {
padding: 15px 0;
margin: 0;
}

#ja-topsl3 tr {
background: url(../images/dot-h.gif) repeat-x bottom;
}

/* Bottom spotlight */
#ja-botsl {
position: relative;
border-top: 1px solid #E6E6E6;
margin-left: 1px;
clear: both;
background: #F7F7F7;
}

#ja-botsl div.moduletable {
position: relative;
border: none;
padding: 15px;
}

#ja-botsl div.moduletable h3 {
margin: 0;
padding: 0;
background: none;
border: none;
font-size: 100%;
}

/* FOOTER
--------------------------------------------------------- */
#ja-footerwrap {
position: relative;
clear: both;
background: url(../images/main-br.gif) no-repeat bottom right #333333;
}

#ja-footer {
background: url(../images/main-bl.gif) no-repeat bottom left;
color: #666666;
text-transform: uppercase;
font-size: 92%;
}

#ja-footer small {
color: #666666;
font-size: 100%;
padding: 10px 80px 10px 20px;
}

#ja-footer ul {
margin: 0;
padding: 0 10px 5px 10px;
line-height: normal;
}

#ja-footer li {
display: inline;
margin: 0;
padding: 0;
background: url(../images/vline.gif) no-repeat center left;
}

#ja-footer li a {
display: inline;
line-height: normal;
padding: 0 10px;
}

li.ja-firstitem {
background: none !important;
}

#ja-footer a {
color: #999999;
text-decoration: none;
}

#ja-footer a:hover, #ja-footer a:active, #ja-footer a:focus {
color: #FFFFFF;
}

div.sublogo {
width: 20%;
float: left;
}

div.sublogo a {
font-size: 200%;
display: block;
text-align: center;
background: url(../images/logo-sub.gif) no-repeat right;
width: 180px;
height: 70px;
text-indent: -5000px;
position: absolute;
left: 10px;
}

.narrow div.sublogo a {
width: 140px;
height: 70px;
}

div.copyright {
width: 80%;
padding: 10px 0;
float: right;
background: url(../images/dot-dark.gif) repeat-y left;
}

div.foot-rss {
position: absolute;
top: 30px;
right: 20px;
}

div.foot-rss img {
vertical-align: middle;
}

/* MISCELLANOUS
----------------------------------------------------------- */
ul.accessibility {
position: absolute;
top: -100%;
}

/* Login */
#form-login p {
margin: 0 0 5px;
}

#form-login ul {
margin: 5px 0 0;
}

#modlgn_username, #modlgn_passwd {
width: 90%;
}

/* Search */
#ja-search {
float: left;
width: 190px;
height: 35px;
background: url(../images/icon-search.png) no-repeat 5px 0;
overflow: hidden;
}

.narrow #ja-search {
width: 150px;
}

#ja-search .inputbox {
padding: 10px 0 0 40px;
background: none;
border: none;
font-weight: bold;
color: #CCCCCC;
}

/*others*/
#ja-banner {
padding: 20px;
  text-align: center;
  overflow: hidden;
width: 100%;
clear: both;
}

div.back_button a,
div.back_button a:hover,
div.back_button a:active {
background: none!important;
display: block;
margin: 10px 0;
text-decoration: none!important;
}

.clr {
clear: both;
}

.hasTip img {
border: none;
margin: 10px 5px 0 0;
}

div.ja-innerdiv {
padding: 6px 0 7px;
background: url(../images/dot-h.gif) repeat-x bottom;
}

div.ja-innerdiv img {
padding: 0;
margin: 0;
}

/* Tooltips */
.tool-tip {
background: #FFFFFF;
border: 1px solid #CCCCCC;
float: left;
max-width: 200px;
padding: 5px;
z-index: 999;
color: #333333;
}

.tool-title {
background: url(../../system/images/selector-arrow.png) no-repeat;
font-size: 100%;
font-weight: bold;
margin: 0;
margin-top: -15px;
padding: 0;
padding-bottom: 5px;
padding-top: 15px;
}

.tool-text {
font-size: 100%;
margin: 0;
}

#system-message dd.message ul,
#system-message dd.error ul,
#system-message dd.notice ul {
margin: 0;
padding: 0;
}

#system-message dd.message ul li,
#system-message dd.error ul li,
#system-message dd.notice ul li {
background: none;
color: #FFFFFF;
margin: 0;
padding: 5px;
}

/* System Standard Messages */
#system-message dd.message ul {
background: #666666;
border: none;
}

/* System Error Messages */
#system-message dd.error ul {
background: #666666;
border: none;
}

/* System Notice Messages */
#system-message dd.notice ul {
background: #666666;
border: none;
}

/* Clearfix */
.clearfix:after {
clear: both;
content: ".";
display: block;
height: 0;
visibility: hidden;
}

* HTML > body .clearfix {
display: block;
width: 100%;
}

* HTML .clearfix {
height: 1%;
}
Напишите пожалуйста что где менять что бы было две колонки левая и правая такая же !
« Последнее редактирование: 18.07.2010, 14:38:25 от dancer »
*

dancer

  • Новичок
  • 6
  • 0 / 0
*

Alldar

  • Завсегдатай
  • 1504
  • 195 / 1
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Как сделать логотип в шапке ссылкой

Автор hmaoITN

Ответов: 100
Просмотров: 70252
Последний ответ 08.01.2018, 12:13:04
от galll72
как сделать кнопки меню!

Автор Millenium_3000

Ответов: 10
Просмотров: 11366
Последний ответ 17.08.2017, 17:24:12
от Intrande
Как сделать резиновой центральную чать сайта?

Автор genkey

Ответов: 8
Просмотров: 5444
Последний ответ 28.05.2016, 10:45:37
от vipiusss
Помогите установить шаблон...

Автор shurik920

Ответов: 20
Просмотров: 6438
Последний ответ 12.04.2016, 14:09:55
от WEBBY Master
Как сделать меню вконце страницы ?

Автор p4o1

Ответов: 1
Просмотров: 1767
Последний ответ 08.04.2015, 22:46:50
от vipiusss