Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. <?php
  2. function getQuran($surat,$ayat,$arab,$terjemah,$postdata,$liff){
  3. $item=array (
  4. 'type' => 'bubble',
  5. 'body' =>
  6. array (
  7. 'type' => 'box',
  8. 'layout' => 'vertical',
  9. 'spacing' => 'sm',
  10. 'contents' =>
  11. array (
  12. 0 =>
  13. array (
  14. 'type' => 'box',
  15. 'layout' => 'horizontal',
  16. 'margin' => 'sm',
  17. 'contents' =>
  18. array (
  19. 0 =>
  20. array (
  21. 'type' => 'text',
  22. 'text' => $surat,
  23. 'weight' => 'bold',
  24. 'color' => '#52a98b',
  25. 'size' => 'md',
  26. 'margin' => 'md',
  27. 'flex' => 1,
  28. ),
  29. 1 =>
  30. array (
  31. 'type' => 'box',
  32. 'layout' => 'baseline',
  33. 'spacing' => 'sm',
  34. 'contents' =>
  35. array (
  36. 0 =>
  37. array (
  38. 'type' => 'text',
  39. 'text' => 'Ayat '.$ayat,
  40. 'size' => 'xs',
  41. 'color' => '#aaaaaa',
  42. 'wrap' => true,
  43. 'margin' => 'xs',
  44. 'align' => 'end',
  45. ),
  46. 1 =>
  47. array (
  48. 'type' => 'icon',
  49. 'url' => base_url().'xfile/icon/pencil.png',
  50. ),
  51. ),
  52. ),
  53. ),
  54. ),
  55. 1 =>
  56. array (
  57. 'type' => 'separator',
  58. 'margin' => 'md',
  59. ),
  60. 2 =>
  61. array (
  62. 'type' => 'box',
  63. 'layout' => 'vertical',
  64. 'margin' => 'md',
  65. 'contents' =>
  66. array (
  67. 0 =>
  68. array (
  69. 'type' => 'text',
  70. 'align' => 'center',
  71. 'text' => $arab,
  72. 'wrap' => true,
  73. 'weight' => 'bold',
  74. ),
  75. 1 =>
  76. array (
  77. 'type' => 'text',
  78. 'align' => 'center',
  79. 'size' => 'sm',
  80. 'text' => $terjemah,
  81. 'wrap' => true,
  82. ),
  83. ),
  84. ),
  85. ),
  86. ),
  87. 'footer' =>
  88. array (
  89. 'type' => 'box',
  90. 'layout' => 'vertical',
  91. 'spacing' => 'md',
  92. 'contents' =>
  93. array (
  94. 0 =>
  95. array (
  96. 'type' => 'box',
  97. 'layout' => 'vertical',
  98. 'contents' =>
  99. array (
  100. 0 =>
  101. array (
  102. 'type' => 'button',
  103. 'margin' => 'sm',
  104. 'height' => 'sm',
  105. 'action' =>
  106. array (
  107. 'type' => 'postback',
  108. 'label' => 'Translate',
  109. 'data' => 'translate'.$postdata,
  110. ),
  111. 'style' => 'link',
  112. ),
  113. ),
  114. ),
  115. 1 =>
  116. array (
  117. 'type' => 'box',
  118. 'layout' => 'horizontal',
  119. 'contents' =>
  120. array (
  121. 0 =>
  122. array (
  123. 'type' => 'button',
  124. 'margin' => 'sm',
  125. 'height' => 'sm',
  126. 'action' =>
  127. array (
  128. 'type' => 'uri',
  129. 'label' => 'Quran Full',
  130. 'uri' => $liff,
  131. ),
  132. 'color' => '#fccf4b',
  133. 'style' => 'primary',
  134. ),
  135. 1 =>
  136. array (
  137. 'type' => 'button',
  138. 'margin' => 'sm',
  139. 'height' => 'sm',
  140. 'action' =>
  141. array (
  142. 'type' => 'postback',
  143. 'label' => 'Next Ayat',
  144. 'data' => 'nextqs'.$postdata,
  145. ),
  146. 'color' => '#52a98b',
  147. 'style' => 'primary',
  148. ),
  149. ),
  150. ),
  151. ),
  152. ),
  153. );
  154. return $item;
  155. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement