Last active
December 20, 2015 12:59
-
-
Save 7LayersDesign/6135257 to your computer and use it in GitHub Desktop.
To make this change, just add a courtesyLink to each center recipe. This will override the general one set at the top. Below is an example. This is the Food.com version which is a little different, but the courtesyLink is the same.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * ========================================== | |
| * Center Results and Impression Logic | |
| * ========================================== | |
| */ | |
| if( $.inArray( 'pork', keytermSet ) > -1 ){ | |
| var centerRecipe = new CenterRecipe(); | |
| centerRecipe.title = "Cuban Pork Adobo Salad"; | |
| centerRecipe.clicktag = "http://ad.doubleclick.net/clk;274204538;98873843;y?http://www.food.com/recipe/cuban-pork-adobo-salad-501729"; | |
| centerRecipe.image = "http://img.foodnetwork.com/FOOD/2013/06/04/RX-NPB_Cuban-Adobo-Salad_s3x4_sm.jpg"; | |
| centerRecipe.level = ""; | |
| centerRecipe.cooktime = "8 minutes"; | |
| centerRecipe.preptime = "10 min"; | |
| centerRecipe.courtesyLink = "http://ad.doubleclick.net/clk;272664759;101583304;i?http://www.porkbeinspired.com/RecipeDetail/2770/Cuban_Pork_Adobo_Salad.aspx"; | |
| centerRecipe.ingredients = "4 New York (top loin) pork chops"; | |
| centerRecipe.impression1x1 = "http://ad.doubleclick.net/ad/N5673.440.SCRIPPS.COM/B7205349.119;sz=1x1;ord=[timestamp]?"; | |
| centerRecipe.description = "It’s easy to enjoy garden-fresh flavor with the Cuban Pork Adobo Salad. With seasoned New York (top loin) pork chops and grilled pineapple slices on crisp greens, this salad is perfect for family get-togethers and backyard barbecues."; | |
| matchedRecipeSet.push(centerRecipe); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment