From a4822a9ba2782e92119259d58e9a03628a93f3b4 Mon Sep 17 00:00:00 2001 From: modela bitweaver Date: Sat, 13 Feb 2021 19:03:52 -0500 Subject: move bit_setup_inc.php to includes/ --- bit_setup_inc.php | 40 ---------------------------------------- includes/bit_setup_inc.php | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 40 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 ce421b9..0000000 --- a/bit_setup_inc.php +++ /dev/null @@ -1,40 +0,0 @@ - 'blogs', - 'package_path' => dirname( __FILE__ ).'/', - 'homeable' => TRUE, -); -$gBitSystem->registerPackage( $registerHash ); - -if( $gBitSystem->isPackageActive( 'blogs' ) ) { - - if( $gBitUser->hasPermission( 'p_blogs_view' ) ) { - $menuHash = array( - 'package_name' => BLOGS_PKG_NAME, - 'index_url' => BLOGS_PKG_URL.'index.php', - 'menu_template' => 'bitpackage:blogs/menu_blogs.tpl', - 'admin_comments_url' => KERNEL_PKG_URL.'admin/index.php?page=blogs', - ); - $gBitSystem->registerAppMenu( $menuHash ); - - $gLibertySystem->registerService( - LIBERTY_SERVICE_BLOGS, - BLOGS_PKG_NAME, - array( 'module_display_function' => 'blogs_module_display', ), - array( - 'description' => tra( 'A module display service which helps hook in javascript necessary when using the center module on other pages. This is a temporary fix to address a limitation of the rendering order in BitThemes and only applies to blog content.' ), - 'required' => TRUE, - ) - ); - } - - $gBitSystem->registerNotifyEvent( array( "blog_post" => tra("An entry is posted to a blog") ) ); - -} diff --git a/includes/bit_setup_inc.php b/includes/bit_setup_inc.php new file mode 100644 index 0000000..ce421b9 --- /dev/null +++ b/includes/bit_setup_inc.php @@ -0,0 +1,40 @@ + 'blogs', + 'package_path' => dirname( __FILE__ ).'/', + 'homeable' => TRUE, +); +$gBitSystem->registerPackage( $registerHash ); + +if( $gBitSystem->isPackageActive( 'blogs' ) ) { + + if( $gBitUser->hasPermission( 'p_blogs_view' ) ) { + $menuHash = array( + 'package_name' => BLOGS_PKG_NAME, + 'index_url' => BLOGS_PKG_URL.'index.php', + 'menu_template' => 'bitpackage:blogs/menu_blogs.tpl', + 'admin_comments_url' => KERNEL_PKG_URL.'admin/index.php?page=blogs', + ); + $gBitSystem->registerAppMenu( $menuHash ); + + $gLibertySystem->registerService( + LIBERTY_SERVICE_BLOGS, + BLOGS_PKG_NAME, + array( 'module_display_function' => 'blogs_module_display', ), + array( + 'description' => tra( 'A module display service which helps hook in javascript necessary when using the center module on other pages. This is a temporary fix to address a limitation of the rendering order in BitThemes and only applies to blog content.' ), + 'required' => TRUE, + ) + ); + } + + $gBitSystem->registerNotifyEvent( array( "blog_post" => tra("An entry is posted to a blog") ) ); + +} -- cgit v1.3