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/web28/html/wp-content/plugins/fusion-builder/front-end/views/elements/ |
Current File : //var/www/web28/html/wp-content/plugins/fusion-builder/front-end/views/elements/view-soundcloud.js |
var FusionPageBuilder = FusionPageBuilder || {}; ( function() { jQuery( document ).ready( function() { // Vimeo Element View. FusionPageBuilder.fusion_soundcloud = FusionPageBuilder.ElementView.extend( { /** * Modify template attributes. * * @since 2.0 * @param {Object} atts - The attributes. * @return {Object} */ filterTemplateAtts: function( atts ) { var attributes = {}; // Validate values. this.validateValues( atts.values ); // Create attribute objects attributes.attr = this.buildAttr( atts.values ); // Any extras that need passed on. attributes.values = atts.values; return attributes; }, /** * Modifies the values. * * @since 2.0 * @param {Object} values - The values object. * @return {void} */ validateValues: function( values ) { values.width = _.fusionValidateAttrValue( values.width, 'px' ); values.height = _.fusionValidateAttrValue( values.height, 'px' ); values.autoplay = ( 'yes' === values.auto_play ) ? 'true' : 'false'; values.comments = ( 'yes' === values.comments ) ? 'true' : 'false'; if ( 'visual' === values.layout ) { values.visual = 'true'; if ( ! values.height || '' === values.height ) { values.height = '450'; } } else { values.visual = 'false'; if ( ! values.height || '' === values.height ) { values.height = '166'; } } values.height = parseInt( values.height, 10 ); values.show_related = ( 'yes' === values.show_related ) ? 'false' : 'true'; values.show_reposts = ( 'yes' === values.show_reposts ) ? 'true' : 'false'; values.show_user = ( 'yes' === values.show_user ) ? 'true' : 'false'; if ( values.color ) { values.color = jQuery.AWB_Color( values.color ).toHexString(); values.color = values.color.replace( '#', '' ); } values.margin_bottom = _.fusionValidateAttrValue( values.margin_bottom, 'px' ); values.margin_left = _.fusionValidateAttrValue( values.margin_left, 'px' ); values.margin_right = _.fusionValidateAttrValue( values.margin_right, 'px' ); values.margin_top = _.fusionValidateAttrValue( values.margin_top, 'px' ); }, /** * Builds attributes. * * @since 2.0 * @param {Object} values - The values object. * @return {Object} */ buildAttr: function( values ) { // Attributes. var attr = { class: 'fusion-soundcloud', style: '' }; if ( '' !== values[ 'class' ] ) { attr[ 'class' ] += ' ' + values[ 'class' ]; } if ( '' !== values.id ) { attr.id = values.id; } if ( '' !== values.margin_top ) { attr.style += 'margin-top:' + values.margin_top + ';'; } if ( '' !== values.margin_right ) { attr.style += 'margin-right:' + values.margin_right + ';'; } if ( '' !== values.margin_bottom ) { attr.style += 'margin-bottom:' + values.margin_bottom + ';'; } if ( '' !== values.margin_left ) { attr.style += 'margin-left:' + values.margin_left + ';'; } attr = _.fusionVisibilityAtts( values.hide_on_mobile, attr ); return attr; } } ); } ); }( jQuery ) );
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare