Changeset 2955134
- Timestamp:
- 08/17/2023 10:33:07 PM (3 years ago)
- Location:
- weaverx-theme-support
- Files:
-
- 20 edited
- 1 copied
-
tags/6.3.0 (copied) (copied from weaverx-theme-support/trunk)
-
tags/6.3.0/admin/admin-advancedopts4.php (modified) (1 diff)
-
tags/6.3.0/admin/admin-lib-ts-2.php (modified) (1 diff)
-
tags/6.3.0/admin/admin-lib-ts.php (modified) (2 diffs)
-
tags/6.3.0/admin/admin-mainopts4.php (modified) (1 diff)
-
tags/6.3.0/admin/admin-saverestore4.php (modified) (2 diffs)
-
tags/6.3.0/help/help.html (modified) (2 diffs)
-
tags/6.3.0/includes/wvrx-ts-runtime-lib.php (modified) (2 diffs)
-
tags/6.3.0/includes/wvrx-ts-shortcodes.php (modified) (9 diffs)
-
tags/6.3.0/readme.txt (modified) (2 diffs)
-
tags/6.3.0/weaverx-ts.php (modified) (2 diffs)
-
trunk/admin/admin-advancedopts4.php (modified) (1 diff)
-
trunk/admin/admin-lib-ts-2.php (modified) (1 diff)
-
trunk/admin/admin-lib-ts.php (modified) (2 diffs)
-
trunk/admin/admin-mainopts4.php (modified) (1 diff)
-
trunk/admin/admin-saverestore4.php (modified) (2 diffs)
-
trunk/help/help.html (modified) (2 diffs)
-
trunk/includes/wvrx-ts-runtime-lib.php (modified) (2 diffs)
-
trunk/includes/wvrx-ts-shortcodes.php (modified) (9 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/weaverx-ts.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
weaverx-theme-support/tags/6.3.0/admin/admin-advancedopts4.php
r2891913 r2955134 390 390 <div class="atw-option-header"><span style="color:black; padding:.2em;" 391 391 class="dashicons dashicons-admin-generic"></span> 392 <?php _e('New Version 5 Options', 'weaver-xtreme' /*adm*/); ?>392 <?php _e('New Version 5 and later Options', 'weaver-xtreme' /*adm*/); ?> 393 393 </div><br/> 394 <?php _e('This is a list of new options added to Weaver Xtreme Version 5 that are NOT supported by the Legacy interface. You will have to use the Customizer to use any of these options.', 'weaver-xtreme'); ?>394 <?php _e('This is a list of new options added to Weaver Xtreme Version 5 and later that are NOT supported by the Legacy interface. You will have to use the Customizer to use any of these options.', 'weaver-xtreme'); ?> 395 395 <br/> 396 396 <hr/> -
weaverx-theme-support/tags/6.3.0/admin/admin-lib-ts-2.php
r2891913 r2955134 1307 1307 array('val' => 'xl-font-size', 'desc' => esc_html__('X-Large Font', 'weaver-xtreme' /*adm*/)), 1308 1308 array('val' => 'xxl-font-size', 'desc' => esc_html__('XX-Large Font', 'weaver-xtreme' /*adm*/)), 1309 array('val' => 'huge-font-size', 'desc' => esc_html__('Huge Font', 'weaver-xtreme' /*adm*/)), 1309 1310 array('val' => 'customA-font-size', 'desc' => esc_html__('Custom Size A', 'weaver-xtreme' /*adm*/)), 1310 1311 array('val' => 'customB-font-size', 'desc' => esc_html__('Custom Size B', 'weaver-xtreme' /*adm*/)), -
weaverx-theme-support/tags/6.3.0/admin/admin-lib-ts.php
r2891913 r2955134 871 871 } 872 872 873 function weaverx_ts_allow_file_read(): bool 874 { 875 // Check for Reading User defined file name - not allowed by default for Multi-Site regular Admin 876 // doesn't allow WVRX_MULTISITE_RESTRICT_OPTIONS test 877 // Plugin specific version for backward compatibility with older versions of theme 878 879 return ((!is_multisite() && current_user_can('install_plugins')) 880 || (is_multisite() && current_user_can('manage_network_themes'))); 881 } 882 873 883 // Weaver Xtreme 5 compatibility functions 874 884 if (version_compare(WEAVERX_VERSION, '4.9.0', '>=')) { … … 879 889 $out = esc_textarea($text); 880 890 } else { 881 $out = esc_textarea( stripslashes($text));891 $out = esc_textarea($text); 882 892 } 883 893 if ($echo) { -
weaverx-theme-support/tags/6.3.0/admin/admin-mainopts4.php
r2891913 r2955134 327 327 ), 328 328 329 array( 329 330 331 array('type' => 'submit'), 332 ); 333 if (version_compare(WEAVERX_VERSION, '6.2.0.90', '<')) { 334 $opts[] = array( 330 335 'name' => '<small>' . esc_html__('Disable Google Font Integration', 'weaver-xtreme' /*adm*/) . '</small>', 331 336 'id' => 'disable_google_fonts', 332 337 'type' => '+checkbox', 333 338 'info' => wp_kses_post(__('<strong>ADVANCED OPTION!</strong> <em>Be sure you understand the consequences of this option.</em> By disabling Google Font Integration, the Google Fonts definitions will <strong>not</strong> be loaded for your site. <strong style="color:red;font-weight:bold;">Please note:</strong> Any previously selected Google Font Families will revert to generic serif, sans, mono, and script fonts.', 'weaver-xtreme')) . ' ' . esc_html__('Note: Weaver Xtreme Self-hosts Google fonts now, and this option is not really useful any longer','weaver-xtreme'), 334 ), 335 336 array('type' => 'submit'), 337 338 ); 339 ); 340 } 341 339 342 ?> 340 343 <div class="options-intro"><strong><?php esc_html_e('Custom & Fonts:', 'weaver-xtreme' /*adm*/); ?> </strong> -
weaverx-theme-support/tags/6.3.0/admin/admin-saverestore4.php
r2891913 r2955134 176 176 </td> 177 177 </tr> 178 179 <tr> 180 <td><?php esc_html_e('Select theme/backup file to upload:', 'weaver-xtreme' /*adm*/); ?> 181 <span style="border:1px solid black;padding:2px;"><input name="uploaded" type="file"/></span> 182 <input type="hidden" name="uploadit" 183 value="yes"/> <?php esc_html_e('(Restores settings in file to current settings.)', 'weaver-xtreme' /*adm*/); ?> 184 </td> 185 </tr> 186 187 <tr> 188 <td><span class='submit'> 178 <?php 179 if (weaverx_ts_allow_file_read()) { 180 ?> 181 182 <tr> 183 <td><?php esc_html_e('Select theme/backup file to upload:', 'weaver-xtreme' /*adm*/); ?> 184 <span style="border:1px solid black;padding:2px;"><input name="uploaded" type="file"/></span> 185 <input type="hidden" name="uploadit" 186 value="yes"/> <?php esc_html_e('(Restores settings in file to current settings.)', 'weaver-xtreme' /*adm*/); ?> 187 </td> 188 </tr> 189 190 <tr> 191 <td><span class='submit'> 189 192 <input class="button-primary" name="uploadtheme" type="submit" 190 193 value="<?php esc_html_e('Upload theme/backup', 'weaver-xtreme' /*adm*/); ?>"/></span> 191 <small><?php echo wp_kses_post(__('<strong>Upload and Restore</strong> a theme/backup from file on your computer. Will become current settings.', 'weaver-xtreme' /*adm*/)); ?> 192 </small></td> 193 </tr> 194 195 <tr> 196 <td> 197 <?php if (!function_exists('weaverxplus_plugin_installed')) { 198 echo '<small>' . 199 wp_kses_post(__('Note: Any Weaver Xtreme Plus settings will <em>not</em> be restored for Weaver Xtreme Free version.', 'weaver-xtreme' /*adm*/)) . '</small>'; 200 } 201 ?> 202 </td> 203 </tr> 194 <small><?php echo wp_kses_post(__('<strong>Upload and Restore</strong> a theme/backup from file on your computer. Will become current settings.', 'weaver-xtreme' /*adm*/)); ?> 195 </small></td> 196 </tr> 197 198 <tr> 199 <td> 200 <?php if (!function_exists('weaverxplus_plugin_installed')) { 201 echo '<small>' . 202 wp_kses_post(__('Note: Any Weaver Xtreme Plus settings will <em>not</em> be restored for Weaver Xtreme Free version.', 'weaver-xtreme' /*adm*/)) . '</small>'; 203 } 204 ?> 205 </td> 206 </tr> 207 <?php 208 } else { 209 ?> 210 <tr> 211 <td> 212 <span style="font-weight: bold; color:red;">File Upload Access Restriction: </span> 213 Sorry, you must be a Multi-Site Super Admin or have the <em>install_plugins</em> capability set 214 for your account by a Super Admin to read settings files. (e.g., with the <em>User Role Editor</em> 215 plugin.)</strong> 216 217 </td> 218 </tr> 219 <?php 220 } 221 ?> 222 204 223 205 224 </table> … … 211 230 </h3> 212 231 <p> 213 <?php esc_html_e('This option allows you to save and restore current subtheme settings on the file system of your site\' host.', 'weaver-xtreme' /*adm*/); ?> 232 <?php esc_html_e('This option allows you to save and restore current subtheme settings on the file system of your site\'s host.', 'weaver-xtreme' /*adm*/); echo '</br>'; 233 esc_html_e('This option is NOT available in the Customizer interface.', 'weaver-xtreme' /*adm*/) 234 ?> 214 235 </p> 215 236 <p> 216 237 <?php 217 if ( !function_exists('weaverxplus_plugin_installed') || !version_compare(WEAVER_XPLUS_VERSION, '3.1', '>=')) {218 echo '<s trong>';219 _e('This option requires that you have installed Weaver Xtreme Plus version greater or equal to ', 'weaver-xtreme');220 echo '3.1</strong>';238 if ( !weaverx_ts_allow_file_read()) { 239 echo '<span style="font-weight: bold; color:red;">File Access Restriction for Weaver Xtreme Plus: </span> 240 Sorry, you must be a Multi-Site Super Admin or have the <em>install_plugins</em> capability set 241 for your account by a Super Admin. (e.g., with the <em>User Role Editor</em> plugin.) to access Plus Save/Restore options.'; 221 242 } else { 222 do_action('weaverxplus_admin', 'save_restore_files'); 243 if (!function_exists('weaverxplus_plugin_installed') || !version_compare(WEAVER_XPLUS_VERSION, '3.1', '>=')) { 244 echo '<strong>'; 245 _e('This option requires that you have installed Weaver Xtreme Plus version greater or equal to ', 'weaver-xtreme'); 246 echo '3.1</strong>'; 247 } else { 248 do_action('weaverxplus_admin', 'save_restore_files'); 249 } 223 250 } 224 251 echo '</p>'; -
weaverx-theme-support/tags/6.3.0/help/help.html
r2874845 r2955134 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2 "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 3 <html xmlns="https://www.w3.org/1999/xhtml" lang="en"> 3 4 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5 <title>Weaver X Theme Support</title> 6 <style type="text/css"> 7 body { 8 background: #eeeeee; 9 margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ 10 padding: 10px; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ 11 color: #000000; 12 text-align: left; 13 font-family: Verdana, Arial, Helvetica, sans-serif; 14 font-size: 10pt; 15 background-color: #ffd; 16 } 17 18 /* everything about each major block on the site - may be mods in some places */ 19 20 #container { 21 max-width:800px; 22 background-color: #00CC00; 23 } 24 #mainContent { 25 background-color: #ffc; 26 } 27 .oneColFixCtr #container { 28 max-width: 750px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */ 29 background: #FFFFCD; 30 margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ 31 border: 1px solid #000000; 32 text-align: left; /* this overrides the text-align: center on the body element. */ 33 } 34 .oneColFixCtr #mainContent { 35 padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ 36 font-size:12px; 37 } 38 /* layouts for layout boxes */ 39 .layoutbox { 40 width:700px; 41 text-align:center; 42 margin:0 25px; 43 } 44 .l_layout { 45 display:block; 46 width:140px; 47 height:110px; 48 float:left; 49 margin-right:10px; 50 margin-bottom:10px; 51 display:inline; 52 border:1px solid #888; 53 color:black; 54 text-align:center; 55 font:15px arial, sans-serif; 56 } 57 .l_layout span { 58 display:block; 59 } 60 .l_header { 61 width:140px; 62 height:20px; 63 background:#CCF; 64 line-height:20px; 65 } 66 .l_content { 67 width:100px; 68 height:70px; 69 background:beige; 70 float:left; 71 display:inline; 72 line-height:70px; 73 } 74 .l_contentcenter { 75 width:60px; 76 height:70px; 77 background:beige; 78 float:left; 79 display:inline; 80 line-height:70px; 81 } 82 .l_content2 { 83 width:80px; 84 height:70px; 85 background:beige; 86 float:left; 87 display:inline; 88 line-height:70px; 89 } 90 .l_contentw { 91 width:140px; 92 height:70px; 93 background:beige; 94 float:left; 95 display:inline; 96 line-height:70px; 97 } 98 .l_stdbar { 99 width:40px; 100 height:70px; 101 float:left; 102 display:inline; 103 } 104 .l_widebar { 105 width:60px; 106 height:70px; 107 float:left; 108 display:inline; 109 } 110 .l_righttop { 111 width:40px; 112 height:20px; 113 background:#FE8; 114 float:left; 115 display:inline; 116 line-height:20px; 117 } 118 .l_righttopwide { 119 width:60px; 120 height:20px; 121 background:#FE8; 122 float:left; 123 display:inline; 124 line-height:20px; 125 } 126 .l_rightup { 127 width:40px; 128 height:25px; 129 margin:0; 130 background:#FAA; 131 float:left; 132 display:inline; 133 line-height:25px; 134 } 135 .l_rightright { 136 width:40px; 137 height:50px; 138 margin:0; 139 background:#FAA; 140 float:left; 141 display:inline; 142 line-height:50px; 143 } 144 .l_rightdown { 145 width:40px; 146 height:25px; 147 margin:0; 148 background:#AFA; 149 float:left; 150 display:inline; 151 line-height:25px; 152 } 153 .l_leftleft { 154 width:40px; 155 height:70px; 156 margin:0; 157 background:#AFA; 158 float:left; 159 display:inline; 160 line-height:70px; 161 } 162 .l_leftshort { 163 width:30px; 164 height:50px; 165 margin:0; 166 background:#AFA; 167 float:left; 168 display:inline; 169 line-height:50px; 170 } 171 .l_skinny { 172 width:30px; 173 height:50px; 174 margin:0; 175 background:#FAA; 176 float:left; 177 display:inline; 178 line-height:50px; 179 } 180 .l_footer { 181 clear:left; 182 width:140px; 183 height:20px; 184 background:#DDF; 185 color:#000; 186 line-height:20px; 187 } 188 h4 { 189 font-weight: bold; 190 font-style:italic; 191 color: #000066; 192 text-decoration: underline; 193 } 194 h3 { 195 font-size: medium; 196 font-weight: bold; 197 color: #000066; 198 text-decoration: underline; 199 } 200 h2 { 201 font-size: large; 202 font-weight: bold; 203 color: #000066; 204 text-decoration: underline; 205 margin-top: 40pt; 206 } 207 h1 { 208 font-size: x-large; 209 font-weight: bold; 210 color: #000066; 211 text-decoration: underline; 212 } 213 .codebox { 214 font-family: "Courier New", Courier, monospace; 215 font-size: 10px; 216 font-style: normal; 217 background-color: #E8E8E8; 218 margin: 10px; 219 padding: 4px; 220 border: 1px solid #333333; 221 color: #000000; 222 width: 80%; 223 } 224 .attrs { 225 font-family: Arial, Helvetica, sans-serif; 226 font-size: 10pt; 227 color:#000000; 228 text-decoration: none; 229 } 230 .css { 231 font-family: "Courier New", Courier, monospace; 232 font-size: 9pt; 233 font-style: normal; 234 } 235 .box { 236 color: #000000; 237 text-decoration: none; 238 margin: 5px; 239 padding: 5px; 240 border: thin solid #000000; 241 } 242 .nospace { 243 margin-top: 5px; 244 margin-bottom: 5px; 245 } 246 .style3 { 247 font-family: "Courier New", Courier, monospace 248 } 249 .style4 { 250 font-family: monospace 251 } 252 .style6 { 253 color: #990000; 254 font-style: italic; 255 } 256 .style7 { 257 color: #CC3300; 258 font-weight: bold; 259 } 260 .code1 { 261 font-family: "Courier New", Courier, monospace; 262 font-size: 14px; 263 font-style: italic; 264 } 265 .red-highlight { 266 color: #CC3300; 267 } 268 </style> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 6 <title>Weaver X Theme Support</title> 7 <style type="text/css"> 8 body { 9 background: #eeeeee; 10 margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ 11 padding: 10px; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ 12 color: #000000; 13 text-align: left; 14 font-family: Verdana, Arial, Helvetica, sans-serif; 15 font-size: 10pt; 16 background-color: #ffd; 17 } 18 19 /* everything about each major block on the site - may be mods in some places */ 20 21 #container { 22 max-width: 800px; 23 background-color: #00CC00; 24 } 25 26 #mainContent { 27 background-color: #ffc; 28 } 29 30 .oneColFixCtr #container { 31 max-width: 750px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */ 32 background: #FFFFCD; 33 margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ 34 border: 1px solid #000000; 35 text-align: left; /* this overrides the text-align: center on the body element. */ 36 } 37 38 .oneColFixCtr #mainContent { 39 padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ 40 font-size: 12px; 41 } 42 43 /* layouts for layout boxes */ 44 .layoutbox { 45 width: 700px; 46 text-align: center; 47 margin: 0 25px; 48 } 49 50 .l_layout { 51 display: block; 52 width: 140px; 53 height: 110px; 54 float: left; 55 margin-right: 10px; 56 margin-bottom: 10px; 57 display: inline; 58 border: 1px solid #888; 59 color: black; 60 text-align: center; 61 font: 15px arial, sans-serif; 62 } 63 64 .l_layout span { 65 display: block; 66 } 67 68 .l_header { 69 width: 140px; 70 height: 20px; 71 background: #CCF; 72 line-height: 20px; 73 } 74 75 .l_content { 76 width: 100px; 77 height: 70px; 78 background: beige; 79 float: left; 80 display: inline; 81 line-height: 70px; 82 } 83 84 .l_contentcenter { 85 width: 60px; 86 height: 70px; 87 background: beige; 88 float: left; 89 display: inline; 90 line-height: 70px; 91 } 92 93 .l_content2 { 94 width: 80px; 95 height: 70px; 96 background: beige; 97 float: left; 98 display: inline; 99 line-height: 70px; 100 } 101 102 .l_contentw { 103 width: 140px; 104 height: 70px; 105 background: beige; 106 float: left; 107 display: inline; 108 line-height: 70px; 109 } 110 111 .l_stdbar { 112 width: 40px; 113 height: 70px; 114 float: left; 115 display: inline; 116 } 117 118 .l_widebar { 119 width: 60px; 120 height: 70px; 121 float: left; 122 display: inline; 123 } 124 125 .l_righttop { 126 width: 40px; 127 height: 20px; 128 background: #FE8; 129 float: left; 130 display: inline; 131 line-height: 20px; 132 } 133 134 .l_righttopwide { 135 width: 60px; 136 height: 20px; 137 background: #FE8; 138 float: left; 139 display: inline; 140 line-height: 20px; 141 } 142 143 .l_rightup { 144 width: 40px; 145 height: 25px; 146 margin: 0; 147 background: #FAA; 148 float: left; 149 display: inline; 150 line-height: 25px; 151 } 152 153 .l_rightright { 154 width: 40px; 155 height: 50px; 156 margin: 0; 157 background: #FAA; 158 float: left; 159 display: inline; 160 line-height: 50px; 161 } 162 163 .l_rightdown { 164 width: 40px; 165 height: 25px; 166 margin: 0; 167 background: #AFA; 168 float: left; 169 display: inline; 170 line-height: 25px; 171 } 172 173 .l_leftleft { 174 width: 40px; 175 height: 70px; 176 margin: 0; 177 background: #AFA; 178 float: left; 179 display: inline; 180 line-height: 70px; 181 } 182 183 .l_leftshort { 184 width: 30px; 185 height: 50px; 186 margin: 0; 187 background: #AFA; 188 float: left; 189 display: inline; 190 line-height: 50px; 191 } 192 193 .l_skinny { 194 width: 30px; 195 height: 50px; 196 margin: 0; 197 background: #FAA; 198 float: left; 199 display: inline; 200 line-height: 50px; 201 } 202 203 .l_footer { 204 clear: left; 205 width: 140px; 206 height: 20px; 207 background: #DDF; 208 color: #000; 209 line-height: 20px; 210 } 211 212 h4 { 213 font-weight: bold; 214 font-style: italic; 215 color: #000066; 216 text-decoration: underline; 217 } 218 219 h3 { 220 font-size: medium; 221 font-weight: bold; 222 color: #000066; 223 text-decoration: underline; 224 } 225 226 h2 { 227 font-size: large; 228 font-weight: bold; 229 color: #000066; 230 text-decoration: underline; 231 margin-top: 40pt; 232 } 233 234 h1 { 235 font-size: x-large; 236 font-weight: bold; 237 color: #000066; 238 text-decoration: underline; 239 } 240 241 .codebox { 242 font-family: "Courier New", Courier, monospace; 243 font-size: 10px; 244 font-style: normal; 245 background-color: #E8E8E8; 246 margin: 10px; 247 padding: 4px; 248 border: 1px solid #333333; 249 color: #000000; 250 width: 80%; 251 } 252 253 .attrs { 254 font-family: Arial, Helvetica, sans-serif; 255 font-size: 10pt; 256 color: #000000; 257 text-decoration: none; 258 } 259 260 .css { 261 font-family: "Courier New", Courier, monospace; 262 font-size: 9pt; 263 font-style: normal; 264 } 265 266 .box { 267 color: #000000; 268 text-decoration: none; 269 margin: 5px; 270 padding: 5px; 271 border: thin solid #000000; 272 } 273 274 .nospace { 275 margin-top: 5px; 276 margin-bottom: 5px; 277 } 278 279 .style3 { 280 font-family: "Courier New", Courier, monospace 281 } 282 283 .style4 { 284 font-family: monospace 285 } 286 287 .style6 { 288 color: #990000; 289 font-style: italic; 290 } 291 292 .style7 { 293 color: #CC3300; 294 font-weight: bold; 295 } 296 297 .code1 { 298 font-family: "Courier New", Courier, monospace; 299 font-size: 14px; 300 font-style: italic; 301 } 302 303 .red-highlight { 304 color: #CC3300; 305 } 306 </style> 269 307 </head> 270 308 <body class="oneColFixCtr"> 271 309 <div id="container"> 272 <div id="mainContent"> <a name="top" id="top"></a> 273 <h2><b>Weaver X Theme Support Plugin Documentation -- Version 1.0</b></h2> 274 <h4>Table of Contents</h4> 275 <ul style="line-height:1.7em;"> 276 <li><a href="#summary"><strong>Plugin Summary</strong></a></li> 277 <li><strong><a href="#admin_page">Weaver X Theme Extras Admin Page</a> </strong></li> 278 <li><a href="#sc_summary"><strong>Shortcode Summary</strong></a></li> 279 <ul> 280 <li><strong><a href="#bloginfo">[bloginfo arg='name' style='your css']</a></strong></li> 281 <li><strong><a href="#box">[box]text[/box]</a></strong></li> 282 <li><a href="#tab_group"><strong>[tab_group] - content in tabs</strong></a></li> 283 <li><strong><a href="#headerimage">[header_image] Shortcode</a></strong></li> 284 <li><strong><a href="#schtml">[html]</a></strong></li> 285 <li><strong><a href="#scdiv">[div]text[/div]</a>, <a href="#schtml">[span]text[/span]</a></strong></li> 286 <li><strong><a href="#sciframe"> [iframe]</a></strong></li> 287 <li><strong><a href="#scshowif">[show/hide_if]</a></strong></li> 288 <li><strong><a href="#sitetitlesc">[site_title], [site_tagline]</a></strong></li> 289 290 <li><strong><a href="#video">Video - [vimeo], [youtube]</a></strong></li> 291 </ul> 292 <li><a href="#widg-sum"><strong>Widget Summary</strong></a> 293 <ul> 294 <li><strong><a href="#widg-login">Weaver Login Widget</a></strong></li> 295 <li><strong><a href="#widg_pp_text">Weaver Per Page Text</a></strong></li> 296 <li><strong><a href="#widg_text_2">Weaver Text 2 Col</a></strong></li> 297 </ul> 298 </li> 299 </ul> 300 <h3><a name="summary" id="summary"></a>Plugin Summary </h3> 301 <p>The Weaver X Theme Support Plugin provides a collection of shortcodes to allow you to easily add extra content and features to your regular content. These shortcodes will work with almost any WordPress theme. </p> 302 <p>While these shortcodes should prove useful with most any theme, one of the goals of these shortcodes is to provide an alternative to users of the Weaver X theme.</p> 303 <h2><a name="admin_page" id="admin_page"></a>Weaver Xtreme Theme Extras Admin Page</h2> 304 <p>This plugin has just a few options, all found on the Weaver X Theme Support admin page under the WordPress dashboard Appearance section.</p> 305 <h2><a name="sc_summary" id="sc_summary"></a>Shortcode Summary</h2> 306 <h3><a name="tab_group" id="tab_group"></a>[tab_group] - content in tabs </h3> 307 <p>Show content displayed on tabbed pages.</p> 308 <p><strong>Shortcode usage:</strong><br /> 309 <pre> 310 <div id="mainContent"><a name="top" id="top"></a> 311 <h2><b>Weaver X Theme Support Plugin Documentation -- Version 1.0</b></h2> 312 <h4>Table of Contents</h4> 313 <ul style="line-height:1.7em;"> 314 <li><a href="#summary"><strong>Plugin Summary</strong></a></li> 315 <li><strong><a href="#admin_page">Weaver X Theme Extras Admin Page</a> </strong></li> 316 <li><a href="#sc_summary"><strong>Shortcode Summary</strong></a></li> 317 <ul> 318 <li><strong><a href="#bloginfo">[bloginfo arg='name' style='your css']</a></strong></li> 319 <li><strong><a href="#box">[box]text[/box]</a></strong></li> 320 <li><a href="#tab_group"><strong>[tab_group] - content in tabs</strong></a></li> 321 <li><strong><a href="#headerimage">[header_image] Shortcode</a></strong></li> 322 <li><strong><a href="#schtml">[html]</a></strong></li> 323 <li><strong><a href="#scdiv">[div]text[/div]</a>, <a href="#schtml">[span]text[/span]</a></strong></li> 324 <li><strong><a href="#sciframe"> [iframe]</a></strong></li> 325 <li><strong><a href="#scshowif">[show/hide_if]</a></strong></li> 326 <li><strong><a href="#sitetitlesc">[site_title], [site_tagline]</a></strong></li> 327 328 <li><strong><a href="#video">Video - [vimeo], [youtube]</a></strong></li> 329 </ul> 330 <li><a href="#widg-sum"><strong>Widget Summary</strong></a> 331 <ul> 332 <li><strong><a href="#widg-login">Weaver Login Widget</a></strong></li> 333 <li><strong><a href="#widg_pp_text">Weaver Per Page Text</a></strong></li> 334 <li><strong><a href="#widg_text_2">Weaver Text 2 Col</a></strong></li> 335 </ul> 336 </li> 337 </ul> 338 <h3><a name="summary" id="summary"></a>Plugin Summary </h3> 339 <p>The Weaver X Theme Support Plugin provides a collection of shortcodes to allow you to easily add extra 340 content and features to your regular content. These shortcodes will work with almost any WordPress 341 theme. </p> 342 <p>While these shortcodes should prove useful with most any theme, one of the goals of these shortcodes is to 343 provide an alternative to users of the Weaver X theme.</p> 344 <h2><a name="admin_page" id="admin_page"></a>Weaver Xtreme Theme Extras Admin Page</h2> 345 <p>This plugin has just a few options, all found on the Weaver X Theme Support admin page under the WordPress 346 dashboard Appearance section.</p> 347 <h2><a name="sc_summary" id="sc_summary"></a>Shortcode Summary</h2> 348 <h3><a name="tab_group" id="tab_group"></a>[tab_group] - content in tabs </h3> 349 <p>Show content displayed on tabbed pages.</p> 350 <p><strong>Shortcode usage:</strong><br/> 351 <pre> 310 352 [tab_group border_color=black page_min_height=200px] 311 353 [tab title='tab one']This is the content found on first tab.[/tab] … … 314 356 [/tab_group] 315 357 </pre> 316 <h4>Short code parameters</h4> 317 You can supply values for these parameters to control the look of the tabbed section. 318 <br /> 319 <ul> 320 <li><b>border_color:</b> tab and pane border color - default #888</li> 321 <li><b>tab_bg</b>: normal bg color of tab (default #CCC)</li> 322 <li><b>tab_selected_color</b>: color of tab when selected (default #EEE)</li> 323 <li><b>pane_min_height</b>: min height of a pane to help make all even if needed</li> 324 <li><b>pane_bg</b>: bg color of pane</li> 325 </ul> 326 </p> 327 <h3><a name="headerimage" id="headerimage"></a><strong>[header_image]</strong></h3> 328 <p>The <code>[header_image]</code> shortcode allows you display the current header image wherever you want. 329 For example, you can get the header image into the Header Widget Area by using this shortcode in a text widget. 330 The current standard or mobile header image will be displayed. Only the <code><img ... ></code> is displayed -- 331 the image will not be wrapped in a link to the site.</p> 332 333 <p><strong>Shortcode usage:</strong> <code>[header_image h='size' w='size' style='inline-style']</code> 334 <br /> 335 <ol> 336 <li><strong>w='size' h='size'</strong> - By default, no height or image properties are included with the 337 header <code><img ... ></code>, which will result in an image scaled to fit into whatever the natural 338 width of the enclosing HTML container is (the content area, a text widget, etc.). You may specify an explicit 339 value (usually in px) for the height and width of the image. 340 </li> 341 <li><strong>style='inline-style-rules'</strong> - Allows you to add inline style to wrap output of the shortcode. 342 Don't include the 'style=' or wrapping quotation marks. Do include a ';' at the end of each rule. The output will look like 343 <code>style="your-rules;"</code> - using double quotation marks. 344 </li> 345 </ol> 346 <h3><a name="schtml" id="schtml"></a><strong>[html]</strong></h3> 347 348 <p>The Weaver X Theme Support <code>[html]</code> shortcode allows you to add arbitrary HTML to your post and page content. The 349 main purpose of this shortcode is to get around the auto paragraph and line break and other HTML stripping functionality 350 of the WordPress editor.</p> 351 352 <p><strong>Shortcode usage:</strong> <code>[html html-tag args='parameters']</code> 353 <br /> 354 <ol> 355 <li><strong>html-tag</strong> - The first parameter to the shortcode must be present, and must be a standard 356 HTML tag - <code>p</code>, <code>br</code>, or <code>span</code>, for example. You just supply the tag - no quotation 357 marks, no '=', just the tag. The shortcode provides the < and >. If you need a wrapping HTML tag (e.g., <code>span</code> and <code>/span</code>), use 358 two shortcodes:<br /> 359 <code>[html span args='style="color:red"']content to make red[html /span]</code> 360 </li> 361 <li><strong>args='parameters'</strong> - Allows you to specify arbitrary parameters for your HTML tag. See the example above. 362 </li> 363 </ol> 364 </p> 365 366 <h3><a name="scdiv" id="scdiv"></a><strong>[div]text[/div]</strong>, [span]text[/span]</h3> 367 368 <p>The Weaver X Theme Support <code>[div]</code> and [span] shortcodes allow you to easily add HTML <div> or <span> tags to your post and page content. The 369 main purpose of these shortcodes is to get around need to switch to the HTML editor view when you need to 370 wrap your content in a <div> or <span>.</p> 371 <p> 372 This will work exactly like a standard HMTL <div>and <span> tags. It supports 'id', 'class', 373 and 'style' parameters, which are the most useful. Instead of wrapping your text in <div> or <span> tags, wrap them like 374 this (the Visual view will work just fine):<br /> 375 <code>[div style="font-size:20px;']This content will be large.[/div]</code><br /> 376 <code>[span style="font-size:20px;']This content will be large.[/span]</code></p> 377 <p><strong>Shortcode usage:</strong> <code>[div id='class_id' class='class_name' style='style_values']text[/div]</code> 378 <br /> 379 <code>[span id='class_id' class='class_name' style='style_values']text[/span]</code> <br /> 380 <ol> 381 <li><strong>id='class_id' class='class_name' style='style_values'</strong> - Allows you to specify id, class, and style for the <div>. See the example above. 382 </li> 383 </ol> 384 </p> 385 386 <h3><a name="sciframe" id="sciframe"></a><strong>iframe - [iframe]</strong></h3> 387 388 <p>The <code>[iframe]</code> shortcode allows you easily display the content of an external site. You simply have to specify 389 the URL for the external site, and optionally a height. This shortcode automatically generates the correct HTML <iframe> code.</p> 390 391 <p><strong>Shortcode usage:</strong> <code>[iframe src='https://example/com' height=600 percent=100 style="style"]</code> 392 <br /> 393 <ol> 394 <li><strong>src='https://example/com'</strong> - The standard URL for the external site. 395 </li> 396 <li><strong>height=600</strong> - Optional height to allocate for the site - in px. Default is 600. 397 </li> 398 <li><strong>percent=100</strong> - Optional width specification in per cent. Default is 100%. 399 </li> 400 <li><strong>style="style"</strong> - Optional style values. Added to <iframe> tag as style="values". 401 </li> 402 </ol> 403 </p> 404 405 <h3><a name="scshowif" id="scshowif"></a><strong>[show_if]content[/show_if], [hide_if]</strong>content [/hide_if]</h3> 406 <p>The <code>[show_if]</code> and <code>[hide_if]</code> shortcodes allow you to selectively 407 display or hide content depending if any of several conditions are met.</p> 408 409 <p><strong>Shortcode usage:</strong> <code>[hide_if device=device logged_in=true/false not_post_id=id-list post_id=id-list user_can=what]</code> 410 </p> 411 <p>You bracket the content you want to selectively display with <code>[show/hide_if]</code> and closing 412 <code>[/show/hide_if]</code> tags. That content can contain other shortcodes as needed. If you specify more than one parameter to the short code, then all the conditions must be met (logical AND). Any parameters you don't include are considered true.</p> 413 <h4>Parameters</h4> 414 <p>'device' => 'default', // desktop, mobile, smalltablet, phone, all<br /> 415 'logged_in' => 'default', // true or false<br /> 416 'not_post_id' => 'default', // comma separated list of post IDs (includes pages, too)<br /> 417 'post_id' => 'default', // comma separated list<br /> 418 'user_can' => 'default' // https://codex.wordpress.org/Function_Reference/current_user_can</p> 419 <p> 420 <strong>device=desktop | mobile | smalltablet | phone </strong> - The device parameter for <code>[show/hide_if]</code> is designed to allow you to hide <em>or</em> show any content on any of the 421 device sizes recognized by Weaver Xtreme (or any theme, actually): 'phone', 'smalltablet', and 'desktop', or 'mobile' for non-desktop devices. If you want to show or hide content on 422 a specific device, you give the <span class="code1">device</span> parameter a value of desktop, mobile, smalltablet, phone, or none (e.g., <code>[show_if device=mobile]</code>). </p> 423 <p><strong>logged_in=true | false</strong> - This will hide or display content depending if the visitor is logged into the site or not. </p> 424 <p><strong>post_id=34,875</strong> / <strong>not_post_id=1,2,3 </strong>- This will display (or not display) the content depending if the current page or single post view is included in the comma separated list of WordPress page/post IDs. You can use both to refine a list of pages or posts to display or not display. Note that even though the parameter is called 'post_id', it applies equally to pages and posts. Depending on where you use the shortcode, it will apply to a post differently depending if it is on a blog or single page view of a post. Note that the default WordPress blog (as opposed to the Weaver Xtreme Page with Posts template) does not have a post_ID.</p> 425 <p><strong>user_can=user-capability</strong> - This will show or hide depending if the current visitor has certain WordPress user capabilities. There are many capabilities which are defined in the <a href="https://codex.wordpress.org/Function_Reference/current_user_can" target="_blank">WordPress Codex</a>. This shortcode supports any of the listed capabilities for maximum flexibility. If you don't want to learn about all the capabilities listed in the Codex, you can use the following capability values to determine if the visitor has a specific role (as defined on the Dashboard Users admin pages). For example:<br /> 426 <br /> 427 <span class="code1">[show_if user_can=publish_pages]content for Editors and above[/show_if]</span><br /> 428 <br /> 429 Note that the higher roles have all the capabilities of the lower roles - an Editor can do everything a Contributor can.</p> 430 <table width="80%" border="1"> 431 <caption> 432 Capabilities to Specify Role 433 </caption> 434 <tr> 435 <th scope="col">Role</th> 436 <th scope="col">Capability</th> 437 </tr> 438 <tr> 439 <td>Subscriber</td> 440 <td>read</td> 441 </tr> 442 <tr> 443 <td>Contributor</td> 444 <td>edit_posts</td> 445 </tr> 446 <tr> 447 <td>Author</td> 448 <td>publish_posts</td> 449 </tr> 450 <tr> 451 <td>Editor</td> 452 <td>publish_pages</td> 453 </tr> 454 <tr> 455 <td>Administrator</td> 456 <td>manage_options</td> 457 </tr> 458 <tr> 459 <td>Super Administrator (MultiSite)</td> 460 <td>manage_network</td> 461 </tr> 462 </table> 463 <p> </p> 464 <h3><a name="sitetitlesc" id="sitetitlesc"></a><strong>[site_title style="style" matchtheme=false], [site_tagline style="style" matchtheme=false]</strong></h3> 465 466 <p>The <code>[site_title]</code> and <code>[site_tagline]</code> shortcodes allow you to display the current 467 site title and site tagline. This can be useful in a text widget in the Header Widget Area, for example.</p> 468 <p><em>Note:</em> If you want to position the content of a text widget within a cell of the Header Widget Area, you could use the following 469 example:</p> 470 <p><code>[site_title style='font-size:150%;position:absolute;padding-left:20px;padding-top:30px;']</code></p> 471 472 <p><strong>Shortcode usage:</strong> <code>[site_title style='inline-style' matchtheme=false] [site_tagline style='inline-style' matchtheme=false]</code> 473 <br /> 474 <ol> 475 <li><strong>style='inline-style-rules'</strong> - Allows you to add inline style to wrap output of the shortcode. 476 Don't include the 'style=' or wrapping quotation marks. Do include a ';' at the end of each rule. The output will look like 477 <code>style="your-rules;"</code> - using double quotation marks. 478 </li> 479 <li><strong>matchtheme=true</strong> - Allows you to add match the theme styling as defined in the site header if set to true. 480 This will match the color/style/font of the header version of the site title and tagline with the exception of hide settings. 481 The shortcode version will not be hidden on any device unless you also wrap the shortcode with a [show_if/hide_if] shortcode. 482 </li> 483 484 </ol> 485 486 <h3><a name="bloginfo" id="bloginfo"></a><strong>[bloginfo arg='name' style='your css']</strong></h3> 487 488 <p>This shortcode can be used to access the WordPress function 'get_bloginfo($arg)'. This will return a number of useful 489 strings depending on the value. All the supported values are listed at https://codex.wordpress.org/Function_Reference/get_bloginfo. 490 Some useful values include 'stylesheet_directory' and 'template_directory'. You can wrap the bloginfo output with css added to a <span style="your css">. 491 </p> 492 493 <h3><a name="box" id="box"></a><strong>[box]text[/box]</strong></h3> 494 495 <p> 496 Wrap content in a box.</p> 497 <p><strong>Shortcode Usage:</strong> <code>[box align=left background=#fff border=true border_rule='border-css' border_radius=4 color=#000 margin=1 padding=1 shadow=1 style='style-rules']text[/box]</code></p> 498 <ol> 499 <li><strong>align=align</strong>: Leave blank, or specify left, center, or right for alignment of box within surrounding text.</li> 500 <li><strong>border=true</strong>: True is default. Specify false or 0 for no borders.</li> 501 <li><strong>border_rule='1px solid black</strong>': Specify a compound border CSS value to replace the default '1px solid black'.</li> 502 <li><strong>border_radius=4</strong>: Default is none - specify a px value for the corner radius if you want rounded corners.</li> 503 <li><strong>color=#000</strong>: Default is inherit - specify a valid color for the color of the text in the box.</li> 504 <li><strong>background=#fff</strong>: Default is inherit - specify color for box background color.</li> 505 <li><strong>margin=1</strong>: Default is 0 - specify an 'em' value for margin around the box. Using a margin overrides align parameter.</li> 506 <li><strong>padding=1</strong>: Default 1 - specify an 'em' value for padding inside box.</li> 507 <li><strong>shadow=0</strong>: Default 0 - specify a value from 1 to 5 for a border around the box.</li> 508 <li><strong>style=inline-style</strong>: any additional custom styling for the box</li> 509 <li><strong>width=100</strong>: A percentage width for the box within its surrounding container.</li> 510 </ol> 511 <h3><a name="video" id="video"></a><strong>Video - [vimeo], [youtube]</strong></h3> 512 <p>Weaver X Theme Support supports specialized shortcodes to display video. While there are other ways to embed video, the Weaver X Theme Support versions have two important features. First, they will auto adjust to the width of your content, <em><strong>including</strong></em> the mobile view. Second, they use the latest iframe/HTML5 interface provided by YouTube and Vimeo.</p> 513 <p><strong>Specifying Video Display Size for both shortcodes</strong></p> 514 <p>Weaver X Theme Support supports a common set of options for both the YouTube and Vimeo shortcodes to support displaying your videos with a specific width and correct height. By default, your videos will be displayed using the full width of the content area being used (percent=100). The percent= parameter is used to specify the width you want.</p> 515 <p>The height of the video is automatically determined based on the width and the display ratio of the particular video. </p> 516 <p>Finally, you may specify if the video should be centered or no within the display area using "center=0" to not center (centering is on by default).</p> 517 <p>Note - if you want to display more than one video horizontally, use "center=0" and specify an appropriate percentage to fit all the videos.</p> 518 <p>Parameters in Common</p> 519 <ul> 520 <li>percent=100 - By default, the video will be sized to fill the full content space. You can use the percent value to make 521 the video use a percentage of the content space (but mobile will always use full width).</li> 522 <li>center=1 - Specify 'center=0' to disable centering of the video.</li> 523 <li>sd=0 - By default, Weaver X Theme Support will generate sizes for HD/widescreen videos. To display old 4:3 standard definition videos, include 'sd=1' in the shortcode.</li> 524 </ul> 525 <h4>Vimeo</h4> 526 <pre><strong>[vimeo vimeo-url id=videoid sd=0 percent=100 center=1 color=#hex 358 <h4>Short code parameters</h4> 359 You can supply values for these parameters to control the look of the tabbed section. 360 <br/> 361 <ul> 362 <li><b>border_color:</b> tab and pane border color - default #888</li> 363 <li><b>tab_bg</b>: normal bg color of tab (default #CCC)</li> 364 <li><b>tab_selected_color</b>: color of tab when selected (default #EEE)</li> 365 <li><b>pane_min_height</b>: min height of a pane to help make all even if needed</li> 366 <li><b>pane_bg</b>: bg color of pane</li> 367 </ul> 368 </p> 369 <h3><a name="headerimage" id="headerimage"></a><strong>[header_image]</strong></h3> 370 <p>The <code>[header_image]</code> shortcode allows you display the current header image wherever you want. 371 For example, you can get the header image into the Header Widget Area by using this shortcode in a text 372 widget. 373 The current standard or mobile header image will be displayed. Only the <code><img ... ></code> is 374 displayed -- 375 the image will not be wrapped in a link to the site.</p> 376 377 <p><strong>Shortcode usage:</strong> <code>[header_image h='size' w='size' style='inline-style']</code> 378 <br/> 379 <ol> 380 <li><strong>w='size' h='size'</strong> - By default, no height or image properties are included with the 381 header <code><img ... ></code>, which will result in an image scaled to fit into whatever the 382 natural 383 width of the enclosing HTML container is (the content area, a text widget, etc.). You may specify an 384 explicit 385 value (usually in px) for the height and width of the image. 386 </li> 387 <li><strong>style='inline-style-rules'</strong> - Allows you to add inline style to wrap output of the 388 shortcode. 389 Don't include the 'style=' or wrapping quotation marks. Do include a ';' at the end of each rule. The 390 output will look like 391 <code>style="your-rules;"</code> - using double quotation marks. 392 </li> 393 </ol> 394 <h3><a name="schtml" id="schtml"></a><strong>[html]</strong></h3> 395 396 <p>The Weaver X Theme Support <code>[html]</code> shortcode allows you to add arbitrary HTML to your post and 397 page content. The 398 main purpose of this shortcode is to get around the auto paragraph and line break and other HTML stripping 399 functionality 400 of the WordPress editor.</p> 401 402 <p><strong>Shortcode usage:</strong> <code>[html html-tag args='parameters']</code> 403 <br/> 404 <ol> 405 <li><strong>html-tag</strong> - The first parameter to the shortcode must be present, and must be a standard 406 HTML tag - <code>p</code>, <code>br</code>, or <code>span</code>, for example. You just supply the tag - 407 no quotation 408 marks, no '=', just the tag. The shortcode provides the < and >. If you need a wrapping HTML tag 409 (e.g., <code>span</code> and <code>/span</code>), use 410 two shortcodes:<br/> 411 <code>[html span args='style="color:red"']content to make red[html /span]</code> 412 </li> 413 <li><strong>args='parameters'</strong> - Allows you to specify arbitrary parameters for your HTML tag. See 414 the example above. 415 </li> 416 </ol> 417 </p> 418 419 <h3><a name="scdiv" id="scdiv"></a><strong>[div]text[/div]</strong>, [span]text[/span]</h3> 420 421 <p>The Weaver X Theme Support <code>[div]</code> and [span] shortcodes allow you to easily add HTML <div> 422 or <span> tags to your post and page content. The 423 main purpose of these shortcodes is to get around need to switch to the HTML editor view when you need to 424 wrap your content in a <div> or <span>.</p> 425 <p> 426 This will work exactly like a standard HMTL <div>and <span> tags. It supports 'id', 'class', 427 and 'style' parameters, which are the most useful. Instead of wrapping your text in <div> or <span> 428 tags, wrap them like 429 this (the Visual view will work just fine):<br/> 430 <code>[div style="font-size:20px;']This content will be large.[/div]</code><br/> 431 <code>[span style="font-size:20px;']This content will be large.[/span]</code></p> 432 <p><strong>Shortcode usage:</strong> <code>[div id='class_id' class='class_name' 433 style='style_values']text[/div]</code> 434 <br/> 435 <code>[span id='class_id' class='class_name' style='style_values']text[/span]</code> <br/> 436 <ol> 437 <li><strong>id='class_id' class='class_name' style='style_values'</strong> - Allows you to specify id, 438 class, and style for the <div>. See the example above. 439 </li> 440 </ol> 441 </p> 442 443 <h3><a name="sciframe" id="sciframe"></a><strong>iframe - [iframe]</strong></h3> 444 445 <p>The <code>[iframe]</code> shortcode allows you easily display the content of an external site. You simply 446 have to specify 447 the URL for the external site, and optionally a height. This shortcode automatically generates the correct 448 HTML <iframe> code.</p> 449 450 <p><strong>Shortcode usage:</strong> <code>[iframe src='https://example/com' height=600 percent=100 451 style="style"]</code> 452 <br/> 453 <ol> 454 <li><strong>src='https://example/com'</strong> - The standard URL for the external site. 455 </li> 456 <li><strong>height=600</strong> - Optional height to allocate for the site - in px. Default is 600. 457 </li> 458 <li><strong>percent=100</strong> - Optional width specification in per cent. Default is 100%. 459 </li> 460 <li><strong>style="style"</strong> - Optional style values. Added to <iframe> tag as style="values". 461 </li> 462 </ol> 463 </p> 464 465 <h3><a name="scshowif" id="scshowif"></a><strong>[show_if]content[/show_if], [hide_if]</strong>content 466 [/hide_if]</h3> 467 <p>The <code>[show_if]</code> and <code>[hide_if]</code> shortcodes allow you to selectively 468 display or hide content depending if any of several conditions are met.</p> 469 470 <p><strong>Shortcode usage:</strong> <code>[hide_if device=device logged_in=true/false not_post_id=id-list 471 post_id=id-list user_can=what]</code> 472 </p> 473 <p>You bracket the content you want to selectively display with <code>[show/hide_if]</code> and closing 474 <code>[/show/hide_if]</code> tags. That content can contain other shortcodes as needed. If you specify more 475 than one parameter to the short code, then all the conditions must be met (logical AND). Any parameters you 476 don't include are considered true.</p> 477 <h4>Parameters</h4> 478 <p>'device' => 'default', // desktop, mobile, smalltablet, phone, all<br/> 479 'logged_in' => 'default', // true or false<br/> 480 'not_post_id' => 'default', // comma separated list of post IDs (includes pages, too)<br/> 481 'post_id' => 'default', // comma separated list<br/> 482 'user_can' => 'default' // https://codex.wordpress.org/Function_Reference/current_user_can</p> 483 <p> 484 <strong>device=desktop | mobile | smalltablet | phone </strong> - The device parameter for <code>[show/hide_if]</code> 485 is designed to allow you to hide <em>or</em> show any content on any of the 486 device sizes recognized by Weaver Xtreme (or any theme, actually): 'phone', 'smalltablet', and 'desktop', or 487 'mobile' for non-desktop devices. If you want to show or hide content on 488 a specific device, you give the <span class="code1">device</span> parameter a value of desktop, mobile, 489 smalltablet, phone, or none (e.g., <code>[show_if device=mobile]</code>). </p> 490 <p><strong>logged_in=true | false</strong> - This will hide or display content depending if the visitor is 491 logged into the site or not. </p> 492 <p><strong>post_id=34,875</strong> / <strong>not_post_id=1,2,3 </strong>- This will display (or not display) the 493 content depending if the current page or single post view is included in the comma separated list of 494 WordPress page/post IDs. You can use both to refine a list of pages or posts to display or not display. Note 495 that even though the parameter is called 'post_id', it applies equally to pages and posts. Depending on 496 where you use the shortcode, it will apply to a post differently depending if it is on a blog or single page 497 view of a post. Note that the default WordPress blog (as opposed to the Weaver Xtreme Page with Posts 498 template) does not have a post_ID.</p> 499 <p><strong>user_can=user-capability</strong> - This will show or hide depending if the current visitor has 500 certain WordPress user capabilities. There are many capabilities which are defined in the <a 501 href="https://codex.wordpress.org/Function_Reference/current_user_can" target="_blank">WordPress 502 Codex</a>. This shortcode supports any of the listed capabilities for maximum flexibility. If you don't 503 want to learn about all the capabilities listed in the Codex, you can use the following capability values to 504 determine if the visitor has a specific role (as defined on the Dashboard Users admin pages). For 505 example:<br/> 506 <br/> 507 <span class="code1">[show_if user_can=publish_pages]content for Editors and above[/show_if]</span><br/> 508 <br/> 509 Note that the higher roles have all the capabilities of the lower roles - an Editor can do everything a 510 Contributor can.</p> 511 <table width="80%" border="1"> 512 <caption> 513 Capabilities to Specify Role 514 </caption> 515 <tr> 516 <th scope="col">Role</th> 517 <th scope="col">Capability</th> 518 </tr> 519 <tr> 520 <td>Subscriber</td> 521 <td>read</td> 522 </tr> 523 <tr> 524 <td>Contributor</td> 525 <td>edit_posts</td> 526 </tr> 527 <tr> 528 <td>Author</td> 529 <td>publish_posts</td> 530 </tr> 531 <tr> 532 <td>Editor</td> 533 <td>publish_pages</td> 534 </tr> 535 <tr> 536 <td>Administrator</td> 537 <td>manage_options</td> 538 </tr> 539 <tr> 540 <td>Super Administrator (MultiSite)</td> 541 <td>manage_network</td> 542 </tr> 543 </table> 544 <p> </p> 545 <h3><a name="sitetitlesc" id="sitetitlesc"></a><strong>[site_title style="style" matchtheme=false], 546 [site_tagline style="style" matchtheme=false]</strong></h3> 547 548 <p>The <code>[site_title]</code> and <code>[site_tagline]</code> shortcodes allow you to display the current 549 site title and site tagline. This can be useful in a text widget in the Header Widget Area, for example.</p> 550 <p><em>Note:</em> If you want to position the content of a text widget within a cell of the Header Widget Area, 551 you could use the following 552 example:</p> 553 <p><code>[site_title style='font-size:150%;position:absolute;padding-left:20px;padding-top:30px;']</code></p> 554 555 <p><strong>Shortcode usage:</strong> <code>[site_title style='inline-style' matchtheme=false] [site_tagline 556 style='inline-style' matchtheme=false]</code> 557 <br/> 558 <ol> 559 <li><strong>style='inline-style-rules'</strong> - Allows you to add inline style to wrap output of the 560 shortcode. 561 Don't include the 'style=' or wrapping quotation marks. Do include a ';' at the end of each rule. The 562 output will look like 563 <code>style="your-rules;"</code> - using double quotation marks. 564 </li> 565 <li><strong>matchtheme=true</strong> - Allows you to add match the theme styling as defined in the site 566 header if set to true. 567 This will match the color/style/font of the header version of the site title and tagline with the 568 exception of hide settings. 569 The shortcode version will not be hidden on any device unless you also wrap the shortcode with a 570 [show_if/hide_if] shortcode. 571 </li> 572 573 </ol> 574 575 <h3><a name="bloginfo" id="bloginfo"></a><strong>[bloginfo arg='name' style='your css']</strong></h3> 576 577 <p>This shortcode can be used to access the WordPress function 'get_bloginfo($arg)'. This will return a number 578 of useful 579 strings depending on the value. All the supported values are listed at 580 https://codex.wordpress.org/Function_Reference/get_bloginfo. 581 Some useful values include 'stylesheet_directory' and 'template_directory'. You can wrap the bloginfo output 582 with css added to a <span style="your css">. 583 </p> 584 585 <h3><a name="box" id="box"></a><strong>[box]text[/box]</strong></h3> 586 587 <p> 588 Wrap content in a box.</p> 589 <p><strong>Shortcode Usage:</strong> <code>[box align=left background=#fff border=true border_rule='border-css' 590 border_radius=4 color=#000 margin=1 padding=1 shadow=1 style='style-rules']text[/box]</code></p> 591 <ol> 592 <li><strong>align=align</strong>: Leave blank, or specify left, center, or right for alignment of box within 593 surrounding text. 594 </li> 595 <li><strong>border=true</strong>: True is default. Specify false or 0 for no borders.</li> 596 <li><strong>border_rule='1px solid black</strong>': Specify a compound border CSS value to replace the 597 default '1px solid black'. 598 </li> 599 <li><strong>border_radius=4</strong>: Default is none - specify a px value for the corner radius if you want 600 rounded corners. 601 </li> 602 <li><strong>color=#000</strong>: Default is inherit - specify a valid color for the color of the text in the 603 box. 604 </li> 605 <li><strong>background=#fff</strong>: Default is inherit - specify color for box background color.</li> 606 <li><strong>margin=1</strong>: Default is 0 - specify an 'em' value for margin around the box. Using a 607 margin overrides align parameter. 608 </li> 609 <li><strong>padding=1</strong>: Default 1 - specify an 'em' value for padding inside box.</li> 610 <li><strong>shadow=0</strong>: Default 0 - specify a value from 1 to 5 for a border around the box.</li> 611 <li><strong>style=inline-style</strong>: any additional custom styling for the box</li> 612 <li><strong>width=100</strong>: A percentage width for the box within its surrounding container.</li> 613 </ol> 614 <h3><a name="video" id="video"></a><strong>Video - [vimeo], [youtube]</strong></h3> 615 <p>Weaver X Theme Support supports specialized shortcodes to display video. While there are other ways to embed 616 video, the Weaver X Theme Support versions have two important features. First, they will auto adjust to the 617 width of your content, <em><strong>including</strong></em> the mobile view. Second, they use the latest 618 iframe/HTML5 interface provided by YouTube and Vimeo.</p> 619 <p><strong>Specifying Video Display Size for both shortcodes</strong></p> 620 <p>Weaver X Theme Support supports a common set of options for both the YouTube and Vimeo shortcodes to support 621 displaying your videos with a specific width and correct height. By default, your videos will be displayed 622 using the full width of the content area being used (percent=100). The percent= parameter is used to specify 623 the width you want.</p> 624 <p>The height of the video is automatically determined based on the width and the display ratio of the 625 particular video. </p> 626 <p>You can also account for video resolution, and aspect ratio. The default is to display a horizontal 16:9 627 video. Use the 628 <sd>sd=1</sd> 629 option 630 to display 4:3 horizontal videos. Use 'vertical=1' to display hd videos in 9:16 or sd in 3:4 aspect ratios. 631 </p> 632 <p>You can optionally use the w & h parameters to set your own width and height aspect ratio or size. The 633 default h/w values are 16 and 9. If 634 you provide w/h values, they will override the vertical and sd option values.</p> 635 <p>Finally, you may specify if the video should be centered or no within the display area using "center=0" 636 to not center (centering is on by default).</p> 637 <p>Note - if you want to display more than one video horizontally, use "center=0" and specify an 638 appropriate percentage to fit all the videos.</p> 639 <p><strong>Parameters in Common, with default values shown</strong></p> 640 <ul> 641 <li><strong>percent=100</strong> - By default, normal horizontal videow will be sized to fill the full content space. You can use the 642 percent value to make the video use a percentage of the content space (but mobile will always use full width). 643 Specifying a percent for vertical videos is not recommended, as they will be displayed on all devices with a max width 644 of 444px, which provides a good compromise look on full size displays. 645 </li> 646 <li><strong>center=1</strong> - Specify 'center=0' to disable centering of the video.</li> 647 <li><strong>aspect=hd</strong> - specify an aspect ratio from the following options. Note that using the wrong format 648 will not prevent a video from being displayed - it will be padded with white space around its actual aspect. 649 <ul> 650 <li>aspect=hd or aspect=16:9 - Aspect ratio 16:9, the <em>default</em> if 'aspect' option not specified. This is 651 currently the most common aspect ratio used for videos.</li> 652 <li>aspect=sd or aspect=4:3 - Aspect ratio 4:3, the old pre-hd TV standard.</li> 653 <li>aspect=widescreen or aspect=1.85:1 - Cinematic widescreen format.</li> 654 <li>aspect=anamorphic or aspect=2.39:1 - Anamorphic widescreen format.</li> 655 <li>aspect=70mm or aspect=2.76:1 - 70mm film.</li> 656 <li>aspect=square or aspect=1:1 - shows video as a square (1:1).</li> 657 </ul> 658 </li> 659 <li><strong>sd=0</strong> (Obsolete: aspect is the preferred option) - By default, Weaver X Theme Support will generate sizes for HD/widescreen videos. To display old 660 4:3 standard definition videos, include 'sd=1' in the shortcode, or preferred 'aspect=sd' instead. 661 </li> 662 <li><strong>vertical=0</strong> - Add 'vertical=1' to the shortcode options to show videos vertically (portrait) with current aspect ratio rotated. 663 Vertical videos are automatically sized to a maximum width of 444px which looks good on full size monitors, but is full width on phones. 664 </li> 665 </ul> 666 <h4>Vimeo</h4> 667 <pre><strong>[vimeo vimeo-url id=videoid sd=0 percent=100 center=1 color=#hex 527 668 autoplay=0 loop=0 portrait=1 title=1 byline=1] 528 669 </strong></pre> 529 <p>This will display Vimeo videos. At the minimum, you can provide the standard https://vimeo.com/nnnnn link, or just the video ID number (which is part of the Vimeo Link). The other Vimeo specific options include:</p> 530 <ul> 531 <li>color - You can optionally specify a Vimeo color theme using 6 hex digits for a color value.</li> 532 <li>autoplay - Add 'autoplay=1' to have the video autoplay.</li> 533 <li>loop - Add 'loop=1' to have the video loop.</li> 534 <li>portrait, title, byline - You can specify a value '=0' for these to hide the display of the corresponding element on the Vimeo player. 535 Portrait is the avatar/icon, title is the video title, and byline is source attribution.<br /> 536 </li> 537 </ul> 538 <h4>YouTube</h4> 539 <code><strong>[youtube youtube-url id=videoid sd=0 percent=100 center=1 rel=1 https=0 privacy=0 {youtube options}] 540 </strong></code> 541 <p>This will display YouTube videos. At the minimum, you can provide the standard https://youtu.be/xxxxxx share link (including the options YouTube lets you specify), the long format share link, or just the video ID number using the id=videoid parameter (which is part of the YouTube Link). The other YouTube specific options include:</p> 542 <ul> 543 <li>rel - If you specify 'rel=0', YouTube won't show related videos after the video plays.</li> 544 <li>https - If you specify 'https=1', YouTube will use the https protocol.</li> 545 <li>privacy - If you specify 'privacy=1', YouTube won't use cookies to track your viewing.</li> 546 </ul> 547 <p>In addition to the above [youtube] options, the shortcode also supports most standard YouTube options. These are more fully described on the <a href="https://code.google.com/apis/youtube/player_parameters.html" target="_blank">YouTube Embedded Player Parameters</a> page.</p> 548 <p>The supported options, with Weaver X Theme Support's default values include:</p> 549 <p>'autohide' = '1' . . . . . . 0: always show controls; 1: autohide controls; 2: autohide progress bar<br /> 550 'autoplay' = '0' . . . . . . 1: auto play; 0: don't<br /> 551 'border' = '0' . . . . . . . . 0: no border; 1: border using color1 and color2 (don't seem to work)<br /> 552 'color' = not set . . . . . . progress bar color - red or white<br /> 553 'color1' = not set . . . . . RGB hex value for border color<br /> 554 'color2' = not set . . . . . RGB hex value for control bar bg<br /> 555 'controls' = '1' . . . . . . . 0: hide player controls<br /> 556 'disablekb' = '0' . . . . . . 1: disable keyboard controls<br /> 557 'egm' ='0' . . . . . . . . . . . 1: enable "Enhanced Genie Menu"<br /> 558 'end' = not set . . . . . . . end video this number of seconds from start<br /> 559 'hd' = '0' . . . . . . . . . . . . 1: enable HD playback by default<br /> 560 'iv_load_policy' = '1' . . . 1: show annotations; 3: don't show; 2: discontinued support<br /> 561 'loop' = '0' . . . . . . . . . . . 1: loop video<br /> 562 'modestbranding' = '0' . .1: hide YouTube logo - will still show label in upper right corner<br /> 563 'origin' = not set . . . . . . . See YouTube docs<br /> 564 'playlist' = not set . . . . . . Comma separated list of videoIDs to play (id/url video played 1st)<br /> 565 'showinfo' = '1' . . . . . . . 0: hide video title<br /> 566 'showsearch' = '1' . . . . . 0: hide video searchbox<br /> 567 'start' = not set . . . . . . . start video this number of seconds from start<br /> 568 'theme' = 'dark' . . . . . . . dark or light - display theme for player<br /> 569 'wmode' = 'transparent' . Keeps video behind menu bars, etc. Other values available - see YouTube</p> 570 <h2><a name="widg-sum" id="widg-sum"></a>Widget Summary</h2> 571 <h3><a name="widg-login" id="widg-login"></a>Weaver Login Widget</h3> 572 <p>This simple widget shows a login in link, or a welcome, Site Admin, and Log out choice if the user is logged in.</p> 573 <h3><a name="widg_pp_text" id="widg_pp_text"></a>Weaver Per Page Text</h3> 574 <p>This widget will work like a text widget, but the title and content are defined by custom fields set on a Per Page basis. For any page, define the Custom Field <em>wvrx_ts_pp_title</em>if you want a title, and define Custom Field<em>wvrx_ts_pp_text</em> as the content. Content can include arbitrary text, HTML, and shortcodes. The text will not automatically add paragraphs. The widget will display only if the custom fields are defined when that page is displayed. (This widget won't display on the default blog or other archive-like pages.)</p> 575 <h3><a name="widg_text_2" id="widg_text_2"></a>Weaver Text 2 Col</h3> 576 <p>This widget lets you add two columns of text. It is most useful in wide widget areas such as a content top or bottom widget area, or a wide footer widget area.</p> 577 <p> </p> 578 <h2><br /> 579 </h2> 580 <p>The Weaver X Theme Support Plugin and this document are © 2017, Bruce E. Wampler. <a ref="https://weavertheme.com">Web Site - WeaverTheme.com</a></p> 670 <p>This will display Vimeo videos. At the minimum, you can provide the standard https://vimeo.com/nnnnn link, or 671 just the video ID number (which is part of the Vimeo Link). The other <em>Vimeo specific</em> options include:</p> 672 <ul> 673 <li>color - You can optionally specify a Vimeo color theme using 6 hex digits for a color value.</li> 674 <li>autoplay - Add 'autoplay=1' to have the video autoplay.</li> 675 <li>loop - Add 'loop=1' to have the video loop.</li> 676 <li>portrait, title, byline - You can specify a value '=0' for these to hide the display of the 677 corresponding element on the Vimeo player. 678 Portrait is the avatar/icon, title is the video title, and byline is source attribution.<br/> 679 </li> 680 </ul> 681 <h4>YouTube</h4> 682 <code><strong>[youtube youtube-url id=videoid sd=0 percent=100 center=1 rel=1 https=0 privacy=0 {youtube 683 options}] 684 </strong></code> 685 <p>This will display YouTube videos. At the minimum, you can provide the standard https://youtu.be/xxxxxx share 686 link (including the options YouTube lets you specify), the long format share link, or just the video ID 687 number using the id=videoid parameter (which is part of the YouTube Link). The other <em>YouTube</em> specific 688 options include:</p> 689 <ul> 690 <li><strong>rel</strong> - If you specify 'rel=0', YouTube won't show related videos after the video plays.</li> 691 <li><strong>https</strong> - If you specify 'https=1', YouTube will use the https protocol. (obsolete)</li> 692 <li><strong>privacy</strong> - If you specify 'privacy=1', YouTube won't use cookies to track your viewing.</li> 693 </ul> 694 <p>In addition to the above [youtube] options, the shortcode also supports most standard YouTube options. These 695 are more fully described on the <a href="https://code.google.com/apis/youtube/player_parameters.html" 696 target="_blank">YouTube Embedded Player Parameters</a> page.</p> 697 <p>The supported options, with Weaver X Theme Support's default values include:</p> 698 <p>'autohide' = '1' . . . . . . 0: always show controls; 1: autohide controls; 2: autohide progress bar<br/> 699 'autoplay' = '0' . . . . . . 1: auto play; 0: don't<br/> 700 'border' = '0' . . . . . . . . 0: no border; 1: border using color1 and color2 (don't seem to work)<br/> 701 'color' = not set . . . . . . progress bar color - red or white<br/> 702 'color1' = not set . . . . . RGB hex value for border color<br/> 703 'color2' = not set . . . . . RGB hex value for control bar bg<br/> 704 'controls' = '1' . . . . . . . 0: hide player controls<br/> 705 'disablekb' = '0' . . . . . . 1: disable keyboard controls<br/> 706 'egm' ='0' . . . . . . . . . . . 1: enable "Enhanced Genie Menu"<br/> 707 'end' = not set . . . . . . . end video this number of seconds from start<br/> 708 'hd' = '0' . . . . . . . . . . . . 1: enable HD playback by default<br/> 709 'iv_load_policy' = '1' . . . 1: show annotations; 3: don't show; 2: discontinued support<br/> 710 'loop' = '0' . . . . . . . . . . . 1: loop video<br/> 711 'modestbranding' = '0' . .1: hide YouTube logo - will still show label in upper right corner<br/> 712 'origin' = not set . . . . . . . See YouTube docs<br/> 713 'playlist' = not set . . . . . . Comma separated list of videoIDs to play (id/url video played 1st)<br/> 714 'showinfo' = '1' . . . . . . . 0: hide video title<br/> 715 'showsearch' = '1' . . . . . 0: hide video searchbox<br/> 716 'start' = not set . . . . . . . start video this number of seconds from start<br/> 717 'theme' = 'dark' . . . . . . . dark or light - display theme for player<br/> 718 'wmode' = 'transparent' . Keeps video behind menu bars, etc. Other values available - see YouTube</p> 719 <h2><a name="widg-sum" id="widg-sum"></a>Widget Summary</h2> 720 <h3><a name="widg-login" id="widg-login"></a>Weaver Login Widget</h3> 721 <p>This simple widget shows a login in link, or a welcome, Site Admin, and Log out choice if the user is logged 722 in.</p> 723 <h3><a name="widg_pp_text" id="widg_pp_text"></a>Weaver Per Page Text</h3> 724 <p>This widget will work like a text widget, but the title and content are defined by custom fields set on a Per 725 Page basis. For any page, define the Custom Field <em>wvrx_ts_pp_title</em>if you want a title, and define 726 Custom Field<em>wvrx_ts_pp_text</em> as the content. Content can include arbitrary text, HTML, and 727 shortcodes. The text will not automatically add paragraphs. The widget will display only if the custom 728 fields are defined when that page is displayed. (This widget won't display on the default blog or other 729 archive-like pages.)</p> 730 <h3><a name="widg_text_2" id="widg_text_2"></a>Weaver Text 2 Col</h3> 731 <p>This widget lets you add two columns of text. It is most useful in wide widget areas such as a content top or 732 bottom widget area, or a wide footer widget area.</p> 733 <p> </p> 734 <h2><br/> 735 </h2> 736 <p>The Weaver X Theme Support Plugin and this document are © 2017, Bruce E. Wampler. <a 737 ref="https://weavertheme.com">Web Site - WeaverTheme.com</a></p> 581 738 582 739 </div> -
weaverx-theme-support/tags/6.3.0/includes/wvrx-ts-runtime-lib.php
r2891913 r2955134 49 49 50 50 echo ' (V ' . WVRX_TS_VERSION . ')'; ?></strong><br/> 51 <?php echo wp_kses_post(__('This section shows the shortcodes and widgets available with Weaver Xtreme (and Foundation)Theme Support.51 <?php echo wp_kses_post(__('This section shows the shortcodes and widgets available with Weaver Xtreme Theme Support. 52 52 Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" class="dashicons dashicons-editor-help"></span> button to open help entry.', 'weaverx-theme-support' /*adm*/)); ?> 53 53 </p> … … 126 126 <br/> 127 127 <code><?php wvrx_ts_fix_short($prefix, esc_html__('[tab_group][tab]...[/tab][tab]...[/tab][/tab_group]', 'weaverx-theme-support' /*adm*/)); ?></code> 128 </li> 129 <li> 130 <?php wvrx_ts_fix_short($prefix, wp_kses_post(__('<span class="atw-blue">Video - [vimeo], [youtube] shared</span> - Options for both Vimeo/YouTube shortcodes. Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" class="dashicons dashicons-editor-help"></span> for specific help.', 'weaverx-theme-support' /*adm*/))); ?> 131 <br/> 132 <code><?php wvrx_ts_fix_short($prefix, esc_html__('[vimeo or youtube aspect=hd center=1 percent=100 sd=0 vertical=0]', 'weaverx-theme-support' /*adm*/)); ?></code> 128 133 </li> 129 134 <li><?php wvrx_ts_fix_short($prefix, wp_kses_post(__('<span class="atw-blue">Vimeo - [vimeo]</span> - Display video from Vimeo responsively, with options', 'weaverx-theme-support' /*adm*/))); ?> -
weaverx-theme-support/tags/6.3.0/includes/wvrx-ts-shortcodes.php
r2899618 r2955134 325 325 } 326 326 327 return wp_kses_post($before . $title . $after) ;327 return wp_kses_post($before . $title . $after); 328 328 } 329 329 … … 487 487 488 488 // =============== [youtube id=videoid sd=0 hd=0 related=0 https=0 privacy=0 w=0 h=0] ====================== 489 490 489 491 490 function wvrx_ts_sc_yt($args = ''): ?string … … 532 531 'theme' => 'dark', 533 532 'wmode' => 'transparent', 534 533 'vertical' => false, 534 'aspect' => 'hd', 535 535 ), $args)); 536 536 … … 566 566 $theme = esc_attr($theme); 567 567 $wmode = esc_attr($wmode); 568 $vertical = esc_attr($vertical); 569 $aspect = strtolower(esc_attr($aspect)); 568 570 569 571 … … 628 630 $allowfull = $fullscreen ? ' allowfullscreen="allowfullscreen"' : ''; 629 631 630 $cntr1 = $center ? "<div class=\"wvrx-video wvrx-youtube\" style=\"margin-left:auto;margin-right:auto;max-width:$percent%;\">" : 631 "<div class=\"wvrx-video wvrx-youtube\" style=\"max-width:$percent%;\">"; 632 if ($vertical && $percent == 100) { 633 $cntr1 = "<div class=\"wvrx-video wvrx-youtube\" style=\"max-width: 444px; display:block;margin:0 auto 10px;\">"; 634 } else { 635 $cntr1 = $center ? "<div class=\"wvrx-video wvrx-youtube\" style=\"margin-left:auto;margin-right:auto;max-width:$percent%;\">" : 636 "<div class=\"wvrx-video wvrx-youtube\" style=\"max-width:$percent%;\">"; 637 638 } 632 639 $cntr2 = '</div>'; 633 $h = 9; 634 $w = 16; 640 635 641 if ($sd) { 636 $h = 3; 637 $w = 4; 638 } 642 $aspect = 'sd'; // allow old setting to override $aspect 643 } 644 $h = wvrx_ts_video_height($aspect, $vertical); 645 $w = wvrx_ts_video_width($aspect, $vertical); 646 639 647 640 648 return "\n" . wp_kses_post($cntr1) . '<iframe src="' . wp_kses_post($url) 641 . '" style="border-width:0px" width="' . wp_kses_post($w) . '" height="' . wp_kses_post($h) . $allowfull . '></iframe>'649 . '" style="border-width:0px" width="' . esc_attr($w) . '" height="' . esc_attr($h) . $allowfull . '></iframe>' 642 650 . $cntr2 . "\n"; 643 651 } … … 661 669 'byline' => true, 662 670 'percent' => 100, 671 'vertical' => false, 663 672 'center' => 1, 673 'aspect' => 'hd', 664 674 ), $args)); 665 675 … … 673 683 $byline = esc_attr($byline); 674 684 $percent = esc_attr($percent); 685 $vertical = esc_attr($vertical); 686 $center = esc_attr($center); 687 $aspect = strtolower(esc_attr($aspect)); 688 675 689 676 690 if ($center != 1) … … 712 726 } 713 727 714 715 $cntr1 = $center ? "<div class=\"wvrx-video wvrx-vimeo\" style=\"margin-left:auto;margin-right:auto;max-width:" . $percent . "%;\">" : 716 "<div class=\"wvrx-video wvrx-vimeo\" style=\"max-width:" . $percent . "%;\">"; 728 if ($vertical && $percent == 100) { 729 $cntr1 = "<div class=\"wvrx-video wvrx-vimeo\" style=\"max-width: 444px; display:block;margin:0 auto 10px;\">"; 730 } else { 731 $cntr1 = $center ? "<div class=\"wvrx-video wvrx-vimeo\" style=\"margin-left:auto;margin-right:auto;max-width:" . $percent . "%;\">" : 732 "<div class=\"wvrx-video wvrx-vimeo\" style=\"max-width:" . $percent . "%;\">"; 733 } 734 717 735 $cntr2 = '</div>'; 718 $h = 9; 719 $w = 16; 736 720 737 if ($sd) { 721 $h = 3; 722 $w = 4; 723 } 738 $aspect = 'sd'; // allow old setting to override $aspect 739 } 740 741 $height = wvrx_ts_video_height($aspect, $vertical); 742 $width = wvrx_ts_video_width($aspect, $vertical); 743 724 744 725 745 return "\n" . $cntr1 . '<iframe src="' . wp_kses_post($url) 726 . '" style="border-width:0px" width="' . $w . '" height="' . $h . '" allowfullscreen></iframe>'746 . '" style="border-width:0px" width="' . $width . '" height="' . $height . '" frameborder="0" allowfullscreen="allowfullscreen"></iframe>' 727 747 . $cntr2 . "\n"; 728 748 } … … 737 757 738 758 return $opts; 759 } 760 761 function wvrx_ts_video_width($aspect, $vertical) 762 { 763 /* 764 * aspect=hd or aspect=16:9 - Aspect ratio 16:9, the <em>default</em> if 'aspect' option not specified. 765 <li>aspect=sd or aspect=4:3- Aspect ratio 4:3, the old pre-hd TV standard.</li> 766 <li>aspect=1.85:1 - Cinematic widescreen format.</li> 767 aspect=2.35:1 - Anamorphic widescreen format.</li> 768 <li>aspect=2.76:1 - 70mm film.</li> 769 */ 770 771 switch ($aspect) { 772 case 'sd': 773 case 'SD': 774 case '4:3': 775 if ($vertical) { 776 return 3; 777 } else { 778 return 4; 779 } 780 // break; 781 case '1.85:1': 782 case 'widescreen': 783 if ($vertical) { 784 return 100; 785 } else { 786 return 185; 787 } 788 // break; 789 case '2.35:1': 790 case '2.39:1': 791 case 'anamorphic': 792 if ($vertical) { 793 return 100; 794 } else { 795 return 235; 796 } 797 // break; 798 case '2.76:1': 799 case '70mm': 800 if ($vertical) { 801 return 100; 802 } else { 803 return 276; 804 } 805 // break; 806 case '1:1': 807 case 'square': 808 return 100; 809 // case: hd , 16:9 810 default: // hd 16:9 is the default 811 if ($vertical) { 812 return 9; 813 } else { 814 return 16; 815 } 816 // break; 817 } 818 } 819 820 function wvrx_ts_video_height($aspect, $vertical) 821 { 822 switch ($aspect) { 823 case 'sd': 824 case 'SD': 825 case '4:3': 826 if ($vertical) { 827 return 4; 828 } else { 829 return 3; 830 } 831 // break; 832 case '1.85:1': 833 case 'widescreen': 834 if ($vertical) { 835 return 185; 836 } else { 837 return 100; 838 } 839 // break; 840 case '2.35:1': 841 case '2.39:1': 842 case 'anamorphic': 843 if ($vertical) { 844 return 235; 845 } else { 846 return 100; 847 } 848 // break; 849 case '2.76:1': 850 case '70mm': 851 if ($vertical != 'no') { // 'vertical' specified 852 return 276; 853 } else { 854 return 100; 855 } 856 // break; 857 case '1:1': 858 case 'square': 859 return 100; 860 861 // case: hd , 16:9 862 default: // hd 16:9 is the default 863 if ($vertical) { 864 return 16; 865 } else { 866 return 9; 867 } 868 // break; 869 } 739 870 } 740 871 -
weaverx-theme-support/tags/6.3.0/readme.txt
r2899618 r2955134 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 10 Text Domain: weaverx-theme-support 11 Requires at least: 5.711 Requires at least: 6.0 12 12 Requires PHP: 7.2 13 Tested up to: 6. 214 Stable tag: 6. 2.913 Tested up to: 6.3 14 Stable tag: 6.3.0 15 15 16 16 A useful shortcode and widget collection for Weaver Xtreme … … 76 76 77 77 == ChangeLog = 78 = 6.3.0 = 79 * Update: WP 6.3 compatibility 80 * Tweak: Multisite Super Admin validation 81 82 = 6.2.10 = 83 New: Added Huge Font Size choice to match Weaver Xtreme 6.2.1 Customizer choices 84 78 85 = 6.2.8 - 6.2.9 = 79 86 * Tweaks: Translation message checks -
weaverx-theme-support/tags/6.3.0/weaverx-ts.php
r2899618 r2955134 6 6 Author: wpweaver 7 7 Author URI: http://weavertheme.com/about/ 8 Version: 6. 2.98 Version: 6.3.0 9 9 License: GPL V3 10 Requires PHP: 7.2 11 Requires at least: 6.0 12 Tested up to: 6.3 13 Stable tag: 6.3.0 10 14 11 15 Weaver Xtreme Theme Support … … 50 54 strpos($theme, '/weaver-xtreme-5') !== false )) { // only load if Weaver Xtreme is the theme 51 55 52 define('WVRX_TS_VERSION', '6. 2.9');56 define('WVRX_TS_VERSION', '6.3.0'); 53 57 define('WVRX_TS_PAGEBUILDERS', true); 54 58 -
weaverx-theme-support/trunk/admin/admin-advancedopts4.php
r2891913 r2955134 390 390 <div class="atw-option-header"><span style="color:black; padding:.2em;" 391 391 class="dashicons dashicons-admin-generic"></span> 392 <?php _e('New Version 5 Options', 'weaver-xtreme' /*adm*/); ?>392 <?php _e('New Version 5 and later Options', 'weaver-xtreme' /*adm*/); ?> 393 393 </div><br/> 394 <?php _e('This is a list of new options added to Weaver Xtreme Version 5 that are NOT supported by the Legacy interface. You will have to use the Customizer to use any of these options.', 'weaver-xtreme'); ?>394 <?php _e('This is a list of new options added to Weaver Xtreme Version 5 and later that are NOT supported by the Legacy interface. You will have to use the Customizer to use any of these options.', 'weaver-xtreme'); ?> 395 395 <br/> 396 396 <hr/> -
weaverx-theme-support/trunk/admin/admin-lib-ts-2.php
r2891913 r2955134 1307 1307 array('val' => 'xl-font-size', 'desc' => esc_html__('X-Large Font', 'weaver-xtreme' /*adm*/)), 1308 1308 array('val' => 'xxl-font-size', 'desc' => esc_html__('XX-Large Font', 'weaver-xtreme' /*adm*/)), 1309 array('val' => 'huge-font-size', 'desc' => esc_html__('Huge Font', 'weaver-xtreme' /*adm*/)), 1309 1310 array('val' => 'customA-font-size', 'desc' => esc_html__('Custom Size A', 'weaver-xtreme' /*adm*/)), 1310 1311 array('val' => 'customB-font-size', 'desc' => esc_html__('Custom Size B', 'weaver-xtreme' /*adm*/)), -
weaverx-theme-support/trunk/admin/admin-lib-ts.php
r2891913 r2955134 871 871 } 872 872 873 function weaverx_ts_allow_file_read(): bool 874 { 875 // Check for Reading User defined file name - not allowed by default for Multi-Site regular Admin 876 // doesn't allow WVRX_MULTISITE_RESTRICT_OPTIONS test 877 // Plugin specific version for backward compatibility with older versions of theme 878 879 return ((!is_multisite() && current_user_can('install_plugins')) 880 || (is_multisite() && current_user_can('manage_network_themes'))); 881 } 882 873 883 // Weaver Xtreme 5 compatibility functions 874 884 if (version_compare(WEAVERX_VERSION, '4.9.0', '>=')) { … … 879 889 $out = esc_textarea($text); 880 890 } else { 881 $out = esc_textarea( stripslashes($text));891 $out = esc_textarea($text); 882 892 } 883 893 if ($echo) { -
weaverx-theme-support/trunk/admin/admin-mainopts4.php
r2891913 r2955134 327 327 ), 328 328 329 array( 329 330 331 array('type' => 'submit'), 332 ); 333 if (version_compare(WEAVERX_VERSION, '6.2.0.90', '<')) { 334 $opts[] = array( 330 335 'name' => '<small>' . esc_html__('Disable Google Font Integration', 'weaver-xtreme' /*adm*/) . '</small>', 331 336 'id' => 'disable_google_fonts', 332 337 'type' => '+checkbox', 333 338 'info' => wp_kses_post(__('<strong>ADVANCED OPTION!</strong> <em>Be sure you understand the consequences of this option.</em> By disabling Google Font Integration, the Google Fonts definitions will <strong>not</strong> be loaded for your site. <strong style="color:red;font-weight:bold;">Please note:</strong> Any previously selected Google Font Families will revert to generic serif, sans, mono, and script fonts.', 'weaver-xtreme')) . ' ' . esc_html__('Note: Weaver Xtreme Self-hosts Google fonts now, and this option is not really useful any longer','weaver-xtreme'), 334 ), 335 336 array('type' => 'submit'), 337 338 ); 339 ); 340 } 341 339 342 ?> 340 343 <div class="options-intro"><strong><?php esc_html_e('Custom & Fonts:', 'weaver-xtreme' /*adm*/); ?> </strong> -
weaverx-theme-support/trunk/admin/admin-saverestore4.php
r2891913 r2955134 176 176 </td> 177 177 </tr> 178 179 <tr> 180 <td><?php esc_html_e('Select theme/backup file to upload:', 'weaver-xtreme' /*adm*/); ?> 181 <span style="border:1px solid black;padding:2px;"><input name="uploaded" type="file"/></span> 182 <input type="hidden" name="uploadit" 183 value="yes"/> <?php esc_html_e('(Restores settings in file to current settings.)', 'weaver-xtreme' /*adm*/); ?> 184 </td> 185 </tr> 186 187 <tr> 188 <td><span class='submit'> 178 <?php 179 if (weaverx_ts_allow_file_read()) { 180 ?> 181 182 <tr> 183 <td><?php esc_html_e('Select theme/backup file to upload:', 'weaver-xtreme' /*adm*/); ?> 184 <span style="border:1px solid black;padding:2px;"><input name="uploaded" type="file"/></span> 185 <input type="hidden" name="uploadit" 186 value="yes"/> <?php esc_html_e('(Restores settings in file to current settings.)', 'weaver-xtreme' /*adm*/); ?> 187 </td> 188 </tr> 189 190 <tr> 191 <td><span class='submit'> 189 192 <input class="button-primary" name="uploadtheme" type="submit" 190 193 value="<?php esc_html_e('Upload theme/backup', 'weaver-xtreme' /*adm*/); ?>"/></span> 191 <small><?php echo wp_kses_post(__('<strong>Upload and Restore</strong> a theme/backup from file on your computer. Will become current settings.', 'weaver-xtreme' /*adm*/)); ?> 192 </small></td> 193 </tr> 194 195 <tr> 196 <td> 197 <?php if (!function_exists('weaverxplus_plugin_installed')) { 198 echo '<small>' . 199 wp_kses_post(__('Note: Any Weaver Xtreme Plus settings will <em>not</em> be restored for Weaver Xtreme Free version.', 'weaver-xtreme' /*adm*/)) . '</small>'; 200 } 201 ?> 202 </td> 203 </tr> 194 <small><?php echo wp_kses_post(__('<strong>Upload and Restore</strong> a theme/backup from file on your computer. Will become current settings.', 'weaver-xtreme' /*adm*/)); ?> 195 </small></td> 196 </tr> 197 198 <tr> 199 <td> 200 <?php if (!function_exists('weaverxplus_plugin_installed')) { 201 echo '<small>' . 202 wp_kses_post(__('Note: Any Weaver Xtreme Plus settings will <em>not</em> be restored for Weaver Xtreme Free version.', 'weaver-xtreme' /*adm*/)) . '</small>'; 203 } 204 ?> 205 </td> 206 </tr> 207 <?php 208 } else { 209 ?> 210 <tr> 211 <td> 212 <span style="font-weight: bold; color:red;">File Upload Access Restriction: </span> 213 Sorry, you must be a Multi-Site Super Admin or have the <em>install_plugins</em> capability set 214 for your account by a Super Admin to read settings files. (e.g., with the <em>User Role Editor</em> 215 plugin.)</strong> 216 217 </td> 218 </tr> 219 <?php 220 } 221 ?> 222 204 223 205 224 </table> … … 211 230 </h3> 212 231 <p> 213 <?php esc_html_e('This option allows you to save and restore current subtheme settings on the file system of your site\' host.', 'weaver-xtreme' /*adm*/); ?> 232 <?php esc_html_e('This option allows you to save and restore current subtheme settings on the file system of your site\'s host.', 'weaver-xtreme' /*adm*/); echo '</br>'; 233 esc_html_e('This option is NOT available in the Customizer interface.', 'weaver-xtreme' /*adm*/) 234 ?> 214 235 </p> 215 236 <p> 216 237 <?php 217 if ( !function_exists('weaverxplus_plugin_installed') || !version_compare(WEAVER_XPLUS_VERSION, '3.1', '>=')) {218 echo '<s trong>';219 _e('This option requires that you have installed Weaver Xtreme Plus version greater or equal to ', 'weaver-xtreme');220 echo '3.1</strong>';238 if ( !weaverx_ts_allow_file_read()) { 239 echo '<span style="font-weight: bold; color:red;">File Access Restriction for Weaver Xtreme Plus: </span> 240 Sorry, you must be a Multi-Site Super Admin or have the <em>install_plugins</em> capability set 241 for your account by a Super Admin. (e.g., with the <em>User Role Editor</em> plugin.) to access Plus Save/Restore options.'; 221 242 } else { 222 do_action('weaverxplus_admin', 'save_restore_files'); 243 if (!function_exists('weaverxplus_plugin_installed') || !version_compare(WEAVER_XPLUS_VERSION, '3.1', '>=')) { 244 echo '<strong>'; 245 _e('This option requires that you have installed Weaver Xtreme Plus version greater or equal to ', 'weaver-xtreme'); 246 echo '3.1</strong>'; 247 } else { 248 do_action('weaverxplus_admin', 'save_restore_files'); 249 } 223 250 } 224 251 echo '</p>'; -
weaverx-theme-support/trunk/help/help.html
r2874845 r2955134 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2 "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 3 <html xmlns="https://www.w3.org/1999/xhtml" lang="en"> 3 4 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5 <title>Weaver X Theme Support</title> 6 <style type="text/css"> 7 body { 8 background: #eeeeee; 9 margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ 10 padding: 10px; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ 11 color: #000000; 12 text-align: left; 13 font-family: Verdana, Arial, Helvetica, sans-serif; 14 font-size: 10pt; 15 background-color: #ffd; 16 } 17 18 /* everything about each major block on the site - may be mods in some places */ 19 20 #container { 21 max-width:800px; 22 background-color: #00CC00; 23 } 24 #mainContent { 25 background-color: #ffc; 26 } 27 .oneColFixCtr #container { 28 max-width: 750px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */ 29 background: #FFFFCD; 30 margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ 31 border: 1px solid #000000; 32 text-align: left; /* this overrides the text-align: center on the body element. */ 33 } 34 .oneColFixCtr #mainContent { 35 padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ 36 font-size:12px; 37 } 38 /* layouts for layout boxes */ 39 .layoutbox { 40 width:700px; 41 text-align:center; 42 margin:0 25px; 43 } 44 .l_layout { 45 display:block; 46 width:140px; 47 height:110px; 48 float:left; 49 margin-right:10px; 50 margin-bottom:10px; 51 display:inline; 52 border:1px solid #888; 53 color:black; 54 text-align:center; 55 font:15px arial, sans-serif; 56 } 57 .l_layout span { 58 display:block; 59 } 60 .l_header { 61 width:140px; 62 height:20px; 63 background:#CCF; 64 line-height:20px; 65 } 66 .l_content { 67 width:100px; 68 height:70px; 69 background:beige; 70 float:left; 71 display:inline; 72 line-height:70px; 73 } 74 .l_contentcenter { 75 width:60px; 76 height:70px; 77 background:beige; 78 float:left; 79 display:inline; 80 line-height:70px; 81 } 82 .l_content2 { 83 width:80px; 84 height:70px; 85 background:beige; 86 float:left; 87 display:inline; 88 line-height:70px; 89 } 90 .l_contentw { 91 width:140px; 92 height:70px; 93 background:beige; 94 float:left; 95 display:inline; 96 line-height:70px; 97 } 98 .l_stdbar { 99 width:40px; 100 height:70px; 101 float:left; 102 display:inline; 103 } 104 .l_widebar { 105 width:60px; 106 height:70px; 107 float:left; 108 display:inline; 109 } 110 .l_righttop { 111 width:40px; 112 height:20px; 113 background:#FE8; 114 float:left; 115 display:inline; 116 line-height:20px; 117 } 118 .l_righttopwide { 119 width:60px; 120 height:20px; 121 background:#FE8; 122 float:left; 123 display:inline; 124 line-height:20px; 125 } 126 .l_rightup { 127 width:40px; 128 height:25px; 129 margin:0; 130 background:#FAA; 131 float:left; 132 display:inline; 133 line-height:25px; 134 } 135 .l_rightright { 136 width:40px; 137 height:50px; 138 margin:0; 139 background:#FAA; 140 float:left; 141 display:inline; 142 line-height:50px; 143 } 144 .l_rightdown { 145 width:40px; 146 height:25px; 147 margin:0; 148 background:#AFA; 149 float:left; 150 display:inline; 151 line-height:25px; 152 } 153 .l_leftleft { 154 width:40px; 155 height:70px; 156 margin:0; 157 background:#AFA; 158 float:left; 159 display:inline; 160 line-height:70px; 161 } 162 .l_leftshort { 163 width:30px; 164 height:50px; 165 margin:0; 166 background:#AFA; 167 float:left; 168 display:inline; 169 line-height:50px; 170 } 171 .l_skinny { 172 width:30px; 173 height:50px; 174 margin:0; 175 background:#FAA; 176 float:left; 177 display:inline; 178 line-height:50px; 179 } 180 .l_footer { 181 clear:left; 182 width:140px; 183 height:20px; 184 background:#DDF; 185 color:#000; 186 line-height:20px; 187 } 188 h4 { 189 font-weight: bold; 190 font-style:italic; 191 color: #000066; 192 text-decoration: underline; 193 } 194 h3 { 195 font-size: medium; 196 font-weight: bold; 197 color: #000066; 198 text-decoration: underline; 199 } 200 h2 { 201 font-size: large; 202 font-weight: bold; 203 color: #000066; 204 text-decoration: underline; 205 margin-top: 40pt; 206 } 207 h1 { 208 font-size: x-large; 209 font-weight: bold; 210 color: #000066; 211 text-decoration: underline; 212 } 213 .codebox { 214 font-family: "Courier New", Courier, monospace; 215 font-size: 10px; 216 font-style: normal; 217 background-color: #E8E8E8; 218 margin: 10px; 219 padding: 4px; 220 border: 1px solid #333333; 221 color: #000000; 222 width: 80%; 223 } 224 .attrs { 225 font-family: Arial, Helvetica, sans-serif; 226 font-size: 10pt; 227 color:#000000; 228 text-decoration: none; 229 } 230 .css { 231 font-family: "Courier New", Courier, monospace; 232 font-size: 9pt; 233 font-style: normal; 234 } 235 .box { 236 color: #000000; 237 text-decoration: none; 238 margin: 5px; 239 padding: 5px; 240 border: thin solid #000000; 241 } 242 .nospace { 243 margin-top: 5px; 244 margin-bottom: 5px; 245 } 246 .style3 { 247 font-family: "Courier New", Courier, monospace 248 } 249 .style4 { 250 font-family: monospace 251 } 252 .style6 { 253 color: #990000; 254 font-style: italic; 255 } 256 .style7 { 257 color: #CC3300; 258 font-weight: bold; 259 } 260 .code1 { 261 font-family: "Courier New", Courier, monospace; 262 font-size: 14px; 263 font-style: italic; 264 } 265 .red-highlight { 266 color: #CC3300; 267 } 268 </style> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 6 <title>Weaver X Theme Support</title> 7 <style type="text/css"> 8 body { 9 background: #eeeeee; 10 margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ 11 padding: 10px; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ 12 color: #000000; 13 text-align: left; 14 font-family: Verdana, Arial, Helvetica, sans-serif; 15 font-size: 10pt; 16 background-color: #ffd; 17 } 18 19 /* everything about each major block on the site - may be mods in some places */ 20 21 #container { 22 max-width: 800px; 23 background-color: #00CC00; 24 } 25 26 #mainContent { 27 background-color: #ffc; 28 } 29 30 .oneColFixCtr #container { 31 max-width: 750px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */ 32 background: #FFFFCD; 33 margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ 34 border: 1px solid #000000; 35 text-align: left; /* this overrides the text-align: center on the body element. */ 36 } 37 38 .oneColFixCtr #mainContent { 39 padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ 40 font-size: 12px; 41 } 42 43 /* layouts for layout boxes */ 44 .layoutbox { 45 width: 700px; 46 text-align: center; 47 margin: 0 25px; 48 } 49 50 .l_layout { 51 display: block; 52 width: 140px; 53 height: 110px; 54 float: left; 55 margin-right: 10px; 56 margin-bottom: 10px; 57 display: inline; 58 border: 1px solid #888; 59 color: black; 60 text-align: center; 61 font: 15px arial, sans-serif; 62 } 63 64 .l_layout span { 65 display: block; 66 } 67 68 .l_header { 69 width: 140px; 70 height: 20px; 71 background: #CCF; 72 line-height: 20px; 73 } 74 75 .l_content { 76 width: 100px; 77 height: 70px; 78 background: beige; 79 float: left; 80 display: inline; 81 line-height: 70px; 82 } 83 84 .l_contentcenter { 85 width: 60px; 86 height: 70px; 87 background: beige; 88 float: left; 89 display: inline; 90 line-height: 70px; 91 } 92 93 .l_content2 { 94 width: 80px; 95 height: 70px; 96 background: beige; 97 float: left; 98 display: inline; 99 line-height: 70px; 100 } 101 102 .l_contentw { 103 width: 140px; 104 height: 70px; 105 background: beige; 106 float: left; 107 display: inline; 108 line-height: 70px; 109 } 110 111 .l_stdbar { 112 width: 40px; 113 height: 70px; 114 float: left; 115 display: inline; 116 } 117 118 .l_widebar { 119 width: 60px; 120 height: 70px; 121 float: left; 122 display: inline; 123 } 124 125 .l_righttop { 126 width: 40px; 127 height: 20px; 128 background: #FE8; 129 float: left; 130 display: inline; 131 line-height: 20px; 132 } 133 134 .l_righttopwide { 135 width: 60px; 136 height: 20px; 137 background: #FE8; 138 float: left; 139 display: inline; 140 line-height: 20px; 141 } 142 143 .l_rightup { 144 width: 40px; 145 height: 25px; 146 margin: 0; 147 background: #FAA; 148 float: left; 149 display: inline; 150 line-height: 25px; 151 } 152 153 .l_rightright { 154 width: 40px; 155 height: 50px; 156 margin: 0; 157 background: #FAA; 158 float: left; 159 display: inline; 160 line-height: 50px; 161 } 162 163 .l_rightdown { 164 width: 40px; 165 height: 25px; 166 margin: 0; 167 background: #AFA; 168 float: left; 169 display: inline; 170 line-height: 25px; 171 } 172 173 .l_leftleft { 174 width: 40px; 175 height: 70px; 176 margin: 0; 177 background: #AFA; 178 float: left; 179 display: inline; 180 line-height: 70px; 181 } 182 183 .l_leftshort { 184 width: 30px; 185 height: 50px; 186 margin: 0; 187 background: #AFA; 188 float: left; 189 display: inline; 190 line-height: 50px; 191 } 192 193 .l_skinny { 194 width: 30px; 195 height: 50px; 196 margin: 0; 197 background: #FAA; 198 float: left; 199 display: inline; 200 line-height: 50px; 201 } 202 203 .l_footer { 204 clear: left; 205 width: 140px; 206 height: 20px; 207 background: #DDF; 208 color: #000; 209 line-height: 20px; 210 } 211 212 h4 { 213 font-weight: bold; 214 font-style: italic; 215 color: #000066; 216 text-decoration: underline; 217 } 218 219 h3 { 220 font-size: medium; 221 font-weight: bold; 222 color: #000066; 223 text-decoration: underline; 224 } 225 226 h2 { 227 font-size: large; 228 font-weight: bold; 229 color: #000066; 230 text-decoration: underline; 231 margin-top: 40pt; 232 } 233 234 h1 { 235 font-size: x-large; 236 font-weight: bold; 237 color: #000066; 238 text-decoration: underline; 239 } 240 241 .codebox { 242 font-family: "Courier New", Courier, monospace; 243 font-size: 10px; 244 font-style: normal; 245 background-color: #E8E8E8; 246 margin: 10px; 247 padding: 4px; 248 border: 1px solid #333333; 249 color: #000000; 250 width: 80%; 251 } 252 253 .attrs { 254 font-family: Arial, Helvetica, sans-serif; 255 font-size: 10pt; 256 color: #000000; 257 text-decoration: none; 258 } 259 260 .css { 261 font-family: "Courier New", Courier, monospace; 262 font-size: 9pt; 263 font-style: normal; 264 } 265 266 .box { 267 color: #000000; 268 text-decoration: none; 269 margin: 5px; 270 padding: 5px; 271 border: thin solid #000000; 272 } 273 274 .nospace { 275 margin-top: 5px; 276 margin-bottom: 5px; 277 } 278 279 .style3 { 280 font-family: "Courier New", Courier, monospace 281 } 282 283 .style4 { 284 font-family: monospace 285 } 286 287 .style6 { 288 color: #990000; 289 font-style: italic; 290 } 291 292 .style7 { 293 color: #CC3300; 294 font-weight: bold; 295 } 296 297 .code1 { 298 font-family: "Courier New", Courier, monospace; 299 font-size: 14px; 300 font-style: italic; 301 } 302 303 .red-highlight { 304 color: #CC3300; 305 } 306 </style> 269 307 </head> 270 308 <body class="oneColFixCtr"> 271 309 <div id="container"> 272 <div id="mainContent"> <a name="top" id="top"></a> 273 <h2><b>Weaver X Theme Support Plugin Documentation -- Version 1.0</b></h2> 274 <h4>Table of Contents</h4> 275 <ul style="line-height:1.7em;"> 276 <li><a href="#summary"><strong>Plugin Summary</strong></a></li> 277 <li><strong><a href="#admin_page">Weaver X Theme Extras Admin Page</a> </strong></li> 278 <li><a href="#sc_summary"><strong>Shortcode Summary</strong></a></li> 279 <ul> 280 <li><strong><a href="#bloginfo">[bloginfo arg='name' style='your css']</a></strong></li> 281 <li><strong><a href="#box">[box]text[/box]</a></strong></li> 282 <li><a href="#tab_group"><strong>[tab_group] - content in tabs</strong></a></li> 283 <li><strong><a href="#headerimage">[header_image] Shortcode</a></strong></li> 284 <li><strong><a href="#schtml">[html]</a></strong></li> 285 <li><strong><a href="#scdiv">[div]text[/div]</a>, <a href="#schtml">[span]text[/span]</a></strong></li> 286 <li><strong><a href="#sciframe"> [iframe]</a></strong></li> 287 <li><strong><a href="#scshowif">[show/hide_if]</a></strong></li> 288 <li><strong><a href="#sitetitlesc">[site_title], [site_tagline]</a></strong></li> 289 290 <li><strong><a href="#video">Video - [vimeo], [youtube]</a></strong></li> 291 </ul> 292 <li><a href="#widg-sum"><strong>Widget Summary</strong></a> 293 <ul> 294 <li><strong><a href="#widg-login">Weaver Login Widget</a></strong></li> 295 <li><strong><a href="#widg_pp_text">Weaver Per Page Text</a></strong></li> 296 <li><strong><a href="#widg_text_2">Weaver Text 2 Col</a></strong></li> 297 </ul> 298 </li> 299 </ul> 300 <h3><a name="summary" id="summary"></a>Plugin Summary </h3> 301 <p>The Weaver X Theme Support Plugin provides a collection of shortcodes to allow you to easily add extra content and features to your regular content. These shortcodes will work with almost any WordPress theme. </p> 302 <p>While these shortcodes should prove useful with most any theme, one of the goals of these shortcodes is to provide an alternative to users of the Weaver X theme.</p> 303 <h2><a name="admin_page" id="admin_page"></a>Weaver Xtreme Theme Extras Admin Page</h2> 304 <p>This plugin has just a few options, all found on the Weaver X Theme Support admin page under the WordPress dashboard Appearance section.</p> 305 <h2><a name="sc_summary" id="sc_summary"></a>Shortcode Summary</h2> 306 <h3><a name="tab_group" id="tab_group"></a>[tab_group] - content in tabs </h3> 307 <p>Show content displayed on tabbed pages.</p> 308 <p><strong>Shortcode usage:</strong><br /> 309 <pre> 310 <div id="mainContent"><a name="top" id="top"></a> 311 <h2><b>Weaver X Theme Support Plugin Documentation -- Version 1.0</b></h2> 312 <h4>Table of Contents</h4> 313 <ul style="line-height:1.7em;"> 314 <li><a href="#summary"><strong>Plugin Summary</strong></a></li> 315 <li><strong><a href="#admin_page">Weaver X Theme Extras Admin Page</a> </strong></li> 316 <li><a href="#sc_summary"><strong>Shortcode Summary</strong></a></li> 317 <ul> 318 <li><strong><a href="#bloginfo">[bloginfo arg='name' style='your css']</a></strong></li> 319 <li><strong><a href="#box">[box]text[/box]</a></strong></li> 320 <li><a href="#tab_group"><strong>[tab_group] - content in tabs</strong></a></li> 321 <li><strong><a href="#headerimage">[header_image] Shortcode</a></strong></li> 322 <li><strong><a href="#schtml">[html]</a></strong></li> 323 <li><strong><a href="#scdiv">[div]text[/div]</a>, <a href="#schtml">[span]text[/span]</a></strong></li> 324 <li><strong><a href="#sciframe"> [iframe]</a></strong></li> 325 <li><strong><a href="#scshowif">[show/hide_if]</a></strong></li> 326 <li><strong><a href="#sitetitlesc">[site_title], [site_tagline]</a></strong></li> 327 328 <li><strong><a href="#video">Video - [vimeo], [youtube]</a></strong></li> 329 </ul> 330 <li><a href="#widg-sum"><strong>Widget Summary</strong></a> 331 <ul> 332 <li><strong><a href="#widg-login">Weaver Login Widget</a></strong></li> 333 <li><strong><a href="#widg_pp_text">Weaver Per Page Text</a></strong></li> 334 <li><strong><a href="#widg_text_2">Weaver Text 2 Col</a></strong></li> 335 </ul> 336 </li> 337 </ul> 338 <h3><a name="summary" id="summary"></a>Plugin Summary </h3> 339 <p>The Weaver X Theme Support Plugin provides a collection of shortcodes to allow you to easily add extra 340 content and features to your regular content. These shortcodes will work with almost any WordPress 341 theme. </p> 342 <p>While these shortcodes should prove useful with most any theme, one of the goals of these shortcodes is to 343 provide an alternative to users of the Weaver X theme.</p> 344 <h2><a name="admin_page" id="admin_page"></a>Weaver Xtreme Theme Extras Admin Page</h2> 345 <p>This plugin has just a few options, all found on the Weaver X Theme Support admin page under the WordPress 346 dashboard Appearance section.</p> 347 <h2><a name="sc_summary" id="sc_summary"></a>Shortcode Summary</h2> 348 <h3><a name="tab_group" id="tab_group"></a>[tab_group] - content in tabs </h3> 349 <p>Show content displayed on tabbed pages.</p> 350 <p><strong>Shortcode usage:</strong><br/> 351 <pre> 310 352 [tab_group border_color=black page_min_height=200px] 311 353 [tab title='tab one']This is the content found on first tab.[/tab] … … 314 356 [/tab_group] 315 357 </pre> 316 <h4>Short code parameters</h4> 317 You can supply values for these parameters to control the look of the tabbed section. 318 <br /> 319 <ul> 320 <li><b>border_color:</b> tab and pane border color - default #888</li> 321 <li><b>tab_bg</b>: normal bg color of tab (default #CCC)</li> 322 <li><b>tab_selected_color</b>: color of tab when selected (default #EEE)</li> 323 <li><b>pane_min_height</b>: min height of a pane to help make all even if needed</li> 324 <li><b>pane_bg</b>: bg color of pane</li> 325 </ul> 326 </p> 327 <h3><a name="headerimage" id="headerimage"></a><strong>[header_image]</strong></h3> 328 <p>The <code>[header_image]</code> shortcode allows you display the current header image wherever you want. 329 For example, you can get the header image into the Header Widget Area by using this shortcode in a text widget. 330 The current standard or mobile header image will be displayed. Only the <code><img ... ></code> is displayed -- 331 the image will not be wrapped in a link to the site.</p> 332 333 <p><strong>Shortcode usage:</strong> <code>[header_image h='size' w='size' style='inline-style']</code> 334 <br /> 335 <ol> 336 <li><strong>w='size' h='size'</strong> - By default, no height or image properties are included with the 337 header <code><img ... ></code>, which will result in an image scaled to fit into whatever the natural 338 width of the enclosing HTML container is (the content area, a text widget, etc.). You may specify an explicit 339 value (usually in px) for the height and width of the image. 340 </li> 341 <li><strong>style='inline-style-rules'</strong> - Allows you to add inline style to wrap output of the shortcode. 342 Don't include the 'style=' or wrapping quotation marks. Do include a ';' at the end of each rule. The output will look like 343 <code>style="your-rules;"</code> - using double quotation marks. 344 </li> 345 </ol> 346 <h3><a name="schtml" id="schtml"></a><strong>[html]</strong></h3> 347 348 <p>The Weaver X Theme Support <code>[html]</code> shortcode allows you to add arbitrary HTML to your post and page content. The 349 main purpose of this shortcode is to get around the auto paragraph and line break and other HTML stripping functionality 350 of the WordPress editor.</p> 351 352 <p><strong>Shortcode usage:</strong> <code>[html html-tag args='parameters']</code> 353 <br /> 354 <ol> 355 <li><strong>html-tag</strong> - The first parameter to the shortcode must be present, and must be a standard 356 HTML tag - <code>p</code>, <code>br</code>, or <code>span</code>, for example. You just supply the tag - no quotation 357 marks, no '=', just the tag. The shortcode provides the < and >. If you need a wrapping HTML tag (e.g., <code>span</code> and <code>/span</code>), use 358 two shortcodes:<br /> 359 <code>[html span args='style="color:red"']content to make red[html /span]</code> 360 </li> 361 <li><strong>args='parameters'</strong> - Allows you to specify arbitrary parameters for your HTML tag. See the example above. 362 </li> 363 </ol> 364 </p> 365 366 <h3><a name="scdiv" id="scdiv"></a><strong>[div]text[/div]</strong>, [span]text[/span]</h3> 367 368 <p>The Weaver X Theme Support <code>[div]</code> and [span] shortcodes allow you to easily add HTML <div> or <span> tags to your post and page content. The 369 main purpose of these shortcodes is to get around need to switch to the HTML editor view when you need to 370 wrap your content in a <div> or <span>.</p> 371 <p> 372 This will work exactly like a standard HMTL <div>and <span> tags. It supports 'id', 'class', 373 and 'style' parameters, which are the most useful. Instead of wrapping your text in <div> or <span> tags, wrap them like 374 this (the Visual view will work just fine):<br /> 375 <code>[div style="font-size:20px;']This content will be large.[/div]</code><br /> 376 <code>[span style="font-size:20px;']This content will be large.[/span]</code></p> 377 <p><strong>Shortcode usage:</strong> <code>[div id='class_id' class='class_name' style='style_values']text[/div]</code> 378 <br /> 379 <code>[span id='class_id' class='class_name' style='style_values']text[/span]</code> <br /> 380 <ol> 381 <li><strong>id='class_id' class='class_name' style='style_values'</strong> - Allows you to specify id, class, and style for the <div>. See the example above. 382 </li> 383 </ol> 384 </p> 385 386 <h3><a name="sciframe" id="sciframe"></a><strong>iframe - [iframe]</strong></h3> 387 388 <p>The <code>[iframe]</code> shortcode allows you easily display the content of an external site. You simply have to specify 389 the URL for the external site, and optionally a height. This shortcode automatically generates the correct HTML <iframe> code.</p> 390 391 <p><strong>Shortcode usage:</strong> <code>[iframe src='https://example/com' height=600 percent=100 style="style"]</code> 392 <br /> 393 <ol> 394 <li><strong>src='https://example/com'</strong> - The standard URL for the external site. 395 </li> 396 <li><strong>height=600</strong> - Optional height to allocate for the site - in px. Default is 600. 397 </li> 398 <li><strong>percent=100</strong> - Optional width specification in per cent. Default is 100%. 399 </li> 400 <li><strong>style="style"</strong> - Optional style values. Added to <iframe> tag as style="values". 401 </li> 402 </ol> 403 </p> 404 405 <h3><a name="scshowif" id="scshowif"></a><strong>[show_if]content[/show_if], [hide_if]</strong>content [/hide_if]</h3> 406 <p>The <code>[show_if]</code> and <code>[hide_if]</code> shortcodes allow you to selectively 407 display or hide content depending if any of several conditions are met.</p> 408 409 <p><strong>Shortcode usage:</strong> <code>[hide_if device=device logged_in=true/false not_post_id=id-list post_id=id-list user_can=what]</code> 410 </p> 411 <p>You bracket the content you want to selectively display with <code>[show/hide_if]</code> and closing 412 <code>[/show/hide_if]</code> tags. That content can contain other shortcodes as needed. If you specify more than one parameter to the short code, then all the conditions must be met (logical AND). Any parameters you don't include are considered true.</p> 413 <h4>Parameters</h4> 414 <p>'device' => 'default', // desktop, mobile, smalltablet, phone, all<br /> 415 'logged_in' => 'default', // true or false<br /> 416 'not_post_id' => 'default', // comma separated list of post IDs (includes pages, too)<br /> 417 'post_id' => 'default', // comma separated list<br /> 418 'user_can' => 'default' // https://codex.wordpress.org/Function_Reference/current_user_can</p> 419 <p> 420 <strong>device=desktop | mobile | smalltablet | phone </strong> - The device parameter for <code>[show/hide_if]</code> is designed to allow you to hide <em>or</em> show any content on any of the 421 device sizes recognized by Weaver Xtreme (or any theme, actually): 'phone', 'smalltablet', and 'desktop', or 'mobile' for non-desktop devices. If you want to show or hide content on 422 a specific device, you give the <span class="code1">device</span> parameter a value of desktop, mobile, smalltablet, phone, or none (e.g., <code>[show_if device=mobile]</code>). </p> 423 <p><strong>logged_in=true | false</strong> - This will hide or display content depending if the visitor is logged into the site or not. </p> 424 <p><strong>post_id=34,875</strong> / <strong>not_post_id=1,2,3 </strong>- This will display (or not display) the content depending if the current page or single post view is included in the comma separated list of WordPress page/post IDs. You can use both to refine a list of pages or posts to display or not display. Note that even though the parameter is called 'post_id', it applies equally to pages and posts. Depending on where you use the shortcode, it will apply to a post differently depending if it is on a blog or single page view of a post. Note that the default WordPress blog (as opposed to the Weaver Xtreme Page with Posts template) does not have a post_ID.</p> 425 <p><strong>user_can=user-capability</strong> - This will show or hide depending if the current visitor has certain WordPress user capabilities. There are many capabilities which are defined in the <a href="https://codex.wordpress.org/Function_Reference/current_user_can" target="_blank">WordPress Codex</a>. This shortcode supports any of the listed capabilities for maximum flexibility. If you don't want to learn about all the capabilities listed in the Codex, you can use the following capability values to determine if the visitor has a specific role (as defined on the Dashboard Users admin pages). For example:<br /> 426 <br /> 427 <span class="code1">[show_if user_can=publish_pages]content for Editors and above[/show_if]</span><br /> 428 <br /> 429 Note that the higher roles have all the capabilities of the lower roles - an Editor can do everything a Contributor can.</p> 430 <table width="80%" border="1"> 431 <caption> 432 Capabilities to Specify Role 433 </caption> 434 <tr> 435 <th scope="col">Role</th> 436 <th scope="col">Capability</th> 437 </tr> 438 <tr> 439 <td>Subscriber</td> 440 <td>read</td> 441 </tr> 442 <tr> 443 <td>Contributor</td> 444 <td>edit_posts</td> 445 </tr> 446 <tr> 447 <td>Author</td> 448 <td>publish_posts</td> 449 </tr> 450 <tr> 451 <td>Editor</td> 452 <td>publish_pages</td> 453 </tr> 454 <tr> 455 <td>Administrator</td> 456 <td>manage_options</td> 457 </tr> 458 <tr> 459 <td>Super Administrator (MultiSite)</td> 460 <td>manage_network</td> 461 </tr> 462 </table> 463 <p> </p> 464 <h3><a name="sitetitlesc" id="sitetitlesc"></a><strong>[site_title style="style" matchtheme=false], [site_tagline style="style" matchtheme=false]</strong></h3> 465 466 <p>The <code>[site_title]</code> and <code>[site_tagline]</code> shortcodes allow you to display the current 467 site title and site tagline. This can be useful in a text widget in the Header Widget Area, for example.</p> 468 <p><em>Note:</em> If you want to position the content of a text widget within a cell of the Header Widget Area, you could use the following 469 example:</p> 470 <p><code>[site_title style='font-size:150%;position:absolute;padding-left:20px;padding-top:30px;']</code></p> 471 472 <p><strong>Shortcode usage:</strong> <code>[site_title style='inline-style' matchtheme=false] [site_tagline style='inline-style' matchtheme=false]</code> 473 <br /> 474 <ol> 475 <li><strong>style='inline-style-rules'</strong> - Allows you to add inline style to wrap output of the shortcode. 476 Don't include the 'style=' or wrapping quotation marks. Do include a ';' at the end of each rule. The output will look like 477 <code>style="your-rules;"</code> - using double quotation marks. 478 </li> 479 <li><strong>matchtheme=true</strong> - Allows you to add match the theme styling as defined in the site header if set to true. 480 This will match the color/style/font of the header version of the site title and tagline with the exception of hide settings. 481 The shortcode version will not be hidden on any device unless you also wrap the shortcode with a [show_if/hide_if] shortcode. 482 </li> 483 484 </ol> 485 486 <h3><a name="bloginfo" id="bloginfo"></a><strong>[bloginfo arg='name' style='your css']</strong></h3> 487 488 <p>This shortcode can be used to access the WordPress function 'get_bloginfo($arg)'. This will return a number of useful 489 strings depending on the value. All the supported values are listed at https://codex.wordpress.org/Function_Reference/get_bloginfo. 490 Some useful values include 'stylesheet_directory' and 'template_directory'. You can wrap the bloginfo output with css added to a <span style="your css">. 491 </p> 492 493 <h3><a name="box" id="box"></a><strong>[box]text[/box]</strong></h3> 494 495 <p> 496 Wrap content in a box.</p> 497 <p><strong>Shortcode Usage:</strong> <code>[box align=left background=#fff border=true border_rule='border-css' border_radius=4 color=#000 margin=1 padding=1 shadow=1 style='style-rules']text[/box]</code></p> 498 <ol> 499 <li><strong>align=align</strong>: Leave blank, or specify left, center, or right for alignment of box within surrounding text.</li> 500 <li><strong>border=true</strong>: True is default. Specify false or 0 for no borders.</li> 501 <li><strong>border_rule='1px solid black</strong>': Specify a compound border CSS value to replace the default '1px solid black'.</li> 502 <li><strong>border_radius=4</strong>: Default is none - specify a px value for the corner radius if you want rounded corners.</li> 503 <li><strong>color=#000</strong>: Default is inherit - specify a valid color for the color of the text in the box.</li> 504 <li><strong>background=#fff</strong>: Default is inherit - specify color for box background color.</li> 505 <li><strong>margin=1</strong>: Default is 0 - specify an 'em' value for margin around the box. Using a margin overrides align parameter.</li> 506 <li><strong>padding=1</strong>: Default 1 - specify an 'em' value for padding inside box.</li> 507 <li><strong>shadow=0</strong>: Default 0 - specify a value from 1 to 5 for a border around the box.</li> 508 <li><strong>style=inline-style</strong>: any additional custom styling for the box</li> 509 <li><strong>width=100</strong>: A percentage width for the box within its surrounding container.</li> 510 </ol> 511 <h3><a name="video" id="video"></a><strong>Video - [vimeo], [youtube]</strong></h3> 512 <p>Weaver X Theme Support supports specialized shortcodes to display video. While there are other ways to embed video, the Weaver X Theme Support versions have two important features. First, they will auto adjust to the width of your content, <em><strong>including</strong></em> the mobile view. Second, they use the latest iframe/HTML5 interface provided by YouTube and Vimeo.</p> 513 <p><strong>Specifying Video Display Size for both shortcodes</strong></p> 514 <p>Weaver X Theme Support supports a common set of options for both the YouTube and Vimeo shortcodes to support displaying your videos with a specific width and correct height. By default, your videos will be displayed using the full width of the content area being used (percent=100). The percent= parameter is used to specify the width you want.</p> 515 <p>The height of the video is automatically determined based on the width and the display ratio of the particular video. </p> 516 <p>Finally, you may specify if the video should be centered or no within the display area using "center=0" to not center (centering is on by default).</p> 517 <p>Note - if you want to display more than one video horizontally, use "center=0" and specify an appropriate percentage to fit all the videos.</p> 518 <p>Parameters in Common</p> 519 <ul> 520 <li>percent=100 - By default, the video will be sized to fill the full content space. You can use the percent value to make 521 the video use a percentage of the content space (but mobile will always use full width).</li> 522 <li>center=1 - Specify 'center=0' to disable centering of the video.</li> 523 <li>sd=0 - By default, Weaver X Theme Support will generate sizes for HD/widescreen videos. To display old 4:3 standard definition videos, include 'sd=1' in the shortcode.</li> 524 </ul> 525 <h4>Vimeo</h4> 526 <pre><strong>[vimeo vimeo-url id=videoid sd=0 percent=100 center=1 color=#hex 358 <h4>Short code parameters</h4> 359 You can supply values for these parameters to control the look of the tabbed section. 360 <br/> 361 <ul> 362 <li><b>border_color:</b> tab and pane border color - default #888</li> 363 <li><b>tab_bg</b>: normal bg color of tab (default #CCC)</li> 364 <li><b>tab_selected_color</b>: color of tab when selected (default #EEE)</li> 365 <li><b>pane_min_height</b>: min height of a pane to help make all even if needed</li> 366 <li><b>pane_bg</b>: bg color of pane</li> 367 </ul> 368 </p> 369 <h3><a name="headerimage" id="headerimage"></a><strong>[header_image]</strong></h3> 370 <p>The <code>[header_image]</code> shortcode allows you display the current header image wherever you want. 371 For example, you can get the header image into the Header Widget Area by using this shortcode in a text 372 widget. 373 The current standard or mobile header image will be displayed. Only the <code><img ... ></code> is 374 displayed -- 375 the image will not be wrapped in a link to the site.</p> 376 377 <p><strong>Shortcode usage:</strong> <code>[header_image h='size' w='size' style='inline-style']</code> 378 <br/> 379 <ol> 380 <li><strong>w='size' h='size'</strong> - By default, no height or image properties are included with the 381 header <code><img ... ></code>, which will result in an image scaled to fit into whatever the 382 natural 383 width of the enclosing HTML container is (the content area, a text widget, etc.). You may specify an 384 explicit 385 value (usually in px) for the height and width of the image. 386 </li> 387 <li><strong>style='inline-style-rules'</strong> - Allows you to add inline style to wrap output of the 388 shortcode. 389 Don't include the 'style=' or wrapping quotation marks. Do include a ';' at the end of each rule. The 390 output will look like 391 <code>style="your-rules;"</code> - using double quotation marks. 392 </li> 393 </ol> 394 <h3><a name="schtml" id="schtml"></a><strong>[html]</strong></h3> 395 396 <p>The Weaver X Theme Support <code>[html]</code> shortcode allows you to add arbitrary HTML to your post and 397 page content. The 398 main purpose of this shortcode is to get around the auto paragraph and line break and other HTML stripping 399 functionality 400 of the WordPress editor.</p> 401 402 <p><strong>Shortcode usage:</strong> <code>[html html-tag args='parameters']</code> 403 <br/> 404 <ol> 405 <li><strong>html-tag</strong> - The first parameter to the shortcode must be present, and must be a standard 406 HTML tag - <code>p</code>, <code>br</code>, or <code>span</code>, for example. You just supply the tag - 407 no quotation 408 marks, no '=', just the tag. The shortcode provides the < and >. If you need a wrapping HTML tag 409 (e.g., <code>span</code> and <code>/span</code>), use 410 two shortcodes:<br/> 411 <code>[html span args='style="color:red"']content to make red[html /span]</code> 412 </li> 413 <li><strong>args='parameters'</strong> - Allows you to specify arbitrary parameters for your HTML tag. See 414 the example above. 415 </li> 416 </ol> 417 </p> 418 419 <h3><a name="scdiv" id="scdiv"></a><strong>[div]text[/div]</strong>, [span]text[/span]</h3> 420 421 <p>The Weaver X Theme Support <code>[div]</code> and [span] shortcodes allow you to easily add HTML <div> 422 or <span> tags to your post and page content. The 423 main purpose of these shortcodes is to get around need to switch to the HTML editor view when you need to 424 wrap your content in a <div> or <span>.</p> 425 <p> 426 This will work exactly like a standard HMTL <div>and <span> tags. It supports 'id', 'class', 427 and 'style' parameters, which are the most useful. Instead of wrapping your text in <div> or <span> 428 tags, wrap them like 429 this (the Visual view will work just fine):<br/> 430 <code>[div style="font-size:20px;']This content will be large.[/div]</code><br/> 431 <code>[span style="font-size:20px;']This content will be large.[/span]</code></p> 432 <p><strong>Shortcode usage:</strong> <code>[div id='class_id' class='class_name' 433 style='style_values']text[/div]</code> 434 <br/> 435 <code>[span id='class_id' class='class_name' style='style_values']text[/span]</code> <br/> 436 <ol> 437 <li><strong>id='class_id' class='class_name' style='style_values'</strong> - Allows you to specify id, 438 class, and style for the <div>. See the example above. 439 </li> 440 </ol> 441 </p> 442 443 <h3><a name="sciframe" id="sciframe"></a><strong>iframe - [iframe]</strong></h3> 444 445 <p>The <code>[iframe]</code> shortcode allows you easily display the content of an external site. You simply 446 have to specify 447 the URL for the external site, and optionally a height. This shortcode automatically generates the correct 448 HTML <iframe> code.</p> 449 450 <p><strong>Shortcode usage:</strong> <code>[iframe src='https://example/com' height=600 percent=100 451 style="style"]</code> 452 <br/> 453 <ol> 454 <li><strong>src='https://example/com'</strong> - The standard URL for the external site. 455 </li> 456 <li><strong>height=600</strong> - Optional height to allocate for the site - in px. Default is 600. 457 </li> 458 <li><strong>percent=100</strong> - Optional width specification in per cent. Default is 100%. 459 </li> 460 <li><strong>style="style"</strong> - Optional style values. Added to <iframe> tag as style="values". 461 </li> 462 </ol> 463 </p> 464 465 <h3><a name="scshowif" id="scshowif"></a><strong>[show_if]content[/show_if], [hide_if]</strong>content 466 [/hide_if]</h3> 467 <p>The <code>[show_if]</code> and <code>[hide_if]</code> shortcodes allow you to selectively 468 display or hide content depending if any of several conditions are met.</p> 469 470 <p><strong>Shortcode usage:</strong> <code>[hide_if device=device logged_in=true/false not_post_id=id-list 471 post_id=id-list user_can=what]</code> 472 </p> 473 <p>You bracket the content you want to selectively display with <code>[show/hide_if]</code> and closing 474 <code>[/show/hide_if]</code> tags. That content can contain other shortcodes as needed. If you specify more 475 than one parameter to the short code, then all the conditions must be met (logical AND). Any parameters you 476 don't include are considered true.</p> 477 <h4>Parameters</h4> 478 <p>'device' => 'default', // desktop, mobile, smalltablet, phone, all<br/> 479 'logged_in' => 'default', // true or false<br/> 480 'not_post_id' => 'default', // comma separated list of post IDs (includes pages, too)<br/> 481 'post_id' => 'default', // comma separated list<br/> 482 'user_can' => 'default' // https://codex.wordpress.org/Function_Reference/current_user_can</p> 483 <p> 484 <strong>device=desktop | mobile | smalltablet | phone </strong> - The device parameter for <code>[show/hide_if]</code> 485 is designed to allow you to hide <em>or</em> show any content on any of the 486 device sizes recognized by Weaver Xtreme (or any theme, actually): 'phone', 'smalltablet', and 'desktop', or 487 'mobile' for non-desktop devices. If you want to show or hide content on 488 a specific device, you give the <span class="code1">device</span> parameter a value of desktop, mobile, 489 smalltablet, phone, or none (e.g., <code>[show_if device=mobile]</code>). </p> 490 <p><strong>logged_in=true | false</strong> - This will hide or display content depending if the visitor is 491 logged into the site or not. </p> 492 <p><strong>post_id=34,875</strong> / <strong>not_post_id=1,2,3 </strong>- This will display (or not display) the 493 content depending if the current page or single post view is included in the comma separated list of 494 WordPress page/post IDs. You can use both to refine a list of pages or posts to display or not display. Note 495 that even though the parameter is called 'post_id', it applies equally to pages and posts. Depending on 496 where you use the shortcode, it will apply to a post differently depending if it is on a blog or single page 497 view of a post. Note that the default WordPress blog (as opposed to the Weaver Xtreme Page with Posts 498 template) does not have a post_ID.</p> 499 <p><strong>user_can=user-capability</strong> - This will show or hide depending if the current visitor has 500 certain WordPress user capabilities. There are many capabilities which are defined in the <a 501 href="https://codex.wordpress.org/Function_Reference/current_user_can" target="_blank">WordPress 502 Codex</a>. This shortcode supports any of the listed capabilities for maximum flexibility. If you don't 503 want to learn about all the capabilities listed in the Codex, you can use the following capability values to 504 determine if the visitor has a specific role (as defined on the Dashboard Users admin pages). For 505 example:<br/> 506 <br/> 507 <span class="code1">[show_if user_can=publish_pages]content for Editors and above[/show_if]</span><br/> 508 <br/> 509 Note that the higher roles have all the capabilities of the lower roles - an Editor can do everything a 510 Contributor can.</p> 511 <table width="80%" border="1"> 512 <caption> 513 Capabilities to Specify Role 514 </caption> 515 <tr> 516 <th scope="col">Role</th> 517 <th scope="col">Capability</th> 518 </tr> 519 <tr> 520 <td>Subscriber</td> 521 <td>read</td> 522 </tr> 523 <tr> 524 <td>Contributor</td> 525 <td>edit_posts</td> 526 </tr> 527 <tr> 528 <td>Author</td> 529 <td>publish_posts</td> 530 </tr> 531 <tr> 532 <td>Editor</td> 533 <td>publish_pages</td> 534 </tr> 535 <tr> 536 <td>Administrator</td> 537 <td>manage_options</td> 538 </tr> 539 <tr> 540 <td>Super Administrator (MultiSite)</td> 541 <td>manage_network</td> 542 </tr> 543 </table> 544 <p> </p> 545 <h3><a name="sitetitlesc" id="sitetitlesc"></a><strong>[site_title style="style" matchtheme=false], 546 [site_tagline style="style" matchtheme=false]</strong></h3> 547 548 <p>The <code>[site_title]</code> and <code>[site_tagline]</code> shortcodes allow you to display the current 549 site title and site tagline. This can be useful in a text widget in the Header Widget Area, for example.</p> 550 <p><em>Note:</em> If you want to position the content of a text widget within a cell of the Header Widget Area, 551 you could use the following 552 example:</p> 553 <p><code>[site_title style='font-size:150%;position:absolute;padding-left:20px;padding-top:30px;']</code></p> 554 555 <p><strong>Shortcode usage:</strong> <code>[site_title style='inline-style' matchtheme=false] [site_tagline 556 style='inline-style' matchtheme=false]</code> 557 <br/> 558 <ol> 559 <li><strong>style='inline-style-rules'</strong> - Allows you to add inline style to wrap output of the 560 shortcode. 561 Don't include the 'style=' or wrapping quotation marks. Do include a ';' at the end of each rule. The 562 output will look like 563 <code>style="your-rules;"</code> - using double quotation marks. 564 </li> 565 <li><strong>matchtheme=true</strong> - Allows you to add match the theme styling as defined in the site 566 header if set to true. 567 This will match the color/style/font of the header version of the site title and tagline with the 568 exception of hide settings. 569 The shortcode version will not be hidden on any device unless you also wrap the shortcode with a 570 [show_if/hide_if] shortcode. 571 </li> 572 573 </ol> 574 575 <h3><a name="bloginfo" id="bloginfo"></a><strong>[bloginfo arg='name' style='your css']</strong></h3> 576 577 <p>This shortcode can be used to access the WordPress function 'get_bloginfo($arg)'. This will return a number 578 of useful 579 strings depending on the value. All the supported values are listed at 580 https://codex.wordpress.org/Function_Reference/get_bloginfo. 581 Some useful values include 'stylesheet_directory' and 'template_directory'. You can wrap the bloginfo output 582 with css added to a <span style="your css">. 583 </p> 584 585 <h3><a name="box" id="box"></a><strong>[box]text[/box]</strong></h3> 586 587 <p> 588 Wrap content in a box.</p> 589 <p><strong>Shortcode Usage:</strong> <code>[box align=left background=#fff border=true border_rule='border-css' 590 border_radius=4 color=#000 margin=1 padding=1 shadow=1 style='style-rules']text[/box]</code></p> 591 <ol> 592 <li><strong>align=align</strong>: Leave blank, or specify left, center, or right for alignment of box within 593 surrounding text. 594 </li> 595 <li><strong>border=true</strong>: True is default. Specify false or 0 for no borders.</li> 596 <li><strong>border_rule='1px solid black</strong>': Specify a compound border CSS value to replace the 597 default '1px solid black'. 598 </li> 599 <li><strong>border_radius=4</strong>: Default is none - specify a px value for the corner radius if you want 600 rounded corners. 601 </li> 602 <li><strong>color=#000</strong>: Default is inherit - specify a valid color for the color of the text in the 603 box. 604 </li> 605 <li><strong>background=#fff</strong>: Default is inherit - specify color for box background color.</li> 606 <li><strong>margin=1</strong>: Default is 0 - specify an 'em' value for margin around the box. Using a 607 margin overrides align parameter. 608 </li> 609 <li><strong>padding=1</strong>: Default 1 - specify an 'em' value for padding inside box.</li> 610 <li><strong>shadow=0</strong>: Default 0 - specify a value from 1 to 5 for a border around the box.</li> 611 <li><strong>style=inline-style</strong>: any additional custom styling for the box</li> 612 <li><strong>width=100</strong>: A percentage width for the box within its surrounding container.</li> 613 </ol> 614 <h3><a name="video" id="video"></a><strong>Video - [vimeo], [youtube]</strong></h3> 615 <p>Weaver X Theme Support supports specialized shortcodes to display video. While there are other ways to embed 616 video, the Weaver X Theme Support versions have two important features. First, they will auto adjust to the 617 width of your content, <em><strong>including</strong></em> the mobile view. Second, they use the latest 618 iframe/HTML5 interface provided by YouTube and Vimeo.</p> 619 <p><strong>Specifying Video Display Size for both shortcodes</strong></p> 620 <p>Weaver X Theme Support supports a common set of options for both the YouTube and Vimeo shortcodes to support 621 displaying your videos with a specific width and correct height. By default, your videos will be displayed 622 using the full width of the content area being used (percent=100). The percent= parameter is used to specify 623 the width you want.</p> 624 <p>The height of the video is automatically determined based on the width and the display ratio of the 625 particular video. </p> 626 <p>You can also account for video resolution, and aspect ratio. The default is to display a horizontal 16:9 627 video. Use the 628 <sd>sd=1</sd> 629 option 630 to display 4:3 horizontal videos. Use 'vertical=1' to display hd videos in 9:16 or sd in 3:4 aspect ratios. 631 </p> 632 <p>You can optionally use the w & h parameters to set your own width and height aspect ratio or size. The 633 default h/w values are 16 and 9. If 634 you provide w/h values, they will override the vertical and sd option values.</p> 635 <p>Finally, you may specify if the video should be centered or no within the display area using "center=0" 636 to not center (centering is on by default).</p> 637 <p>Note - if you want to display more than one video horizontally, use "center=0" and specify an 638 appropriate percentage to fit all the videos.</p> 639 <p><strong>Parameters in Common, with default values shown</strong></p> 640 <ul> 641 <li><strong>percent=100</strong> - By default, normal horizontal videow will be sized to fill the full content space. You can use the 642 percent value to make the video use a percentage of the content space (but mobile will always use full width). 643 Specifying a percent for vertical videos is not recommended, as they will be displayed on all devices with a max width 644 of 444px, which provides a good compromise look on full size displays. 645 </li> 646 <li><strong>center=1</strong> - Specify 'center=0' to disable centering of the video.</li> 647 <li><strong>aspect=hd</strong> - specify an aspect ratio from the following options. Note that using the wrong format 648 will not prevent a video from being displayed - it will be padded with white space around its actual aspect. 649 <ul> 650 <li>aspect=hd or aspect=16:9 - Aspect ratio 16:9, the <em>default</em> if 'aspect' option not specified. This is 651 currently the most common aspect ratio used for videos.</li> 652 <li>aspect=sd or aspect=4:3 - Aspect ratio 4:3, the old pre-hd TV standard.</li> 653 <li>aspect=widescreen or aspect=1.85:1 - Cinematic widescreen format.</li> 654 <li>aspect=anamorphic or aspect=2.39:1 - Anamorphic widescreen format.</li> 655 <li>aspect=70mm or aspect=2.76:1 - 70mm film.</li> 656 <li>aspect=square or aspect=1:1 - shows video as a square (1:1).</li> 657 </ul> 658 </li> 659 <li><strong>sd=0</strong> (Obsolete: aspect is the preferred option) - By default, Weaver X Theme Support will generate sizes for HD/widescreen videos. To display old 660 4:3 standard definition videos, include 'sd=1' in the shortcode, or preferred 'aspect=sd' instead. 661 </li> 662 <li><strong>vertical=0</strong> - Add 'vertical=1' to the shortcode options to show videos vertically (portrait) with current aspect ratio rotated. 663 Vertical videos are automatically sized to a maximum width of 444px which looks good on full size monitors, but is full width on phones. 664 </li> 665 </ul> 666 <h4>Vimeo</h4> 667 <pre><strong>[vimeo vimeo-url id=videoid sd=0 percent=100 center=1 color=#hex 527 668 autoplay=0 loop=0 portrait=1 title=1 byline=1] 528 669 </strong></pre> 529 <p>This will display Vimeo videos. At the minimum, you can provide the standard https://vimeo.com/nnnnn link, or just the video ID number (which is part of the Vimeo Link). The other Vimeo specific options include:</p> 530 <ul> 531 <li>color - You can optionally specify a Vimeo color theme using 6 hex digits for a color value.</li> 532 <li>autoplay - Add 'autoplay=1' to have the video autoplay.</li> 533 <li>loop - Add 'loop=1' to have the video loop.</li> 534 <li>portrait, title, byline - You can specify a value '=0' for these to hide the display of the corresponding element on the Vimeo player. 535 Portrait is the avatar/icon, title is the video title, and byline is source attribution.<br /> 536 </li> 537 </ul> 538 <h4>YouTube</h4> 539 <code><strong>[youtube youtube-url id=videoid sd=0 percent=100 center=1 rel=1 https=0 privacy=0 {youtube options}] 540 </strong></code> 541 <p>This will display YouTube videos. At the minimum, you can provide the standard https://youtu.be/xxxxxx share link (including the options YouTube lets you specify), the long format share link, or just the video ID number using the id=videoid parameter (which is part of the YouTube Link). The other YouTube specific options include:</p> 542 <ul> 543 <li>rel - If you specify 'rel=0', YouTube won't show related videos after the video plays.</li> 544 <li>https - If you specify 'https=1', YouTube will use the https protocol.</li> 545 <li>privacy - If you specify 'privacy=1', YouTube won't use cookies to track your viewing.</li> 546 </ul> 547 <p>In addition to the above [youtube] options, the shortcode also supports most standard YouTube options. These are more fully described on the <a href="https://code.google.com/apis/youtube/player_parameters.html" target="_blank">YouTube Embedded Player Parameters</a> page.</p> 548 <p>The supported options, with Weaver X Theme Support's default values include:</p> 549 <p>'autohide' = '1' . . . . . . 0: always show controls; 1: autohide controls; 2: autohide progress bar<br /> 550 'autoplay' = '0' . . . . . . 1: auto play; 0: don't<br /> 551 'border' = '0' . . . . . . . . 0: no border; 1: border using color1 and color2 (don't seem to work)<br /> 552 'color' = not set . . . . . . progress bar color - red or white<br /> 553 'color1' = not set . . . . . RGB hex value for border color<br /> 554 'color2' = not set . . . . . RGB hex value for control bar bg<br /> 555 'controls' = '1' . . . . . . . 0: hide player controls<br /> 556 'disablekb' = '0' . . . . . . 1: disable keyboard controls<br /> 557 'egm' ='0' . . . . . . . . . . . 1: enable "Enhanced Genie Menu"<br /> 558 'end' = not set . . . . . . . end video this number of seconds from start<br /> 559 'hd' = '0' . . . . . . . . . . . . 1: enable HD playback by default<br /> 560 'iv_load_policy' = '1' . . . 1: show annotations; 3: don't show; 2: discontinued support<br /> 561 'loop' = '0' . . . . . . . . . . . 1: loop video<br /> 562 'modestbranding' = '0' . .1: hide YouTube logo - will still show label in upper right corner<br /> 563 'origin' = not set . . . . . . . See YouTube docs<br /> 564 'playlist' = not set . . . . . . Comma separated list of videoIDs to play (id/url video played 1st)<br /> 565 'showinfo' = '1' . . . . . . . 0: hide video title<br /> 566 'showsearch' = '1' . . . . . 0: hide video searchbox<br /> 567 'start' = not set . . . . . . . start video this number of seconds from start<br /> 568 'theme' = 'dark' . . . . . . . dark or light - display theme for player<br /> 569 'wmode' = 'transparent' . Keeps video behind menu bars, etc. Other values available - see YouTube</p> 570 <h2><a name="widg-sum" id="widg-sum"></a>Widget Summary</h2> 571 <h3><a name="widg-login" id="widg-login"></a>Weaver Login Widget</h3> 572 <p>This simple widget shows a login in link, or a welcome, Site Admin, and Log out choice if the user is logged in.</p> 573 <h3><a name="widg_pp_text" id="widg_pp_text"></a>Weaver Per Page Text</h3> 574 <p>This widget will work like a text widget, but the title and content are defined by custom fields set on a Per Page basis. For any page, define the Custom Field <em>wvrx_ts_pp_title</em>if you want a title, and define Custom Field<em>wvrx_ts_pp_text</em> as the content. Content can include arbitrary text, HTML, and shortcodes. The text will not automatically add paragraphs. The widget will display only if the custom fields are defined when that page is displayed. (This widget won't display on the default blog or other archive-like pages.)</p> 575 <h3><a name="widg_text_2" id="widg_text_2"></a>Weaver Text 2 Col</h3> 576 <p>This widget lets you add two columns of text. It is most useful in wide widget areas such as a content top or bottom widget area, or a wide footer widget area.</p> 577 <p> </p> 578 <h2><br /> 579 </h2> 580 <p>The Weaver X Theme Support Plugin and this document are © 2017, Bruce E. Wampler. <a ref="https://weavertheme.com">Web Site - WeaverTheme.com</a></p> 670 <p>This will display Vimeo videos. At the minimum, you can provide the standard https://vimeo.com/nnnnn link, or 671 just the video ID number (which is part of the Vimeo Link). The other <em>Vimeo specific</em> options include:</p> 672 <ul> 673 <li>color - You can optionally specify a Vimeo color theme using 6 hex digits for a color value.</li> 674 <li>autoplay - Add 'autoplay=1' to have the video autoplay.</li> 675 <li>loop - Add 'loop=1' to have the video loop.</li> 676 <li>portrait, title, byline - You can specify a value '=0' for these to hide the display of the 677 corresponding element on the Vimeo player. 678 Portrait is the avatar/icon, title is the video title, and byline is source attribution.<br/> 679 </li> 680 </ul> 681 <h4>YouTube</h4> 682 <code><strong>[youtube youtube-url id=videoid sd=0 percent=100 center=1 rel=1 https=0 privacy=0 {youtube 683 options}] 684 </strong></code> 685 <p>This will display YouTube videos. At the minimum, you can provide the standard https://youtu.be/xxxxxx share 686 link (including the options YouTube lets you specify), the long format share link, or just the video ID 687 number using the id=videoid parameter (which is part of the YouTube Link). The other <em>YouTube</em> specific 688 options include:</p> 689 <ul> 690 <li><strong>rel</strong> - If you specify 'rel=0', YouTube won't show related videos after the video plays.</li> 691 <li><strong>https</strong> - If you specify 'https=1', YouTube will use the https protocol. (obsolete)</li> 692 <li><strong>privacy</strong> - If you specify 'privacy=1', YouTube won't use cookies to track your viewing.</li> 693 </ul> 694 <p>In addition to the above [youtube] options, the shortcode also supports most standard YouTube options. These 695 are more fully described on the <a href="https://code.google.com/apis/youtube/player_parameters.html" 696 target="_blank">YouTube Embedded Player Parameters</a> page.</p> 697 <p>The supported options, with Weaver X Theme Support's default values include:</p> 698 <p>'autohide' = '1' . . . . . . 0: always show controls; 1: autohide controls; 2: autohide progress bar<br/> 699 'autoplay' = '0' . . . . . . 1: auto play; 0: don't<br/> 700 'border' = '0' . . . . . . . . 0: no border; 1: border using color1 and color2 (don't seem to work)<br/> 701 'color' = not set . . . . . . progress bar color - red or white<br/> 702 'color1' = not set . . . . . RGB hex value for border color<br/> 703 'color2' = not set . . . . . RGB hex value for control bar bg<br/> 704 'controls' = '1' . . . . . . . 0: hide player controls<br/> 705 'disablekb' = '0' . . . . . . 1: disable keyboard controls<br/> 706 'egm' ='0' . . . . . . . . . . . 1: enable "Enhanced Genie Menu"<br/> 707 'end' = not set . . . . . . . end video this number of seconds from start<br/> 708 'hd' = '0' . . . . . . . . . . . . 1: enable HD playback by default<br/> 709 'iv_load_policy' = '1' . . . 1: show annotations; 3: don't show; 2: discontinued support<br/> 710 'loop' = '0' . . . . . . . . . . . 1: loop video<br/> 711 'modestbranding' = '0' . .1: hide YouTube logo - will still show label in upper right corner<br/> 712 'origin' = not set . . . . . . . See YouTube docs<br/> 713 'playlist' = not set . . . . . . Comma separated list of videoIDs to play (id/url video played 1st)<br/> 714 'showinfo' = '1' . . . . . . . 0: hide video title<br/> 715 'showsearch' = '1' . . . . . 0: hide video searchbox<br/> 716 'start' = not set . . . . . . . start video this number of seconds from start<br/> 717 'theme' = 'dark' . . . . . . . dark or light - display theme for player<br/> 718 'wmode' = 'transparent' . Keeps video behind menu bars, etc. Other values available - see YouTube</p> 719 <h2><a name="widg-sum" id="widg-sum"></a>Widget Summary</h2> 720 <h3><a name="widg-login" id="widg-login"></a>Weaver Login Widget</h3> 721 <p>This simple widget shows a login in link, or a welcome, Site Admin, and Log out choice if the user is logged 722 in.</p> 723 <h3><a name="widg_pp_text" id="widg_pp_text"></a>Weaver Per Page Text</h3> 724 <p>This widget will work like a text widget, but the title and content are defined by custom fields set on a Per 725 Page basis. For any page, define the Custom Field <em>wvrx_ts_pp_title</em>if you want a title, and define 726 Custom Field<em>wvrx_ts_pp_text</em> as the content. Content can include arbitrary text, HTML, and 727 shortcodes. The text will not automatically add paragraphs. The widget will display only if the custom 728 fields are defined when that page is displayed. (This widget won't display on the default blog or other 729 archive-like pages.)</p> 730 <h3><a name="widg_text_2" id="widg_text_2"></a>Weaver Text 2 Col</h3> 731 <p>This widget lets you add two columns of text. It is most useful in wide widget areas such as a content top or 732 bottom widget area, or a wide footer widget area.</p> 733 <p> </p> 734 <h2><br/> 735 </h2> 736 <p>The Weaver X Theme Support Plugin and this document are © 2017, Bruce E. Wampler. <a 737 ref="https://weavertheme.com">Web Site - WeaverTheme.com</a></p> 581 738 582 739 </div> -
weaverx-theme-support/trunk/includes/wvrx-ts-runtime-lib.php
r2891913 r2955134 49 49 50 50 echo ' (V ' . WVRX_TS_VERSION . ')'; ?></strong><br/> 51 <?php echo wp_kses_post(__('This section shows the shortcodes and widgets available with Weaver Xtreme (and Foundation)Theme Support.51 <?php echo wp_kses_post(__('This section shows the shortcodes and widgets available with Weaver Xtreme Theme Support. 52 52 Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" class="dashicons dashicons-editor-help"></span> button to open help entry.', 'weaverx-theme-support' /*adm*/)); ?> 53 53 </p> … … 126 126 <br/> 127 127 <code><?php wvrx_ts_fix_short($prefix, esc_html__('[tab_group][tab]...[/tab][tab]...[/tab][/tab_group]', 'weaverx-theme-support' /*adm*/)); ?></code> 128 </li> 129 <li> 130 <?php wvrx_ts_fix_short($prefix, wp_kses_post(__('<span class="atw-blue">Video - [vimeo], [youtube] shared</span> - Options for both Vimeo/YouTube shortcodes. Click the<span style="color:red; vertical-align: middle; margin-left:.25em;" class="dashicons dashicons-editor-help"></span> for specific help.', 'weaverx-theme-support' /*adm*/))); ?> 131 <br/> 132 <code><?php wvrx_ts_fix_short($prefix, esc_html__('[vimeo or youtube aspect=hd center=1 percent=100 sd=0 vertical=0]', 'weaverx-theme-support' /*adm*/)); ?></code> 128 133 </li> 129 134 <li><?php wvrx_ts_fix_short($prefix, wp_kses_post(__('<span class="atw-blue">Vimeo - [vimeo]</span> - Display video from Vimeo responsively, with options', 'weaverx-theme-support' /*adm*/))); ?> -
weaverx-theme-support/trunk/includes/wvrx-ts-shortcodes.php
r2899618 r2955134 325 325 } 326 326 327 return wp_kses_post($before . $title . $after) ;327 return wp_kses_post($before . $title . $after); 328 328 } 329 329 … … 487 487 488 488 // =============== [youtube id=videoid sd=0 hd=0 related=0 https=0 privacy=0 w=0 h=0] ====================== 489 490 489 491 490 function wvrx_ts_sc_yt($args = ''): ?string … … 532 531 'theme' => 'dark', 533 532 'wmode' => 'transparent', 534 533 'vertical' => false, 534 'aspect' => 'hd', 535 535 ), $args)); 536 536 … … 566 566 $theme = esc_attr($theme); 567 567 $wmode = esc_attr($wmode); 568 $vertical = esc_attr($vertical); 569 $aspect = strtolower(esc_attr($aspect)); 568 570 569 571 … … 628 630 $allowfull = $fullscreen ? ' allowfullscreen="allowfullscreen"' : ''; 629 631 630 $cntr1 = $center ? "<div class=\"wvrx-video wvrx-youtube\" style=\"margin-left:auto;margin-right:auto;max-width:$percent%;\">" : 631 "<div class=\"wvrx-video wvrx-youtube\" style=\"max-width:$percent%;\">"; 632 if ($vertical && $percent == 100) { 633 $cntr1 = "<div class=\"wvrx-video wvrx-youtube\" style=\"max-width: 444px; display:block;margin:0 auto 10px;\">"; 634 } else { 635 $cntr1 = $center ? "<div class=\"wvrx-video wvrx-youtube\" style=\"margin-left:auto;margin-right:auto;max-width:$percent%;\">" : 636 "<div class=\"wvrx-video wvrx-youtube\" style=\"max-width:$percent%;\">"; 637 638 } 632 639 $cntr2 = '</div>'; 633 $h = 9; 634 $w = 16; 640 635 641 if ($sd) { 636 $h = 3; 637 $w = 4; 638 } 642 $aspect = 'sd'; // allow old setting to override $aspect 643 } 644 $h = wvrx_ts_video_height($aspect, $vertical); 645 $w = wvrx_ts_video_width($aspect, $vertical); 646 639 647 640 648 return "\n" . wp_kses_post($cntr1) . '<iframe src="' . wp_kses_post($url) 641 . '" style="border-width:0px" width="' . wp_kses_post($w) . '" height="' . wp_kses_post($h) . $allowfull . '></iframe>'649 . '" style="border-width:0px" width="' . esc_attr($w) . '" height="' . esc_attr($h) . $allowfull . '></iframe>' 642 650 . $cntr2 . "\n"; 643 651 } … … 661 669 'byline' => true, 662 670 'percent' => 100, 671 'vertical' => false, 663 672 'center' => 1, 673 'aspect' => 'hd', 664 674 ), $args)); 665 675 … … 673 683 $byline = esc_attr($byline); 674 684 $percent = esc_attr($percent); 685 $vertical = esc_attr($vertical); 686 $center = esc_attr($center); 687 $aspect = strtolower(esc_attr($aspect)); 688 675 689 676 690 if ($center != 1) … … 712 726 } 713 727 714 715 $cntr1 = $center ? "<div class=\"wvrx-video wvrx-vimeo\" style=\"margin-left:auto;margin-right:auto;max-width:" . $percent . "%;\">" : 716 "<div class=\"wvrx-video wvrx-vimeo\" style=\"max-width:" . $percent . "%;\">"; 728 if ($vertical && $percent == 100) { 729 $cntr1 = "<div class=\"wvrx-video wvrx-vimeo\" style=\"max-width: 444px; display:block;margin:0 auto 10px;\">"; 730 } else { 731 $cntr1 = $center ? "<div class=\"wvrx-video wvrx-vimeo\" style=\"margin-left:auto;margin-right:auto;max-width:" . $percent . "%;\">" : 732 "<div class=\"wvrx-video wvrx-vimeo\" style=\"max-width:" . $percent . "%;\">"; 733 } 734 717 735 $cntr2 = '</div>'; 718 $h = 9; 719 $w = 16; 736 720 737 if ($sd) { 721 $h = 3; 722 $w = 4; 723 } 738 $aspect = 'sd'; // allow old setting to override $aspect 739 } 740 741 $height = wvrx_ts_video_height($aspect, $vertical); 742 $width = wvrx_ts_video_width($aspect, $vertical); 743 724 744 725 745 return "\n" . $cntr1 . '<iframe src="' . wp_kses_post($url) 726 . '" style="border-width:0px" width="' . $w . '" height="' . $h . '" allowfullscreen></iframe>'746 . '" style="border-width:0px" width="' . $width . '" height="' . $height . '" frameborder="0" allowfullscreen="allowfullscreen"></iframe>' 727 747 . $cntr2 . "\n"; 728 748 } … … 737 757 738 758 return $opts; 759 } 760 761 function wvrx_ts_video_width($aspect, $vertical) 762 { 763 /* 764 * aspect=hd or aspect=16:9 - Aspect ratio 16:9, the <em>default</em> if 'aspect' option not specified. 765 <li>aspect=sd or aspect=4:3- Aspect ratio 4:3, the old pre-hd TV standard.</li> 766 <li>aspect=1.85:1 - Cinematic widescreen format.</li> 767 aspect=2.35:1 - Anamorphic widescreen format.</li> 768 <li>aspect=2.76:1 - 70mm film.</li> 769 */ 770 771 switch ($aspect) { 772 case 'sd': 773 case 'SD': 774 case '4:3': 775 if ($vertical) { 776 return 3; 777 } else { 778 return 4; 779 } 780 // break; 781 case '1.85:1': 782 case 'widescreen': 783 if ($vertical) { 784 return 100; 785 } else { 786 return 185; 787 } 788 // break; 789 case '2.35:1': 790 case '2.39:1': 791 case 'anamorphic': 792 if ($vertical) { 793 return 100; 794 } else { 795 return 235; 796 } 797 // break; 798 case '2.76:1': 799 case '70mm': 800 if ($vertical) { 801 return 100; 802 } else { 803 return 276; 804 } 805 // break; 806 case '1:1': 807 case 'square': 808 return 100; 809 // case: hd , 16:9 810 default: // hd 16:9 is the default 811 if ($vertical) { 812 return 9; 813 } else { 814 return 16; 815 } 816 // break; 817 } 818 } 819 820 function wvrx_ts_video_height($aspect, $vertical) 821 { 822 switch ($aspect) { 823 case 'sd': 824 case 'SD': 825 case '4:3': 826 if ($vertical) { 827 return 4; 828 } else { 829 return 3; 830 } 831 // break; 832 case '1.85:1': 833 case 'widescreen': 834 if ($vertical) { 835 return 185; 836 } else { 837 return 100; 838 } 839 // break; 840 case '2.35:1': 841 case '2.39:1': 842 case 'anamorphic': 843 if ($vertical) { 844 return 235; 845 } else { 846 return 100; 847 } 848 // break; 849 case '2.76:1': 850 case '70mm': 851 if ($vertical != 'no') { // 'vertical' specified 852 return 276; 853 } else { 854 return 100; 855 } 856 // break; 857 case '1:1': 858 case 'square': 859 return 100; 860 861 // case: hd , 16:9 862 default: // hd 16:9 is the default 863 if ($vertical) { 864 return 16; 865 } else { 866 return 9; 867 } 868 // break; 869 } 739 870 } 740 871 -
weaverx-theme-support/trunk/readme.txt
r2899618 r2955134 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 10 Text Domain: weaverx-theme-support 11 Requires at least: 5.711 Requires at least: 6.0 12 12 Requires PHP: 7.2 13 Tested up to: 6. 214 Stable tag: 6. 2.913 Tested up to: 6.3 14 Stable tag: 6.3.0 15 15 16 16 A useful shortcode and widget collection for Weaver Xtreme … … 76 76 77 77 == ChangeLog = 78 = 6.3.0 = 79 * Update: WP 6.3 compatibility 80 * Tweak: Multisite Super Admin validation 81 82 = 6.2.10 = 83 New: Added Huge Font Size choice to match Weaver Xtreme 6.2.1 Customizer choices 84 78 85 = 6.2.8 - 6.2.9 = 79 86 * Tweaks: Translation message checks -
weaverx-theme-support/trunk/weaverx-ts.php
r2899618 r2955134 6 6 Author: wpweaver 7 7 Author URI: http://weavertheme.com/about/ 8 Version: 6. 2.98 Version: 6.3.0 9 9 License: GPL V3 10 Requires PHP: 7.2 11 Requires at least: 6.0 12 Tested up to: 6.3 13 Stable tag: 6.3.0 10 14 11 15 Weaver Xtreme Theme Support … … 50 54 strpos($theme, '/weaver-xtreme-5') !== false )) { // only load if Weaver Xtreme is the theme 51 55 52 define('WVRX_TS_VERSION', '6. 2.9');56 define('WVRX_TS_VERSION', '6.3.0'); 53 57 define('WVRX_TS_PAGEBUILDERS', true); 54 58
Note: See TracChangeset
for help on using the changeset viewer.