break; case 3: static $JS2_loaded = 0; if ( ! $JS2_loaded++ ) { $js = "cbFeedShow = function( element, settings, event, api ) {" . "$( api.elements.target ).addClass( 'cbFeedItemActive' );" . "};" . "cbFeedHide = function( element, settings, event, api ) {" . "$( api.elements.target ).removeClass( 'cbFeedItemActive' );" . "};"; $_CB_framework->outputCbJQuery( $js ); } $xml = modCBAdminHelper::getFeedXML( 'http://www.joomlapolis.com/news?format=feed&type=rss', 'cbnewsfeed.xml', $feedDuration ); if ( $xml ) { $items = $xml->xpath( '//channel/item' ); /** @noinspection PhpIncludeInspection */ require( JModuleHelper::getLayoutPath( 'mod_cbadmin', 'news' ) ); } break; case 2: case 1: default: $menu = array(); /** @noinspection PhpIncludeInspection */ require( JModuleHelper::getLayoutPath( 'mod_cbadmin', 'menu' ) );