WordPress.org

Plugin Directory

Changeset 1593963


Ignore:
Timestamp:
02/11/17 19:38:03 (8 months ago)
Author:
_Y_Power
Message:

Visual Chap version 1.0.5 - fixed minor bugs

Location:
visual-chap/trunk
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • visual-chap/trunk/includes/js/wikipedia-visual-chap.js

    r1593669 r1593963  
    433433        url: queryString, 
    434434        type: 'POST', 
    435         headers: { 'Api-User-Agent': 'Visual Chap 1.0.4 WordPress plugin - request 1 of 3 (http://visualchap.nouveausiteweb.fr/)' }, 
     435        headers: { 'Api-User-Agent': 'Visual Chap 1.0.5 WordPress plugin - request 1 of 3 (http://visualchap.nouveausiteweb.fr/)' }, 
    436436        dataType: 'json', 
    437437        success: function(data){ 
     
    448448            url: queryString, 
    449449            type: 'POST', 
    450             headers: { 'Api-User-Agent': 'Visual Chap 1.0.4 WordPress plugin - request 2 of 3 (http://visualchap.nouveausiteweb.fr/)' }, 
     450            headers: { 'Api-User-Agent': 'Visual Chap 1.0.5 WordPress plugin - request 2 of 3 (http://visualchap.nouveausiteweb.fr/)' }, 
    451451            dataType: 'json', 
    452452            success: function(data){ 
     
    470470                url: queryString, 
    471471                type: 'POST', 
    472                 headers: { 'Api-User-Agent': 'Visual Chap 1.0.4 WordPress plugin - request 3 of 3 (http://visualchap.nouveausiteweb.fr/)' }, 
     472                headers: { 'Api-User-Agent': 'Visual Chap 1.0.5 WordPress plugin - request 3 of 3 (http://visualchap.nouveausiteweb.fr/)' }, 
    473473                dataType: 'json', 
    474474                success: function(data){ 
     
    482482                    photoDetails = '', 
    483483                    photos = wikipediaVisualChap.images.query.pages, 
    484                     mainImg = (wikipediaVisualChap.results[1]) ? wikipediaVisualChap.results[1].query.pages[0].pageimage : wikipediaVisualChap.options.wvcPluginsURL + '/visual-chap/assets/img/Wikipedia-logo-v2.svg'; 
     484                    mainImg = (wikipediaVisualChap.results[1] && wikipediaVisualChap.results[1].query.pages[0].pageimage) ? wikipediaVisualChap.results[1].query.pages[0].pageimage : wikipediaVisualChap.options.wvcPluginsURL + '/visual-chap/assets/img/Wikipedia-logo-v2.svg'; 
    485485                    for (i = 0; i < photos.length; i++){ 
    486486                    var correctedTitle; 
     
    871871        } 
    872872        } 
    873         console.log(wvcAnchorParagraph); 
    874873        return wvcAnchorParagraph; 
    875874    }; 
  • visual-chap/trunk/includes/wvc-html.php

    r1593669 r1593963  
    5959        $wvc_show_credits_options_dev = get_option('wikipedia-visual-chap-options-dev', 0); 
    6060        if ( $wvc_show_credits_options_dev == 1){ 
    61             $wvc_logo_option = '<img id="wikipedia-visual-chap-box-logo" src="' . esc_url(plugins_url() . '/visual-chap/assets/img/Visual_Chap_logo.svg') . '" alt="visual chap logo"></img><i class="fa fa-info-circle" aria-hidden="true"></i></div><p id="wikipedia-visual-chap-name" class="wikipedia-visual-chap-standby-item">Visual Chap</p>'; 
     61            $wvc_logo_option = '<img id="wikipedia-visual-chap-box-logo" src="' . esc_url(plugins_url() . '/visual-chap/assets/img/Visual_Chap_logo.png') . '" alt="visual chap logo"></img><i class="fa fa-info-circle" aria-hidden="true"></i></div><p id="wikipedia-visual-chap-name" class="wikipedia-visual-chap-standby-item">Visual Chap</p>'; 
    6262        } 
    6363        else { 
  • visual-chap/trunk/readme.txt

    r1593669 r1593963  
    55Requires at least: 4.6 
    66Tested up to: 4.7 
    7 Stable tag: 1.0.4 
     7Stable tag: 1.0.5 
    88License: GPLv3 or later 
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html 
     
    4343= Will it work with my theme? = 
    4444 
    45 Visual Chap works on *most* themes and I try to keep it compatible with every major theme but there are exceptions (most noticeably 'Twenty Fifteen) and there might be minor differences among them. 
     45Visual Chap works on *most* themes and I try to keep it compatible with every major one but there are exceptions (most noticeably 'Twenty Fifteen) and there might be minor differences among them. 
    4646 
    4747= How about mobile devices? = 
     
    7070== Changelog == 
    7171 
     72= 1.0.5 = 
     73* fixed minor bugs (search function and icons) 
     74 
    7275= 1.0.4 = 
    7376* Added closing/opening window auto-scroll and icon color option; fixed enqueued files (admin and front) by registering them, fixed multiple minor bugs 
     
    8487== Upgrade Notice == 
    8588 
     89= 1.0.5 = 
     90* Fixed minor bugs 
     91 
    8692= 1.0.4 = 
    8793* New closing/opening animation, icon color option and multiple bugs fixes 
  • visual-chap/trunk/visual-chap.php

    r1593669 r1593963  
    44   Plugin URI:  http://visualchap.nouveausiteweb.fr/ 
    55   Description: Enriches your posts by adding a quick, 'visual' Wikipedia-powered search. 
    6    Version:     1.0.4 
     6   Version:     1.0.5 
    77   Author:      _y_power 
    88   Author URI:  http://ypower.nouveausiteweb.fr/ 
     
    140140    <?php esc_html_e('Thank you for using Visual Chap, the smart, graphical companion for your posts! ', 'wikipedia-visual-chap'); 
    141141        ?> 
    142     <img id="wikipedia-visual-chap-admin-logo" src="<?php echo esc_url(plugins_url() . '/visual-chap/assets/img/Visual_Chap_logo.svg'); ?>" alt="Visual Chap logo"></img> 
     142    <img id="wikipedia-visual-chap-admin-logo" src="<?php echo esc_url(plugins_url() . '/visual-chap/assets/img/Visual_Chap_logo.png'); ?>" alt="Visual Chap logo"></img> 
    143143    </p> 
    144144    <p> 
Note: See TracChangeset for help on using the changeset viewer.