Plugin Directory

Changeset 2332378


Ignore:
Timestamp:
06/29/2020 01:19:22 PM (6 years ago)
Author:
webhack
Message:

v.1.1.8 (fixed 'do_shortcode', and first render issues)

Location:
wha-wordsearch/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wha-wordsearch/trunk/readme.txt

    r2297700 r2332378  
    11=== Word Search Puzzles game ===
    22Contributors: webhelpagency
    3 Version: 1.1.7
     3Version: 1.1.8
    44Donate link: http://webhelpagency.com/
    55Tags: wordsearch, search, game, crossword, puzzles
    66Requires at least: 4.0.1
    7 Tested up to: 5.2.3
    8 Requires PHP: 5.5
     7Tested up to: 5.4.2
     8Requires PHP: 7.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wha-wordsearch/trunk/res/wordsearch.css

    r2157649 r2332378  
    22    display: inline-block;
    33    line-height: normal
     4}
     5
     6.wha-hidden{
     7    visibility: hidden;
    48}
    59
  • wha-wordsearch/trunk/res/wordsearch.js

    r2157649 r2332378  
    864864    var wha_ws_grid_width = jQuery('.wha-ws-grid').width();
    865865
    866    jQuery('.wha-dir-bottom .wha-word-list').css('max-width', wha_ws_grid_width+'px')
    867    jQuery('.wha-dir-top .wha-word-list').css('max-width', wha_ws_grid_width+'px')
     866   jQuery('.wha-dir-bottom .wha-word-list').css('max-width', wha_ws_grid_width+'px');
     867   jQuery('.wha-dir-top .wha-word-list').css('max-width', wha_ws_grid_width+'px');
     868   jQuery('.wha-wordsearch-row').removeClass('wha-hidden');
    868869
    869870
  • wha-wordsearch/trunk/wha-wordsearch.php

    r2297700 r2332378  
    44 * Plugin Name:       WHA Wordsearch
    55 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
    6  * Version:           1.1.7
     6 * Version:           1.1.8
    77 * Author:            WHA
    88 * Author URI:        http://webhelpagency.com/
     
    3939}
    4040
    41 define('WHAWS_VERSION', '1.1.6');
     41define('WHAWS_VERSION', '1.1.8');
    4242
    4343function whaws_activation()
     
    7575{
    7676    global $post;
    77 
     77    global $shortcode_tags;
    7878
    7979    wp_enqueue_media();
    8080
    81     if (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'game-wordsearch')) { //include scripts/style only on pages with shortcode
     81    if (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'game-wordsearch') || in_array("game-wordsearch", array_keys($shortcode_tags))) { //include scripts/style only on pages with shortcode
    8282
    8383        wp_enqueue_style('wha-wordsearch-style', plugins_url('res/wordsearch.css', __FILE__));
     
    234234    $rows = json_decode($wordsearch, true, 512, JSON_UNESCAPED_UNICODE);
    235235
    236     $html .= '<div class="row wha-wordsearch-row">
     236    $html .= '<div class="row wha-wordsearch-row wha-hidden">
    237237
    238238        <div class="wha-wordsearch-container">';
Note: See TracChangeset for help on using the changeset viewer.