Changeset 2488881
- Timestamp:
- 03/07/2021 01:01:48 PM (5 years ago)
- Location:
- fullscreen-button/trunk
- Files:
-
- 1 added
- 2 edited
-
WP Fullscreen Button1.3.zip (added)
-
fullscreen-button.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fullscreen-button/trunk/fullscreen-button.php
r2483262 r2488881 3 3 * Plugin Name: Fullscreen Button 4 4 * Plugin URI: https://klaetke.com/wordpress-fullscreen-button 5 * Description: A Button to set the Page in Fullscreen (Like the F11 Button). After Install use the following Shortcodes to integrate the Fullscreen Button. [fullscreen_button] or Alternative with Font Awesome Icon [fullscreen_button_fa] New: Alternate Icon SVG [fullscreen_button_a1] 6 * Version: 1. 25 * Description: A Button to set the Page in Fullscreen (Like the F11 Button). After Install use the following Shortcodes to integrate the Fullscreen Button. [fullscreen_button] or Alternative with Font Awesome Icon [fullscreen_button_fa] New: Alternate Icon SVG [fullscreen_button_a1] [fullscreen_button_text] 6 * Version: 1.3 7 7 * Text Domain: klaetke.com 8 8 * Author: Toni Klätke … … 81 81 82 82 add_shortcode('fullscreen_button_a1', 'fullscreen_button_plugin_3'); 83 84 function fullscreen_button_plugin_4($atts) { 85 $Content .= '<a href="#full" id="goFS" onclick="toggleFullScreen()">Fullscreen</a> 86 <script> 87 function toggleFullScreen() { 88 var doc = window.document; 89 var docEl = doc.documentElement; 90 91 var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen; 92 var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen; 93 94 if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) { 95 requestFullScreen.call(docEl); 96 } 97 else { 98 cancelFullScreen.call(doc); 99 } 100 } 101 </script>'; 102 103 return $Content; 104 } 105 106 add_shortcode('fullscreen_button_text', 'fullscreen_button_plugin_4'); -
fullscreen-button/trunk/readme.txt
r2483306 r2488881 13 13 14 14 ### Usage 15 Integrate the Shortcode in WordPress and you get the following Unicode Sym bol ⛶ with the Full Screen Function. Full customize, for changing the size or color. The ⛶ Unicode Symbol works with the standard HTML text formats.15 Integrate the Shortcode in WordPress and you get the following Unicode Symobol ⛶ with the Full Screen Function. Full customize, for changing the size or color. The ⛶ Unicode Symbol works with the standard HTML text formats. 16 16 17 17 Update: Now with Support for Font Awesome. With a special Shortcode you get the Font Awesome Expand Icon for Fullscreen Mode. … … 21 21 Fullscreen Button (Unicode Symbol) [fullscreen_button] 22 22 Fullscreen Button (Font Awesome) [fullscreen_button_fa] 23 Fullscreen Button (Alternate SVG Icon) [fullscreen_button_a1]24 23 25 24 ## Screenshots … … 37 36 = 1.2 = 38 37 * Added an Alternate Fullscreen Icon. Shortcode: [fullscreen_button_a1] 38 39 = 1.3 = 40 * Added a Text Version of the Fullscreen Button. Shortcode: [fullscreen_button_text]
Note: See TracChangeset
for help on using the changeset viewer.