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 '

'.esc_html($labels[$i]??$defaults[$i]).'

';}; $target=$a['target']??[]; $href=''; if(!empty($target['id'])&&!empty($target['type'])){ if($target['type']==='category' || $target['type']==='product_cat'){ $link=get_term_link((int)$target['id']); if(!is_wp_error($link))$href=$link; } else $href=get_permalink((int)$target['id']); } elseif(!empty($target['url'])) $href=$target['url']; $button=esc_html($a['button']??'DISCOVER THE DIFFERENCE'); return '
'promise-block']).'>

'.esc_html($a['heading']).'

'.esc_html($a['body']).'

'.$item(0).$item(1).'
Pet food and ingredients
Forest
◀ ▶
'.$item(2).$item(3).'
'.($href?''.$button.'':''.$button.'').'
'; }]); }); Open Farm | 70% Off Dog & Cat Food
70% OFF DOG & CAT FOOD
DOG & CAT FOODTHE OPEN FARM PROMISE

222 people viewed this recently

Kind Earth Plant Pâté with Ancient Grains for Dogs

Original price was: $51.48.Current price is: $15.44.

  • Free shipping
  • Money-back guarantee
  • Secured payment

Guaranteed Safe Checkout

PayPalVisaMastercardDiscoverAmerican Express
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”