コード例 #1
0
									.	"});"
									.	"$( '.cbFeed' ).each( function() {"
									.		"$( this ).find( '.cbFeedShowMore,.cbFeedShowMoreLink' ).first().show();"
									.	"});";

		$_CB_framework->outputCbJQuery( $js );
	}
}

switch ( $mode ) {
	case 5:
		$cbVersion					=	modCBAdminHelper::getLatestCBVersion();
		$messages					=	array();

		if ( $cbVersion && ( version_compare( $cbVersion, $ueConfig['version'] ) > 0 ) ) {
			modCBAdminHelper::enableUpdateSite();

			$latestVersion			=	'<span class="cbUpdateVersion label label-danger">' . $cbVersion . '</span>';

			$learnButton			=	'<a href="https://www.joomlapolis.com/?pk_campaign=in-cb&amp;pk_kwd=admin-module-update-button" target="_blank"><button class="btn btn-primary cbLearnButton">' . CBTxt::T( 'Learn More' ) . '</button></a>';

			/** @noinspection HtmlUnknownTarget */
			$updateButton			=	'<a href="index.php?option=com_installer&amp;view=update"><button class="btn btn-primary cbUpdateButton">' . CBTxt::T( 'Update Now' ) . '</button></a>';

			$messages[]				=	'<div class="cbUpdateNotification alert alert-danger">'
									.			CBTxt::T( 'COMMUNITY_BUILDER_VERSION_VERSION_IS_AVAILABLE_BUTTON', 'Community Builder version [version] is available: [learn_button] [update_button]', array( '[version]' => $latestVersion, '[learn_button]' => $learnButton, '[update_button]' => $updateButton ) )
									.	'</div>';
		}

		if ( get_magic_quotes_gpc() ) {
			$phpFunction			=	'<span class="cbDisableFunction label label-danger">magic_quotes_gpc</span>';