Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/auxin-pro-tools/includes/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/auxin-pro-tools/includes/general-functions.php |
<?php
/**
*
*
* @package Auxin
* @license LICENSE.txt
* @author
* @link http://averta.net/phlox/
* @copyright (c) 2010-2019
*/
/**
* Get template part.
*
* @param mixed $slug
* @param string $name (default: '')
*/
function auxpro_get_template_part( $slug, $name = '' ) {
auxin_get_template_part( $slug, $name, AUXPRO()->template_path() );
}
/**
* Whether a plugin is active or not
*
* @param string $plugin_basename plugin directory name and mail file address
* @return bool True if plugin is active and FALSE otherwise
*/
if( ! function_exists( 'auxin_is_plugin_active' ) ){
function auxin_is_plugin_active( $plugin_basename ){
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
return is_plugin_active( $plugin_basename );
}
}
/**
* Return elementor footer template
*
* @return void
*/
function auxpro_get_post_column_template( $post_column, $post_classes = '' ){
$template = get_page_by_path( $post_column, OBJECT, 'elementor_library' );
if( isset( $template->ID ) && $template->ID !== ' ' && get_post_status( $template->ID ) ){
?>
<article <?php post_class( $post_classes ); ?>>
<?php echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $template->ID ); ?>
</article><!-- end article -->
<?php
}
}