Plugin Directory

Changeset 2268112


Ignore:
Timestamp:
03/26/2020 12:11:24 PM (6 years ago)
Author:
pddring
Message:

Added support for hue rotation, greyscale and KPRIDE activities

Location:
create-with-code
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • create-with-code/tags/1.4/create-withcode.php

    r2262040 r2268112  
    44Plugin URI: https://github.com/pddring/create-withcode
    55Description: Share and run python code from create.withcode.uk with a shortcode
    6 Version: 1.3
     6Version: 1.4
    77Author: Pete Dring
    88Author URI: http://blog.withcode.uk
     
    1818        'mode' => 'embed',
    1919        'width' => '100%',
    20         'height' => '400px'
     20        'height' => '400px',
     21        'grey' => '0',
     22        'hue' => '0'
    2123    ), $atts );
     24
     25    $height = '400px';
     26
     27    if($a['grey'] != '0') {
     28        $a['id'] .= '/grey';
     29    }
     30    if($a['hue'] != '0') {
     31        $a['id'] .= '/hue/' . $a['hue'];
     32    }
    2233   
    2334    $mode = 'embed';
     
    2839        case 'kpride':
    2940            $mode = 'kpride';
     41            $height = '800px';
    3042            break;
    3143    }
    3244   
    33     $html = '<iframe frameborder="0" width="' . $a['width'] . '" height="' . $a['height'] . '" src="https://create.withcode.uk/' . $mode . '/' . $a['id'] . '"><a target="_blank" href="https://create.withcode.uk/python/' . $a['id'] . '">create.withcode.uk</a></iframe>';
     45    $html = '<iframe frameborder="0" width="' . $a['width'] . '" height="' . $height . '" src="https://create.withcode.uk/' . $mode . '/' . $a['id'] . '"><a target="_blank" href="https://create.withcode.uk/python/' . $a['id'] . '">create.withcode.uk</a></iframe>';
    3446    return $html;
    3547}
  • create-with-code/tags/1.4/readme.txt

    r2262040 r2268112  
    55Requires at least: 3.2
    66Tested up to: 5.4
    7 Stable tag: 1.3
     7Stable tag: 1.4
    88License: GPLv2
    99
     
    3131`[withcode id="3C" mode="embed" width="400px" height="600px"]`
    3232
     33You can customise the colour scheme by rotating all the colours on the toolbar icons by a hue value:
     34`[withcode id="3C" hue="45"]`
     35
     36Or you can make the toolbar icons greyscale as follows:
     37`[withcode id="3C" grey="1"]`
     38
    3339### Please note:
    3440This plugin just lets you embed python code from create.withcode.uk in a wordpress site.
     
    4248
    4349== Changelog ==
     50= 1.4 =
     51* Release Date - 26th March 2020*
     52Added support for greyscale icons or a different colour scheme (hue rotation)
     53
    4454= 1.3 =
    4555*Release Date - 16th march 2020*
  • create-with-code/trunk/create-withcode.php

    r2262040 r2268112  
    44Plugin URI: https://github.com/pddring/create-withcode
    55Description: Share and run python code from create.withcode.uk with a shortcode
    6 Version: 1.3
     6Version: 1.4
    77Author: Pete Dring
    88Author URI: http://blog.withcode.uk
     
    1818        'mode' => 'embed',
    1919        'width' => '100%',
    20         'height' => '400px'
     20        'height' => '400px',
     21        'grey' => '0',
     22        'hue' => '0'
    2123    ), $atts );
     24
     25    $height = '400px';
     26
     27    if($a['grey'] != '0') {
     28        $a['id'] .= '/grey';
     29    }
     30    if($a['hue'] != '0') {
     31        $a['id'] .= '/hue/' . $a['hue'];
     32    }
    2233   
    2334    $mode = 'embed';
     
    2839        case 'kpride':
    2940            $mode = 'kpride';
     41            $height = '800px';
    3042            break;
    3143    }
    3244   
    33     $html = '<iframe frameborder="0" width="' . $a['width'] . '" height="' . $a['height'] . '" src="https://create.withcode.uk/' . $mode . '/' . $a['id'] . '"><a target="_blank" href="https://create.withcode.uk/python/' . $a['id'] . '">create.withcode.uk</a></iframe>';
     45    $html = '<iframe frameborder="0" width="' . $a['width'] . '" height="' . $height . '" src="https://create.withcode.uk/' . $mode . '/' . $a['id'] . '"><a target="_blank" href="https://create.withcode.uk/python/' . $a['id'] . '">create.withcode.uk</a></iframe>';
    3446    return $html;
    3547}
  • create-with-code/trunk/readme.txt

    r2262040 r2268112  
    55Requires at least: 3.2
    66Tested up to: 5.4
    7 Stable tag: 1.3
     7Stable tag: 1.4
    88License: GPLv2
    99
     
    3131`[withcode id="3C" mode="embed" width="400px" height="600px"]`
    3232
     33You can customise the colour scheme by rotating all the colours on the toolbar icons by a hue value:
     34`[withcode id="3C" hue="45"]`
     35
     36Or you can make the toolbar icons greyscale as follows:
     37`[withcode id="3C" grey="1"]`
     38
    3339### Please note:
    3440This plugin just lets you embed python code from create.withcode.uk in a wordpress site.
     
    4248
    4349== Changelog ==
     50= 1.4 =
     51* Release Date - 26th March 2020*
     52Added support for greyscale icons or a different colour scheme (hue rotation)
     53
    4454= 1.3 =
    4555*Release Date - 16th march 2020*
Note: See TracChangeset for help on using the changeset viewer.