added the WIP company head shortcut and a menu for editing company stuff, instead of the user profile.
This commit is contained in:
@@ -43,6 +43,7 @@ class Partnerexpo_Core_Public {
|
||||
|
||||
add_shortcode( 'partnerexpo_searchbox', [ $this, 'searchbox_shortcode' ] );
|
||||
add_shortcode( 'partnerexpo_comment_section', [ $this, 'comments_shortcode' ] );
|
||||
add_shortcode( 'partnerexpo_company_head', [ $this, 'company_head_shortcode' ] );
|
||||
}
|
||||
|
||||
public function searchbox_shortcode() {
|
||||
@@ -67,6 +68,14 @@ class Partnerexpo_Core_Public {
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
public function company_head_shortcode() {
|
||||
wp_enqueue_style( $this->plugin_name . '-company-head-css' );
|
||||
|
||||
ob_start();
|
||||
include plugin_dir_path( __FILE__ ) . 'partials/partnerexpo-core-public-company-head.php';
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
public function register_endpoint() {
|
||||
register_rest_route('pexpo/v1', '/query', [
|
||||
'methods' => 'GET',
|
||||
@@ -208,6 +217,14 @@ class Partnerexpo_Core_Public {
|
||||
$this->version,
|
||||
'all'
|
||||
);
|
||||
|
||||
wp_register_style(
|
||||
$this->plugin_name . '-company-head-css',
|
||||
plugin_dir_url( __FILE__ ) . 'css/company-head.css',
|
||||
[],
|
||||
$this->version,
|
||||
'all'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user