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
$user = "lsdplugins"; | |
$repo = "lsddonation-mynotif"; | |
$api = " https://api.github.com/repos/$user/$repo/releases"; | |
$headers = [ | |
'Accept' => 'application/vnd.github.v3+json', | |
]; | |
$payload = [ | |
'timeout' => 30, |
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
Class TemplatePage | |
{ | |
public function __construct() | |
{ | |
$this->templates = array(); | |
if ( version_compare( floatval( get_bloginfo( 'version' ) ), '4.7', '<' ) ) { | |
add_filter('page_attributes_dropdown_pages_args',array( $this, 'register' )); | |
} else { | |
add_filter('theme_page_templates', array( $this, 'create' )); | |
} |
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
// Init Value Editor | |
var editorID = 'editor-1'; | |
// Init TextArea to WP Editor | |
wp.editor.initialize( | |
editorID , { | |
'tinymce': true, | |
'quicktags': true, | |
'mediaButtons' : true, | |
}); |
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
$(document).on('click', '.tour-img, .view-tour', function (e) { //onclick button | |
$.ajax({ | |
type : "post", | |
dataType : "json", | |
url : kmdscrpt.ajaxurl, | |
data : { | |
action: "template_tourpackages", //action to Result PHP | |
post_id : $(this).attr('data-id'), // passing post ID | |
security: kmdscrpt.security // passing security | |
}, |
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
<?php | |
include('koneksi.php'); | |
$sql = mysqli_query($conn,"SELECT * FROM tb_tes WHERE id=1"); | |
$data = mysqli_fetch_assoc($sql); | |
?> | |
<div id="container"> | |
<div id="empty-space"></div> | |
<h3 style="text-align: center;margin-top: 10%;">Monitoring Ketinggian Penampung Sampah</h3> |
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
#include <ESP8266WiFi.h> | |
#include <ESP8266HTTPClient.h> | |
const char* ssid = "yourNetworkName"; | |
const char* password = "yourNetworkPassword"; | |
void setup () { | |
Serial.begin(115200); | |
WiFi.begin(ssid, password); |
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
<?php | |
$data = array( | |
array( '231', 'http://dalamislam.com/akhlaq/amalan-shaleh/cara-agar-tetap-istiqomah-di-jalan-allah', '1'), | |
array( '231', 'http://dalamislam.com/akhlaq/amalan-shaleh/cara-agar-tetap-istiqomah-di-jalan-allah/', '2'), | |
array( '231', 'http://dalamislam.com/akhlaq/amalan-shaleh/cara-agar-tetap-istiqomah-di-jalan-allah/amp', '3'), | |
array( '21221', 'http://dalamislam.com/akhlaq/amalan-shaleh/cara-agar-tetap-istiqomah', '4'), | |
array( '1', 'http://dalamislam.com/akhlaq/amalan-shaleh/cara-agar-tetap-istiqomah-di-jalan-allah', '5'), | |
array( '1', 'http://dalamislam.com/akhlaq/amalan-shaleh/cara-agar-tetap-istiqomah-di-jalan-allah/', '10'), | |
array( '2', 'http://dalamislam.com/akhlaq/amalan-shaleh/cara-agar-tetap-istiqomah-di-jalan-allah/amp', '15'), |
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
$(window).load(function() { | |
$.ajax({ | |
url : kontakin.ajax_url, | |
type : 'post', | |
data : { | |
action : 'add_kontakin_view', | |
post_id : postID | |
}, | |
success : function( response ) { | |
window.location.replace(linkdirection); |
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
<?php | |
// Elementor Class | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
// This file is pretty much a boilerplate WordPress plugin. | |
// It does very little except including wp-widget.php | |
class ElementorRecentProduct { | |
private static $instance = null; |
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
<?php | |
// Elementor Class | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
// This file is pretty much a boilerplate WordPress plugin. | |
// It does very little except including wp-widget.php | |
class ElementorRecentProduct { | |
private static $instance = null; |
NewerOlder