Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getQuran($surat,$ayat,$arab,$terjemah,$postdata,$liff){
- $item=array (
- 'type' => 'bubble',
- 'body' =>
- array (
- 'type' => 'box',
- 'layout' => 'vertical',
- 'spacing' => 'sm',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'box',
- 'layout' => 'horizontal',
- 'margin' => 'sm',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'text',
- 'text' => $surat,
- 'weight' => 'bold',
- 'color' => '#52a98b',
- 'size' => 'md',
- 'margin' => 'md',
- 'flex' => 1,
- ),
- 1 =>
- array (
- 'type' => 'box',
- 'layout' => 'baseline',
- 'spacing' => 'sm',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'text',
- 'text' => 'Ayat '.$ayat,
- 'size' => 'xs',
- 'color' => '#aaaaaa',
- 'wrap' => true,
- 'margin' => 'xs',
- 'align' => 'end',
- ),
- 1 =>
- array (
- 'type' => 'icon',
- 'url' => base_url().'xfile/icon/pencil.png',
- ),
- ),
- ),
- ),
- ),
- 1 =>
- array (
- 'type' => 'separator',
- 'margin' => 'md',
- ),
- 2 =>
- array (
- 'type' => 'box',
- 'layout' => 'vertical',
- 'margin' => 'md',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'text',
- 'align' => 'center',
- 'text' => $arab,
- 'wrap' => true,
- 'weight' => 'bold',
- ),
- 1 =>
- array (
- 'type' => 'text',
- 'align' => 'center',
- 'size' => 'sm',
- 'text' => $terjemah,
- 'wrap' => true,
- ),
- ),
- ),
- ),
- ),
- 'footer' =>
- array (
- 'type' => 'box',
- 'layout' => 'vertical',
- 'spacing' => 'md',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'box',
- 'layout' => 'vertical',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'button',
- 'margin' => 'sm',
- 'height' => 'sm',
- 'action' =>
- array (
- 'type' => 'postback',
- 'label' => 'Translate',
- 'data' => 'translate'.$postdata,
- ),
- 'style' => 'link',
- ),
- ),
- ),
- 1 =>
- array (
- 'type' => 'box',
- 'layout' => 'horizontal',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'button',
- 'margin' => 'sm',
- 'height' => 'sm',
- 'action' =>
- array (
- 'type' => 'uri',
- 'label' => 'Quran Full',
- 'uri' => $liff,
- ),
- 'color' => '#fccf4b',
- 'style' => 'primary',
- ),
- 1 =>
- array (
- 'type' => 'button',
- 'margin' => 'sm',
- 'height' => 'sm',
- 'action' =>
- array (
- 'type' => 'postback',
- 'label' => 'Next Ayat',
- 'data' => 'nextqs'.$postdata,
- ),
- 'color' => '#52a98b',
- 'style' => 'primary',
- ),
- ),
- ),
- ),
- ),
- );
- return $item;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement