arc-hive-wordpress-plugin/arcHIVE-wp-plugin.php

73 lines
2.6 KiB
PHP
Raw Normal View History

2021-04-15 13:48:04 +02:00
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
2022-03-30 11:45:42 +02:00
* @link https://arc-hive.zone
2021-04-15 13:48:04 +02:00
* @since 1.0.0
2022-03-30 11:45:42 +02:00
* @package arcHIVE_WPPlugin
2021-04-15 13:48:04 +02:00
*
* @wordpress-plugin
2022-03-30 13:20:45 +02:00
* Plugin Name: arcHIVE WP Plugin for theme support
* Plugin URI: https://git.hangar.org/arcHIVE-tech/arc-hive-wordpress-plugin
2022-03-30 11:45:42 +02:00
* Description: All the <strong>options</strong> for <strong>arcHIVE website</strong> which do not come by default with Wordpress.
* Version: 1.1.0
* Date: 2022 03 14
* Author: Jorge - vitrubio.net
* Author URI: https://vitrubio.net/
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: archive-wpplugin
* Domain Path: /languages
2021-04-15 13:48:04 +02:00
*/
2022-03-30 11:45:42 +02:00
/**
* howto write a pluggin by Wordpress.org
* https://codex.wordpress.org/Writing_a_Plugin
* https://developer.wordpress.org/plugins/plugin-basics/best-practices/
* https://themefoundation.com/wordpress-meta-boxes-guide/
*/
2021-04-15 13:48:04 +02:00
2022-03-30 11:45:42 +02:00
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
//defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
/**
* Currently plugin version.
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'ARCHIVE_WPPLUGIN_VERSION', '1.1.0' );
2021-04-15 13:48:04 +02:00
/* *
2022-03-30 13:11:52 +02:00
* define Plugin path
* https://developer.wordpress.org/reference/functions/plugin_dir_path/#comment-1113
2021-04-15 13:48:04 +02:00
* * * * * * * * * * * * * * * * * * */
2022-03-30 13:11:52 +02:00
define( 'ARCHIVE_WPPLUGIN_PATH', plugin_dir_path( __FILE__ ) );
2021-04-15 13:48:04 +02:00
2022-03-30 13:11:52 +02:00
include( ARCHIVE_WPPLUGIN_PATH . 'includes/arcHIVE-init-textdomain.php');
2021-04-15 13:48:04 +02:00
2022-03-30 13:11:52 +02:00
include( ARCHIVE_WPPLUGIN_PATH . 'includes/arcHIVE-enable-svg.php');
2021-04-15 13:48:04 +02:00
2022-03-30 18:36:20 +02:00
2022-03-30 16:42:17 +02:00
// disabled for now
2022-03-30 18:36:20 +02:00
// include( ARCHIVE_WPPLUGIN_PATH . 'includes/arcHIVE-delete-capabilities.php');
2022-03-30 16:42:17 +02:00
// include_once( ARCHIVE_WPPLUGIN_PATH . 'includes/arcHIVE-add-roles.php');
2022-03-30 16:40:03 +02:00
2022-03-30 13:11:52 +02:00
if ( is_admin() ) {
//include_once( plugin_dir_path( __FILE__ ) . 'includes/arcHIVE-admin-stylesheet.php' );
include( ARCHIVE_WPPLUGIN_PATH . 'includes/arcHIVE-admin-stylesheet.php');
} else {
//include_once( plugin_dir_path( __FILE__ ) . 'includes/arcHIVE-public-stylesheet.php' );
include( ARCHIVE_WPPLUGIN_PATH . 'includes/arcHIVE-public-stylesheet.php');
2021-04-15 13:48:04 +02:00
}
2022-03-30 13:11:52 +02:00
2022-03-30 13:20:45 +02:00
include( ARCHIVE_WPPLUGIN_PATH . 'includes/arcHIVE-custom-post-type-resources.php');