Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ujw0l committed Aug 13, 2024
1 parent aa85184 commit ea237ad
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions css/ctcl-admin-block.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ cursor:pointer;
.ctcl-variation-1 label{
display:block!important;
}
.ctcl-variation-2 select,
.ctcl-variation-1 select{
#ctcl-variation-2 ,
#ctcl-variation-1 {
width:195px!important;
}

Expand Down
2 changes: 1 addition & 1 deletion ctc-lite.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function requiredAjax(){
public function adminMenu(){
if ( is_admin()):
$pendingOrder = "<span '".__('Pending Orders','ctc-lite')."' class='update-plugins'><span class='plugin-count'> {$this->ctclProcessing->getTotalPendingOrders()} </span><span>";
add_menu_page( __('CTC Lite', 'ctc-lite' ),__('CTC Lite ', 'ctc-lite').$pendingOrder,'administrator','ctclAdminPanel',array($this->ctclHtml, 'adminPanelHtml'),'dashicons-store','2');
add_menu_page( __('CTC Lite', 'ctc-lite' ),__('CT Commerce ', 'ctc-lite').$pendingOrder,'administrator','ctclAdminPanel',array($this->ctclHtml, 'adminPanelHtml'),'dashicons-store','2');
endif;
}

Expand Down
2 changes: 1 addition & 1 deletion js/ctcl-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ctclAdminJs {

//lay bricks on shipping tab
if (0 < document.querySelectorAll('.ctcl-shipping-tab-fieldset').length) {
let masonry = new jsMasonry('.ctcl-shipping-tab-fieldset', { elSelector: 'fieldset', elWidth: 550, elMargin: 5, callback: (el) => el.style.opacity = 1, });
let masonry = new jsMasonry('.ctcl-shipping-tab-fieldset', { elSelector: 'fieldset', elWidth: 525, elMargin: 5, callback: (el) => el.style.opacity = 1, });
}
}

Expand Down
6 changes: 3 additions & 3 deletions js/ctcl-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ registerBlockType('ctc-lite/ctc-lite-checkout-block', {

attributes.couponAvail && el('div',{},
el('span',{ style:{display:'inline-block'} },
el(TextControl,{ style:{width:"150px", display:'inline-block' }, type:'text' ,label: __('Coupon Code :', 'ctc-lite') }, ),
el(TextControl,{ style:{width:"150px", display:'inline-block' }, type:'text' ,label: __('Coupon Code : ', 'ctc-lite') }, ),
),
el('span',{style:{float:"right",marginLeft:'30px'} },
el(Button,{style: { color:'rgba(255,255,255,1)', backgroundColor: attributes.buttonColor }, className:'ctcl-apply-cuopon-code', }, __('Apply','ctc-lite') )
Expand Down Expand Up @@ -409,7 +409,7 @@ registerBlockType('ctc-lite/ctc-lite-checkout-block', {

}),

attributes.couponAvail && el( TextControl,{ value:attributes.couponCode, type:'text', onChange:val=> setAttributes({couponCode:val}) , label:__('Coupon Code','ctc-lite') }),
attributes.couponAvail && el( TextControl,{ value:attributes.couponCode, type:'text', onChange:val=> setAttributes({couponCode:val}) , label:__('Coupon Code : ','ctc-lite') }),
attributes.couponAvail && el( TextControl,{ value:attributes.amount, type:'number',min:0,max:100, onChange:val=> setAttributes({amount:val}), label:__('Amount in percent','ctc-lite') }),
),
el(PanelBody, null,
Expand Down Expand Up @@ -438,7 +438,7 @@ registerBlockType('ctc-lite/ctc-lite-checkout-block', {
),
attributes.couponAvail && el('div',{ style:{'display':'none'} , className:'ctcl-coupon-code-container' },
el('span',{ style:{display:'inline-block',marginLeft:'200px'} },
el('label',{style:{fontSize:'15px'}},__('Coupon Code :', 'ctc-lite')),
el('label',{style:{fontSize:'15px'}},__('Coupon Code : ', 'ctc-lite')),
el("input",{ style:{width:"150px", height:'25px', display:'inline-block' },id:'ctcl-coupon-code', type:'text' }, ),
),
el('span',{style:{float:"right",marginLeft:'30px'} },
Expand Down

0 comments on commit ea237ad

Please sign in to comment.