added the WIP company head shortcut and a menu for editing company stuff, instead of the user profile.

This commit is contained in:
2026-03-12 22:05:37 +01:00
parent b6d0959cf6
commit ccfb737949
12 changed files with 222 additions and 94 deletions

View 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>

View File

@@ -1,16 +0,0 @@
<?php
/**
* Provide a public-facing view for the plugin
*
* This file is used to markup the public-facing aspects of the plugin.
*
* @link https://github.com/Duskell
* @since 1.0.0
*
* @package Partnerexpo_Core
* @subpackage Partnerexpo_Core/public/partials
*/
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->