Новости 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 Гость просматривают эту тему.
  • 13 Ответов
  • 3244 Просмотров
*

darkmaster

  • Осваиваюсь на форуме
  • 18
  • 1 / 0
Установил шаблон Ja zeolite II и во всех таблицах внутри пропали границы. Подскажите пожалуйста где в СSS нужно копать чтобы их вернуть !
*

_ib_

  • Давно я тут
  • 673
  • 100 / 8
открываем HTML код, см. класс или id таблицы, ищём в CSS. Если класса или id нет у таблицы, то смотрим в CSS свойства table, td, tr.
Легальные шаблоны и дёшево!  + скидки до 50% для шаблонов клуба Joomlart, RocketTheme, Yootheme и Gavick.

при интересе пишите в личку или на мыло: "p" точка "d" собака gmx.de
*

darkmaster

  • Осваиваюсь на форуме
  • 18
  • 1 / 0
а где искать table, td, tr - в template.css ?
*

allydawn

  • Захожу иногда
  • 132
  • 13 / 0
  • falling from the sky - day seven
Скорее всего основные стили прописаны именно там. Как уже сказали выше, проверьте есть ли у таблицы класс

Код
<div class="some_class"> </div>

если есть, то ищите такую запись в файле .css

Код
.some_class {border: 1px solid #ddd;}

Если у таблиц нет класса, то скорее всего запись в .css будет выглядеть примерно так

Код
.tbody {border: 1px solid #ddd;}
.tbody tr {border: none;}
.tbody td {border: none;}

Точнее не могу сказать, никогда не работал с этими шаблонами :)
*

darkmaster

  • Осваиваюсь на форуме
  • 18
  • 1 / 0
Мои изменения почему-то не дают результата. Вот мой template.css. Где именно нужный класс или id

Код
/*



# ------------------------------------------------------------------------

# JA Zeolite II Template for Joomla 1.5

# ------------------------------------------------------------------------

# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.

# @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,

# bound by Proprietary License of JoomlArt. For details on licensing,

# Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.

# Author: JoomlArt.com

# Websites:  http://www.joomlart.com -  http://www.joomlancers.com

# Redistribution, Modification or Re-licensing of this file in part of full,

# is bound by the License applied.

# ------------------------------------------------------------------------



*/



/* COMMON STYLE

--------------------------------------------------------- */

html, body, form, fieldset {

margin: 0;

padding: 0;

}



body {

background: #FFFFFF;

color: #000000;

font-family: "Lucida Grande", Arial, Helvetica, sans-serif;

line-height: 1.5;

}



body#bd {

color: #666666;

background: #F0F0F0;

padding: 0;

margin: 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: #04A504;

text-decoration: none;

}



a:hover, a:active, a:focus {

color: #C01122;

text-decoration: underline;

}



a img {

border: none;

}



/* Title text */

.contentheading, .componentheading, .blog_more strong, h1, h2, h3, h4 {

line-height: normal;

color: #333333;

}



/* Small text */

small, .small, .smalldark, .article-meta, .modifydate, .img_caption p, .site-slogan, a.readon,

#ja-pathway, #ja-left, #ja-right, #ja-footer, #ja-botsl {

font-size: 92%;

}



/*article image*/

img {

margin: 0;

padding: 0;

}



.img_caption p {

text-align: center;

color: #999999;

}



.img_caption.left, .img_caption.right {

margin-top: 3px;

}



.img_caption img {

}



.img_caption p {

padding-top: 5px;

margin-top: 0px;

}



/* Heading */

h1 {font-size: 180%;}

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 20px 8px;

padding-left: 30px;

}



ol li {

margin-left: 35px;

}



th {

font-weight: bold;

padding: 8px;

text-align: left;

}



fieldset {

border: none;

padding: 10px 5px;

}





fieldset a {

font-weight: bold;

}



fieldset.input {

padding: 0;

background: none;

}



legend {

font-weight: bold;

background: #FFFFFF;

}



hr {

border-bottom: 0;

border-left: 0;

border-right: 0;

border-top: 1px solid #DDDDDD;

height: 1px;

}



td, th, div {

font-size: 100%;

}



td {

padding:5px;

}



/* FORM

--------------------------------------------------------- */

form {

margin: 0;

padding: 0;

}



form label {

cursor: pointer;

}



input, select, textarea, .inputbox {

font-family: Arial, Helvetica, sans-serif;

font-size: 100%;

vertical-align: middle;

}



