| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/BbPress.php.tar |
namtation/wp-content/plugins/all-in-one-seo-pack/app/Common/Standalone/BbPress/BbPress.php 0000644 00000002273 15113702674 0030501 0 ustar 00 home/xbodynamge <?php
namespace AIOSEO\Plugin\Common\Standalone\BbPress;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Handles the bbPress integration with AIOSEO.
*
* @since 4.8.1
*/
class BbPress {
/**
* Instance of the Component class.
*
* @since 4.8.1
*
* @var Component
*/
public $component;
/**
* Class constructor.
*
* @since 4.8.1
*/
public function __construct() {
if (
aioseo()->helpers->isAjaxCronRestRequest() ||
! aioseo()->helpers->isPluginActive( 'bbpress' )
) {
return;
}
// Hook into `plugins_loaded` to ensure bbPress has loaded some necessary functions.
add_action( 'plugins_loaded', [ $this, 'maybeLoad' ], 20 );
}
/**
* Hooked into `plugins_loaded` action hook.
*
* @since 4.8.1
*
* @return void
*/
public function maybeLoad() {
// If the bbPress version is below 2 we bail.
if ( ! function_exists( 'bbp_get_version' ) || version_compare( bbp_get_version(), '2', '<' ) ) {
return;
}
add_action( 'wp', [ $this, 'setComponent' ] );
}
/**
* Hooked into `wp` action hook.
*
* @since 4.8.1
*
* @return void
*/
public function setComponent() {
$this->component = new Component();
}
} home/xbodynamge/dev/wp-content/plugins/all-in-one-seo-pack/app/Common/Integrations/BbPress.php 0000644 00000000776 15114026467 0026370 0 ustar 00 <?php
namespace AIOSEO\Plugin\Common\Integrations;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class to integrate with the bbPress plugin.
*
* @since 4.8.1
*/
class BbPress {
/**
* Returns whether the current page is a bbPress component page.
*
* @since 4.8.1
*
* @return bool Whether the current page is a bbPress component page.
*/
public static function isComponentPage() {
return ! empty( aioseo()->standalone->bbPress->component->templateType );
}
} home/xbodynamge/dev/wp-content/plugins/all-in-one-seo-pack/app/Common/Standalone/BbPress/BbPress.php0000644 00000002273 15114310560 0027332 0 ustar 00 <?php
namespace AIOSEO\Plugin\Common\Standalone\BbPress;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Handles the bbPress integration with AIOSEO.
*
* @since 4.8.1
*/
class BbPress {
/**
* Instance of the Component class.
*
* @since 4.8.1
*
* @var Component
*/
public $component;
/**
* Class constructor.
*
* @since 4.8.1
*/
public function __construct() {
if (
aioseo()->helpers->isAjaxCronRestRequest() ||
! aioseo()->helpers->isPluginActive( 'bbpress' )
) {
return;
}
// Hook into `plugins_loaded` to ensure bbPress has loaded some necessary functions.
add_action( 'plugins_loaded', [ $this, 'maybeLoad' ], 20 );
}
/**
* Hooked into `plugins_loaded` action hook.
*
* @since 4.8.1
*
* @return void
*/
public function maybeLoad() {
// If the bbPress version is below 2 we bail.
if ( ! function_exists( 'bbp_get_version' ) || version_compare( bbp_get_version(), '2', '<' ) ) {
return;
}
add_action( 'wp', [ $this, 'setComponent' ] );
}
/**
* Hooked into `wp` action hook.
*
* @since 4.8.1
*
* @return void
*/
public function setComponent() {
$this->component = new Component();
}
} home/xbodynamge/namtation/wp-content/plugins/all-in-one-seo-pack/app/Common/Integrations/BbPress.php0000644 00000000776 15114436724 0027605 0 ustar 00 <?php
namespace AIOSEO\Plugin\Common\Integrations;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class to integrate with the bbPress plugin.
*
* @since 4.8.1
*/
class BbPress {
/**
* Returns whether the current page is a bbPress component page.
*
* @since 4.8.1
*
* @return bool Whether the current page is a bbPress component page.
*/
public static function isComponentPage() {
return ! empty( aioseo()->standalone->bbPress->component->templateType );
}
}