Changeset 2099357
- Timestamp:
- 06/02/2019 02:27:13 PM (7 years ago)
- Location:
- chartsbeds/trunk
- Files:
-
- 2 edited
-
chartsbeds_admin.php (modified) (3 diffs)
-
chartsbeds_rich_snippets.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chartsbeds/trunk/chartsbeds_admin.php
r2095290 r2099357 56 56 $snPropname = $_POST['cbsnippet_propname']; 57 57 update_option('cbsnippet_propname', $snPropname); 58 $sn Pageurl = $_POST['cbsnippet_pageurl'];59 update_option('cbsnippet_ pageurl', $snPageurl);58 $snDesc = $_POST['cbsnippet_description']; 59 update_option('cbsnippet_description', $snDesc); 60 60 $snCountry = $_POST['cbsnippet_country']; 61 61 update_option('cbsnippet_country', $snCountry); … … 86 86 87 87 $snPropname = get_option('cbsnippet_propname'); 88 $sn Pageurl = get_option('cbsnippet_pageurl');88 $snDesc = get_option('cbsnippet_description'); 89 89 $snCountry = get_option('cbsnippet_country'); 90 90 $snCity = get_option('cbsnippet_city'); … … 149 149 <p><input type="text" name="cbsnippet_propname" id="cbsnippet_propname" value="<?php echo $snPropname ?>" size="110"></p> 150 150 151 <?php _e(" Reviews page url:" ); ?>152 <p>< input type="text" name="cbsnippet_pageurl" id="cbsnippet_pageurl" value="<?php echo $snPageurl ?>" size="110"></p>151 <?php _e("Description:" ); ?> 152 <p><textarea rows="4" cols="112" style="resize: none;" name="cbsnippet_description" id="cbsnippet_description"><?php echo $snDesc ?></textarea></p> 153 153 154 154 <?php _e("Country:" ); ?> -
chartsbeds/trunk/chartsbeds_rich_snippets.php
r2095586 r2099357 9 9 10 10 $pName = get_option("cbsnippet_propname"); 11 $p Url = get_option("cbsnippet_pageurl");11 $pDesc = get_option("cbsnippet_description"); 12 12 $pCountry = get_option("cbsnippet_country"); 13 13 $pCity = get_option("cbsnippet_city"); … … 16 16 $pPhone = get_option("cbsnippet_phone"); 17 17 $pPrice = get_option("cbsnippet_price"); 18 $pLogo = get_option("cbsnippet_logo");; 18 $pLogo = get_option("cbsnippet_logo"); 19 global $wp; 20 $pUrl = add_query_arg( $wp->query_string, '', home_url( $wp->request ) ); 19 21 20 22 $snipOut = ' … … 24 26 "@type": "LodgingBusiness", 25 27 "name": "'.$pName.'", 28 "description":"'.$pDesc.'", 26 29 "url": "'.$pUrl.'", 27 30 "image": "'.$pLogo.'",
Note: See TracChangeset
for help on using the changeset viewer.