shop changes
This commit is contained in:
26
actions/WooCommerceShopLayout.php
Normal file
26
actions/WooCommerceShopLayout.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Actions;
|
||||
|
||||
use ofc\RadAction;
|
||||
|
||||
class WooCommerceShopLayout extends RadAction
|
||||
{
|
||||
protected string $hookName = "woocommerce_before_main_content";
|
||||
protected int $priority = 5;
|
||||
|
||||
public function callback()
|
||||
{
|
||||
if (!is_shop()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// shop page
|
||||
echo site()->render("shop-top", site()->getPost(wc_get_page_id('shop'), [
|
||||
"headline",
|
||||
"intro_text",
|
||||
"thumbnail",
|
||||
]));
|
||||
echo site()->render('woocommerce-before-content');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user