.inputbox {

padding: 2px;

border: 1px solid #DDDDDD;

background: #FFFFFF;

color: #333333;

font-size: 100%;

}



input[type="checkbox"],

input[type="radio"] {

background: transparent !important;

border: 0 !important;

padding: 0;

margin: 0;

}



.button {

padding: 1px 8px;

border: 1px solid #333333;

background: url(../images/but-bg.gif) repeat-x left center #333333;

color: #FFFFFF;

font-weight: bold;

font-family: "Lucida Grande", Arial, Helvetica, sans-serif;

vertical-align: middle;

}



a.button {

padding: 2px 10px;

}



#agreed_field {

border: 0px;

}



.form-validate .button {

margin-left: 5px;

}



* HTML .button { /*IE 6*/

padding: 0 5px !important;

}



*+html .button { /*IE 7*/

padding: 0 5px !important;

}



/* Joomla STYLE

--------------------------------------------------------- */

.article_separator, .article_seperator {

clear: both;

display: block;

height: 30px;

margin: 0;

background: url(../images/dot.gif) repeat-x center left;

}



.column_separator {

padding: 0 25px;

}



/* content tables */



.sectiontableheader {

background: #333;

border: 1px solid #ccc;

color: #fff;

padding: 5px;

}



.sectiontableheader th {

background: #666666;

padding: 4px 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;

border-bottom: 1px solid #CCCCCC;

}



tr.sectiontableentry2 {

background: #F9F9F9;

}



table.contentpane {

border: none;

width: 100%;

}



.sectiontableentry,

.sectiontableentry0,

.sectiontableentry1,

.sectiontableentry2 {

background: url(../images/dot2.gif) repeat-x left bottom;

padding: 5px 5px 6px;

}



.sectiontableentry:hover,

.sectiontableentry0:hover,

.sectiontableentry1:hover,

.sectiontableentry2:hover { background-color: #fffff0; }



table.contentpane, table.tablelist {

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%;

}

#jali h1 {position: absolute; top: 0px; left: -5000px;}

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: #DDDDDD;

}



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/sep.gif) repeat-x top left;

}



.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;

}



h1.componentheading, .componentheading {

font-size: 200%;

margin: 0 0 15px;

padding: 5px 0;

border-bottom: 1px solid #CCCCCC;

}



h1.componentheading {

margin: 0px;

padding: 0px;

}



.contentdescription {

padding-bottom: 30px;

}



h2.contentheading, .contentheading {

margin: 0;

padding: 0;

font-size: 200%;

}



table.blog .contentheading {

font-size: 150%;

}



a.contentpagetitle,

a.contentpagetitle:hover,

a.contentpagetitle:active,

a.contentpagetitle:focus {

}



a.readon {

background: url(../images/readon-bg.gif) no-repeat;

width: 96px;

height: 21px;

line-height: 21px;

color: #FFFFFF;

display: block;

float: left;

text-indent: 20px;

}



a.readon:hover, a.readon:focus, a.readon:active {

color: #FFFFFF;

text-decoration: none;

}



table.contentpaneopen td, table.contentpane td {

}



table.contentpaneopen, table.contentpane, table.blog {

width: 100%;

}



.moduletable {

padding: 0;

}



ul.pagination {

margin: 15px auto 10px;

padding: 10px 0 0;

color: #333333;

}



ul.pagination li {

background: none;

display: inline;

margin: 0;

padding: 0;

}



ul.pagination li span{

padding: 2px 5px;

}



ul.pagination a {

padding: 1px 4px;

text-decoration: none;

color: #666666;

}



ul.pagination a:hover, ul.pagination a:active, ul.pagination a:focus {

color: #C01122;

}



.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;

}



ul.latestnews a:hover, ul.mostread a:hover {

color: #C01122;

}



.bannerheader {

  font-size: 120%;

font-weight: bold;

 }



/* META

--------------------------------------------------------- */

.buttonheading {

display: block;

width: 30%;

float: right;

margin-top: -5px;

}



.article-meta {

width: 70%;

float: left;

color: #999999;

}



.createby {

}



.createdate {

padding-right: 6px;

margin-right: 5px;

background: url(../images/vline.gif) no-repeat right center;

}



.modifydate {

width: 100%;

display: block;

color: #999999;

margin: 15px 0;

}



.article-section {

padding-left: 6px;

margin-left: 5px;

background: url(../images/vline.gif) no-repeat left center;

}



.article-section a {

color: #999999;

}



.article-category a {

color: #999999;

}



.buttonheading img {

margin: 0 0 0 5px;

border: 0;

float: right;

}



