Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/05/2014, 08:48
leoncito34
 
Fecha de Ingreso: junio-2008
Mensajes: 82
Antigüedad: 15 años, 10 meses
Puntos: 2
no puedo agregar etiqueta div en codigo php

hola gente.. quisiera poner el texto del parrafo elegido para el "readmore" en negrita y cursiva .. prove varias opciones y no me sale ... seguro que algún experto en php podría ayudarme .. deberia agregar un div en alguna parte del codigo php ... probe modificando <p class="readmore"> desde el archivo template.css (font-weight:bold y font-style: italic.... ni siquiera con !importan) y no lo toma .. probe agrenado un div que envuelva el mencionado y nada...

estoy usando la plantilla http://demo.gavick.com/joomla25/news/ ... y no estoy utilizando el k2 (en la demo lo utiliza mucho)

Código PHP:
Ver original
  1. <div class="itemBody">
  2.     <?php  if (!$params->get('show_intro')) : ?>
  3.         <?php echo $this->item->event->afterDisplayTitle; ?>
  4.     <?php endif; ?>
  5.     <?php echo $this->item->event->beforeDisplayContent; ?>
  6.     <?php if (isset ($this->item->toc)) : ?>
  7.         <?php echo $this->item->toc; ?>
  8.     <?php endif; ?>
  9.    
  10.     <?php if (isset($urls) AND ((!empty($urls->urls_position) AND ($urls->urls_position=='0')) OR  ($params->get('urls_position')=='0' AND empty($urls->urls_position) ))
  11.             OR (empty($urls->urls_position) AND (!$params->get('urls_position')))): ?>
  12.     <?php echo $this->loadTemplate('links'); ?>
  13.    
  14.     <?php endif; ?>
  15.    
  16.     <?php if ($params->get('access-view')):?>
  17.    
  18.     <?php
  19.     if (!empty($this->item->pagination) AND $this->item->pagination AND !$this->item->paginationposition AND !$this->item->paginationrelative):
  20.         echo $this->item->pagination;
  21.      endif;
  22.     ?>
  23.        
  24.     <?php echo $this->item->text; ?>
  25.        
  26.     <?php if (isset($urls) AND ((!empty($urls->urls_position)  AND ($urls->urls_position=='1')) OR ( $params->get('urls_position')=='1') )): ?>
  27.     <?php echo $this->loadTemplate('links'); ?>
  28.     <?php endif; ?>
  29.    
  30.     <?php if (!empty($this->item->pagination) AND $this->item->pagination AND $this->item->paginationposition AND!$this->item->paginationrelative): ?>
  31.     <?php echo $this->item->pagination; ?>
  32.     <?php endif; ?>
  33.    
  34.     <?php elseif ($params->get('show_noauth') == true and  $user->get('guest') ) : ?>
  35.         <?php echo $this->item->introtext; ?>
  36.    
  37.         <?php //Optional link to let them register to see the whole article. ?>
  38.    
  39.         <?php if ($params->get('show_readmore') && $this->item->fulltext != null) :
  40.             $link1 = JRoute::_('index.php?option=com_users&view=login');
  41.             $link = new JURI($link1);?>                
  42.            
  43.             <p class="readmore">
  44.            
  45.             <a href="<?php echo $link; ?>">
  46.             <?php $attribs = json_decode($this->item->attribs);  ?>
  47.             <?php
  48.             if ($attribs->alternative_readmore == null) :
  49.                 echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
  50.             elseif ($readmore = $this->item->alternative_readmore) :
  51.                 echo $readmore;
  52.                 if ($params->get('show_readmore_title', 0) != 0) :
  53.                     echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
  54.                 endif;
  55.             elseif ($params->get('show_readmore_title', 0) == 0) :
  56.                 echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
  57.             else :
  58.                 echo JText::_('COM_CONTENT_READ_MORE');
  59.                 echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
  60.                
  61.             endif; ?></a>
  62.            
  63.             </p>
  64.                            
  65.         <?php endif; ?>
  66.     <?php endif; ?>
  67. </div>
  68.     <?php if (!empty($this->item->pagination) AND $this->item->pagination AND $this->item->paginationposition AND $this->item->paginationrelative): ?>
  69.         <?php echo $this->item->pagination;?>
  70.     <?php endif; ?>