Changeset 3390576
- Timestamp:
- 11/05/2025 03:53:32 PM (5 months ago)
- Location:
- lookbook-embed
- Files:
-
- 3 added
- 2 edited
-
tags/0.1.3 (added)
-
tags/0.1.3/lookbook-embed.php (added)
-
tags/0.1.3/readme.txt (added)
-
trunk/lookbook-embed.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lookbook-embed/trunk/lookbook-embed.php
r989729 r3390576 2 2 /** 3 3 * Plugin Name: LOOKBOOK Embed 4 * Version: 0.1.24 * Plugin URI: http://pattyland.de/project/lookbook-embed 5 5 * Description: Just add LOOKBOOK links into your posts and the plugin will add the HYPE button for you. 6 * Version: 0.1.3 6 7 * Author: Sören Müller 7 8 * Author URI: http://pattyland.de/ 8 * Plugin URI: http://pattyland.de/project/lookbook-embed 9 * License: MIT 10 * License URI: https://opensource.org/licenses/MIT 9 11 */ 10 12 … … 24 26 return apply_filters( 'embed_lookbook', $embed, $matches, $attr, $url, $rawattr ); 25 27 } 26 27 28 /*add_action( 'wp_enqueue_scripts', 'lookbook_script' );29 30 function lookbook_script() {31 wp_enqueue_script( 'lookbook', '//lookbook.nu/look/widget/6456764.js?include=hype&size=medium&style=button&align=center', array(), null, true );32 }*/33 34 28 function display_lookbook_widgets() { 35 29 echo '<script> 36 30 if (typeof lookbook_ids != "undefined"){ 37 if (jQuery) {31 if (jQuery) { 38 32 $LB = jQuery; 39 33 } 40 34 jQuery.each(lookbook_ids, function( index, value ) { 41 35 jQuery.getScript( "//lookbook.nu/look/widget/" + value + ".js?include=hype&size=medium&style=button&align=center" ) 42 .fail(function( jqxhr, settings, exception ) {43 alert(\'Failed to load LOOKBOOK widgets: \' + exception);44 });36 .fail(function( jqxhr, settings, exception ) { 37 console.error("LOOKBOOK widget failed for ID " + value + ":", exception || (jqxhr && jqxhr.statusText) || "Unknown error"); 38 }); 45 39 }); 46 40 } -
lookbook-embed/trunk/readme.txt
r989729 r3390576 3 3 Tags: lookbook, lookbook widget, hype button 4 4 Requires at least: 3.0 5 Tested up to: 4.0 5 Tested up to: 6.8 6 Stable tag: 0.1.3 6 7 License: MIT 7 8 License URI: http://opensource.org/licenses/mit-license.php 8 9 9 10 Just add LOOKBOOK links into your posts and the plugin will add the Hype button for you. 11 12 **Deprecated:** LOOKBOOK.nu is no longer available; see https://en.wikipedia.org/wiki/Lookbook.nu for background. The plugin remains for archival purposes only. 10 13 11 14 == Description == … … 23 26 24 27 == Changelog == 28 = 0.1.3 = 29 * Marked plugin as deprecated because LOOKBOOK.nu shut down. 30 * Removed obsolete, commented-out enqueue code. 31 * Replaced alert fallback with `console.error` logging for failed widget loads. 25 32 = 0.1.2 = 26 33 * Deleted unnecessary variable declaration
Note: See TracChangeset
for help on using the changeset viewer.