Changeset 2022169
- Timestamp:
- 01/30/2019 07:58:04 PM (7 years ago)
- Location:
- vc-simple-all-responsive
- Files:
-
- 11 added
- 4 edited
-
tags/1.3 (added)
-
tags/1.3/assets (added)
-
tags/1.3/assets/icon-128x128.png (added)
-
tags/1.3/assets/icon-256x256.png (added)
-
tags/1.3/assets/icon.svg (added)
-
tags/1.3/assets/media.css (added)
-
tags/1.3/assets/resp-icon.png (added)
-
tags/1.3/index.php (added)
-
tags/1.3/readme.txt (added)
-
tags/1.3/vc-sar-element.php (added)
-
tags/1.3/vc-simple-all-responsive.php (added)
-
trunk/assets/media.css (modified) (9 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vc-sar-element.php (modified) (4 diffs)
-
trunk/vc-simple-all-responsive.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vc-simple-all-responsive/trunk/assets/media.css
r2021580 r2022169 1 .disp_block { 2 display: block; 1 /* 2 ver 1.3 3 */ 4 5 .disp_block, .disp_hid_ld, .disp_vis_ld, .disp_hid_bd, .disp_vis_bd, .disp_hid_ad, .disp_vis_ad, .disp_hid_tl, 6 .disp_vis_tl, .disp_hid_tp, .disp_vis_tp, .disp_hid_at, .disp_vis_at, .disp_hid_ap, .disp_vis_ap, .disp_hid_pp, .disp_vis_pp { 7 position: static !important; 3 8 } 4 9 … … 12 17 */ 13 18 14 @media all and(min-width: 1920px) {19 @media (min-width: 1920px) { 15 20 .disp_hid_ld { 16 display: none !important; 21 position: absolute !important; 22 top: -9999px !important; 23 left: -9999px !important; 17 24 } 18 25 } 19 26 20 @media all and(max-width: 1919px) {27 @media (max-width: 1919px) { 21 28 .disp_vis_ld { 22 display: none !important; 29 position: absolute !important; 30 top: -9999px !important; 31 left: -9999px !important; 23 32 } 24 33 } … … 29 38 */ 30 39 31 @media all and(min-width: 1367px) {40 @media (min-width: 1367px) { 32 41 .disp_hid_bd { 33 display: none !important; 42 position: absolute !important; 43 top: -9999px !important; 44 left: -9999px !important; 34 45 } 35 46 } 36 47 37 @media all and(max-width: 1366px) {48 @media (max-width: 1366px) { 38 49 .disp_vis_bd { 39 display: none !important; 50 position: absolute !important; 51 top: -9999px !important; 52 left: -9999px !important; 40 53 } 41 54 } … … 45 58 */ 46 59 47 @media all and(min-width: 1024px) {60 @media (min-width: 1024px) { 48 61 .disp_hid_ad { 49 display: none !important; 62 position: absolute !important; 63 top: -9999px !important; 64 left: -9999px !important; 50 65 } 51 66 } 52 67 53 @media all and(max-width: 1023px) {68 @media (max-width: 1023px) { 54 69 .disp_vis_ad { 55 display: none !important; 70 position: absolute !important; 71 top: -9999px !important; 72 left: -9999px !important; 56 73 } 57 74 } … … 62 79 */ 63 80 64 @media all and(orientation:landscape) and (min-width: 962px) and (max-width: 1366px) {81 @media (orientation:landscape) and (min-width: 962px) and (max-width: 1366px) { 65 82 .disp_hid_tl { 66 display: none !important; 83 position: absolute !important; 84 top: -9999px !important; 85 left: -9999px !important; 67 86 } 68 87 } 69 88 70 @media all and (orientation:portrait), all and (max-width: 961px), all and(min-width: 1367px) {89 @media (orientation:portrait), (max-width: 961px), (min-width: 1367px) { 71 90 .disp_vis_tl { 72 display: none !important; 91 position: absolute !important; 92 top: -9999px !important; 93 left: -9999px !important; 73 94 } 74 95 } … … 79 100 */ 80 101 81 @media all and (orientation:portrait) and(min-width: 600px) and (max-width: 1024px) {102 @media (orientation:portrait), (min-width: 600px) and (max-width: 1024px) { 82 103 .disp_hid_tp { 83 display: none !important; 104 position: absolute !important; 105 top: -9999px !important; 106 left: -9999px !important; 84 107 } 85 108 } 86 109 87 @media all and (orientation:portrait), all and (max-width: 599px), all and(min-width: 1025px) {110 @media (orientation:portrait), (max-width: 599px), (min-width: 1025px) { 88 111 .disp_vis_tp { 89 display: none !important; 112 position: absolute !important; 113 top: -9999px !important; 114 left: -9999px !important; 90 115 } 91 116 } … … 96 121 */ 97 122 98 @media all and(min-width: 768px) and (max-width: 1025px) {123 @media (min-width: 768px) and (max-width: 1025px) { 99 124 .disp_hid_at { 100 display: none !important; 125 position: absolute !important; 126 top: -9999px !important; 127 left: -9999px !important; 101 128 } 102 129 } 103 130 104 @media all and (max-width: 767px), all and(min-width: 1024px) {131 @media (max-width: 767px), (min-width: 1024px) { 105 132 .disp_vis_at { 106 display: none !important; 133 position: absolute !important; 134 top: -9999px !important; 135 left: -9999px !important; 107 136 } 108 137 } … … 113 142 */ 114 143 115 116 @media all and (max-width: 767px) { 144 @media (max-width: 767px) { 117 145 .disp_hid_ap { 118 display: none !important; 146 position: absolute !important; 147 top: -9999px !important; 148 left: -9999px !important; 119 149 } 120 150 } 121 151 122 @media all and(min-width: 768px) {152 @media (min-width: 768px) { 123 153 .disp_vis_ap { 124 display: none !important; 154 position: absolute !important; 155 top: -9999px !important; 156 left: -9999px !important; 125 157 } 126 158 } … … 131 163 */ 132 164 133 134 @media all and (max-width: 567px) { 165 @media (orientation:portrait) and (max-width: 567px) { 135 166 .disp_hid_pp { 136 display: none !important; 167 position: absolute !important; 168 top: -9999px !important; 169 left: -9999px !important; 137 170 } 138 171 } 139 172 140 @media all and(min-width: 568px) {173 @media (orientation:portrait), (min-width: 568px) { 141 174 .disp_vis_pp { 142 display: none !important; 175 position: absolute !important; 176 top: -9999px !important; 177 left: -9999px !important; 143 178 } 144 179 } -
vc-simple-all-responsive/trunk/readme.txt
r2021463 r2022169 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 Stable tag: 1. 211 Stable tag: 1.3 12 12 13 13 VC Simple All Responsive makes it easier to develop responsive websites when using WPBakery (former Visual Composer) Page Builder. Works on elements within columns. … … 52 52 1. Search for 'vc simple all responsive' on WordPress.org 53 53 2. Download 'VC Simple All Responsive' plugin from WordPress.org. 54 3. Upload the 'vs-simple-all-responsive directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...)54 3. Upload the 'vs-simple-all-responsive� directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...) 55 55 4. Activate 'VC Simple All Responsive' plugin from your Plugins page. 56 56 … … 72 72 73 73 == Changelog == 74 = 1.3 = 75 * removed a couple of bugs and a completely changed the way of elements hiding 76 74 77 = 1.2 = 75 78 * Reorganized code - removed issues with some topics on WP 5+. -
vc-simple-all-responsive/trunk/vc-sar-element.php
r2021459 r2022169 2 2 3 3 /* 4 Element Description: Directory 4 version 1.3 5 5 */ 6 6 … … 27 27 'name' => __("Simple All Responsive", 'vc-simple-all-responsive'), 28 28 'base' => "simple_all_responsive", 29 //'class' => 'simple-all-responsive-class',30 29 'show_settings_on_create' => false, 31 'content_element' => true,30 //'content_element' => true, 32 31 'is_container' => true, 32 //'controls' => 'full', 33 'js_view' => 'VcColumnView', 33 34 'description' => __("Provides responsiveness to all builder internal elements", 'vc-simple-all-responsive'), 34 35 'category' => __('Content', 'text-domain'), … … 246 247 247 248 //display dependings 248 $css_rule = "disp_block"; 249 if($env_visibility === 'hid_ld'): 249 $css_rule = "disp_block"; 250 if($response_exist): // veto on mobile and/or user agent corespond - anyhow no display 251 $css_rule = "disp_none"; 252 elseif($env_visibility === 'hid_ld'): 250 253 $css_rule = 'disp_hid_ld'; 251 254 elseif($env_visibility === 'hid_bd'): … … 282 285 283 286 // veto on mobile and/or user agent corespond - anyhow no display 284 if($response_exist):285 $css_rule = "disp_none";286 endif;287 287 288 288 -
vc-simple-all-responsive/trunk/vc-simple-all-responsive.php
r2021459 r2022169 5 5 * Plugin URI: https://wordpress.org/plugins/vc-simple-all-responsive/ 6 6 * Description: Makes it easier to develop responsive websites when using WPBakery (former Visual Composer) Page Builder. Works on elements within columns. 7 * Version: 1. 27 * Version: 1.3 8 8 * Author: Obren Markov 9 9 * Author URI: http://markovobren.vojvodina.xyz/en/ … … 28 28 // Link directory stylesheet 29 29 30 function community_directory_scripts() {31 wp_enqueue_style( ' community_directory_stylesheet', plugin_dir_url( __FILE__ ) . 'assets/media.css' );30 function simple_responsive_scripts() { 31 wp_enqueue_style( 'simple_responsive_stylesheet', plugin_dir_url( __FILE__ ) . 'assets/media.css' ); 32 32 } 33 add_action( 'wp_enqueue_scripts', ' community_directory_scripts' );33 add_action( 'wp_enqueue_scripts', 'simple_responsive_scripts' );
Note: See TracChangeset
for help on using the changeset viewer.