Exemplo n.º 1
0
 public function embed_player($skin = "", $username = "", $tape = "")
 {
     if (!$this->ion_auth->username_check($username)) {
         $this->data['tape'] = NULL;
         $this->data['tape_status'] = "The embedded mixtape no longer exists.";
     } else {
         $this->data['username'] = $username;
         //cached DB call
         $user = $this->cache->model('User_model', 'get_user_info', array($username), 1800);
         //$user = $this->User_model->get_user_info($username);
         $sqlWhere = array('mixtapes.user_id' => $user->id, 'mixtapes.tape_url' => $tape);
         $tape = $this->cache->model('Mixtape_model', 'get_mixtapes', array($sqlWhere), 1800);
         if (!$tape) {
             $this->data['tape'] = NULL;
             $this->data['tape_status'] = "The embedded mixtape no longer exists.";
         } else {
             $tape = $tape[0];
             $this->data['tape'] = $tape;
             $this->load->helper('status');
             $this->data['tape_status'] = status_message('mixtape', $tape->status);
             $this->data['user'] = $user;
             $meta_description = $tape->tape_description === '' ? htmlspecialchars($tape->tape_title . ' mixtape, by ' . $tape->tape_artist, ENT_QUOTES) : htmlspecialchars($tape->tape_description, ENT_QUOTES);
             $this->data['meta_name'] = array('description' => html_entity_decode('Steam/Download ' . $meta_description), 'twitter:card' => 'player', 'twitter:domain' => base_url(), 'twitter:site' => $this->lang->line('meta_twitter'), 'twitter:title' => htmlspecialchars($tape->tape_artist . ' - ' . $tape->tape_title, ENT_QUOTES), 'twitter:description' => htmlspecialchars($meta_description, ENT_QUOTES), 'twitter:image' => tape_img($tape->username, $tape->tape_url, $tape->tape_image), 'twitter:player' => base_url('embed/mixtape/1/' . $username . '/' . $tape->tape_url), 'twitter:player:width' => '480', 'twitter:player:height' => '300', 'twitter:creator' => '@hiphopvip1');
             $this->data['meta_prop'] = array('og:title' => htmlspecialchars('Listen and Download ' . $tape->tape_artist . ' - ' . $tape->tape_title, ENT_QUOTES), 'og:url' => base_url('mixtape/' . $username . '/' . $tape->tape_url), 'og:image' => tape_img($tape->username, $tape->tape_url, $tape->tape_image), 'og:site_name' => 'hiphopVIP', 'og:description' => htmlspecialchars($meta_description, ENT_QUOTES));
             $this->data['playlist'] = $this->getPlaylistData($tape->id);
             $this->data['vendorCSS'] = array('apm/skin/hhvip.css', 'apm/skin/jquery-ui-slider.custom.css', 'social/social-likes_flat.css', 'forms.css');
             $this->data['vendorJS'] = array('apm/lib/jquery-ui-slider-1.10.4.custom.min.js', 'apm/lib/modernizr-2.5.3-custom.min.js', 'apm/lib/soundmanager2-jsmin.js', 'apm/apmplayer.js', 'apm/apmplayer_ui.jquery.js', 'social-likes/social-likes.min.js');
         }
         // song exists
     }
     //user exists
     $this->_render('mixtapes/embed_player', $renderData = 'EMBED', $this->data);
 }
Exemplo n.º 2
0
        echo $this->voting->vote_sum($tape->upvotes, $tape->downvotes);
        ?>
                </div>-->
                    <img src="<?php 
        echo tape_img($tape->username, $tape->tape_url, $tape->tape_image, 64);
        ?>
" data-src="<?php 
        echo tape_img($tape->username, $tape->tape_url, $tape->tape_image, 64);
        ?>
" width="54" height="54" alt="Listen to <?php 
        echo $tape->tape_title . ' by ' . $tape->tape_artist;
        ?>
" />
                    <noscript>
                        <img src="<?php 
        echo tape_img($tape->username, $tape->tape_url, $tape->tape_image, 64);
        ?>
" width="54px" height="54px" />
                    </noscript>
                </a>

            </figure>
                <header class="">
               <!-- <header class="entry-header">  temp til voting enabled -->
                <h3 class="list-title blck"><a href="<?php 
        echo base_url('mixtape/' . $tape->username . '/' . $tape->tape_url);
        ?>
" rel="bookmark"><?php 
        echo $title;
        ?>
<br /><span class="orange"><?php 
Exemplo n.º 3
0
                            <?php 
echo form_checkbox($form_can_download);
?>
  Allow 
                            </div>                     
                            <div class="form-group">                     
                                Album Art 
                            <?php 
if ($mixtape->extra_image != '') {
    echo '<span style="color:red;font-size:10px">WARNING: This will overwrite the existing images</span><br />';
}
?>
                              <input type="file" name="image_file">
                             </div>
                                <img src="<?php 
echo tape_img($mixtape->username, $mixtape->tape_url, $mixtape->tape_image, 300);
?>
">
                        </div>
                        <div class="col-sm-6"> 
                          <div id="sortTracksContainer">
    <h3 style="border-bottom:none;margin-bottom:-10px">Order & Rename Tracks</h3>

  <span style="font-weight:bold">TIP: </span><span style="color:#999">Drag and drop tracks to reorder. Double click artist name and/or title to rename.</span>
     
      <div id="sortTracks" class="sortTracksWrapper" style="padding-top:15px">
                  <ol id="sortable">
        <?php 
foreach ($tracks as $key => $track) {
    ?>
             <li class="sortTracksItem" id="track_<?php