Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-05-05 23:13:12

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Backlight phplugins hook locations

I've created a phplugins file that I can apply to any Backlight template to see where on the page the hooks appear.
You can see a demo here: http://backlight.barbeephoto.com/hook-locations/ for a regular page.
And here to see the hook locations that apply to albums: http://backlight-rb-test.barbeephoto.co … locations/

If you want to create your own, here's the code I used. Just put it in your phplugins-sample.php file. I renamed mine to hook-location.php so that it's obvious when choosing it in the template's Advance Customization tab.
http://backlight.theturninggate.net/doc … _phplugins

/*php hook locations demo*/

function ttg_header_top( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_header_top hook location.</p>
	';
	return true;
} // END

function ttg_header_bottom( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_header_bottom hook location.</p>
	';
	return true;
} // END

function ttg_masthead_top( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_masthead_top hook location.</p>
	';
	return true;
} // END

function ttg_masthead_bottom( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_masthead_bottom hook location.</p>
	';
	return true;
} // END

function ttg_main_top( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_main_top hook location.</p>
	';
	return true;
} // END

function ttg_main_bottom( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_main_bottom hook location.</p>
	';
	return true;
} // END

function ttg_copy_top( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_copy_top hook location.</p>
	';
	return true;
} // END

function ttg_copy_bottom( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_copy_bottom hook location.</p>
	';
	return true;
} // END

function ttg_tray01_top( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_tray01_top hook location.</p>
	';
	return true;
} // END

function ttg_tray01_bottom( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_tray01_bottom hook location.</p>
	';
	return true;
} // END

function ttg_tray02_top( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_tray02_top hook location.</p>
	';
	return true;
} // END

function ttg_tray02_bottom( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_tray02_bottom hook location.</p>
	';
	return true;
} // END
function ttg_navigation( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_navigation hook location.</p>
	';
	return true;
} // END

function ttg_footer_top( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_footer_top hook location.</p>
	';
	return true;
} // END

function ttg_footer_bottom( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_footer_bottom hook location.</p>
	';
	return true;
} // END

function ttg_gallery_top( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_gallery_top hook location.</p>
	';
	return true;
} // END

function ttg_gallery_bottom( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_gallery_bottom hook location.</p>
	';
	return true;
	
	function ttg_single_top( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_gallery_top hook location.</p>
	';
	return true;
} // END

function ttg_single_bottom( $style, $path ) { 
	echo '<p style="color:red;">This is the ttg_gallery_bottom hook location.</p>
	';
	return true;
} // END

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#2 2016-11-11 08:39:06

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight phplugins hook locations

updated above for hooks new to Backlight 1.1


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2017-07-07 05:41:44

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight phplugins hook locations

I've created a Pangolin-based page to show the latest hook locations.
http://pangolin.barbeephoto.com/hook-locations-page/
There's a link on that page to a blog post that contains another link to a text file that you can use for your own page.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB