Plugin Directory

Changeset 2334674


Ignore:
Timestamp:
07/03/2020 07:48:19 AM (6 years ago)
Author:
webhack
Message:

v2.0.0 fixed fixed scripts issue

Location:
wha-wordsearch/trunk
Files:
2 edited

Legend:

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

    r2333957 r2334674  
    11=== Word Search Puzzles game ===
    22Contributors: webhelpagency
    3 Version: 1.1.9
     3Version: 2.0.0
    44Donate link: http://webhelpagency.com/
    55Tags: wordsearch, search, game, crossword, puzzles
  • wha-wordsearch/trunk/wha-wordsearch.php

    r2333957 r2334674  
    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.9
     6 * Version:           2.0.0
    77 * Author:            WHA
    88 * Author URI:        http://webhelpagency.com/
     
    3939}
    4040
    41 define('WHAWS_VERSION', '1.1.9');
     41define('WHAWS_VERSION', '2.0.0');
    4242
    4343function whaws_activation()
     
    7979    wp_enqueue_media();
    8080
    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
     81    if (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'game-wordsearch')) { //include scripts/style only on pages with shortcode
    8282
    8383        wp_enqueue_style('wha-wordsearch-style', plugins_url('res/wordsearch.css', __FILE__));
     
    165165function whaws_game_return($atts) // call wordsearch options on a plugin page
    166166{
     167
     168        wp_enqueue_style('wha-wordsearch-style', plugins_url('res/wordsearch.css', __FILE__));
     169        wp_enqueue_script('wha-wordsearch-angular-js', plugins_url('res/libs/angular.min.js', __FILE__), true, true, true);
     170        wp_enqueue_script('wha-wordsearch-underscore-js', plugins_url('res/libs/underscore-min.js', __FILE__), true, true, true);
     171        wp_enqueue_script('wha-wordsearch-script', plugins_url('res/wordsearch.js', __FILE__), true, true, true);
    167172
    168173    if (!isset($atts['id'])) {
Note: See TracChangeset for help on using the changeset viewer.