/* MAIN LAYOUT DIVS

--------------------------------------------------------- */

#ja-container {

}



#ja-container .main {

padding: 10px 0 0;

}



#ja-mainbodywrap {

width: 77%;

float: left;

}



#ja-mainbody {}



/* PRIMARY COLUMN

--------------------------------------------------------- */

#ja-contentwrapper {

float: right;

clear: both;

display: block;

width: 70%;

}



.ja-l1r1 #ja-contentwrap {

}



.ja-l1r1 #ja-content {

float: none;

}



.ja-l1r1 #ja-current-content {

padding: 20px;

}



/* COLUMNS

--------------------------------------------------------- */

#ja-col1 {

float: left;

overflow: hidden;

width: 30%;

}



#ja-col1 div.ja-innerpad {

padding: 0 10px 0 0;

}



#ja-col2 {

float: right;

overflow: hidden;

width: 23%;

}



#ja-col2 div.ja-innerpad {

padding: 0 0 0 10px;

}



/*common style for column*/



/* COLLAPSIBLE LAYOUT

--------------------------------------------------------- */

#ja-container {

padding: 0 0 20px;

margin: 0;

clear: both;

}



/*content + left*/

.ja-l1 #ja-mainbodywrap {

width: 100%;

}



.ja-l1 #ja-col1 {

width: 23%;

}



.ja-l1 #ja-contentwrapper {

width: 77%;

}



.ja-l1 #ja-content {

float: none;

}



.ja-l1 #ja-current-content {

padding: 20px;

}

/*content + right*/

.ja-r1 #ja-contentwrapper {

width: 100%;

}



/* full */

#ja-mainbodywrap {

width: 100%;

}



#ja-contentwrapper {

width: 100%;

}



#ja-current-content {

padding:20px;

}



/* MODULE

--------------------------------------------------------- */

div.moduletable h3,

div.moduletable_default h3,

div.moduletable_menu h3,

div.moduletable_text h3,

div.moduletable_blank h3,

div.moduletable_hilite h3,

div.moduletable_black h3 {

font-size: 125%;

font-weight: bold;

height: 29px;

line-height: 29px;

margin: 0 8px 10px;

padding: 0;

}



div.moduletable h3 span,

div.moduletable_menu h3 span,

div.moduletable_text h3 span,

div.moduletable_blank h3 span,

div.moduletable_hilite h3 span,

div.moduletable_black h3 span {

display: block;

height: 29px;

padding-left: 28px;

}



div.moduletable,

div.moduletable_menu,

div.moduletable_text,

div.moduletable_blank {

margin: 0 0 10px;

padding: 0;

position: relative;

}



/* Highlight module */

div.moduletable_hilite h3 {

background: url(../images/h3-r-hilite.gif) no-repeat right top #04A504;

color: #FFFFFF;

}



div.moduletable_hilite h3 span {

background: url(../images/h3-l-hilite.gif) no-repeat left top;

}



/* Black module */

div.moduletable_black h3 {

background: url(../images/h3-r-black.gif) no-repeat right top #666666;

color: #FFFFFF;

}



div.moduletable_black h3 span {

background: url(../images/h3-l-black.gif) no-repeat left top;

}



div.module h3,

div.module_text h3,

div.module_menu h3,

div.module_hilite h3 {

background: url(../images/h3-r.gif) no-repeat right top;

margin: 0 8px 10px;

padding: 0;

font-size: 125%;

line-height: 30px;

color: #666666;

}



div.module h3 span,

div.module_text h3 span,

div.module_menu h3 span,

div.module_hilite h3 span,

div.module_blank h3 span {

background: url(../images/h3-l.gif) no-repeat left top;

height: 30px;

padding-left: 28px;

display: block;

}



div.module,

div.module_text,

div.module_menu,

div.module_hilite {

padding: 0;

background: url(../images/box-br.gif) no-repeat bottom right #FFFFFF;

margin-bottom: 10px;

}



div.module div,

div.module_text div,

div.module_menu div,

div.module_hilite div {

margin: 0;

padding: 0;

background: url(../images/box-bl.gif) no-repeat bottom left;

}



div.module div div,

div.module_text div div,

div.module_menu div div,

div.module_hilite div div {

padding: 0;

margin: 0;

background: url(../images/box-tr.gif) no-repeat top right;

}



div.module div div div,

div.module_text div div div,

div.module_menu div div div,

div.module_hilite div div div {

padding: 8px 0 15px;

background: url(../images/box-tl.gif) no-repeat top left;

}



