#Credits
Plugin Name: Credits
Author: Biro Florin
Author Website: documentator.org
Created: 1/12/2014 23:58:49
Version: 1.0.0
Download source: GitHub
Credits is a sample plugin. Its main purpose is to give developers a starting example on developing plugins but it also changes the Documentator's footer "Powered by" link with Terms and Conditions and Privacy Policy pages
To modify the T&C and Privacy pages open the 'views' folder and modify the content in files 'terms.php' and 'privacy.php' to fit your needs
Credits plugin is a good example on how to create & register custom pages in Documentator.
Hooks in use:
hook('js', null, 'credits_js');
hook('css', null, 'credits_css');
hook('translate', null, 'credits_translate');
hook('footer_right', null, false);
hook('footer_right', null, 'credits_output');
hook('pages_url', null, 'credits_pages');
hook('page_terms', null, 'credits_terms_page');
hook('page_privacy', null, 'credits_privacy_page');
Functions in use:
plugin_path(__FILE__);
plugin_url(__FILE__);
get_path();
_t($translate)
Plugin structure:
- assets
- scripts.js
- style.css
- translate
- en.ini
- views
- terms.php
- privacy.php
- index.php