Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Procedural File: lib-template.php

Source Location: /system/lib-template.php



Page Details:









CTL_clearCache [line 92]

void CTL_clearCache( [ $plugin = ''])



Parameters

   $plugin  
[ Top ]



CTL_clearCacheDirectories [line 71]

void CTL_clearCacheDirectories( $path, [ $needle = ''])



Parameters

   $path  
   $needle  
[ Top ]



CTL_plugin_dirLocation [line 263]

string CTL_plugin_dirLocation( string $plugin, [string $directory = "images"], [boolean $return_url = true])

Get physical path or url for plugin directory that could be located either in the theme layout directory or the plugins directory



Tags:

return:  url or physical path


Parameters

string   $plugin   name of plugin
string   $directory   name of directory
boolean   $return_url   flag to return url
[ Top ]



CTL_plugin_setTemplatesFunctions [line 294]

void CTL_plugin_setTemplatesFunctions( string $plugin)

Include plugin template functions file which may/may not do anything or exist.

This will currently set any additional css and javascript that is theme specific for a plugin templates




Parameters

string   $plugin   name of plugin
[ Top ]



CTL_plugin_templatePath [line 113]

array CTL_plugin_templatePath( $plugin, [string $path = ''])

Get path for the plugin template files.



Tags:

return:  full path to possible template directories


Parameters

string   $path   subdirectory within the base template path
   $plugin  
[ Top ]



CTL_plugin_themeFindFile [line 181]

string CTL_plugin_themeFindFile( string $plugin, string $directory, string $filename, [boolean $return_url = true])

Get HTML path for a plugin file (url or physical file location).

Order of checking is:

  • theme path/plugin/file
  • html path/plugin/directory/file
  • html path/plugin/directory/theme/file
  • html path/plugin/directory/theme_default/file * if default theme exists
  • html path/plugin/directory/default/file
  • html path/plugin/file (url path only)
  • plugin path/plugin/directory/theme/file (physical path only)
  • plugin path/plugin/directory/theme_default/file (physical path only) * if default theme exists
  • plugin path/plugin/directory/default/file (physical path only)




Tags:

return:  full HTML path to file


Parameters

string   $plugin   name of plugin
string   $directory   name of directory
string   $filename   name of file
boolean   $return_url   return url path or file path
[ Top ]



CTL_setTemplateRoot [line 43]

array CTL_setTemplateRoot( string $root)

Returns possible theme template directories.



Tags:

return:  Theme template directories


Parameters

string   $root   Path to template root
[ Top ]



plugin_configchange_template [line 368]

nothing plugin_configchange_template( $group, [ $changes = array()])

Config Option has changed. (use plugin api)



Parameters

   $group  
   $changes  
[ Top ]



plugin_itemdeleted_template [line 475]

void plugin_itemdeleted_template( string $id, string $type)

To be called (eventually) whenever Geeklog removes an item from the database.

Plugins can define their own 'itemdeleted' function to be notified whenever an item is deleted.




Tags:

since:  Geeklog 1.6.0


Parameters

string   $id   ID of the item
string   $type   type of the item, e.g. 'article'
[ Top ]



plugin_itemsaved_template [line 454]

void plugin_itemsaved_template( string $id, string $type, [string $old_id = ''])

To be called (eventually) whenever Geeklog saves an item into the database.

Plugins can define their own 'itemsaved' function to be notified whenever an item is saved or modified.

NOTE: The behaviour of this API function changed in Geeklog 1.6.0




Tags:

return:  (actually: false, for backward compatibility)
link:  http://wiki.geeklog.net/index.php/PLG_itemSaved


Parameters

string   $id   unique ID of the item
string   $type   type of the item, e.g. 'article'
string   $old_id   (optional) old ID when the ID was changed
[ Top ]



plugin_submissiondeleted_template [line 430]

nothing plugin_submissiondeleted_template( $type)

Submission deleted by Admin



Parameters

   $type  
[ Top ]



plugin_submissionsaved_template [line 414]

nothing plugin_submissionsaved_template( $type)

Submission by a user



Parameters

   $type  
[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:51:42 +0000 by phpDocumentor 1.4.3