Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/2.1.0 #53

Open
wants to merge 83 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
0e648fe
add new framework
devsabbirhossain Apr 23, 2024
0120d87
cleanup build files
sultann Apr 23, 2024
c239e1d
cleanup plugin files
sultann Apr 23, 2024
58bf807
add tailwind css
devsabbirhossain Apr 29, 2024
af6bcc4
update new layout
devsabbirhossain Apr 30, 2024
4797f56
add general tab settings functions
devsabbirhossain May 5, 2024
758d40d
update showcase tab
devsabbirhossain May 6, 2024
afcef76
add showcase tab settings
devsabbirhossain May 13, 2024
92058a7
add showcase image tab settings
devsabbirhossain May 13, 2024
1a4642f
added fonts tab settings
devsabbirhossain May 13, 2024
2d13863
added slider tab settings
devsabbirhossain May 14, 2024
cfaa2f3
added popup modal
devsabbirhossain May 14, 2024
2a5c959
saved all fields data
devsabbirhossain May 16, 2024
42cc356
add splide config
devsabbirhossain May 20, 2024
3493eba
update admin settings
devsabbirhossain May 23, 2024
1988e23
Fix conflicts
kawsarahmedr May 23, 2024
7039ff0
add slider dynamic settings
devsabbirhossain May 28, 2024
343426c
Add dynamic block layout
kawsarahmedr May 28, 2024
cc96f94
Add dynamic block layout
kawsarahmedr May 28, 2024
d5e6f14
Add logical layouts for gride
kawsarahmedr May 29, 2024
84b8895
add new admin settings
devsabbirhossain May 29, 2024
b14efc3
add overlay settings
devsabbirhossain May 29, 2024
ba55284
Finished ligical block & grid layouts
kawsarahmedr May 29, 2024
583c1f6
remove block row count
devsabbirhossain May 29, 2024
9a521ec
Finished block & grid layout
kawsarahmedr May 30, 2024
7ed5ee6
Update shortcode & add block & gride layout
kawsarahmedr May 30, 2024
656283c
marge slider with grid and block
devsabbirhossain May 30, 2024
8a4a014
Update block style
kawsarahmedr Jun 3, 2024
77791d5
add content alignment settings
devsabbirhossain Jun 4, 2024
ada89f8
add color picker
devsabbirhossain Jun 5, 2024
311cee0
Fix grid layout design
kawsarahmedr Jun 5, 2024
3f0f0ff
Finished all the frontend layouts
kawsarahmedr Jun 5, 2024
482e9e0
Added custom category save data function
devsabbirhossain Jun 6, 2024
84480c0
update slider settings
devsabbirhossain Jun 6, 2024
2249a5a
update default data
devsabbirhossain Jun 9, 2024
74c6728
fixed some errors
devsabbirhossain Jun 9, 2024
fbbbfe7
update default value
devsabbirhossain Jun 9, 2024
4f4f712
Remove test shortcode
kawsarahmedr Jun 9, 2024
24f0327
fixed shortcode errors
devsabbirhossain Jun 9, 2024
26a983b
Update showcase default settings
kawsarahmedr Jun 9, 2024
463bb7d
Update shortcode
kawsarahmedr Jun 9, 2024
2d8ee70
update settings functions
devsabbirhossain Jun 9, 2024
9bb6a7e
update settings functions
devsabbirhossain Jun 9, 2024
e83bac7
fixed error not saved default values
devsabbirhossain Jun 10, 2024
8ff6f04
fixed error not saved default values
devsabbirhossain Jun 10, 2024
3935901
fix custom category data
devsabbirhossain Jun 10, 2024
5562ed4
Update showcase category query
kawsarahmedr Jun 10, 2024
8cd1248
add tab select box for mobile
devsabbirhossain Jun 10, 2024
ee95904
fix mobile responsive
devsabbirhossain Jun 11, 2024
b03c129
update slider styles
devsabbirhossain Jun 11, 2024
beb2183
add icon picker
devsabbirhossain Jun 13, 2024
5d83ee1
fixed custom category data show
devsabbirhossain Jun 13, 2024
151c693
fixed custom category data show error
devsabbirhossain Jun 13, 2024
945a586
add heading and category title style
devsabbirhossain Jun 13, 2024
1462a3b
add ribbon to card
devsabbirhossain Jun 13, 2024
ac0d9e7
add image layout styles
devsabbirhossain Jun 23, 2024
58b2761
update grid and block styles
devsabbirhossain Jun 23, 2024
88f3b85
add icon picker
devsabbirhossain Jun 23, 2024
c960007
add export showacse tab
devsabbirhossain Jun 24, 2024
7721955
fixed sub-category issue
devsabbirhossain Jun 24, 2024
6eefc17
update framework and pro features
devsabbirhossain Jun 25, 2024
fc6f04c
modify color picker
devsabbirhossain Jun 29, 2024
c603770
fix webpack issue
sultann Jul 14, 2024
41fcf71
update plugin file
devsabbirhossain Jul 14, 2024
d020a75
update readme
devsabbirhossain Jul 14, 2024
e50d1aa
cleanup files
devsabbirhossain Sep 8, 2024
76cb7ce
update doc comment
devsabbirhossain Sep 8, 2024
3874aec
seperate styles
devsabbirhossain Sep 8, 2024
8adfda3
update composer
devsabbirhossain Sep 8, 2024
0370cb7
add settings option
devsabbirhossain Sep 8, 2024
0333786
update readme
devsabbirhossain Sep 9, 2024
fb62131
add notice and
devsabbirhossain Sep 9, 2024
e23db10
add cart and checkout block compatibility
devsabbirhossain Sep 9, 2024
b7fbf26
fix specifice category issue
devsabbirhossain Sep 9, 2024
79d5112
add new showcase settings
devsabbirhossain Sep 9, 2024
9bb6812
fix slider gap issue
devsabbirhossain Sep 9, 2024
43f3430
resolve content padding
devsabbirhossain Sep 10, 2024
75a6c4f
fix popup responsive issue
devsabbirhossain Sep 10, 2024
c41c624
add new settings
devsabbirhossain Sep 10, 2024
89de851
reorganized code structure
devsabbirhossain Sep 10, 2024
90d2aa1
fix known issues
devsabbirhossain Oct 1, 2024
9817e2d
update framework
devsabbirhossain Dec 1, 2024
f44b4e8
Fix #48;
devsabbirhossain Dec 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add tailwind css
devsabbirhossain committed Apr 29, 2024
commit 58bf807e73645650b87a39cfabc73f8dcf4b8d49
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions includes/Admin/Admin.php
Original file line number Diff line number Diff line change
@@ -47,7 +47,9 @@ public function enqueue_scripts( $hook ) {
return;
}
// Early core enqueue.
wc_category_showcase()->scripts->enqueue_style( 'bytekit-core' );
wc_category_showcase()->scripts->enqueue_style( 'wccs-admin', '/css/admin.css' );
wc_category_showcase()->scripts->enqueue_script( 'wccs-admin', '/js/admin.js', array(), true );
wc_category_showcase()->scripts->enqueue_style( 'wccs-admin-tailwind', '/css/tailwind.css' );
}

