Skip to content

Commit

Permalink
Merge pull request #390 from Invizo/develop
Browse files Browse the repository at this point in the history
Develop merge with master
  • Loading branch information
code-with-mehedi authored Mar 6, 2024
2 parents 1d1cf71 + 38f34f5 commit 3349875
Show file tree
Hide file tree
Showing 66 changed files with 1,724 additions and 26,223 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: storegrowth-sales-booster
VERSION: 1.1.3
VERSION: 1.24.4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ node_modules
vendor
.idea
lerna-debug.log
package-lock.json
assets/build/
Includes/Modules/*/assets/build/
2 changes: 1 addition & 1 deletion Includes/Modules/CountdownTimer/CountdownTimerModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function get_banner() {
* @return string
*/
public function get_name() {
return 'Sales Countdown';
return 'Countdown Timer';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Includes/Modules/CountdownTimer/Includes/CommonHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function woocommerce_product_data_tabs( $tabs ) {
if ( ! $this->is_external_product() ) {
// Adds the new tab.
$tabs['countdown_timer_tab'] = array(
'label' => __( 'Sales Countdown', 'storegrowth-sales-booster' ),
'label' => __( 'Countdown Timer', 'storegrowth-sales-booster' ),
'target' => 'sgsb-countdown-timer-tab',
);
}
Expand Down
8 changes: 5 additions & 3 deletions Includes/Modules/CountdownTimer/assets/scripts/wpbs-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,13 @@ width: fit-content;

}

.sgsb-countdown-timer-heading.ct-layout-2.default {
background: linear-gradient(90deg, #32DBBE 0%, #008DFF 100%) text;
-webkit-text-fill-color: transparent;
}

.sgsb-countdown-timer-heading.ct-layout-2 {
background: linear-gradient(90deg, #32DBBE 0%, #008DFF 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-family: "Merienda" !important;
}

/* layout2 styles end */
Expand Down
79 changes: 65 additions & 14 deletions Includes/Modules/CountdownTimer/assets/src/components/DesignTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import ActionsHandler from "sales-booster/src/components/settings/Panels/PanelSe

import "../styles/countdown-timer.css";
import Templates from "./Templates";
import SelectBox from "sales-booster/src/components/settings/Panels/PanelSettings/Fields/SelectBox";
import {applyFilters} from "@wordpress/hooks";

function DesignTab( props ) {
const {
Expand All @@ -21,52 +23,101 @@ function DesignTab( props ) {
noop,
options,
handleSelect,
undoHandler,
showUndoIcon
} = props;

const fontFamily = [
{
value: 'poppins',
label: __('Poppins', 'storegrowth-sales-booster'),
},
{
value: 'merienda',
label: __('Merienda', 'storegrowth-sales-booster'),
},
{
value: 'roboto',
label: __('Roboto', 'storegrowth-sales-booster'),
},
{
value: 'lato',
label: __('Lato', 'storegrowth-sales-booster'),
},
{
value: 'montserrat',
label: __('Montserrat', 'storegrowth-sales-booster'),
},
{
value: 'ibm_plex_sans',
label: __('IBM Plex Sans', 'storegrowth-sales-booster'),
},
];

return (
<Fragment>
<SettingsSection>
<SelectBox
name={`font_family`}
options={[...fontFamily]}
fieldValue={formData.font_family}
changeHandler={onFieldChange}
title={__("Font Family", "storegrowth-sales-booster")}
tooltip={__(
"Select your desired font family",
"storegrowth-sales-booster"
)}
/>

<ColourPicker
undoHandler={undoHandler}
name={"widget_background_color"}
fieldValue={formData.widget_background_color}
showUndoIcon={showUndoIcon?.widget_background_color}
changeHandler={onFieldChange}
title={__("Widget Background Color", "storegrowth-sales-booster")}
/>

<ColourPicker
undoHandler={undoHandler}
name={"border_color"}
fieldValue={formData.border_color}
showUndoIcon={showUndoIcon?.border_color}
changeHandler={onFieldChange}
title={__("Border Color", "storegrowth-sales-booster")}
/>

<ColourPicker
undoHandler={undoHandler}
name={"heading_text_color"}
fieldValue={formData.heading_text_color}
showUndoIcon={showUndoIcon?.heading_text_color}
changeHandler={onFieldChange}
title={__("Heading Text Color", "storegrowth-sales-booster")}
/>

{/* Rendered countdown settings. */}
{ applyFilters(
'sgsb_append_countdown_design_settings',
'',
formData,
onFieldChange,
showUndoIcon,
undoHandler
) }

<ActionsHandler
resetHandler={onFormReset}
loadingHandler={buttonLoading}
saveHandler={onFormSave}
/>
</SettingsSection>

<Templates formData={ formData } setFormData={ setFormData } />

{/*<Form.Item label="Theme" labelAlign="left">*/}
{/* <div className="sgsb-countdown-theme">*/}
{/* {options.map((option, index) => (*/}
{/* <Selector*/}
{/* key={index}*/}
{/* option={option}*/}
{/* onSelect={() => handleSelect(option.theme)}*/}
{/* isSelected={option.theme === formData.selected_theme}*/}
{/* />*/}
{/* ))}*/}
{/* </div>*/}
{/*</Form.Item>*/}
<Templates
formData={ formData }
setFormData={ setFormData }
showUndoIcon={ showUndoIcon }
/>
</Fragment>
);
}
Expand Down
Loading

0 comments on commit 3349875

Please sign in to comment.