div.module div div div div,

div.module_text div div div div,

div.module_menu div div div div,

div.module_hilite div div div div {

margin: 0;

padding: 0;

background: none;

overflow: hidden;

}



div.module .jamod-content,

div.module_text .jamod-content,

div.module_menu .jamod-content,

div.module_hilite .jamod-content {

margin: 0 15px;

}



/* mis */

div.banneritem_text {

padding: 5px 0 !important;

}



div.advs {

clear: both;

display: block;

float: left;

width: 100%;

}



div.moduletable li,

div.moduletable_menu li,

div.moduletable_text li,

div.module li,

div.module_menu li,

div.module_text li {

padding-left: 15px;

background-position: 5px 7px;

}



/* Module blank */

div.module_blank {

margin: 0 0 10px 0;

padding: 0;

}



div.module_blank .ja-box-ct {

margin: 0px;

}



#ja-right .ja-colswrap{

padding-left: 10px;

}





#ja-main .inner {

padding: 0px;

}



#ja-left .ja-colswrap{

padding-right: 10px;

}



/* HEADER

--------------------------------------------------------- */

#ja-header {

line-height: normal;

position: relative;

z-index: 999;

margin-bottom: 20px;

}



#ja-header .main {

height:150px;

min-height:150px;

background-color: #54992F;

}



#ja-header .inner {

padding: 0px;

}



h1.logo, div.logo-text {

margin: 0 0 5px;

padding: 0;

float: left;

position: absolute;

top: 10px;

left: 20px;

}



h1.logo a {

width: 518px;

height: 80px;

display: block;

background: url(../images/logo.png) no-repeat center center;

}



h1.logo a span {

position: absolute;

top: -1000px;

}



div.logo-text {

outline: none;

}



div.logo-text h1 {

font-size: 250%;

font-weight: bold;

letter-spacing: 2px;

margin: 0 0 0 15px;

padding: 0;

}



div.logo-text h1 a {

color: #FFFFFF;

text-transform: uppercase;

}



div.logo-text h1 a:hover,

div.logo-text h1 a:focus,

div.logo-text h1 a:active {

text-decoration: none;

}



.site-slogan {

color: #FFFFFF;

margin: -5px 0 0 15px;

padding: 0;

letter-spacing: 1.5px;

}



/* MAIN NAVIGATION

--------------------------------------------------------- */

#ja-mainnav {

background: url(../images/mainnav-lbg.gif) no-repeat left bottom;

position: absolute;

bottom: 0px;

left: 0;

width: 100%;

}



#ja-mainnav .inner {

background: url(../images/mainnav-rbg.gif) no-repeat right bottom;

padding: 0;

position: relative;

z-index: 9999;

height: auto;

}



#ja-mainnav a, #ja-subnav a {

outline: none;

line-height: normal;

}



#ja-subnav {

list-style: none;

margin: 0;

padding: 0;

display: block;

margin-bottom: 10px;

}



#ja-subnav ul {

list-style: none;

margin: 0;

padding: 0;

}



#ja-subnav li {

display: block;

background: url(../images/dot.gif) repeat-x left bottom;

margin: 0;

padding: 0;

line-height: normal;

float: none !important;

}



#ja-subnav li a {

display: block;

outline: none;

padding: 6px 0 6px 0;

background: url(../images/arrow.png) no-repeat 98% center;

margin: 0;

text-decoration: none;

color: #666666;

}



#ja-subnav a:hover,

#ja-subnav a:active,

#ja-subnav a:focus {

color: #C01122;

text-decoration: none;

background: url(../images/arrow-on.png) no-repeat 98% center;

}



#ja-subnav li.active a {

font-weight: bold;

background: url(../images/arrow-active.png) no-repeat 98% center;

color: #04A504;

}



#ja-subnav li ul {

list-style: none;

margin: 0;

padding: 0;

}



#ja-subnav li li {

border: none;

background: none;

padding: 0;

}



#ja-subnav li li a {

color: #666666 !important;

border: none;

padding: 5px 5px 5px 25px !important;

text-transform: none;

font-weight: normal !important;

background: url(../images/arrow.png) no-repeat 15px 10px !important;

}



#ja-subnav li li li a {

background: url(../images/arrow.png) no-repeat 30px 10px !important;

padding-left: 40px !important;

font-weight: normal !important;

}



#ja-subnav li li a:hover,

#ja-subnav li li a:active,

#ja-subnav li li a:focus {

color: #C01122 !important;

text-decoration: underline;

}



