PDF rausgenommen

This commit is contained in:
aschwarz
2023-01-23 11:03:31 +01:00
parent 82d562a322
commit a6523903eb
28078 changed files with 4247552 additions and 2 deletions

View File

@ -0,0 +1,8 @@
.yst_colorpicker {
clear: right;
}
label.checkbox {
display: block;
margin-bottom: 0.4em;
}

View File

@ -0,0 +1,3 @@
jQuery(document).ready(function($){
$('.yst_colorpicker').wpColorPicker();
});

View File

@ -0,0 +1,36 @@
/* global wpseoMediaL10n */
/* global ajaxurl */
/* global wp */
/* jshint -W097 */
/* jshint -W003 */
/* jshint unused:false */
// Taken and adapted from http://www.webmaster-source.com/2013/02/06/using-the-wordpress-3-5-media-uploader-in-your-plugin-or-theme/
jQuery(document).ready(
function($) {
'use strict';
if( typeof wp.media === 'undefined' ) {
return;
}
$('.wpseo_image_upload_button').each(function(index, element) {
var wpseo_target_id = $(element).attr('id').replace(/_button$/, '');
var wpseo_custom_uploader = wp.media.frames.file_frame = wp.media({
title: wpseoMediaL10n.choose_image,
button: { text: wpseoMediaL10n.choose_image },
multiple: false
});
wpseo_custom_uploader.on( 'select', function() {
var attachment = wpseo_custom_uploader.state().get( 'selection' ).first().toJSON();
$( '#' + wpseo_target_id ).val( attachment.url );
}
);
$(element).click( function( e ) {
e.preventDefault();
wpseo_custom_uploader.open();
} );
} );
}
);