Plugin Directory

Changeset 3209259


Ignore:
Timestamp:
12/17/2024 02:49:54 PM (16 months ago)
Author:
lqd
Message:

Create tags

Location:
liquid-speech-balloon
Files:
4 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • liquid-speech-balloon/tags/1.2.4/liquid-speech-balloon.php

    r3070426 r3209259  
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010Text Domain: liquid-speech-balloon
    11 Version: 1.2.4
     11Version: 1.2.5
    1212*/
    1313/*  Copyright 2019 LIQUID DESIGN Ltd. (email : [email protected])
     
    3434add_action( 'init', 'liquid_speech_balloon_init' );
    3535
     36// api
     37if ( is_admin() ) {
     38    $liquid_speech_balloon_api = require_once 'inc/api.php';
     39    $liquid_speech_balloon_json = $liquid_speech_balloon_api('https://lqd.jp/wp/data/p/liquid-speech-balloon.json', 'liquid_speech_balloon_json');
     40}
     41
     42// plugin_action_links_
    3643function liquid_speech_balloon_plugin_action_links( $links ) {
    3744    $mylinks = '<a href="'.admin_url( 'options-general.php?page=liquid-speech-balloon' ).'">'.__( 'Settings', 'liquid-speech-balloon' ).'</a>';
     
    144151// admin_page
    145152function liquid_speech_balloon_admin_page() {
    146     global $json_liquid_speech_balloon, $liquid_speech_balloon, $liquid_speech_balloon_img, $liquid_speech_balloon_name, $liquid_speech_balloon_note;
     153    global $liquid_speech_balloon_json, $liquid_speech_balloon, $liquid_speech_balloon_img, $liquid_speech_balloon_name, $liquid_speech_balloon_note;
    147154
    148155    // POST
     
    202209
    203210<!-- Recommend -->
    204 <?php if( !empty($json_liquid_speech_balloon->recommend) ){ ?>
     211<?php if( !empty($liquid_speech_balloon_json) && !empty($liquid_speech_balloon_json['recommend']) ){ ?>
    205212<div class="postbox">
    206213<h2 style="border-bottom: 1px solid #eee;"><?php _e( 'Recommend', 'liquid-speech-balloon' ); ?></h2>
    207 <div class="inside"><?php echo $json_liquid_speech_balloon->recommend; ?></div>
     214<div class="inside"><?php echo $liquid_speech_balloon_json['recommend']; ?></div>
    208215</div>
    209216<?php } ?>
     
    311318<?php }
    312319
    313 // json
    314 if ( is_admin() ) {
    315     $json_liquid_speech_balloon_error = "";
    316     $json_liquid_speech_balloon_url = "https://lqd.jp/wp/data/p/liquid-speech-balloon.json";
    317     $json_liquid_speech_balloon = wp_remote_get($json_liquid_speech_balloon_url);
    318     if ( is_wp_error( $json_liquid_speech_balloon ) ) {
    319         $json_liquid_speech_balloon_error = $json_liquid_speech_balloon->get_error_message().$json_liquid_speech_balloon_url;
    320     }else{
    321         $json_liquid_speech_balloon = json_decode($json_liquid_speech_balloon['body']);
    322     }
    323 }
    324 
    325320// notices
    326321function liquid_speech_balloon_admin_notices() {
    327     global $json_liquid_speech_balloon, $json_liquid_speech_balloon_error;
    328     if ( isset( $_GET['liquid_admin_notices_dismissed'] ) ) {
    329         set_transient( 'liquid_admin_notices', 'dismissed', 60*60*24*30 );
    330     }
    331     if ( isset( $_GET['liquid_admin_offer_dismissed'] ) ) {
    332         set_transient( 'liquid_admin_offer', 'dismissed', 60*60*24*30 );
    333     }
    334     if( !empty($json_liquid_speech_balloon->news) && get_transient( 'liquid_admin_notices' ) != 'dismissed' ){
    335         echo '<div class="notice notice-info" style="position: relative;"><p>'.$json_liquid_speech_balloon->news.'</p><a href="?liquid_admin_notices_dismissed" style="position: absolute; right: 10px; top: 10px;">&times;</a></div>';
    336     }
    337     if( !empty($json_liquid_speech_balloon->offer) && get_transient( 'liquid_admin_offer' ) != 'dismissed' ){
    338         echo '<div class="notice notice-info" style="position: relative;"><p>'.$json_liquid_speech_balloon->offer.'</p><a href="?liquid_admin_offer_dismissed" style="position: absolute; right: 10px; top: 10px;">&times;</a></div>';
    339     }
    340     if(!empty($json_liquid_speech_balloon_error)) {
    341         echo '<script>console.log("'.$json_liquid_speech_balloon_error.'");</script>';
     322    global $liquid_speech_balloon_json;
     323    if( !empty($liquid_speech_balloon_json) ) {
     324        if ( isset( $_GET['liquid_admin_notices_dismissed'] ) ) {
     325            set_transient( 'liquid_admin_notices', 'dismissed', 60*60*24*30 );
     326        }
     327        if ( isset( $_GET['liquid_admin_offer_dismissed'] ) ) {
     328            set_transient( 'liquid_admin_offer', 'dismissed', 60*60*24*30 );
     329        }
     330        if( !empty($liquid_speech_balloon_json['news']) && get_transient( 'liquid_admin_notices' ) != 'dismissed' ){
     331            echo '<div class="notice notice-info" style="position: relative;"><p>'.$liquid_speech_balloon_json['news'].'</p><a href="?liquid_admin_notices_dismissed" style="position: absolute; right: 10px; top: 10px;">&times;</a></div>';
     332        }
     333        if( !empty($liquid_speech_balloon_json['offer']) && get_transient( 'liquid_admin_offer' ) != 'dismissed' ){
     334            echo '<div class="notice notice-info" style="position: relative;"><p>'.$liquid_speech_balloon_json['offer'].'</p><a href="?liquid_admin_offer_dismissed" style="position: absolute; right: 10px; top: 10px;">&times;</a></div>';
     335        }
    342336    }
    343337}
  • liquid-speech-balloon/tags/1.2.4/package-lock.json

    r3070426 r3209259  
    11{
    22   "name": "liquid-speech-balloon",
    3    "version": "1.2.4",
     3   "version": "1.2.5",
    44   "lockfileVersion": 1,
    55   "requires": true,
  • liquid-speech-balloon/tags/1.2.4/package.json

    r3070426 r3209259  
    11{
    22  "name": "liquid-speech-balloon",
    3   "version": "1.2.4",
     3  "version": "1.2.5",
    44  "devDependencies": {
    55    "babel-cli": "^6.9.0",
  • liquid-speech-balloon/tags/1.2.4/readme.txt

    r3070426 r3209259  
    44Tags: gutenberg, blocks, speech, speak, conversation
    55Requires at least: 5.0.0
    6 Tested up to: 6.5.1
    7 Stable tag: 1.2.4
     6Tested up to: 6.7.1
     7Stable tag: 1.2.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • liquid-speech-balloon/trunk/liquid-speech-balloon.php

    r3070426 r3209259  
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010Text Domain: liquid-speech-balloon
    11 Version: 1.2.4
     11Version: 1.2.5
    1212*/
    1313/*  Copyright 2019 LIQUID DESIGN Ltd. (email : [email protected])
     
    3434add_action( 'init', 'liquid_speech_balloon_init' );
    3535
     36// api
     37if ( is_admin() ) {
     38    $liquid_speech_balloon_api = require_once 'inc/api.php';
     39    $liquid_speech_balloon_json = $liquid_speech_balloon_api('https://lqd.jp/wp/data/p/liquid-speech-balloon.json', 'liquid_speech_balloon_json');
     40}
     41
     42// plugin_action_links_
    3643function liquid_speech_balloon_plugin_action_links( $links ) {
    3744    $mylinks = '<a href="'.admin_url( 'options-general.php?page=liquid-speech-balloon' ).'">'.__( 'Settings', 'liquid-speech-balloon' ).'</a>';
     
    144151// admin_page
    145152function liquid_speech_balloon_admin_page() {
    146     global $json_liquid_speech_balloon, $liquid_speech_balloon, $liquid_speech_balloon_img, $liquid_speech_balloon_name, $liquid_speech_balloon_note;
     153    global $liquid_speech_balloon_json, $liquid_speech_balloon, $liquid_speech_balloon_img, $liquid_speech_balloon_name, $liquid_speech_balloon_note;
    147154
    148155    // POST
     
    202209
    203210<!-- Recommend -->
    204 <?php if( !empty($json_liquid_speech_balloon->recommend) ){ ?>
     211<?php if( !empty($liquid_speech_balloon_json) && !empty($liquid_speech_balloon_json['recommend']) ){ ?>
    205212<div class="postbox">
    206213<h2 style="border-bottom: 1px solid #eee;"><?php _e( 'Recommend', 'liquid-speech-balloon' ); ?></h2>
    207 <div class="inside"><?php echo $json_liquid_speech_balloon->recommend; ?></div>
     214<div class="inside"><?php echo $liquid_speech_balloon_json['recommend']; ?></div>
    208215</div>
    209216<?php } ?>
     
    311318<?php }
    312319
    313 // json
    314 if ( is_admin() ) {
    315     $json_liquid_speech_balloon_error = "";
    316     $json_liquid_speech_balloon_url = "https://lqd.jp/wp/data/p/liquid-speech-balloon.json";
    317     $json_liquid_speech_balloon = wp_remote_get($json_liquid_speech_balloon_url);
    318     if ( is_wp_error( $json_liquid_speech_balloon ) ) {
    319         $json_liquid_speech_balloon_error = $json_liquid_speech_balloon->get_error_message().$json_liquid_speech_balloon_url;
    320     }else{
    321         $json_liquid_speech_balloon = json_decode($json_liquid_speech_balloon['body']);
    322     }
    323 }
    324 
    325320// notices
    326321function liquid_speech_balloon_admin_notices() {
    327     global $json_liquid_speech_balloon, $json_liquid_speech_balloon_error;
    328     if ( isset( $_GET['liquid_admin_notices_dismissed'] ) ) {
    329         set_transient( 'liquid_admin_notices', 'dismissed', 60*60*24*30 );
    330     }
    331     if ( isset( $_GET['liquid_admin_offer_dismissed'] ) ) {
    332         set_transient( 'liquid_admin_offer', 'dismissed', 60*60*24*30 );
    333     }
    334     if( !empty($json_liquid_speech_balloon->news) && get_transient( 'liquid_admin_notices' ) != 'dismissed' ){
    335         echo '<div class="notice notice-info" style="position: relative;"><p>'.$json_liquid_speech_balloon->news.'</p><a href="?liquid_admin_notices_dismissed" style="position: absolute; right: 10px; top: 10px;">&times;</a></div>';
    336     }
    337     if( !empty($json_liquid_speech_balloon->offer) && get_transient( 'liquid_admin_offer' ) != 'dismissed' ){
    338         echo '<div class="notice notice-info" style="position: relative;"><p>'.$json_liquid_speech_balloon->offer.'</p><a href="?liquid_admin_offer_dismissed" style="position: absolute; right: 10px; top: 10px;">&times;</a></div>';
    339     }
    340     if(!empty($json_liquid_speech_balloon_error)) {
    341         echo '<script>console.log("'.$json_liquid_speech_balloon_error.'");</script>';
     322    global $liquid_speech_balloon_json;
     323    if( !empty($liquid_speech_balloon_json) ) {
     324        if ( isset( $_GET['liquid_admin_notices_dismissed'] ) ) {
     325            set_transient( 'liquid_admin_notices', 'dismissed', 60*60*24*30 );
     326        }
     327        if ( isset( $_GET['liquid_admin_offer_dismissed'] ) ) {
     328            set_transient( 'liquid_admin_offer', 'dismissed', 60*60*24*30 );
     329        }
     330        if( !empty($liquid_speech_balloon_json['news']) && get_transient( 'liquid_admin_notices' ) != 'dismissed' ){
     331            echo '<div class="notice notice-info" style="position: relative;"><p>'.$liquid_speech_balloon_json['news'].'</p><a href="?liquid_admin_notices_dismissed" style="position: absolute; right: 10px; top: 10px;">&times;</a></div>';
     332        }
     333        if( !empty($liquid_speech_balloon_json['offer']) && get_transient( 'liquid_admin_offer' ) != 'dismissed' ){
     334            echo '<div class="notice notice-info" style="position: relative;"><p>'.$liquid_speech_balloon_json['offer'].'</p><a href="?liquid_admin_offer_dismissed" style="position: absolute; right: 10px; top: 10px;">&times;</a></div>';
     335        }
    342336    }
    343337}
  • liquid-speech-balloon/trunk/package-lock.json

    r3070426 r3209259  
    11{
    22   "name": "liquid-speech-balloon",
    3    "version": "1.2.4",
     3   "version": "1.2.5",
    44   "lockfileVersion": 1,
    55   "requires": true,
  • liquid-speech-balloon/trunk/package.json

    r3070426 r3209259  
    11{
    22  "name": "liquid-speech-balloon",
    3   "version": "1.2.4",
     3  "version": "1.2.5",
    44  "devDependencies": {
    55    "babel-cli": "^6.9.0",
  • liquid-speech-balloon/trunk/readme.txt

    r3070426 r3209259  
    44Tags: gutenberg, blocks, speech, speak, conversation
    55Requires at least: 5.0.0
    6 Tested up to: 6.5.1
    7 Stable tag: 1.2.4
     6Tested up to: 6.7.1
     7Stable tag: 1.2.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.