added the WIP company head shortcut and a menu for editing company stuff, instead of the user profile.
This commit is contained in:
25
public/partials/partnerexpo-core-public-company-head.php
Normal file
25
public/partials/partnerexpo-core-public-company-head.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Displays company data for the partner offers.
|
||||
*
|
||||
* @link https://github.com/Duskell
|
||||
* @since 1.1.6
|
||||
*
|
||||
* @package Partnerexpo_Core
|
||||
* @subpackage Partnerexpo_Core/public/partials
|
||||
*/
|
||||
|
||||
$logo_id = get_user_meta( get_current_user_id(), 'company_logo_attachment_id', true );
|
||||
$logo_url = $logo_id ? wp_get_attachment_url( $logo_id ) : '';
|
||||
|
||||
?>
|
||||
|
||||
<div class="pexpo-core-company-head-wrapper">
|
||||
<div class="pexpo-core-company-head-logo-wrapper">
|
||||
<img class="pexpo-core-company-logo" src="<?php echo esc_url( $logo_url ); ?>" alt="<?php echo esc_attr( get_user_meta( get_current_user_id(), 'company', true ) ); ?> logo">
|
||||
</div>
|
||||
<div class="pexpo-core-company-head-name-wrapper">
|
||||
<h2 class="pexpo-core-company-name"><?php echo esc_html( get_user_meta( get_current_user_id(), 'company', true ) ); ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user