Hi,
I’m trying to add a link between arrows in posslider depend on current language.
I added two following lines in 507 line in Postslider.php file and it seems not to work.
Is anything wrong with the code?
protected function slide_navigation_arrows()
{
$html = "";
$html .= "<div class='avia-slideshow-arrows avia-slideshow-controls'>";
$html .= "<a href='#prev' class='prev-slide' ".av_icon_string('prev_big').">".__('Previous','avia_framework' )."</a>";
if ( ICL_LANGUAGE_CODE=='it' ) { $html .= "<a href='/it/archive'>"Archive IT"</a>";}
elseif ( ICL_LANGUAGE_CODE=='en' ) { $html .= "<a href='/en/archive'>"Archive EN"</a>"; }
$html .= "<a href='#next' class='next-slide' ".av_icon_string('next_big').">".__('Next','avia_framework' )."</a>";
$html .= "</div>";
return $html;
}
Thank you for suggestions.
I forgot dots
if ( ICL_LANGUAGE_CODE=='it' ) { $html .= "<a href='/it/archive'>".'Archive IT'."</a>";}
elseif ( ICL_LANGUAGE_CODE=='en' ) { $html .= "<a href='/en/archive'>".'Archive en'."</a>"; }
Hey!
and I can see some more areas with the php been a bit confused.
Have you solved it ( based on your second reply ) or not?
Cheers!
Basilis
yes, sure :) Thanks!