Plugin Directory

Changeset 1968084


Ignore:
Timestamp:
11/03/2018 12:23:51 AM (7 years ago)
Author:
martindrapeau
Message:

Fixed bug with image path

Location:
amilia-store/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • amilia-store/trunk/amilia-store.php

    r1968082 r1968084  
    66Author: Martin Drapeau <martin.drapeau@amilia.com>
    77Copyright: 2014-2018 Amilia
    8 Version: 2.8.0
     8Version: 2.8.1
    99Author URI: http://www.amilia.com/
    1010License: Apache License 2.0
  • amilia-store/trunk/shortcodes/amilia-store-button.js

    r1968082 r1968084  
    9999        help2 = modal.querySelector("a.amilia-help2"),
    100100        instructions = modal.querySelector(".amilia-instructions"),
    101         activeButton = null;
     101        activeButton = null,
     102        imagesUrl = url.replace('/shortcodes', '/images/');
    102103
    103104    function generateRawHtml() {
     
    106107        .replace('{color}', Amilia.COLORS[color.value] == 'y' ? '#494949' : '#ffffff')
    107108        .replace('{backgroundColor}', Amilia.COLORS[color.value])
    108         .replace('{imageUrl}', url + "/images/" + image.value + ".png")
     109        .replace('{imageUrl}', imagesUrl + image.value + ".png")
    109110        .replace('{text}', text.value);
    110111    }
     
    187188      onclick: showModal,
    188189      title: Amilia.lang('button-title'),
    189       image: url + "/images/link.svg"
     190      image: imagesUrl + "link.svg"
    190191    });
    191192    editor.onNodeChange.add(function(editor, controllManager, node) {
  • amilia-store/trunk/shortcodes/amilia-store-calendar.js

    r1968082 r1968084  
    123123        instructions = modal.querySelector('.amilia-instructions'),
    124124        activeNode = null,
    125         activeShortcode = null;
     125        activeShortcode = null,
     126        imagesUrl = url.replace('/shortcodes', '/images/');
    126127
    127128    function getSelectedTags() {
     
    319320      onclick: showModal,
    320321      title: Amilia.lang('calendar-title'),
    321       image: url + '/images/calendar.svg'
     322      image: imagesUrl + 'calendar.svg'
    322323    });
    323324    editor.onNodeChange.add(function(editor, controllManager, node) {
  • amilia-store/trunk/shortcodes/amilia-store-iframe.js

    r1968082 r1968084  
    7777        instructions = modal.querySelector('.amilia-instructions'),
    7878        activeNode = null,
    79         activeShortcode = null;
     79        activeShortcode = null,
     80        imagesUrl = url.replace('/shortcodes', '/images/');
    8081
    8182    storeUrl.onchange = function() {
     
    157158      onclick: showModal,
    158159      title: Amilia.lang('iframe-title'),
    159       image: url + '/images/amilia-a.svg'
     160      image: imagesUrl + 'amilia-a.svg'
    160161    });
    161162    editor.onNodeChange.add(function(editor, controllManager, node) {
  • amilia-store/trunk/shortcodes/amilia-store-standings.js

    r1968082 r1968084  
    8282        instructions = modal.querySelector('.amilia-instructions'),
    8383        activeNode = null,
    84         activeShortcode = null;
     84        activeShortcode = null,
     85        imagesUrl = url.replace('/shortcodes', '/images/');
    8586
    8687    function getSelectedProgram() {
     
    260261      onclick: showModal,
    261262      title: Amilia.lang('standings-title'),
    262       image: url + '/images/standings.svg'
     263      image: imagesUrl + 'standings.svg'
    263264    });
    264265    editor.onNodeChange.add(function(editor, controllManager, node) {
  • amilia-store/trunk/shortcodes/amilia-store-table.js

    r1968082 r1968084  
    8282        instructions = modal.querySelector('.amilia-instructions'),
    8383        activeNode = null,
    84         activeShortcode = null;
     84        activeShortcode = null,
     85        imagesUrl = url.replace('/shortcodes', '/images/');
    8586
    8687    function getSelectedTags() {
     
    235236      onclick: showModal,
    236237      title: Amilia.lang('table-title'),
    237       image: url + '/images/table.svg'
     238      image: imagesUrl + 'table.svg'
    238239    });
    239240    editor.onNodeChange.add(function(editor, controllManager, node) {
Note: See TracChangeset for help on using the changeset viewer.