예제 #1
0
function miniAudioPlayer_player_head()
{
    global $miniAudioPlayer_excluded, $miniAudioPlayer_getMetadata, $miniAudioPlayer_width, $miniAudioPlayer_skin, $miniAudioPlayer_animate, $miniAudioPlayer_volume, $miniAudioPlayer_autoplay, $miniAudioPlayer_showVolumeLevel, $miniAudioPlayer_allowMute, $miniAudioPlayer_showTime, $miniAudioPlayer_showRew, $miniAudioPlayer_active_all, $miniAudioPlayer_replaceDefault, $miniAudioPlayer_replaceDefault_show_title;
    echo '
	<!-- start miniAudioPlayer initializer -->
	<script type="text/javascript">

	var miniAudioPlayer_replaceDefault = ' . $miniAudioPlayer_replaceDefault . ';
	var miniAudioPlayer_excluded = "' . $miniAudioPlayer_excluded . '";
	var miniAudioPlayer_replaceDefault_show_title = ' . $miniAudioPlayer_replaceDefault_show_title . ';

	var miniAudioPlayer_defaults = {
				inLine:true,
                width:"' . $miniAudioPlayer_width . '",
				skin:"' . $miniAudioPlayer_skin . '",
				animate:' . $miniAudioPlayer_animate . ',
				volume:' . $miniAudioPlayer_volume . ',
				autoplay:' . $miniAudioPlayer_autoplay . ',
				showVolumeLevel:' . $miniAudioPlayer_showVolumeLevel . ',
				allowMute: ' . $miniAudioPlayer_allowMute . ',
				showTime:' . $miniAudioPlayer_showTime . ',
				id3:' . $miniAudioPlayer_getMetadata . ',
				showRew:' . $miniAudioPlayer_showRew . ',
				addShadow: false,
				downloadable:' . canDownload() . ',
				downloadPage:"' . plugins_url('map_download.php', __FILE__) . '",
				swfPath:"' . plugins_url('/js/', __FILE__) . '",
				onReady: function(player, $controlsBox){
				   if(player.opt.downloadable && player.opt.downloadablesecurity && !' . userCanRead() . '){
				        jQuery(".map_download", $controlsBox).remove();
				   }
				}
		};

    function initializeMiniAudioPlayer(){
         jQuery(".mejs-container a").addClass(miniAudioPlayer_excluded);
         jQuery("a' . ($miniAudioPlayer_active_all != 'true' ? '.mb_map' : '') . '[href*=\'.mp3\'] ,a' . ($miniAudioPlayer_active_all != 'true' ? '.mb_map' : '') . '[href*=\'.m4a\']")' . getExcluded() . 'mb_miniPlayer(miniAudioPlayer_defaults);
    }

    if(' . $miniAudioPlayer_replaceDefault . ')
        jQuery("body").addClass("map_replaceDefault");

	jQuery(function(){
      if(' . $miniAudioPlayer_replaceDefault . '){
         setTimeout(function(){replaceDefault();},0);
      }
      initializeMiniAudioPlayer();
      jQuery(document).ajaxSuccess(function(event, xhr, settings) {
        initializeMiniAudioPlayer();
      });
	});
	</script>
	<!-- end miniAudioPlayer initializer -->

	';
}
예제 #2
0
    $types = array(1 => 'GIF', 2 => 'JPG', 3 => 'PNG');
    $type = $types[$size_pic[2]];
    if ($is_admin || $user->id == $obj->owner_id) {
        echo "<script type=\"text/javascript\">\n      datso(document).ready(function(){\n       datso('#" . $obj->id . "-editimg').editInPlace({\n        bg_img_over:  'transparent url(" . JURI::base(true) . "/components/com_datsogallery/images/" . $dg_theme . "/edit.png) no-repeat 98% center',\n        bg_img_out:   'transparent',\n        show_buttons: false,\n        url:          'index.php?option=com_datsogallery&task=edittitle&format=raw',\n        update_value: 'imgtitle',\n        element_id:   'id',\n        saving_image: '" . JURI::base(true) . "/components/com_datsogallery/images/" . $dg_theme . "/loading.gif',\n        success: function(response){ datso('#" . $obj->id . "-edit').html(response); }\n        });\n      });\n    </script>";
    }
    ?>
