Plugin Directory

Changeset 3390576


Ignore:
Timestamp:
11/05/2025 03:53:32 PM (5 months ago)
Author:
pattyland
Message:

Prepare 0.1.3 release

Location:
lookbook-embed
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • lookbook-embed/trunk/lookbook-embed.php

    r989729 r3390576  
    22/**
    33 * Plugin Name: LOOKBOOK Embed
    4  * Version: 0.1.2
     4 * Plugin URI: http://pattyland.de/project/lookbook-embed
    55 * Description: Just add LOOKBOOK links into your posts and the plugin will add the HYPE button for you.
     6 * Version: 0.1.3
    67 * Author: Sören Müller
    78 * 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
    911 */
    1012
     
    2426    return apply_filters( 'embed_lookbook', $embed, $matches, $attr, $url, $rawattr );
    2527}
    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 
    3428function display_lookbook_widgets() {
    3529    echo '<script>
    3630    if (typeof lookbook_ids != "undefined"){
    37         if (jQuery) {
     31        if (jQuery) {
    3832            $LB = jQuery;
    3933        }
    4034        jQuery.each(lookbook_ids, function( index, value ) {
    4135          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                    });
    4539        });
    4640    }
  • lookbook-embed/trunk/readme.txt

    r989729 r3390576  
    33Tags: lookbook, lookbook widget, hype button
    44Requires at least: 3.0
    5 Tested up to: 4.0
     5Tested up to: 6.8
     6Stable tag: 0.1.3
    67License: MIT
    78License URI: http://opensource.org/licenses/mit-license.php
    89
    910Just 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.
    1013
    1114== Description ==
     
    2326
    2427== 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.
    2532= 0.1.2 =
    2633* Deleted unnecessary variable declaration
Note: See TracChangeset for help on using the changeset viewer.