Template Tags

From IThemes Codex
(Difference between revisions)
Jump to: navigation, search
(Created page with "You can manually call Tipsy if you know the Group ID. <pre class="brush:php"> <?php /* * pb_tipsy() * Insert a Tipsy tooltip * * * The defaults for the parameter $args are:...")
 
 
Line 29: Line 29:
 
) ); ?>
 
) ); ?>
 
</pre>
 
</pre>
 
To see a live example of this template tag in use, please download our Tipsy Page Template (should be able to drop into any theme to test it):  [[File:Tipsy.php.zip]]
 
  
 
<br />
 
<br />
 
[[:Tipsy|← Back to Tipsy Codex Home]]
 
[[:Tipsy|← Back to Tipsy Codex Home]]

Latest revision as of 17:10, July 16, 2013

You can manually call Tipsy if you know the Group ID.

<?php
/*
* pb_tipsy()
* Insert a Tipsy tooltip
*
*
* 		The defaults for the parameter $args are:
*		content - Default is an empty string - The content to show in the tooltip
*		group - Default is 0 - The Group ID (you can get this from the Tipsy settings)
*		filler - Default is an empty string - The text that people hover/click on to view the tooltip
*		use_oembed - Default is false - Whether you intend to use oembed to embed a video
*
*
* @param array $args Elements that make up a voting group to insert.
* @return Tip HTML on success */
?>
<td id="accordion" align="left">
<?php echo pb_tipsy( array(
	'content' => 'http://www.youtube.com/watch?v=NfBsRc0R3Ps&hd=1',
	'filler' => 'Admin Dashboard',
	'group' => 1,
        'use_oembed' => true

) ); ?>


← Back to Tipsy Codex Home

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox