Advertisement
Guest User

stripped_responsive add Title and Description

a guest
Jun 14th, 2015
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.26 KB | None | 0 0
  1. diff -r bak.sr/admin/admin.tpl stripped_responsive/admin/admin.tpl
  2. 60a61
  3. >                       <option value="titleAndDesc" {if ($options.imageCaption=="titleAndDesc")}selected{/if}>{'Title and Description'|@translate}</option>
  4. 217c218
  5. < </form>
  6. \ No newline at end of file
  7. ---
  8. > </form>
  9. diff -r bak.sr/template/picture.tpl stripped_responsive/template/picture.tpl
  10. 96c96
  11. <   {if (($stripped_responsive.imageCaption != 'description') && isset($COMMENT_IMG))}
  12. ---
  13. >   {if (($stripped_responsive.imageCaption != 'description' && $stripped_responsive.imageCaption != 'titleAndDesc') && isset($COMMENT_IMG))}
  14. 101c101
  15. <   {if isset($COMMENT_IMG) and $stripped_responsive.imageCaption == 'description'}
  16. ---
  17. >   {if isset($COMMENT_IMG) and ($stripped_responsive.imageCaption == 'description' || $stripped_responsive.imageCaption == 'titleAndDesc')}
  18. 104c104
  19. <   {if isset($current.TITLE) and $stripped_responsive.imageCaption == 'title'}
  20. ---
  21. >   {if isset($current.TITLE) and ($stripped_responsive.imageCaption == 'title' || $stripped_responsive.imageCaption == 'titleAndDesc')}
  22. 117c117,120
  23. <           {if ($stripped_responsive.imageCaption == 'description' )}
  24. ---
  25. >           {if ($stripped_responsive.imageCaption == 'title')}
  26. >               {$current.TITLE}
  27. >           {/if}
  28. >           {if ($stripped_responsive.imageCaption == 'description')}
  29. 120c123
  30. <           {if ($stripped_responsive.imageCaption == 'title' )}
  31. ---
  32. >           {if ($stripped_responsive.imageCaption == 'titleAndDesc')}
  33. 121a125,126
  34. >               <br />
  35. >               {$COMMENT_IMG}
  36. diff -r bak.sr/template/slideshow.tpl stripped_responsive/template/slideshow.tpl
  37. 30c30
  38. <       {if (!($stripped_responsive.showDescriptionInsteadOfTitle) && isset($COMMENT_IMG))}
  39. ---
  40. >       {if (($stripped_responsive.imageCaption == 'title') && isset($COMMENT_IMG))}
  41. 40a41,43
  42. >       {if ((isset($COMMENT_IMG) or isset($current.TITLE)) and $stripped_responsive.imageCaption == 'titleAndDesc')}
  43. >           {assign var='showTitle' value=true}
  44. >       {/if}
  45. 50c53,54
  46. <                   {if ($stripped_responsive.imageCaption == 'description' )}
  47. ---
  48. >                   {if ($stripped_responsive.imageCaption == 'titleAndDesc')}
  49. >                       {$current.TITLE}<br />
  50. 55a60,62
  51. >                   {if ($stripped_responsive.imageCaption == 'description' )}
  52. >                       {$COMMENT_IMG|strip_tags:false}
  53. >                   {/if}
  54. 62c69
  55. < </div>
  56. \ No newline at end of file
  57. ---
  58. > </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement