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 | |
/** | |
* Profile controller | |
* Delegates control to profile controllers to seperate the distinct profile features | |
*/ | |
class Twittercontroller { | |
/** | |
* Constructor |
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 | |
/** | |
* Profile controller | |
* Delegates control to profile controllers to seperate the distinct profile features | |
*/ | |
class Facebookcontroller { | |
/** | |
* Constructor |
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
// a href Selector and new attr | |
var linksToMondosonoro = $('a[href="/video/urltocatch"]'); | |
$(linksToMondosonoro).attr("href", "http://www.newurl.com") | |
$(linksToMondosonoro).attr("target","_blank"); // añade un target blank | |
// Select Selector and new attr | |
var selectToMondosonoro = $('#selectmodifier option[value="/video/selecttocatch"]'); | |
$(selectToMondosonoro).val('http://www.newurl.com'); | |
// Img variable and the new property |
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
<script> | |
$(document).ready(function(){ | |
if(!$('.testimonios > span.efecto').html().trim()) { | |
$('h2.titular').hide(); | |
$('div.testimonios').hide(); | |
$('.testimonios > span.efecto').hide(); | |
} | |
}) | |
</script> |
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 url = $(location).attr('href'); | |
var urlsplit = url.split("/"); | |
var urlname = urlsplit[5]; | |
$('a').each(function(){ | |
this.href = this.href.replace('.pag.', urlname); | |
}); |
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
<div class="styled-select"> | |
<select id="selectmodifier" onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"> | |
<option value="" selected="selected" enabled='false'>BUSCA TU ARTISTA</option> | |
<!-- START videoselect --> | |
<option value="/video/{urlname}">{name}</option> | |
<!-- END videoselect --> | |
</select> | |
</div> |
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
<div id="galeria"> | |
<h1 class="textbar">GALERÍA DE VÍDEOS</h1> | |
<div class="styled-select"> | |
<select onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"> | |
<option value="" selected="selected" enabled='false'>SELECCIONA TU ARTISTA</option> | |
<!-- START videoselect --> | |
<option value="/video/{urlname}" name="{urlalt}">{name}</option> | |
<!-- END videoselect --> | |
</select> | |
</div> |
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
$url = 'http://toysessions.savethechildren.es/video/'.$data['urlname']; | |
$login = ''; | |
$appkey = ''; | |
$format = 'xml'; | |
$version = '2.0.1'; | |
$bitly = 'http://api.bit.ly/shorten?version='.$version.'&longUrl='.urlencode($url).'&login='.$login.'&apiKey='.$appkey.'&format='.$format; | |
$response = file_get_contents($bitly); | |
if(strtolower($format) == 'json') |
OlderNewer