コード例 #1
0
ファイル: RTMediaLike.php プロジェクト: umeshnevase/rtMedia
 function __construct()
 {
     $args = array('action' => 'like', 'label' => __('Like', 'buddypress-media'), 'plural' => __('Likes', 'buddypress-media'), 'undo_label' => __('Unlike', 'buddypress-media'), 'privacy' => 20, 'countable' => true, 'single' => false, 'repeatable' => false, 'undoable' => true);
     parent::__construct($args);
     remove_filter('rtmedia_action_buttons_before_delete', array($this, 'button_filter'));
     add_action('rtmedia_action_buttons_after_media', array($this, 'button_filter'), 12);
     add_action('rtmedia_actions_before_comments', array($this, 'like_button_filter'), 10);
     if (!rtmedia_comments_enabled()) {
         add_action('rtmedia_actions_without_lightbox', array($this, 'like_button_without_lightbox_filter'));
     }
 }
コード例 #2
0
ファイル: media-single.php プロジェクト: neerukoul/rtMedia
					</div>

					<div class="rtmedia-actions-before-description clearfix">
						<?php 
        do_action('rtmedia_actions_before_description', rtmedia_id());
        ?>
					</div>

					<div class="rtmedia-media-description more">
						<?php 
        rtmedia_description();
        ?>
					</div>

					<?php 
        if (rtmedia_comments_enabled()) {
            ?>
						<div class="rtmedia-item-comments">
							<div class="rtmedia-actions-before-comments clearfix">
								<?php 
            do_action('rtmedia_actions_before_comments');
            ?>
								<?php 
            if (is_user_logged_in()) {
                ?>
									<span><a href='#' class='rtmedia-comment-link'><?php 
                esc_html_e('Comment', 'buddypress-media');
                ?>
</a></span>
								<?php 
            }