#ja-subnav li li.active a {

color: #333333;

font-weight: bold !important;

}



#ja-subnav li li li a {

color: #333333 !important;

font-weight: normal !important;

padding-left: 35px !important;

background: url(../images/bullet.gif) no-repeat 25px 10px !important;

}



#ja-subnav li li li.active a {

font-weight: bold !important;

}



#ja-mainnav a:hover .has-image {

background-position: left bottom;

}



#ja-mainnav a .has-image {

background-position: left top;

}



span.menu-desc {

display: block;

font-weight: normal;

text-transform: capitalize;

font-size: 85%;

color: #999;

}



/* Sub Nav (lv2) ---*/

#ja-subnav ul li ul { display: none;}



#ja-subnav ul li.hover ul { left: auto; right: auto; display: block; }



#ja-subnav ul li.haschild:hover a, #ja-subnav ul li.haschild a:hover { background-image: url(../images/arrow-down.gif); }



/******/



#ja-cssmenu li.havesubchild a.haschild,

#ja-cssmenu li.havesubchild-active a.haschild,

#ja-mainnav .megamenu li li.haschild a.haschild,

#ja-mainnav .megamenu li li.haschild-over a.haschild {

background-position: 90% center !important;

background-image: url(../images/arrow.png)!important;

background-repeat: no-repeat !important;

}



#ja-mainnav ul.level0 li ul .group-content .ja-box-ct a {

color: #54992F !important;

}



/* breadcrumbs */

#ja-pathway {

color: #CCCCCC;

padding: 6px 0 5px 10px;

float: left;

}



#ja-pathway strong {

color: #FFFFFF;

margin-right: 5px;

}



#ja-pathway img {

margin: 1px 5px;

}



#ja-pathway a {

color: #FFFFFF;

}



/* Default Joomla! Menu */

ul.menu {

list-style: none;

margin: 0;

padding: 0;

display: block;

}



ul.menu li {

display: block;

background: url(../images/dot.gif) repeat-x left bottom;

margin: 0;

padding: 0;

line-height: normal;

}



ul.menu li a {

display: block;

outline: none;

padding: 6px 0 6px 0;

background: url(../images/arrow.png) no-repeat 98% center;

margin: 0;

text-decoration: none;

color: #666666;

}



ul.menu li a:hover,

ul.menu li a:active,

ul.menu li a:focus {

color: #C01122;

text-decoration: none;

background: url(../images/arrow-on.png) no-repeat 98% center;

}



ul.menu li.active a {

font-weight: bold;

background: url(../images/arrow-active.png) no-repeat 98% center;

color: #04A504;

}



ul.menu li ul {

list-style: none;

margin: 0;

padding: 0;

}



ul.menu li li {

border: none;

background: none;

padding: 0;

}



ul.menu li li a {

color: #666666 !important;

border: none;

padding: 5px 5px 5px 25px !important;

text-transform: none;

font-weight: normal !important;

background: url(../images/arrow.png) no-repeat 15px 10px;

}



ul.menu li.active li a {

background: url(../images/arrow.png) no-repeat 15px 10px !important;

}



ul.menu li.active li li a {

background: url(../images/arrow.png) no-repeat 30px 10px !important;

padding-left: 40px !important;

font-weight: normal !important;

}



ul.menu li li a:hover,

ul.menu li li a:active,

ul.menu li li a:focus {

color: #C01122 !important;

text-decoration: underline;

}



ul.menu li li.active a {

color: #333333;

font-weight: bold !important;

}



ul.menu li li li a {

color: #333333 !important;

font-weight: normal !important;

padding-left: 35px !important;

background: url(../images/bullet.gif) no-repeat 25px 10px !important;

}



ul.menu li li li.active a {

font-weight: bold !important;

}



/* JA Slideshow */

#ja-slideshow {

margin: 0;

padding: 0;

}



/* Feature products */

#ja-fp {

background: url(../images/dot.gif) repeat-x left bottom;

margin-bottom: 15px;

}



/* Products show */

#ja-productwrap {

width: 100%;

display: block;

margin: 0 0 10px;

}



.ja-box-ct {

margin: 0 15px;

}



#ja-botsl .ja-box-ct {

margin: 0px;

}



#ja-product-top h3 {

font-size: 115%;

margin-top: 0;

}



#ja-product-bot {

background: url(../images/content-bot.gif) no-repeat center bottom;

}



#ja-product-bot div.moduletable {

margin: 0;

}



#ja-product-bot div.moduletable h3 span {

