Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

no puedo agregar etiqueta div en codigo php

Estas en el tema de no puedo agregar etiqueta div en codigo php en el foro de Sistemas de gestión de contenidos en Foros del Web. hola gente.. quisiera poner el texto del parrafo elegido para el "readmore" en negrita y cursiva .. prove varias opciones y no me sale ... ...
  #1 (permalink)  
Antiguo 01/05/2014, 08:48
 
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; ?>
  #2 (permalink)  
Antiguo 04/05/2014, 10:04
 
Fecha de Ingreso: junio-2008
Mensajes: 82
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: no puedo agregar etiqueta div en codigo php

al final nadie ayuda... alguien sabe de otro foro que puedan ayudar?
  #3 (permalink)  
Antiguo 05/05/2014, 10:24
Avatar de ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 1 mes
Puntos: 1146
Respuesta: no puedo agregar etiqueta div en codigo php

1.- el template mensionado es premium y aqui no damos soporte para productos premium.
2.- para tener 5 años registrado deberias saber que tu consulta puede tomar dias para ser respondido, no todos estamos de flojos esperando a ver quien necesita ayuda... se peciente y alguien te ayudara si puede, recuerda que tenemos nuestro propio trabajo y/o actividades.
3.- al ser premium seguro nadie respondera tu mejor opcion es contactar al soporte tecnico de donde lo compraste, pagaste y tienes derecho al soporte.
4.- si el soporte tecnico no te responde busca examina el codigo con firebug
5.- si no lo has comprado pues corre a comprarlo que seguro el soporte te soluciona todo.

Etiquetas: aplicaciones-prefabricadas, php
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:48.