Skip to content

birox/credits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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:

  1. hook('js', null, 'credits_js');
  2. hook('css', null, 'credits_css');
  3. hook('translate', null, 'credits_translate');
  4. hook('footer_right', null, false);
  5. hook('footer_right', null, 'credits_output');
  6. hook('pages_url', null, 'credits_pages');
  7. hook('page_terms', null, 'credits_terms_page');
  8. 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

About

Credits sample plugin for Documentator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages