<a class="slide-button" title="®Watch_slide®" href="javascript:switch_video('slide');"></a> </li> <?php } ?> <li> <a class="high-button" title="®Watch_high®" href="javascript:toggle_video_quality('high');"></a> <a class="low-button active" title="®Watch_low®" href="javascript:toggle_video_quality('low');"></a> </li> <?php if (acl_user_is_logged() && acl_has_album_permissions($album)) { ?> <li> <a class="add-bookmark-button" title="®Add_bookmark®" href="javascript:toggle_bookmark_form('custom');"></a> <?php if (acl_has_album_moderation($album) || acl_is_admin()) { ?> <a class="add-toc-button" title="®Add_toc®" href="javascript:toggle_bookmark_form('official');"></a> <?php } if (acl_display_threads()) { ?> <a class="add-thread-button" title="®Add_discussion®" href="javascript:toggle_thread_form();"></a> <?php } ?> </li> <?php } ?>
echo $count - acl_watched_count($album['album']); ?> </div> <?php } } ?> <div class="album_options pull-right inline-block"> <a href="#" class="button-rect green pull-right inline-block share-rss" data-reveal-id="popup_share_rss_<?php echo $album['album']; ?> ">®subscribe_rss®</a> <?php if (suffix_get($album['album']) == '-priv' || !acl_has_album_moderation($album['album'])) { ?> <a class="delete-album" title="®Delete_album®" href="#" data-reveal-id="popup_delete_album_<?php echo $index; ?> "></a> <?php } ?> </div> <!--span class="delete_album" onclick="delete_album_token('<?php echo $album['album']; ?> ');">x</span-->
/** * Removes an asset bookmark from the user's bookmarks list * @global type $input * @global type $repository_path * @global type $user_files_path */ function bookmark_delete() { global $input; global $repository_path; global $user_files_path; $bookmark_album = $input['album']; $bookmark_asset = $input['asset']; $bookmark_timecode = $input['timecode']; // init paths ezmam_repository_path($repository_path); user_prefs_repository_path($user_files_path); if ($input['tab'] == 'custom') { // remove from personal bookmarks user_prefs_asset_bookmark_delete($_SESSION['user_login'], $bookmark_album, $bookmark_asset, $bookmark_timecode); } else { // removes from table of contents if (acl_user_is_logged() && acl_has_album_moderation($bookmark_album)) { toc_asset_bookmark_delete($bookmark_album, $bookmark_asset, $bookmark_timecode); } } // lvl, action, album, asset, timecode trace_append(array($_SESSION['asset'] == '' ? '2' : '3', 'bookmark_delete', $bookmark_album, $bookmark_asset, $bookmark_timecode)); log_append('remove_asset_bookmark', 'bookmark removed : album -' . $bookmark_album . ' asset - ' . $bookmark_asset . ' timecode - ' . $bookmark_timecode); if ($input['source'] == 'assets') { $input['token'] = ezmam_album_token_get($bookmark_album); view_album_assets(false); } else { view_asset_details(false); } }
<a class="button" href="javascript: toggle_edit_bookmark_form('<?php echo $index; ?> ', 'toc');">®Cancel®</a> <a class="button orange" href="javascript: if(check_edit_bookmark_form('<?php echo $index; ?> ', 'toc')) submit_edit_bookmark_form('<?php echo $index; ?> ', 'toc');">®Submit®</a> </div> <br /> </div> <?php if (acl_user_is_logged() && acl_has_album_moderation($album)) { ?> <div class="bookmark_options"> <a class="delete-button" title="®Delete_bookmark®" href="javascript:bookmark_popup('<?php echo $bookmark['album']; ?> ', '<?php echo $bookmark['asset']; ?> ', '<?php echo $bookmark['timecode']; ?> ', 'official', 'details', 'remove')"></a> <a class="edit-button orange" title="®Edit_bookmark®" href="javascript:edit_bookmark('<?php echo $index; ?>