Montag, 20 Juli 2009 23:51

contentheading

Ansichten:
  • com_content/category
  • com_content/article
  • com_content/frontpage
  • com_content/section
CSS Code: .contentheading { background-color: yellow; border: 1px solid red; }
HTML Ansicht: CSS Guide
HTML Code: {codecitation class="gutter: false;width:100%;"}

CSS Guide

{/codecitation}
Joomla PHP Code:
<?php if ($this->params->get('show_title')) : ?>
<h2 class="contentheading">
<?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
<a href="" class="contentpagetitle">
<?php echo $this->article->title; ?></a>
<?php else :
echo $this->escape($this->article->title);
endif; ?>
</h2>
<?php endif; ?>
Published in Joomla CSS Guide
Montag, 20 Juli 2009 23:51

blog

Ansichten:
  • com_content/category
  • com_content/frontpage
  • com_content/section
CSS Code: .blog { background-color: yellow; padding: 10px ; border: 1px solid red;}

Joomla PHP Code:
<div class="blog">
 
<?php if ($this->params->def('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
<div class="contentdescription">
 
<?php if ($this->params->get('show_description_image') && $this->category->image) : ?>
<img src="" class="image_" />
<?php endif; ?>
 
<?php if ($this->params->get('show_description') && $this->category->description) :
echo $this->category->description;
endif; ?>
 
<?php if ($this->params->get('show_description_image') && $this->category->image) : ?>
<div class="wrap_image">&nbsp;</div>
<?php endif; ?>
 
</div>
<?php endif; ?>
 
<?php $i = $this->pagination->limitstart;
$rowcount = $this->params->def('num_leading_articles', 1);
for ($y = 0; $y < $rowcount && $i < $this->total; $y++, $i++) : ?>
<div class="leading">
<?php $this->item =& $this->getItem($i, $this->params);
echo $this->loadTemplate('item'); ?>
</div>
<span class="leading_separator">&nbsp;</span>
<?php endfor; ?>
 
<?php $introcount = $this->params->def('num_intro_articles', 4);
if ($introcount) :
$colcount = $this->params->def('num_columns', 2);
if ($colcount == 0) :
$colcount = 1;
endif;
$rowcount = (int) $introcount / $colcount;
$ii = 0;
for ($y = 0; $y < $rowcount && $i < $this->total; $y++) : ?>
<div class="article_row">
<?php for ($z = 0; $z < $colcount && $ii < $introcount && $i
< $this->total; $z++, $i++, $ii++) : ?>
<div class="article_column column cols" >
<?php $this->item =& $this->getItem($i, $this->params);
echo $this->loadTemplate('item'); ?>
</div>
<span class="article_separator">&nbsp;</span>
<?php endfor; ?>
<span class="row_separator">&nbsp;</span>
</div>
<?php endfor;
endif; ?>
 
<?php $numlinks = $this->params->def('num_links', 4);
if ($numlinks && $i < $this->total) : ?>
<div class="blog_more">
<?php $this->links = array_slice($this->items, $i - $this->pagination->limitstart,
$i
- $this->pagination->limitstart + $numlinks);
echo $this->loadTemplate('links'); ?>
</div>
<?php endif; ?>
 
<?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination')
== 2 && $this->pagination->get('pages.total') > 1)) : ?>
<?php if( $this->pagination->get('pages.total') > 1 ) : ?>
<p class="counter">
<?php echo $this->pagination->getPagesCounter(); ?>
</p>
<?php endif; ?>
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
<?php echo $this->pagination->getPagesLinks(); ?>
<?php endif; ?>
<?php endif; ?>
 
</div>
Published in Joomla CSS Guide
Montag, 20 Juli 2009 23:51

buttonheading

Ansichten:
  • com_content/category
  • com_content/article
  • com_content/frontpage
  • com_content/section
CSS Code:
p.buttonheading {
text-align:right;
}
 
.buttonheading img
{
border:0;
}
 
p.buttonheading a:link,p.buttonheading a:visited
{
border:solid 2px #fff;
}
 
.leading p.buttonheading a:link,.leading p.buttonheading a:visited
{
border:solid 2px #EFDEEA;
}
 
p.buttonheading a:hover
{
background:none !important;
color:#000 !important;
}
 
p.buttonheading a:active,p.buttonheading a:focus
{
border:solid 2px;
color:#000;
}

Joomla PHP Code:
<p class="buttonheading">
<?php if ($this->print) :
echo JHTML::_('icon.print_screen', $this->article, $this->params, $this->access);
elseif ($this->params->get('show_pdf_icon') || $this->params->get('show_print_icon')
 || $this->params->get('show_email_icon')) : ?>
<img src="/templates/beez/images/trans.gif" alt="" />
<?php if ($this->params->get('show_pdf_icon')) :
echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access);
endif;
if ($this->params->get('show_print_icon')) :
echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access);
endif;
if ($this->params->get('show_email_icon')) :
echo JHTML::_('icon.email', $this->article, $this->params, $this->access);
endif;
endif; ?>
</p>
Published in Joomla CSS Guide