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
{{ streams:cycle stream="sliders" }} | |
{{ entries }} | |
{{ if page:slug == stream_field:slug }} | |
Text goes here if same id's | |
{{ endif }} | |
{{/entries}} | |
{{ /streams:cycle }} |
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 | |
public function insertacomenta($idtema_foro = NULL) { | |
if (is_null($idtema_foro)) { | |
// podes mostrar una página de error | |
show_error('ID Tema no disponible'); | |
// o podes hacer un redirect | |
$this->session->set_flashdata('error', 'ID Tema no disponible'); | |
redirect('foros'); | |
} |
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 | |
function aumentacoment($idtema_foro) { | |
$this->db->set('comentarios', 'comentarios + 1', FALSE); | |
$this->db->where('idtema_foro', $idtema_foro); | |
return $this->db->update('tema_foros', $data); | |
} |
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
var destinations = new Array(); | |
destinations.push('Wattle Glen, Diamond Creek, Victoria 3089'); | |
destinations.push('Watsonia, Diamond Creek, Victoria 3089'); | |
destinations.push('St Helena, Diamond Creek, Victoria 3089'); | |
destinations.push('Plenty, Diamond Creek, Victoria 3089'); | |
destinations.push('Montmorency, Diamond Creek, Victoria 3089'); | |
destinations.push('Hurstbridge, Diamond Creek, Victoria 3089'); | |
destinations.push('Bundoora, Diamond Creek, Victoria 3089'); | |
destinations.push('Doreen, Diamond Creek, Victoria 3089'); | |
destinations.push('Eltham, Diamond Creek, Victoria 3089'); |
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
<p>Get driving directions from your neighborhood:</p> | |
<a href="#" class="driving-directions" data-origin="Wattle Glen, Diamond Creek, Victoria 3089">From Wattle Glen</a> | |
<a href="#" class="driving-directions" data-origin="Watsonia, Diamond Creek, Victoria 3089">From Watsonia</a> | |
<a href="#" class="driving-directions" data-origin="St Helena, Diamond Creek, Victoria 3089">From St Helena</a> | |
<a href="#" class="driving-directions" data-origin="Plenty, Diamond Creek, Victoria 3089">From Plenty</a> | |
<a href="#" class="driving-directions" data-origin="Montmorency, Diamond Creek, Victoria 3089">From Montmorency</a> | |
<a href="#" class="driving-directions" data-origin="Hurstbridge, Diamond Creek, Victoria 3089">From Hurstbridge</a> | |
<a href="#" class="driving-directions" data-origin="Bundoora, Diamond Creek, Victoria 3089">From Bundoora</a> | |
<a href="#" class="driving-directions" data-origin="Doreen, Diamond Creek, Victoria 3089">From Doreen</a> | |
<a href="#" class="driving-directions" data-origin="Eltham, Diamond Creek, Vic |
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( $('#map2').length > 0) { | |
var map2 = $('#map2'), | |
map_lat2 = map2.data('lat'), | |
map_ing2 = map2.data('ing'); | |
// init the map and create a cluster with some markers | |
$('#map2').gmap3({ | |
map:{ | |
options:{ | |
center:[map_lat2,map_ing2], |
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
#!/bin/bash | |
SNAPID="SNAP" | |
BACKUPDBID="TEMPDB" | |
#config groups | |
SECURITYGROUP="Mysecgrup" | |
PARAMSGROUP="Myparamsgrup" | |
#rds verifying commands |
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
// Define Esencia JS Namespace | |
function esencia_js_namespace() { | |
?><script type="text/javascript"> | |
/* <![CDATA[ */ | |
// Global Esencia Namespace | |
window.esencia = window.esencia || {}; | |
// Theme Namespace | |
esencia.theme = esencia.theme || {}; |
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 | |
$args = array( | |
'numberposts' => 18, | |
'orderby' => 'post_date', | |
'post_type' => 'cartelera' | |
); | |
$posts = get_posts( $args ); | |
if ( count( $posts ) > 0 ) : | |
?> | |
<div class="cinema"> |
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
# encoding: UTF-8 | |
require 'mechanize' | |
require 'money' | |
require 'ostruct' | |
module Itau | |
class Session < Struct.new(:ci, :pass) | |
def login | |
login_page = agent.get(itaurl) |
OlderNewer