Changeset 2268112
- Timestamp:
- 03/26/2020 12:11:24 PM (6 years ago)
- Location:
- create-with-code
- Files:
-
- 2 edited
- 3 copied
-
tags/1.4 (copied) (copied from create-with-code/trunk)
-
tags/1.4/create-withcode.php (copied) (copied from create-with-code/trunk/create-withcode.php) (3 diffs)
-
tags/1.4/readme.txt (copied) (copied from create-with-code/trunk/readme.txt) (3 diffs)
-
trunk/create-withcode.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
create-with-code/tags/1.4/create-withcode.php
r2262040 r2268112 4 4 Plugin URI: https://github.com/pddring/create-withcode 5 5 Description: Share and run python code from create.withcode.uk with a shortcode 6 Version: 1. 36 Version: 1.4 7 7 Author: Pete Dring 8 8 Author URI: http://blog.withcode.uk … … 18 18 'mode' => 'embed', 19 19 'width' => '100%', 20 'height' => '400px' 20 'height' => '400px', 21 'grey' => '0', 22 'hue' => '0' 21 23 ), $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 } 22 33 23 34 $mode = 'embed'; … … 28 39 case 'kpride': 29 40 $mode = 'kpride'; 41 $height = '800px'; 30 42 break; 31 43 } 32 44 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>'; 34 46 return $html; 35 47 } -
create-with-code/tags/1.4/readme.txt
r2262040 r2268112 5 5 Requires at least: 3.2 6 6 Tested up to: 5.4 7 Stable tag: 1. 37 Stable tag: 1.4 8 8 License: GPLv2 9 9 … … 31 31 `[withcode id="3C" mode="embed" width="400px" height="600px"]` 32 32 33 You 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 36 Or you can make the toolbar icons greyscale as follows: 37 `[withcode id="3C" grey="1"]` 38 33 39 ### Please note: 34 40 This plugin just lets you embed python code from create.withcode.uk in a wordpress site. … … 42 48 43 49 == Changelog == 50 = 1.4 = 51 * Release Date - 26th March 2020* 52 Added support for greyscale icons or a different colour scheme (hue rotation) 53 44 54 = 1.3 = 45 55 *Release Date - 16th march 2020* -
create-with-code/trunk/create-withcode.php
r2262040 r2268112 4 4 Plugin URI: https://github.com/pddring/create-withcode 5 5 Description: Share and run python code from create.withcode.uk with a shortcode 6 Version: 1. 36 Version: 1.4 7 7 Author: Pete Dring 8 8 Author URI: http://blog.withcode.uk … … 18 18 'mode' => 'embed', 19 19 'width' => '100%', 20 'height' => '400px' 20 'height' => '400px', 21 'grey' => '0', 22 'hue' => '0' 21 23 ), $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 } 22 33 23 34 $mode = 'embed'; … … 28 39 case 'kpride': 29 40 $mode = 'kpride'; 41 $height = '800px'; 30 42 break; 31 43 } 32 44 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>'; 34 46 return $html; 35 47 } -
create-with-code/trunk/readme.txt
r2262040 r2268112 5 5 Requires at least: 3.2 6 6 Tested up to: 5.4 7 Stable tag: 1. 37 Stable tag: 1.4 8 8 License: GPLv2 9 9 … … 31 31 `[withcode id="3C" mode="embed" width="400px" height="600px"]` 32 32 33 You 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 36 Or you can make the toolbar icons greyscale as follows: 37 `[withcode id="3C" grey="1"]` 38 33 39 ### Please note: 34 40 This plugin just lets you embed python code from create.withcode.uk in a wordpress site. … … 42 48 43 49 == Changelog == 50 = 1.4 = 51 * Release Date - 26th March 2020* 52 Added support for greyscale icons or a different colour scheme (hue rotation) 53 44 54 = 1.3 = 45 55 *Release Date - 16th march 2020*
Note: See TracChangeset
for help on using the changeset viewer.