This file contains hidden or 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 | |
//Nekakva funkcija koja će nam dati product ID proizvoda kojeg se kupuje | |
//npr. WordPress Custom Post Type "product", u Loop-u se može koristiti get_the_id(); | |
$productID = get_productID(); | |
//Dohvaćamo library od Braintree-a | |
require_once "putanja/do/braintree/Braintree.php"; | |
Braintree_Configuration::environment('sandbox'); | |
Braintree_Configuration::merchantId('tvoj_id'); | |
Braintree_Configuration::publicKey('tvoj_public_key'); |
This file contains hidden or 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
<embed src="myFlashFile.swf" > | |
<a href="/go/getflashplayer/"> | |
<img src=http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt="Get Adobe Flash player" /> | |
</a> | |
</embed> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script > | |
//Ovdje ide kod | |
</script> | |
</head> |
This file contains hidden or 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
<!doctype HTML5> | |
<html> | |
<head> | |
<title>Demo</title> | |
<script> | |
//Skripta ide ovdje | |
</script> | |
<style> | |
/*CSS ide ovdje*/ | |
</style> |
This file contains hidden or 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
function pokaziGresku(greska) { | |
switch (greska.code) { | |
case greska.PERMISSION_DENIED: | |
prikaziPoruku("Korisnik nije dopustio dohvat Geolokacije."); | |
break; | |
case greska.POSITION_UNAVAILABLE: | |
prikaziPoruku("Informacije lokacije nije dostupna."); | |
break; | |
case greska.TIMEOUT: | |
prikaziPoruku("Zahtjev za dohvaćanje lokacije korisnike je istekao."); |
This file contains hidden or 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 get_the_term_list( $id, $taxonomy, $before, $sep, $after ) ?> |
This file contains hidden or 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 | |
add_filter( 'the_content','ibenic_related_content' ); | |
function ibenic_related_content( $content ){ | |
// Check if the content is of a single article | |
if( is_singular( 'post' ) ) { | |
global $post; | |
// Variable that will be used to create the HTML of related content | |
$related_content = ""; |
This file contains hidden or 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 | |
/** | |
* Plugin Name: IBenic Bootstrap Modal | |
* Plugin URI: http://www.ibenic.com/show-a-wordpress-post-in-a-modal/ | |
* Description: Show an article in a modal on the same page. | |
* Version: 1.0 | |
* Author: Igor benić | |
* Author URI: http://www.ibenic.com | |
* License: GPL2 | |
* |
OlderNewer