* * -= 1.1.0 =- * - Added file size * * -= 1.0.0 =- * - Initial version */ ?> <?php global $post; $extra_class = ' ' . get_post_type(); $extra_class = apply_filters('cuar/templates/single-post/footer/extra-class?post-type=' . get_post_type(), $extra_class, $post); $date = sprintf("<em>%s</em>", get_the_date()); $author = sprintf("<em>%s</em>", get_the_author_meta('display_name')); $recipients = sprintf("<em>%s</em>", cuar_get_the_owner()); /** @var array $attached_files */ $attached_files = cuar_get_the_attached_files($post->ID); ?> <div class="cuar-single-post-footer cuar-file<?php echo $extra_class; ?> "> <div class="meta-category content-meta"> <div class="row"> <div class="meta-block author"> <h4><span class="dashicons dashicons-businessman"></span> <?php _e('Author', 'cuar'); ?>
* - Normalized the extra class filter name * * -= 1.0.0 =- * - Initial version * */ ?> <?php global $post; $is_author = get_the_author_meta('ID') == get_current_user_id(); if ($is_author) { $subtitle_popup = __('You uploaded this file', 'cuar'); $subtitle = sprintf(__('Published for %s', 'cuar'), cuar_get_the_owner()); } else { $subtitle_popup = sprintf(__('Published for %s', 'cuar'), cuar_get_the_owner()); $subtitle = sprintf(__('Published by %s', 'cuar'), get_the_author_meta('display_name')); } $title_popup = sprintf(__('Uploaded on %s', 'cuar'), get_the_date()); $extra_class = ' ' . get_post_type(); $extra_class = apply_filters('cuar/templates/list-item/extra-class?post-type=' . get_post_type(), $extra_class, $post); $file_count = cuar_get_the_attached_file_count($post->ID); ?> <div class="cuar-private-file cuar-item cuar-item-wide<?php echo $extra_class; ?> "> <div class="panel"> <div class="title"> <a href="<?php
/** * Print the owner of a post */ function cuar_the_owner($post_id = 0) { echo cuar_get_the_owner($post_id); }