Просмотр исходного кода

UNA Market like on Boonex site.

AntonLV 10 лет назад
Родитель
Сommit
5a666359d1

+ 4 - 4
inc/js/jquery.webForms.js

@@ -65,11 +65,11 @@
                     eFormSection.removeClass('bx-form-collapsed');
 
                     if (eFormSection.hasClass('bx-form-section-hidden')) {
-                        $('.bx-form-section-content', eFormSection).hide();
+                        $('.bx-form-section-content:first', eFormSection).hide();
                         eFormSection.removeClass('bx-form-section-hidden');
                     }
 
-                    $('.bx-form-section-content', eFormSection).slideDown(function () {
+                    $('.bx-form-section-content:first', eFormSection).slideDown(function () {
                         eFormSection.removeClass('bx-form-section-hidden');
                     }); 
 
@@ -79,7 +79,7 @@
 
                     eFormSection.addClass('bx-form-collapsed');
 
-                    $('.bx-form-section-content', eFormSection).slideUp(function () {                    
+                    $('.bx-form-section-content:first', eFormSection).slideUp(function () {                    
                         eFormSection.addClass('bx-form-collapsed bx-form-section-hidden');
                     }); 
                 }
@@ -87,7 +87,7 @@
             };
 
             $('<u class="bx-form-section-toggler"><i class="sys-icon chevron-right"></i></u>').prependTo($('legend', eFormSection));
-            $('legend', eFormSection).click(fCallback);
+            $('legend:first', eFormSection).click(fCallback);
         });
 
         

+ 0 - 34
studio/template/scripts/BxBaseStudioStore.php

@@ -332,9 +332,6 @@ class BxBaseStudioStore extends BxDolStudioStore
         	$sIcon = BxDolStudioUtils::getModuleIcon($aModule, 'store');
         	$bIcon = strpos($sIcon, '.') !== false;
 
-        	$sImage = ''; //TODO: Use it if local Cover image will be used. BxDolStudioUtils::getModuleImage($aModule, 'std-sc.png');
-        	$bImage = strpos($sImage, '.') !== false;
-
         	$bInstalled = $aModule['installed'];
         	$bQueued = !$bInstalled && $this->oDb->isQueued('action', $aModule['dir']);
 
@@ -353,20 +350,6 @@ class BxBaseStudioStore extends BxDolStudioStore
 	                	'icon_url' => $sIcon,
 	            	),
 	            ),
-                'bx_if:no_image' => array (
-	                'condition' => !$bImage,
-	                'content' => array(
-	                	'note' => $aModule['note'],
-	                	'strecher' => mb_strlen($aModule['note']) > 240 ? '' : str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ', round((240 - mb_strlen($aModule['note'])) / 6))
-            		),
-	            ),
-                'bx_if:image' => array (
-	                'condition' => $bImage,
-	                'content' => array(
-	                	'image_url' => $sImage,
-	            		'strecher' => str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ', 40)
-	            	),
-	            ),
                 'title' => $aModule['title'],
                 'vendor' => $aModule['vendor'],
                 'version' => $aModule['version'],
@@ -391,9 +374,6 @@ class BxBaseStudioStore extends BxDolStudioStore
         	$sIcon = BxDolStudioUtils::getModuleIcon(array('type' => $aUpdate['module_type'], 'name' => $aUpdate['module_name'], 'dir' => $aUpdate['module_dir']), 'store');
         	$bIcon = strpos($sIcon, '.') !== false;
 
-        	$sImage = '';
-        	$bImage = strpos($sImage, '.') !== false;
-
             $sUpdates .= $oTemplate->parseHtmlByName('str_update_v1.html', array(
                 'js_object' => $sJsObject,
             	'name' => $aUpdate['module_name'],
@@ -409,20 +389,6 @@ class BxBaseStudioStore extends BxDolStudioStore
 	                	'icon_url' => $sIcon,
 	            	),
 	            ),
-                'bx_if:no_image' => array (
-	                'condition' => !$bImage,
-	                'content' => array(
-	                	'note' => $aUpdate['title'],
-	                	'strecher' => mb_strlen($aUpdate['title']) > 240 ? '' : str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ', round((240 - mb_strlen($aUpdate['title'])) / 6))
-            		),
-	            ),
-                'bx_if:image' => array (
-	                'condition' => $bImage,
-	                'content' => array(
-	                	'image_url' => $sImage,
-	            		'strecher' => str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ', 40)
-	            	),
-	            ),
                 'title' => $aUpdate['title'],
                 'vendor' => $aUpdate['vendor'],
                 'versions' => _t('_adm_str_txt_update_from_to', $aUpdate['version_from'], $aUpdate['version_to']),

+ 0 - 16
studio/template/str_product_v1.html

@@ -22,22 +22,6 @@
 				</div>
 			</div>
 		</div>
-		<!-- Cover section -->
-        <div class="bx-std-product-cover">
-			<bx_if:no_image>
-				<div class="bx-def-gal-img-column">
-		            <div class="bx-std-pc-no-cover bx-def-gal-div-size bx-def-box bx-def-font-middle bx-def-font-grayed bx-def-padding bx-def-box-sizing">
-		                __note__
-		                <div class="bx-std-product-strecher">__strecher__</div>
-		            </div>
-		        </div>
-			</bx_if:no_image>
-			<bx_if:image>
-				<div class="bx-std-pc-cover bx-def-gal-div-size bx-def-font-middle" style="background-image:url(__image_url__)">
-	                <div class="bx-std-product-strecher">__strecher__</div>
-	            </div>
-			</bx_if:image>
-        </div>
         <!-- Actions section -->
         <div class="bx-std-product-actions bx-def-padding-sec">
 	        <div class="bx-std-pa-info">

+ 0 - 16
studio/template/str_update_v1.html

@@ -22,22 +22,6 @@
 				</div>
 			</div>
 		</div>
-		<!-- Cover section -->
-        <div class="bx-std-product-cover">
-            <bx_if:no_image>
-				<div class="bx-def-gal-img-column">
-		            <div class="bx-std-pc-no-cover bx-def-gal-div-size bx-def-box bx-def-font-middle bx-def-font-grayed bx-def-padding bx-def-box-sizing">
-		                __note__
-		                <div class="bx-std-product-strecher">__strecher__</div>
-		            </div>
-		        </div>
-			</bx_if:no_image>
-			<bx_if:image>
-				<div class="bx-std-pc-cover bx-def-gal-div-size bx-def-font-middle" style="background-image:url(__image_url__)">
-	                <div class="bx-std-product-strecher">__strecher__</div>
-	            </div>
-			</bx_if:image>
-        </div>
         <!-- Actions section -->
         <div class="bx-std-product-actions bx-def-padding-sec">
 	        <div class="bx-std-pa-info">