ae1d73c3d6
- Add: Expert mode setting - Add: Activation and Deactivation of WordPress hooks to look for Footnotes (expert mode) - Add: WordPress hooks: 'the_title' and 'widget_title' (default: disabled) to search for Footnote short codes - Bugfix: Default value for the WordPress hook the_post to be disabled (adds Footnotes twice to the Reference container) - Bugfix: Activation, Deactivation and Uninstall hook class name - Bugfix: Add submenu pages only once for each ManFisher WordPress Plugin - Bugfix: Display the Reference container in the Footer correctly git-svn-id: https://plugins.svn.wordpress.org/footnotes/tags/1.5.5@1004129 b8457f37-d9ea-0310-8a92-e5e31aec5664
37 lines
No EOL
1.1 KiB
PHP
37 lines
No EOL
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Includes all common files.
|
|
*
|
|
* @filesource
|
|
* @author Stefan Herndler
|
|
* @since 1.5.0 14.09.14 13:40
|
|
*/
|
|
|
|
/**
|
|
* Requires (require_once) all *.php files inside a specific Directory.
|
|
*
|
|
* @author Stefan Herndler
|
|
* @since 1.5.0
|
|
* @param string $p_str_Directory Absolute Directory path to lookup for *.php files
|
|
*/
|
|
function MCI_Footnotes_requirePhpFiles($p_str_Directory) {
|
|
// append slash at the end of the Directory if not exist
|
|
if (substr($p_str_Directory, -1) != "/") {
|
|
$p_str_Directory .= "/";
|
|
}
|
|
// get all PHP files inside Directory
|
|
$l_arr_Files = scandir($p_str_Directory);
|
|
// iterate through each class
|
|
foreach ($l_arr_Files as $l_str_FileName) {
|
|
// skip all non *.php files
|
|
if (strtolower(substr($l_str_FileName, -4)) != ".php") {
|
|
continue;
|
|
}
|
|
/** @noinspection PhpIncludeInspection */
|
|
require_once($p_str_Directory . $l_str_FileName);
|
|
}
|
|
}
|
|
|
|
MCI_Footnotes_requirePhpFiles(dirname(__FILE__) . "/class");
|
|
MCI_Footnotes_requirePhpFiles(dirname(__FILE__) . "/class/dashboard");
|
|
MCI_Footnotes_requirePhpFiles(dirname(__FILE__) . "/class/widgets"); |