<div class="dg_head_background"><div style="position:relative;display:inline;padding:4px 24px 4px 0" id="<?php 
    echo $obj->id;
    ?>
-editimg"><?php 
    echo $obj->imgtitle;
    ?>
</div>
<div style="position:relative;float:right">
<?php 
    canDownload($obj->id, $obj->catid, $obj->imgprice);
    if ($user->id == $obj->owner_id) {
        echo dgTip(JText::_('COM_DATSOGALLERY_EDIT_IMAGE'), $image = 'edit.png', '', JRoute::_("index.php?option=com_datsogallery&amp;task=editpic&amp;uid=" . $obj->id . $itemid), '', $link = 1);
    }
    if ($user->id && $ad_favorite) {
        $db->setQuery('SELECT * FROM `#__datsogallery_favorites` WHERE `user_id` = ' . (int) $user->id . ' AND image_id = ' . (int) $obj->id);
        $db->query() or die($db->stderr());
        $favorited = $db->loadObject();
        $ifav = $favorited ? 'remove_favorite' : 'add_favorite';
        $tfav = $favorited ? JText::_('COM_DATSOGALLERY_REMOVE_FAVORITE') : JText::_('COM_DATSOGALLERY_ADD_FAVORITE');
        ?>
&nbsp;<div class="favbox">
  <span class="favorite" id="<?php 
        echo $obj->id;
        ?>
">
예제 #3
0
    <span>
              <?php 
            echo $ad_showfimgdate ? '<strong>' . JText::_('COM_DATSOGALLERY_DATE_ADD') . '</strong>: ' . strftime($ad_datef, $row->imgdate) . '<br />' : '';
            echo $task == 'purchases' ? '<strong>' . JText::_('COM_DATSOGALLERY_DATE_PURCHASED') . '</strong>: ' . strftime($ad_datef, strtotime($row->date)) . '<br />' : '';
            echo $task == 'purchases' ? '<strong>' . JText::_('COM_DATSOGALLERY_PRICE') . '</strong>: ' . currencySymbol($ad_pp_currency) . $row->imgprice . '<br />' : '';
            echo $ad_showimgcounter ? '<strong>' . JText::_('COM_DATSOGALLERY_HITS') . '</strong>: ' . $row->imgcounter . '<br />' : '';
            echo $ad_showdownloads ? '<strong>' . JText::_('COM_DATSOGALLERY_DOWNLOADS') . '</strong>: ' . $row->imgdownloaded . '<br />' : '';
            echo $ad_showrating ? showVote($row->id, $row->imgvotes, $row->imgvotesum) : '';
            if ($ad_showcomments) {
                $db->setQuery('SELECT COUNT(cmtid) FROM #__datsogallery_comments WHERE cmtpic = ' . $row->id . ' AND published = 1');
                $comments = $db->loadResult();
                $comments = $comments ? $comments : JText::_('COM_DATSOGALLERY_NO');
                echo '<strong>' . JText::_('COM_DATSOGALLERY_COMMENTS') . '</strong>: ' . $comments;
            }
            echo '<br />';
            canDownload($row->id, $row->catid, $row->imgprice);
            ?>
    </span>
            <?php 
            echo '</div>';
        }
        echo '</td>';
        $rowcounter++;
    }
    if ($rowcounter % $ad_cp != 0) {
        for ($i = 1; $i <= $ad_cp - $rowcounter % $ad_cp; $i++) {
            echo '<td width="' . $cw . '" class="dg_body_background_td" valign="top"> </td>';
        }
    }
    echo '</tr>';
} else {