AAAA getMenu() -> getActive(); $show = $this->params->get( 'show' ); if ( $show ) { if ( !is_array( $show ) ) { $shows[] = $show ; } else { $shows = $show ; } foreach ( $shows as $va ) { if ( $va == 'other' ) { if ( ( $active->component != 'com_content' ) || ( $context != 'com_content.article' ) ) { return ; } } else { if ( ( JRequest :: getVar( 'view' ) ) == $va ) { return ; } if ( $va == 'frontpage' ) { $menu = $app->getMenu(); if ($active == $menu->getDefault()) { return ; } } } } } if ( $context != 'mod_custom.content' ) { $exclude_cat = $this->params->get( 'exclude_cat' , 0 ); if ( !empty( $exclude_cat ) ) { if ( strlen( array_search( $row->catid , $exclude_cat ) ) ) { return ; } } $exclude_art = $this->params->get( 'exclude_art' , '' ); $articlesArray = explode( "," , $exclude_art ); if( !empty( $exclude_art ) ) { if ( strlen( array_search( $row->id , $articlesArray ) ) ) { return ; } } require_once JPATH_BASE . '/components/com_content/helpers/route.php' ; $Itemid = JRequest::getVar( "Itemid" , "1" ); if ( $row->id ) { $link = JURI::getInstance(); $root = $link->getScheme() . "://" . $link->getHost(); if ( $active->component == 'com_content' ) { if ( $row->slug && $row->catslug ) { $link = JRoute::_( ContentHelperRoute::getArticleRoute( $row->slug , $row->catslug ) , false ); } } $link = $root . $link ; } else { $jURI = &JURI::getInstance(); $link = $jURI->toString(); } $facebook_width = $this->params->get( 'facebook_width' ); $twitter_width = $this->params->get( 'twitter_width' ); $googleplus_width = $this->params->get( 'googleplus_width' ); $linkedin_width = $this->params->get( 'linkedin_width' ); $html = '' ; $html .= '
' ; $html .= '
' ; $document = JFactory::getDocument(); $config = JFactory::getConfig(); $pattern = "/]*src\=['\"]?(([^>]*)(jpg|gif|png|jpeg))['\"]?/" ; preg_match( $pattern , $row->text , $matches ); if ( !empty( $matches ) ) { $document->addCustomTag( '' ); } if ( $this->params->get( 'facebook' ) == 1 ) { $sitename = $config->get( 'sitename' ); $document->addCustomTag( '' ); $document->addCustomTag( '' ); $document->addCustomTag( '' ); $document->addCustomTag( '' ); $html .= '
' ; $html .= '' ; $html .= '
' ; } else { $html .= '' ; } if ( $this->params->get( 'twitter' ) == 1 ) { $html .= '
' ; $html .= '' ; $html .= '
' ; } else { $html .= '' ; } if ( $this->params->get( 'google' ) == 1 ) { $doc = JFactory::getDocument(); $document->addCustomTag( ''); $html .= '
' ; $html .= '' ; $html .= '
'; } else { $html .= '' ; } if ( $this->params->get( 'linkedin' ) == 1 ) { $html .= '
' ; $html .= '' ; $html .= '
' ; } else { $html .= '' ; } $html .= '
' ; $html .= '
' ; $position = $this->params->get( 'position' , 'above' ) ; if ( $this->params->get( 'show_front' ) == 1 ) { if ( $position == 'above' ) { $row->text = $html . $row->text ; $row->introtext = $html . $row->introtext ; } else { $row->text .= $html ; $row->introtext .= $html ; } } else { if ( $position == 'above' ) { $row->text = $html . $row->text ; } else { $row->text .= $html ; } } } } } ?>