G_STYLE Identifiers for CE2 Engines

G_STYLE identifiers are used to target specific gallery types when authoring PHPlugins. The following list is a comprehensive reference of G_STYLE identifiers for CE2 plug-ins.

CE2 Mobile Gallery

CE2-MOBILE

TTG CE2 Auto Index

CE2-AUTOINDEX

TTG CE2 Cart

CE2-CART

TTG CE2 Client Response Gallery

CE2-CLIENTRESPONSE

TTG CE2 Highslide Gallery

CE2-HIGHSLIDE

TTG CE2 Horizon

CE2-HORIZON

TTG CE2 Pages

In TTG CE2 Pages, each page has a separate G_STYLE identity. To target all pages in a single function, see code examples below. The G_STYLE identifiers are:

CE2-PAGES-HOME
CE2-PAGES-GALLERIES
CE2-PAGES-SERVICES
CE2-PAGES-INFO
CE2-PAGES-ABOUT
CE2-PAGES-CONTACT

*/

// TARGET ALL PAGES IN TTG CE2 PAGES
function ttg_user_function( $style, $path ) { 

	if(preg_match('/^CE2-PAGES-(.*)$/', G_STYLE)) {

	// FUNCTION HERE

	}

} // END

// TARGET SPECIFIC PAGE IN TTG CE2 PAGES
function ttg_user_function( $style, $path ) { 

	if (G_STYLE == 'CE2-PAGES-HOME') {

	// FUNCTION HERE

	}

} // END

TTG CE2 Photoswipe Gallery

CE2-PHOTOSWIPE

TTG CE2 Stage

CE2-STAGE

TTG CE2 Theme for WordPress

CE2-WORDPRESS

Print/export