/**
@@ -63,7 +65,7 @@ public function admin_footer_text( $text ) {
$text = sprintf(
/* translators: %s: Plugin name */
__( 'Thank you for using %s!', 'wc-category-showcase' ),
'<strong>' . esc_html( wc_category_showcase()->get_name() ) . '</strong>',
'<strong>' . esc_html( wc_category_showcase()->get_name() ) . '</strong>'
);
if ( wc_category_showcase()->review_url ) {
$text .= sprintf(
71 changes: 65 additions & 6 deletions includes/Admin/Menus.php
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ class Menus {
*/
public function __construct() {
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
add_action( 'admin_menu', array( $this, 'add_submenu' ) );
}

/**
@@ -47,18 +48,76 @@ public function admin_menu() {
);
}

/**
* Add sub-menu.
*
* @since 1.0.0
* @return void
*/
public function add_submenu() {
$menus = Utilities::get_menus();
usort(
$menus,
function ( $a, $b ) {
$a = isset( $a['position'] ) ? $a['position'] : PHP_INT_MAX;
$b = isset( $b['position'] ) ? $b['position'] : PHP_INT_MAX;

return $a - $b;
}
);
foreach ( $menus as $menu ) {
$menu = wp_parse_args(
$menu,
array(
'page_title' => '',
'menu_title' => '',
'capability' => 'manage_options',
'menu_slug' => '',
'callback' => null,
'position' => '10',
'page_hook' => null,
'tabs' => array(),
'load_hook' => null,
)
);
if ( ! is_callable( $menu['callback'] ) && ! empty( $menu['page_hook'] ) ) {
$menu['callback'] = function () use ( $menu ) {
$page_hook = $menu['page_hook'];
$tabs = $menu['tabs'];
include_once __DIR__ . '/views/admin-page.php';
};
}
$load = add_submenu_page(
self::PARENT_SLUG,
$menu['page_title'],
$menu['menu_title'],
$menu['capability'],
$menu['menu_slug'],
$menu['callback'],
$menu['position']
);
if ( ! empty( $menu['load_hook'] ) && is_callable( $menu['load_hook'] ) ) {
add_action( 'load-' . $load, $menu['load_hook'] );
}
}
}

/**
* Render menu.
*
* @since 1.0.0
* @return void
*/
public function render_menu() {
?>
<div class="wrap">
<h1><?php esc_html_e( 'Category Showcase', 'wc-category-showcase' ); ?></h1>
<p><?php esc_html_e( 'Welcome to the Category Showcase plugin.', 'wc-category-showcase' ); ?></p>
</div>
<?php
$add = isset( $_GET['add'] ) ? true : false; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
$edit = isset( $_GET['edit'] ) ? absint( wp_unslash( $_GET['edit'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended

if ( $add ) {
include __DIR__ . '/views/add-category-showcase.php';
} elseif ( $edit ) {
include __DIR__ . '/views/edit-category-showcase.php';
} else {
include __DIR__ . '/views/list-category-showcase.php';
}
}
}
62 changes: 8 additions & 54 deletions includes/Admin/Utilities.php
Original file line number Diff line number Diff line change
@@ -20,63 +20,15 @@ class Utilities {
public static function get_menus() {
$menus = array(
array(
'page_title' => __( 'Items', 'wp-ever-accounting' ),
'menu_title' => __( 'Items', 'wp-ever-accounting' ),
'page_title' => __( 'Settings', 'wc-category-showcase' ),
'menu_title' => __( 'Settings', 'wc-category-showcase' ),
'capability' => 'manage_options',
'menu_slug' => 'eac-items',
'page_hook' => 'items',
),
array(
'page_title' => __( 'Sales', 'wp-ever-accounting' ),
'menu_title' => __( 'Sales', 'wp-ever-accounting' ),
'capability' => 'manage_options',
'menu_slug' => 'eac-sales',
'page_hook' => 'sales',
'tabs' => array(
'revenues' => __( 'Revenues', 'wp-ever-accounting' ),
'invoices' => __( 'Invoices', 'wp-ever-accounting' ),
'customers' => __( 'Customers', 'wp-ever-accounting' ),
),
),
array(
'page_title' => __( 'Expenses', 'wp-ever-accounting' ),
'menu_title' => __( 'Expenses', 'wp-ever-accounting' ),
'capability' => 'manage_options',
'menu_slug' => 'eac-expenses',
'page_hook' => 'expenses',
'tabs' => array(
'payments' => __( 'Payments', 'wp-ever-accounting' ),
'bills' => __( 'Bills', 'wp-ever-accounting' ),
'vendors' => __( 'Vendors', 'wp-ever-accounting' ),
),
),
array(
'page_title' => __( 'Banking', 'wp-ever-accounting' ),
'menu_title' => __( 'Banking', 'wp-ever-accounting' ),
'capability' => 'manage_options',
'menu_slug' => 'eac-banking',
'page_hook' => 'banking',
'tabs' => array(
'accounts' => __( 'Accounts', 'wp-ever-accounting' ),
'transactions' => __( 'Transactions', 'wp-ever-accounting' ),
'transfers' => __( 'Transfers', 'wp-ever-accounting' ),
'currencies' => __( 'Currencies', 'wp-ever-accounting' ),
),
),
array(
'page_title' => __( 'Tools', 'wp-ever-accounting' ),
'menu_title' => __( 'Tools', 'wp-ever-accounting' ),
'capability' => 'manage_options',
'menu_slug' => 'eac-tools',
'page_hook' => 'tools',
'tabs' => array(
'import' => __( 'Import', 'wp-ever-accounting' ),
'export' => __( 'Export', 'wp-ever-accounting' ),
),
'menu_slug' => 'wccs-items',
'page_hook' => 'settings',
),
);

return apply_filters( 'starter_plugin_admin_menus', $menus );
return apply_filters( 'wc_category_showcase_admin_menus', $menus );
}

/**
@@ -86,7 +38,9 @@ public static function get_menus() {
* @return array
*/
public static function get_screen_ids() {
$screen_ids = array();
$screen_ids = array(
'toplevel_page_wc-category-showcase',
);

foreach ( self::get_menus() as $page ) {
$screen_ids[] = Menus::PARENT_SLUG . '_page_' . $page['menu_slug'];
Loading