color: #666666;

}



/* SPOTLIGHT

--------------------------------------------------------- */

/* Spotlight Box Style */

.ja-box-full, .ja-box-left, .ja-box-center, .ja-box-right {

float: left;

overflow: hidden;

}



/* Bottom spotlight */

#ja-botsl .main {

margin-bottom: 20px;

padding: 0;

}



#ja-botsl .ja-rounded-box {

padding: 10px 20px;

}



#ja-botsl div.moduletable,

#ja-botsl div.moduletable_default {

padding: 0 10px;

margin-bottom: 0;

}



#ja-botsl .ja-box-left div.moduletable,

#ja-botsl .ja-box-left div.moduletable_default {

padding: 0 10px 0 0;

}



#ja-botsl .ja-box-right div.moduletable,

#ja-botsl .ja-box-right div.moduletable_default {

padding: 0 0 0 10px;

}



#ja-botsl .ja-box-center div.moduletable,

#ja-botsl .ja-box-center div.moduletable_default {

padding: 0 10px;

margin-bottom: 0;

}



#ja-botsl div.moduletable h3 {

color: #04A504;

background: none;

border-bottom: 1px solid #DDDDDD;

margin: 0 0 10px 0;

padding: 0;

}



#ja-botsl div.moduletable h3 span {

margin: 0;

padding: 0;

}



#ja-botsl ul {

margin: 0;

}



#ja-botsl ul.latestnews, #ja-botsl ul.mostread {

margin-top: -5px;

}



#ja-botsl ul li {

background: url(../images/dot.gif) repeat-x left bottom;

padding: 5px 0;

}



#ja-botsl li a {

background: url(../images/bullet.gif) no-repeat left center;

padding-left: 10px;

}



/* FOOTER

--------------------------------------------------------- */

#ja-footerwrap {

clear: both;

padding: 0;

margin: 0;

}



#ja-footer .main {

background: #34383B;

border-top: 3px solid #04A504;

position: relative;

color: #666;

padding: 15px 0;

}



#ja-footer .inner {

padding: 0 10px;

}



#ja-footer a {

color: #ccc;

}



#ja-footer a:hover, #ja-footer a:active, #ja-footer a:focus {

color: #ccc;

}



#ja-footer small {

font-size: 100%;

color: #666;

float: left;

clear: left;

}



#ja-footer ul {

float: left;

padding: 0;

margin: 0;

}



#ja-footer li {

display: inline;

margin: 0;

padding: 0;

background: url(../images/arrow-2.png) no-repeat left center;

}



#ja-footer li a {

display: inline;

padding: 0 10px;

}



#ja-footer li:first-child a {

padding-left: 0;

}

/* T3 Framework logo ---*/

#ja-poweredby {

height: 20px;

width: 160px;

float: right;

}



#ja-poweredby a#t3-logo {

background: url(../images/t3-logo.png) no-repeat left top;

display: block;

height: 20px;

text-indent: -999%;

width: 160px;

text-decoration: none;

}



#ja-poweredby a#t3-logo:hover,

#ja-poweredby a#t3-logo:focus,

#ja-poweredby a#t3-logo:active {

background-position: left bottom;

}



/* MISCELLANOUS

----------------------------------------------------------- */

ul.accessibility {

position: absolute;

top: -100%;

}



li.ja-firstitem {

background: none !important;

}



/* JA Cpanel */

#ja-cpanel .main {

height: 32px;

background: #34383B;

border-bottom: 1px solid #62DC25;

}



/* Login ---*/

.login_form fieldset { padding: 15px 0 0; }

.login_form fieldset p { margin: 0 0 5px; }



.login_form label {

font-weight: bold;

text-align: right;

display: block;

float: left;

width: 130px;

}



.login_form .inputbox { margin-left: 10px; width: 150px; }



.login_form #rem { border: 0px; width: auto; vertical-align: middle }



.login_form .remember .inputbox {

width: 20px;

}



.login_form h1 { display: none; }



.login_form .button { margin-left: 140px; }



* HTML #form-login {

width: 99%;

}



#form-login p {

margin: 0px;

}



#form-login label {

}



#form-login input.button {

}



#form-login #modlgn_username,

#form-login #modlgn_passwd {

width: 95%;

margin: 2px 0 5px;

font-size: 12px !important;

padding: 2px;

background: #FFFFFF;

border: 1px solid #DDDDDD;

}



* HTML #form-login #modlgn_username,

* HTML #form-login #modlgn_passwd {

width: 90%;

}



#form-login div.ja-login-links {

