Created
May 21, 2009 16:43
-
-
Save hunk/115563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#example the helper functions in Breeze | |
/** | |
* Path the Wordpress : /home/sites/kasabian | |
* Url the Worspress : kasabian.local | |
* Module name: fire | |
* Template name : big | |
* | |
* | |
*/ | |
get_template_name(); // big | |
get_template_path(); // /home/sites/kasabian/wp-content/breeze-modules/fire/templates/big/ | |
get_template_url(); // http://kasabian.local/wp-content/breeze-modules/fire/templates/big/ | |
get_module_name(); // fire | |
get_module_path(); // /home/sites/kasabian/wp-content/breeze-modules/fire/ | |
get_module_url(); // http://kasabian.local/wp-content/breeze-modules/fire/ | |
// one field type file called logo | |
get_image_url("logo"); // http://kasabian.local/wp-content/breeze-modules/fire/templates/big/upload/1242918001logo.jpg | |
//with phpthumb | |
$data = array('w'=>200,'h' => 250,"zc" => 1); // all params the phpthumb | |
get_image_phpthumb("logo", $data); // ?src=http://kasabian.local/wp-content/breeze-modules/fire/templates/big/upload/1242918001logo.jpg&w=200&h=250&zc=1 | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment