fixed company-head shortcode
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* Plugin Name: PartnerExpo Core
|
||||
* Plugin URI: https://partnerexpo.eu
|
||||
* Description: A PartnerEXPO oldal belső pluginja
|
||||
* Version: 1.1.7
|
||||
* Version: 1.1.8
|
||||
* Author: Juhász Levente
|
||||
* Author URI: https://github.com/Duskell/
|
||||
* License: GPL-2.0+
|
||||
@@ -23,7 +23,7 @@ if ( ! defined( 'WPINC' ) ) {
|
||||
die;
|
||||
}
|
||||
|
||||
define( 'PARTNEREXPO_CORE_VERSION', '1.1.7' );
|
||||
define( 'PARTNEREXPO_CORE_VERSION', '1.1.8' );
|
||||
|
||||
function activate_partnerexpo_core() {
|
||||
require_once plugin_dir_path( __FILE__ ) . 'includes/class-partnerexpo-core-activator.php';
|
||||
@@ -51,4 +51,4 @@ function run_partnerexpo_core() {
|
||||
$plugin->run();
|
||||
|
||||
}
|
||||
run_partnerexpo_core();
|
||||
run_partnerexpo_core();
|
||||
BIN
partnerexpo-core.zip
Normal file
BIN
partnerexpo-core.zip
Normal file
Binary file not shown.
@@ -10,16 +10,19 @@
|
||||
* @subpackage Partnerexpo_Core/public/partials
|
||||
*/
|
||||
|
||||
$logo_id = get_user_meta( get_current_user_id(), 'company_logo_attachment_id', true );
|
||||
global $post;
|
||||
$author_id = $post->post_author;
|
||||
|
||||
$logo_id = get_user_meta( $author_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">
|
||||
<img class="pexpo-core-company-logo" src="<?php echo esc_url( $logo_url ); ?>" alt="<?php echo esc_attr( get_user_meta( $author_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>
|
||||
<h2 class="pexpo-core-company-name"><?php echo esc_html( get_user_meta( $author_id, 'company', true ) ); ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user