padding: 8px 0 0;

display: block;

}



#form-login .ja-login-links a {

padding: 0;

display: block;

color: #333333;

}



#form-login .ja-login-links a:hover,

#form-login .ja-login-links a:active,

#form-login .ja-login-links a:focus {

color: #C01122;

}



/* Register ---*/

.form-register fieldset { padding: 0 0 10px; background: none; }



.form-register p { margin: 0 0 5px; }



.form-register p.form-des { margin: 15px 0; }



.form-register label {

font-weight: bold;

text-align: right;

display: block;

float: left;

width: 130px;

}



.form-register .inputbox { margin-left: 10px; width: 200px; }



.form-register .button { margin-left: 140px; font-weight: normal; }



/* User ---*/

.user-details { padding: 10px 0; }



.user-details p { margin: 0 0 5px; }



.user-details label {

font-weight: bold;

text-align: right;

display: block;

float: left;

width: 130px;

}



.user-details .inputbox { margin-left: 10px; width: 200px; }



.user-details .button { margin-left: 140px; }



.user-details .paramlist .paramlist_key {

width: 130px !important;

padding: 0 0 5px !important;

}



.user-details .paramlist .paramlist_value {

padding: 0 0 5px !important;

}



.user-details .user_name span {

padding-left: 10px;

font-weight: bold;

}



/*usertools*/

#ja-usertools {

position: absolute;

right: 210px;

top: 88px;

}



div#ja-usercolors {

float: right;

padding: 14px 10px 0 0;

}



#ja-usertools ul,

#ja-usercolors ul {

margin: 0;

padding: 0;

display: inline;

}



#ja-usertools ul li,

#ja-usercolors ul li {

margin: 0;

padding: 0 2px;

float: left;

background: none;

}



/* Currency */

#ja-vmcurrency {

float: right;

margin: 0;

padding: 10px 0 0;

}



#ja-vmcurrency br {

display: none;

}



/* Search */

#ja-search {

padding: 5px 10px 0 25px;

float: right;

height: 22px;

font-size: 11px;

z-index: 1;

background: url(../images/icon-search.gif) no-repeat left 7px;

}



#ja-search label {

display: none;

}



#ja-search .inputbox {

padding: 1px 0 1px 5px;

color: #CCCCCC;

width: 120px;

background: #333333;

border: 2px solid #3F4347;

}



*+html #ja-search .inputbox { /*IE 7*/

width: 108px;

}



*+html #ja-search .button { /*IE 7*/

  padding: 1px 0px 1px 8px!important;

}



#ja-search .button {

font-size: 11px;

margin-left: 5px;

padding: 1px 5px 1px;

}



/* Contact ---*/

#component-contact address { font-style: normal; }



#component-contact #emailForm { border-top: 1px solid #ddd; padding-top: 15px; }



.contact_email { margin: 0 0 10px; }



.contact_email label { font-weight: bold; display: block; }



.contact_email_checkbox { margin: 15px 0; }







/*others*/

#ja-banner {

float: right;

margin: 20px 30px 0 0;

padding: 0;

text-align: center;

overflow: hidden;

}



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;

}



div.ja-innerdiv {

padding: 8px 0 9px !important;

background: url(../images/dot.gif) repeat-x left bottom !important;

}



div.ja-innerdiv .title {

display: block;

font-weight: bold;

}



