hp
/** Plugin Name: Promise comparison block */
defined('ABSPATH') || exit;
add_action('init', function(){
$dir=WPMU_PLUGIN_DIR.'/promise-block/'; $url=content_url('/mu-plugins/promise-block/');
wp_register_style('promise-block',$url.'style.css',[],filemtime($dir.'style.css'));
wp_register_script('promise-editor',$url.'editor.js',['wp-blocks','wp-element','wp-block-editor','wp-components','wp-server-side-render'],filemtime($dir.'editor.js'),true);
wp_register_script('promise-front',$url.'front.js',[],filemtime($dir.'front.js'),true);
$defaults=['Humanely-raised, ethically sourced proteins','Committed to decreasing our impact on the planet','Premium nutrition with 100% traceable ingredients','3rd party certified for added verification & total peace of mind','No corn, wheat, or soy','Sustainably-sourced seafood, always','Raised without antibiotics or added hormones','Non-GMO fruits and veggies'];
$attributes=['heading'=>['type'=>'string','default'=>'The Open Farm Promise'],'body'=>['type'=>'string','default'=>"Our efforts to Do Some Good ® translate to knowing your pet is getting the best nutrition possible. We go to the ends of the earth to leave no doubt in your pet's bowl – just premium, high quality nutrition held to the highest standards possible."],'labels'=>['type'=>'array','default'=>$defaults],'images'=>['type'=>'array','default'=>array_fill(0,10,'')],'button'=>['type'=>'string','default'=>'DISCOVER THE DIFFERENCE'],'target'=>['type'=>'object','default'=>[]]];
register_block_type('openfarm/promise',['api_version'=>2,'attributes'=>$attributes,'editor_script'=>'promise-editor','style'=>'promise-block','view_script'=>'promise-front','render_callback'=>function($a) use($url,$defaults){
$images=$a['images']??[]; $labels=$a['labels']??$defaults; $image=function($i)use($images,$url){return esc_url(!empty($images[$i])?$images[$i]:$url.$i.'.png');};
$item=function($i)use($image,$labels,$defaults){return '
Kind Earth Plant Pâté with Ancient Grains for Dogs
$51.48Original price was: $51.48.$15.44Current price is: $15.44.
Free shipping
Money-back guarantee
Secured payment
Guaranteed Safe Checkout
Description
This Kind Earth Plant Recipe is a planet friendly pâté recipe inspired by nature, and made without meat, poultry or dairy. It’s complete and balanced, and features a blend of non-GMO ancient grains and vegetables to provide a highly nutritious, delicious meal your pup will crave.
Additional information
Size
12.5 oz (Case of 12)
Reviews (0)
Reviews
There are no reviews yet.
Be the first to review “Kind Earth Plant Pâté with Ancient Grains for Dogs” Cancel reply
Kind Earth Plant Pâté with Ancient Grains for Dogs$51.48Original price was: $51.48.$15.44Current price is: $15.44.
Reviews
There are no reviews yet.