User Tools

Site Tools


g_style_identifiers_for_ce4_engines

G_STYLE Identifiers for CE4 Plugins

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 CE4 plugins.

CE4 Auto Index

CE4-AUTOINDEX


CE4-CRG

CE4-MOBILE
Targets the mobile gallery.


CE4-GALLERY

CE4-MOBILE
Targets the mobile gallery.

CE4-CART
Targets the cart view for CE4 Cart.


CE4 Pages

Target individual pages:

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

CE4-PAGES-MOBILE
Targets the mobile gallery.

// TARGET ALL PAGES IN TTG CE4 PAGES
function ttg_user_function( $style, $path ) { 
	if(preg_match('/^CE4-PAGES-(.*)$/', G_STYLE)) {

	// FUNCTION HERE

	}
} // END

// TARGET SPECIFIC PAGE IN TTG CE4 PAGES
function ttg_user_function( $style, $path ) { 
	if (G_STYLE == 'CE4-PAGES-HOME') {

	// FUNCTION HERE

	}
} // END

CE4 Stage

CE4-STAGE


CE4 Theme for WordPress

CE4-WORDPRESS


g_style_identifiers_for_ce4_engines.txt · Last modified: 2015/06/17 06:25 by matthew

The Turning Gate
Creating webbly, wobbly, Lightroomy things since 2007.