div.ja-innerdiv img {

border: 1px solid #DDDDDD;

margin: 5px 8px 0 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 */

* HTML .clearfix {

height: 1%; /* IE5-6 */

}



html[xmlns] .clearfix { /* O */

display: block; 

}



.clearfix:after { /* FF, O, etc. */

content: ".";

display: block;

height: 0;

clear: both;

visibility: hidden;

}



/* Badge Module ---*/

.badge {

height: 46px;

position: absolute;

right: 0;

top: 0;

width: 45px;

}



.badge-hot .badge { background: url(../images/icon-badge.png) no-repeat 0px 0px; }

.badge-new .badge { background: url(../images/icon-badge.png) no-repeat 0px -46px; }

.badge-pick .badge { background: url(../images/icon-badge.png) no-repeat 0px -92px; }

.badge-top .badge { background: url(../images/icon-badge.png) no-repeat 0px -138px; }



.badge-hot .ja-box-ct,

.badge-top .ja-box-ct,

.badge-pick .ja-box-ct,

.badge-new .ja-box-ct {

padding: 10px 35px 10px 10px !important;

}



/*******VM****/



.vmCartContainer div {

float: none !important;

}



.vmCouponField td {

padding: 10px;

}



.browseProductDescription div {

margin-top: 0px !important;

}



/* JA-BOX */

.ja-rounded-box {

position: relative;

background:  #fff  url(../images/rounded-box-ct.gif) repeat-x left bottom !important;

border: 1px solid #CBCBCB;

padding: 8px 0;

}



.rounded-box {

position: absolute;

width: 10px;

height: 10px;

}



.ja-rounded-box-tl {

background: url(../images/box-tl.gif) no-repeat left top;

left: -1px;

top: -1px;

}



.ja-rounded-box-tr {

background: url(../images/box-tr.gif) no-repeat right top;

right: -1px;

top: -1px;

}



.ja-rounded-box-bl {

background: url(../images/box-bl.gif) no-repeat left bottom;

left: -1px;

bottom: -1px;

}



.ja-rounded-box-br {

background: url(../images/box-br.gif) no-repeat right bottom;

right: -1px;

bottom: -1px;

}







*

Shustry

  • Moderator
  • 6434
  • 745 / 3
Код
td {border-collapse:collapse !important; border:1px solid #000 !important;}
В любом месте. Стопроцентно работает. ^-^ Только придётся весь сайт делать правильно. Т.е. никаких таблиц в вёрстке.
*

darkmaster

  • Осваиваюсь на форуме
  • 18
  • 1 / 0
Код
td {border-collapse:collapse !important; border:1px solid #000 !important;}
В любом месте. Стопроцентно работает.

Весь шаблон слетел
*

CTPZ

  • Захожу иногда
  • 305
  • 24 / 5
Shusty, зачем так много?
Нужно, чтоьбы таблицы правильно отображались в контенте? Пишем и самом конце template.css:
Код: css
.имя_конент_класса td {border:1px solid #000;}
и вуаля.
*

Shustry

  • Moderator
  • 6434
  • 745 / 3
Shusty, зачем так много?
Нужно, чтоьбы таблицы правильно отображались в контенте? Пишем и самом конце template.css:
Код: css
.имя_конент_класса td {border:1px solid #000;}
и вуаля.
Осталось только узнать имя_контент_класса, да? ;). Так как ТС ссылки на сайт не привёл, я написал единственно правильное решение на основе входных данных. Написал специально так, ибо нефик таблицами верстать. раз шаблон слетел, значит так свёрстан.
*

CTPZ

  • Захожу иногда
  • 305
  • 24 / 5
У ТС шаблон JA Zeolite II. Я в демке глянул, походу там div с идентификатором ja-current-content
Следовательно код должен быть таким:
Код: css
#ja-current-content td {border:1px solid #000;}
*

darkmaster

  • Осваиваюсь на форуме
  • 18
  • 1 / 0

Следовательно код должен быть таким:
Код: css
#ja-current-content td {border:1px solid #000;}
[/quote]

Шаблон не слетел все на месте, рамки появились правда даже там где их быть не должно, например в списке категорий VirtueMart
*

CTPZ

  • Захожу иногда
  • 305
  • 24 / 5
Сделайте для virtuemart'a исключение. FireBug в помощь.
*

darkmaster

  • Осваиваюсь на форуме
  • 18
  • 1 / 0
Нашел правильный идентификатор для статей в Joomla
вставил этот код и все работает корректно
Код
.article-content td {border:1px solid #000;}

но в VirtueMart этого класса нет и там все по старому. Там таблица начинается так

Код
<div style="width:100%;float:left;">
<p>Общая информация по моей коллекции</p>

<table rules="all" frame="void" style="width: 677px; height: 12182px; border: 1px solid #000000;" border="1" cellpadding="1" cellspacing="1">
<colgroup><col width="29"></col> <col width="189"></col> <col width="300"></col> <col width="38"></col> <col width="37"></col> <col width="21"></col> <col width="19"></col> <col width="44"></col> </colgroup>
<tbody>
<tr height="17">
<td height="17" width="29"><span style="text-decoration: underline;"> </span><br /></td>
<td width="189"><strong>The name of the   City</strong></td>
<td width="300"><strong>The name of the   Brewery</strong></td>

<td width="38"><strong>Open</strong></td>
<td width="37"><strong>Clos.</strong></td>

*

darkmaster

  • Осваиваюсь на форуме
  • 18
  • 1 / 0
В VirtueMart тоже все сделал. Там нужно было взять свойства ячейки сделать цвет границ черным (он по умолчанию белый) и применить это ко всей таблице.
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться