
Added : Set as avatar code Added : Avatar Collection for user Added : new param avatar_collection in get_collections() method Fixed : crop value in thumbs_dimensions Added : is_avatar param in get_photos() method Added : photo_dimensions filter in generate_photos() method Fixed : insert_photo() method Moved : insert_photo_colors in insert_photo() method from view_item.php page Updated : get_image_type() method Updated : getFileSmarty() method Added : An anchor in getFileSmarty() 'photo_thumb' Fixed : cropping cases in resizer.class.php Updated : $Upload->upload_user_file to upload_new_avatar Removed : cb_create_user_avatar_collection() from common.php Registered : delete_photo_avatar() function @delete_photo Added : validate_image_file() function. It uses our old image.class.php method Added : get_mature_thumb() function. It has three parameters, object_array, size, output. You can also register custom thumb @mature_thumb Added : Few new functions for photos. get_all_custom_size_photos(), get_photo_dimensions(), clean_custom_photo_size(), get_avatar_photos() and is_photo_viewable() Added : new js function, displayConfirm(). It accepts four parameters. id( modal box id), confirmMessage( modal box body), onConfirm( either url or function ) and heading(modal box header)
103 lines
No EOL
2.9 KiB
HTML
103 lines
No EOL
2.9 KiB
HTML
<!-- Defining Amplify Requests -->
|
|
<script>
|
|
var ajaxURL = baseurl+'/ajax';
|
|
|
|
//Update sidebar
|
|
amplify.request.define( "videos", "ajax", {
|
|
url: ajaxURL+"/videos.php",
|
|
type: "POST",
|
|
dataType: "json",
|
|
decoder: function( data, status, xhr, success, error ) {
|
|
if ( status === "success" ) {
|
|
success( data );
|
|
} else {
|
|
error( data );
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
//defining up clipbucjet ajax request
|
|
amplify.request.define( "main", "ajax", {
|
|
url: ajaxURL+"/main.php",
|
|
type: "POST",
|
|
dataType: "json",
|
|
decoder: function( data, status, xhr, success, error ) {
|
|
if ( status === "success" ) {
|
|
success( data );
|
|
} else {
|
|
error( data );
|
|
}
|
|
}
|
|
});
|
|
|
|
//photos private message
|
|
amplify.request.define( "photos", "ajax", {
|
|
url: ajaxURL+"/photos.php",
|
|
type: "POST",
|
|
dataType: "json",
|
|
decoder: function( data, status, xhr, success, error ) {
|
|
if ( status === "success" ) {
|
|
success( data );
|
|
} else {
|
|
error( data );
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
|
|
|
|
<!-- Working With the Javascript -->
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
|
|
//Adding Comment Hover effect
|
|
$('.comment').bind('mouseover',function(e){
|
|
$(this).find('.comment-options').show();
|
|
});
|
|
|
|
//Adding Comment Mouse-leave effect
|
|
$('.comment').bind('mouseout',function(e){
|
|
$(this).find('.comment-options').hide();
|
|
});
|
|
|
|
//Init Login Modal box
|
|
$('#login-modal').modal({
|
|
show : false
|
|
});
|
|
|
|
//Init Drop Downs
|
|
$('.cb-dropdown').dropdown();
|
|
|
|
//Hiding Children Categories
|
|
$('.categories-nav > ul > li > ol').hide();
|
|
//Adding Toggle
|
|
$('.categories-nav > ul > li .icon-toggle').click(function(){
|
|
$('.categories-nav > ul > li > ol').toggle();
|
|
|
|
if($('.categories-nav > ul > li > ol').css('display')=='none')
|
|
{
|
|
$(this).removeClass('toggle-invert');
|
|
$(this).parent().removeClass('active');
|
|
}else
|
|
{
|
|
$(this).addClass('toggle-invert');
|
|
$(this).parent().addClass('active');
|
|
}
|
|
})
|
|
|
|
//Update Playlist Page
|
|
updatePlaylistPage();
|
|
|
|
//reset form on showing modal
|
|
$('#create-playlist-modal').on('show', function () {
|
|
$('#create-playlist-modal form')[0].reset();
|
|
$('#create-playlist-error').hide().html('');
|
|
});
|
|
|
|
//Executing Tootltip
|
|
$('.cb-tooltip').tooltip();
|
|
|
|
});
|
|
</script> |