%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/higroup/wp-content/themes/evenex/core/hooks/
Upload File :
Create Path :
Current File : /var/www/html/higroup/wp-content/themes/evenex/core/hooks/cpt.php

<?php if (!defined('ABSPATH')) die('Direct access forbidden.');
//die('cpt found');
/**
 * hooks for wp blog part
 */

// if there is no excerpt, sets a defult placeholder
// ----------------------------------------------------------------------------------------

if ( class_exists( 'EvenexCustomPost\Evenex_CustomPost' ) ) {
    //project
	$project = new EvenexCustomPost\Evenex_CustomPost( 'evenex' );

	// Schedule
	$project->xs_init( 'xs-schedule', 'Schedule', 'Schedules', array( 'menu_icon' => 'dashicons-calendar-alt',
		'supports'	 => array( 'title' ),
		'rewrite'	 => array( 'slug' => 'schedule' ),

	));
	$project_tax = new  EvenexCustomPost\Evenex_Taxonomies('evenex');
	$project_tax->xs_init('schedule_category', 'Schedule Category', 'Schedule Categories', 'xs-schedule');

	// Speaker
	$project->xs_init( 'xs-speaker', 'Speaker', 'Speakers', array( 'menu_icon' => 'dashicons-groups',
		'supports'	 => array( 'title' ),
		'rewrite'	 => array( 'slug' => 'speaker' ),
	));
	$project_tax = new  EvenexCustomPost\Evenex_Taxonomies('evenex');
	$project_tax->xs_init('speaker-category', 'Speaker Category', 'Speaker Categories', 'xs-speaker');
}

if (class_exists('ElementsKit')) {
	add_action('elementskit/template/before_header', function(){
		echo '<div class="xs_page_wrapper">';
	});

	add_action('elementskit/template/after_footer', function(){
		echo '</div>';
	});
}

/*
 * Cursor Follower
 */
if ( !function_exists( 'xs_cursor_follower' ) ) {
	function xs_cursor_follower() {
		if ( 'yes' == evenex_option('xs_cursor_follower') ):
			echo '<div class="xs_cursor_follower"></div><div class="xs_cursor_follower_outer"></div>';
		endif;
	}
}
add_action( 'wp_footer', 'xs_cursor_follower' );

Zerion Mini Shell 1.0