Changeset 2748114
- Timestamp:
- 06/26/2022 12:56:37 PM (4 years ago)
- Location:
- aspiesoft-church-sermon-video-list/trunk
- Files:
-
- 5 edited
-
admin.php (modified) (5 diffs)
-
aspiesoft-church-sermon-video-list.php (modified) (2 diffs)
-
assets/script.js (modified) (1 diff)
-
main.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aspiesoft-church-sermon-video-list/trunk/admin.php
r2651866 r2748114 143 143 } 144 144 145 .item label[for="visible"] { 145 .item label[for="visible"], 146 .item label[for="landscape"] { 146 147 float: right; 148 } 149 150 .item .checkboxes { 151 float: right; 152 display: flex; 153 flex-direction: column; 147 154 } 148 155 … … 181 188 } 182 189 183 .item label[for="visible"] { 190 .item label[for="visible"], 191 .item label[for="landscape"] { 184 192 float: left; 193 } 194 195 .item .checkboxes { 196 float: left; 197 display: contents; 185 198 } 186 199 … … 231 244 result.push({ 232 245 visible: item.querySelector('input[name="visible"]').checked, 246 landscape: item.querySelector('input[name="landscape"]').checked, 233 247 date: item.querySelector('input[name="date"]').value.replace(/^([0-9]+)-([0-9]+)-([0-9]+)$/, function(_, y, m, d) { 234 248 return `${Number(m)}-${Number(d)}-${Number(y)}`; … … 256 270 257 271 item.innerHTML = ` 258 <label for="visible"><input type="checkbox" name="visible" checked>Show</label> 272 <div class="checkboxes"> 273 <label for="visible"><input type="checkbox" name="visible" checked>Show</label> 274 <label for="landscape"><input type="checkbox" name="landscape">Landscape</label> 275 </div> 259 276 <input type="date" name="date"> 260 277 <input type="text" name="name" placeholder="Name"> … … 275 292 addNewItem(function(item) { 276 293 item.querySelector('input[name="visible"]').checked = itemList[i].visible; 294 item.querySelector('input[name="landscape"]').checked = itemList[i].landscape; 277 295 item.querySelector('input[name="date"]').value = new Date(itemList[i].date).toISOString().substring(0, 10); 278 296 item.querySelector('input[name="name"]').value = itemList[i].name; -
aspiesoft-church-sermon-video-list/trunk/aspiesoft-church-sermon-video-list.php
r2651866 r2748114 6 6 /* 7 7 Plugin Name: AspieSoft Church Sermon Video List 8 Version: 1. 3.38 Version: 1.4.0 9 9 Description: An easy way for a church to list there sermon videos on their website. 10 10 Author: AspieSoft … … 89 89 function enqueue() { 90 90 wp_enqueue_style('aspieSoftChurchSermonVideoListStyle', plugins_url('/assets/style.css', __FILE__), array(), '1.4'); 91 wp_enqueue_script('aspieSoftChurchSermonVideoListScript', plugins_url('/assets/script.js', __FILE__), array('jquery'), '1. 6', true);91 wp_enqueue_script('aspieSoftChurchSermonVideoListScript', plugins_url('/assets/script.js', __FILE__), array('jquery'), '1.7', true); 92 92 } 93 93 } -
aspiesoft-church-sermon-video-list/trunk/assets/script.js
r2399539 r2748114 161 161 } 162 162 } 163 164 if($(this).attr('landscape')){ 165 [facebook.width, facebook.height] = [facebook.height, facebook.width]; 166 } 167 163 168 iframe.attr('width', facebook.width); 164 169 iframe.attr('height', facebook.height); -
aspiesoft-church-sermon-video-list/trunk/main.php
r2651864 r2748114 11 11 if(!class_exists('AspieSoftChurchSermonVideoListMain')){ 12 12 13 class AspieSoftChurchSermonVideoListMain {13 class AspieSoftChurchSermonVideoListMain { 14 14 15 15 function start(){ … … 32 32 'fb-profile' => false, 'fbprofile' => false, 33 33 'hide' => false, 'hidden' => false, 34 'landscape' => false, 34 35 'list' => false, 35 36 ), $atts); … … 115 116 $result .= ' scripture="'.$scripture.'"'; 116 117 } 118 if($attr['landscape']){ 119 $result .= ' landscape="true"'; 120 } 117 121 118 122 $result .= '>'; … … 144 148 if (!$item['visible']) { 145 149 $content .= ' hide=true'; 150 } 151 if ($item['landscape']) { 152 $content .= ' landscape=true'; 146 153 } 147 154 $content .= ' url="' . esc_attr($item['url']) . '" date="' . esc_attr($item['date']) . '" name="' . esc_attr($item['name']) . '" scripture="' . esc_attr($item['scripture']) . '"]'; -
aspiesoft-church-sermon-video-list/trunk/readme.txt
r2651866 r2748114 4 4 Requires at least: 3.0.1 5 5 Tested up to: 5.8.2 6 Stable tag: 1. 3.36 Stable tag: 1.4.0 7 7 Requires PHP: 5.2.4 8 8 License: GPLv2 or later … … 40 40 == Changelog == 41 41 42 = 1.4 = 43 Added landscape option 44 42 45 = 1.3 = 43 46 Added a GUI based list … … 55 58 == Upgrade Notice == 56 59 60 = 1.4 = 61 Added landscape option 62 63 = 1.3 = 64 Added a GUI based list 65 57 66 = 1.2 = 58 67 Improved Site Performance
Note: See TracChangeset
for help on using the changeset viewer.