Changeset 1142507
- Timestamp:
- 04/22/2015 07:29:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
open-menu/trunk/templates/default/single-openmenu.php
r794960 r1142507 15 15 $custom = get_post_custom(); 16 16 $restaurant_name = (isset($custom["_restaurant_name"][0])) ? $custom["_restaurant_name"][0] : '' ; 17 $omf_url = (isset($custom["_omf_url"][0])) ? $custom["_omf_url"][0] : '' ; 17 $openmenu_id = (isset($custom["_openmenu_id"][0])) ? $custom["_openmenu_id"][0] : '' ; 18 $omf_url = (isset($custom["_omf_url"][0])) ? $custom["_omf_url"][0] : '' ; // backwards compatibility 18 19 $menu_filter = ( !empty($custom["_menu_filter"][0]) ) ? htmlentities($custom["_menu_filter"][0]) : false ; 19 20 $group_filter = ( !empty($custom["_group_filter"][0]) ) ? htmlentities($custom["_group_filter"][0]) : false ; 20 21 22 if (!$openmenu_id && !empty($omf_url) ) { 23 $openmenu_id = str_replace('http://openmenu.com/menu/', '', $omf_url); 24 } 25 21 26 // Get the Open Menu Options 22 27 $options = get_option( 'openmenu_options' ); … … 35 40 36 41 // Get the menu 37 $omf_details = _get_menu_details( $o mf_url);42 $omf_details = _get_menu_details( $openmenu_id ); 38 43 ?> 39 44 40 45 <?php get_header() ?> 41 46 42 47 <style type="text/css"> 43 48 #om_menu, #om_menu dt, #om_menu dd.price { background-color:<?php echo $background_color; ?> } 49 #om_menu dd.price { padding-top:2px; } 44 50 </style> 45 51 46 52 <div id="container"> 47 53 <div id="content" class="openmenu" <?php echo $content_width_css; ?>>
Note: See TracChangeset
for help on using the changeset viewer.