This file contains 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
{{ page_content }} |
This file contains 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
{{current_page.title}} #menampilkan judul halaman | |
{{current_page.uname}} #menampilkan nama unik untuk akses URL |
This file contains 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
{% if current_product %} | |
Produk tersedia | |
{% else %} | |
Produk tidak tersedia | |
{% endif %} |
This file contains 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
{% judul = 'selamat datang di web kami' %} | |
<html> | |
<head> | |
<title>{{ judul }}</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains 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
{% latest_pages jumlah_halaman %} | |
#contoh | |
{% latest_pages 10 %} |
This file contains 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
{% sub_part nama_sub_halaman %} | |
#contoh | |
{% sub_part 'footer' %} | |
This file contains 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
{% twitter_widget nama_akun_twitter %} | |
# contoh: | |
{% twitter_widget 'webmuapp' %} |
This file contains 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
{% paginator products %} |
This file contains 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
def self.onesignal_notify(user, message) | |
headers = { | |
"Authorization" => "BASIC #{APP_CONFIG['onesignal']['api_key']}", | |
"Content-Type" => "Application/json" | |
} | |
body = { | |
"app_id" => APP_CONFIG['onesignal']['app_id'], | |
"data" => {"type": "post"}, | |
"contents" => {"en" => message}, | |
#"include_player_ids" => [user.onesignal], |
This file contains 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
yarn react-native upgrade | |
rm -rf node_modules | |
yarn | |
expo client:install:android | |
expo start |