Skip to content

Commit

Permalink
Retirada de aviso de código na área administrativa; Ampliação da conc…
Browse files Browse the repository at this point in the history
…ordância de gênero dos cargos da agenda de dirigentes; Retirada de aviso na view de autoridades em frontend; Aplicação de URL amigável para links formados a partir do plugin de busca da agenda de dirigentes; Retirada de aviso de código referente à versão 3.2.x (mas o código será mantido padronizado).
  • Loading branch information
berlanda committed Feb 25, 2015
1 parent a040b9c commit d0f95e0
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function display($tpl = null)
$this->form = $this->get('Form');
$this->item = $this->get('Item');

if(is_null($this->item) || $this->item == 0)
if( empty($this->item) )
{
$this->item = new StdClass();
$this->item->id = 0;
Expand Down Expand Up @@ -134,4 +134,4 @@ protected function setDocument()
//strings a serem traduzidas nos arquivos js
JText::script('COM_AGENDADIRIGENTES_FORMVALIDATOR_ERROR_UNACCEPTABLE');
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<?php else: ?>
<?php echo sprintf(
JText::_('COM_AGENDADIRIGENTES_TMPL_AUTORIDADE_AGENDA_CARGO_F')
, $this->autoridade->car_name );
, $this->autoridade->car_name_f );
?>
<?php endif ?>
<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function display($tpl = null)

if(@$this->autoridade->state < 1 || empty($this->autoridade))
{
JLog::add( JText::_('COM_AGENDADIRIGENTES_VIEW_AUTORIDADE_NOTFOUND'), JLog::WARNING, 'jerror');
return false;
JLog::add( JText::_('COM_AGENDADIRIGENTES_VIEW_AUTORIDADE_NOTFOUND'), JLog::WARNING, 'jerror');
return false;
}


Expand Down Expand Up @@ -224,4 +224,4 @@ public function prepararCompromisso( $compromisso )

}

?>
?>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$this->document->addStylesheet( JURI::root().'media/com_agendadirigentes/css/frontend.css' );

?>
<div class="item-page<?php //echo $this->pageclass_sfx?>">
<div class="item-page">
<h1 class="documentFirstHeading">
<?php echo $this->escape($this->page_heading); ?>
</h1>
Expand Down Expand Up @@ -63,4 +63,4 @@
<?php endif; ?>

<?php endfor; ?>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ protected function _prepareDocument()

$this->introtext = $this->params->get('introtext', '');
$this->document = JFactory::getDocument();


//correcao de valor de variavel de classe de pagina, nao informada
if( !isset($this->pageclass_sfx) )
{
$this->pageclass_sfx = '';
}
}
}

?>
?>
4 changes: 2 additions & 2 deletions plugins/search/agendadirigentes/agendadirigentes.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ public function onContentSearch($text, $phrase = '', $ordering = '', $areas = nu
{
foreach ($rows as $key => $row)
{
$rows[$key]->href = JURI::root() . 'index.php?option=com_agendadirigentes&view=autoridade&dia='
$rows[$key]->href = JRoute::_( 'index.php?option=com_agendadirigentes&view=autoridade&dia='
.$rows[$key]->data_inicial.'&id='.$rows[$key]->autoridade_id
.(($Itemid)? '&Itemid='.$Itemid : '');
.(($Itemid)? '&Itemid='.$Itemid : '') );
$rows[$key]->browsernav = 2;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
<?php $imageurl = $item->params->get('imageurl');?>
<?php $width = $item->params->get('width');?>
<?php $height = $item->params->get('height');?>
<?php $description = $item->description;?>
<?php
if(isset($item->description))
$description = $item->description;
else
$description = '';
?>
<?php if (BannerHelper::isImage($imageurl)) :?>
<?php // Image based banner ?>
<?php $alt = $item->params->get('alt');?>
Expand Down Expand Up @@ -126,4 +131,4 @@ classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
<?php echo $footerText; ?>
</div>
<?php endif; ?>
</div>
</div>

0 comments on commit d0f95e0

Please sign in to comment.