From 9c495c5c8f9fbda4b813a6acb0e1284f5f19a28a Mon Sep 17 00:00:00 2001 From: modela bitweaver Date: Sat, 13 Feb 2021 19:03:53 -0500 Subject: move bit_setup_inc.php to includes/ --- bit_setup_inc.php | 48 ---------------------------------------------- includes/bit_setup_inc.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 48 deletions(-) delete mode 100644 bit_setup_inc.php create mode 100644 includes/bit_setup_inc.php diff --git a/bit_setup_inc.php b/bit_setup_inc.php deleted file mode 100644 index 750b0bf..0000000 --- a/bit_setup_inc.php +++ /dev/null @@ -1,48 +0,0 @@ - 'tags', - 'package_path' => dirname( __FILE__ ).'/', - 'service' => LIBERTY_SERVICE_TAGS, -); -$gBitSystem->registerPackage( $registerHash ); - -if( $gBitSystem->isPackageActive( 'tags' ) && $gBitUser->hasPermission( 'p_tags_view' )) { - // load css file - $gBitThemes->loadCss( TAGS_PKG_PATH.'templates/tags.css' ); - - require_once( TAGS_PKG_CLASS_PATH.'LibertyTag.php' ); - - $menuHash = array( - 'package_name' => TAGS_PKG_NAME, - 'index_url' => TAGS_PKG_URL.'index.php', - 'menu_template' => 'bitpackage:tags/menu_tags.tpl', - ); - $gBitSystem->registerAppMenu( $menuHash ); - - $gLibertySystem->registerService( - LIBERTY_SERVICE_TAGS, - TAGS_PKG_NAME, - array( - 'content_display_function' => 'tags_content_display', - 'content_edit_function' => 'tags_content_edit', - 'content_list_sql_function' => 'tags_content_list_sql', - 'content_store_function' => 'tags_content_store', - 'content_preview_function' => 'tags_content_preview', - 'content_expunge_function' => 'tags_content_expunge', - 'content_edit_mini_tpl' => 'bitpackage:tags/edit_tags_mini_inc.tpl', - 'content_view_tpl' => 'bitpackage:tags/view_tags_view.tpl', - 'content_nav_tpl' => 'bitpackage:tags/view_tags_nav.tpl', - 'content_body_tpl' => 'bitpackage:tags/view_tags_body.tpl', - 'users_expunge_function' => 'tags_user_expunge', - 'content_search_tpl' => 'bitpackage:tags/search_inc.tpl' - ), - array( - 'description' => tra( 'Enables the addition of tags to any content' ), - ) - ); -} -?> diff --git a/includes/bit_setup_inc.php b/includes/bit_setup_inc.php new file mode 100644 index 0000000..750b0bf --- /dev/null +++ b/includes/bit_setup_inc.php @@ -0,0 +1,48 @@ + 'tags', + 'package_path' => dirname( __FILE__ ).'/', + 'service' => LIBERTY_SERVICE_TAGS, +); +$gBitSystem->registerPackage( $registerHash ); + +if( $gBitSystem->isPackageActive( 'tags' ) && $gBitUser->hasPermission( 'p_tags_view' )) { + // load css file + $gBitThemes->loadCss( TAGS_PKG_PATH.'templates/tags.css' ); + + require_once( TAGS_PKG_CLASS_PATH.'LibertyTag.php' ); + + $menuHash = array( + 'package_name' => TAGS_PKG_NAME, + 'index_url' => TAGS_PKG_URL.'index.php', + 'menu_template' => 'bitpackage:tags/menu_tags.tpl', + ); + $gBitSystem->registerAppMenu( $menuHash ); + + $gLibertySystem->registerService( + LIBERTY_SERVICE_TAGS, + TAGS_PKG_NAME, + array( + 'content_display_function' => 'tags_content_display', + 'content_edit_function' => 'tags_content_edit', + 'content_list_sql_function' => 'tags_content_list_sql', + 'content_store_function' => 'tags_content_store', + 'content_preview_function' => 'tags_content_preview', + 'content_expunge_function' => 'tags_content_expunge', + 'content_edit_mini_tpl' => 'bitpackage:tags/edit_tags_mini_inc.tpl', + 'content_view_tpl' => 'bitpackage:tags/view_tags_view.tpl', + 'content_nav_tpl' => 'bitpackage:tags/view_tags_nav.tpl', + 'content_body_tpl' => 'bitpackage:tags/view_tags_body.tpl', + 'users_expunge_function' => 'tags_user_expunge', + 'content_search_tpl' => 'bitpackage:tags/search_inc.tpl' + ), + array( + 'description' => tra( 'Enables the addition of tags to any content' ), + ) + ); +} +?> -- cgit v1.3