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
[ | |
{ | |
"id": "1", | |
"name": "pedro", | |
"type": "card" | |
}, | |
{ | |
"id": "2", | |
"name": "raul", | |
"type": "card" |
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
<ul > | |
<li class="use-ajax tabs id active"><a href="nojs/id">tab1</a></li> | |
<li class="use-ajax tabs id2"><a href="nojs/id2">tab2</a></li> | |
<li class="use-ajax tabs id3"><a href="nojs/id3">tab3</a></li> | |
</ul> | |
<div class="content-to-replace"> | |
</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
<?php | |
function cableonda_sports_photogallery_views_pre_execute(view &$view) { | |
if ($view->name == 'photogallery_by_activity') { | |
if($view->current_display =='block_1'){ | |
$query = $view->build_info['query']; | |
$query2 = db_select('node', 'a')->fields('a',array('nid')); | |
$query2->addField('a', 'created', 'node_created'); | |
$query2->addExpression("'node'", 'field_data_field_photo_imagen_node_entity_type'); | |
$query2->addExpression("'photogallery_by_activity:block_1'", 'view_name'); |
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 | |
Mymodule_preprocess_node(){ | |
$variables['url_share'] = url(current_path(), array('absolute' => TRUE)); | |
drupal_add_js('http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-get-pubid', 'file'); //get public id | |
} | |
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 | |
/** | |
* @file | |
* Template to display a view as a calendar day, grouped by time | |
* and optionally organized into columns by a field value. | |
* | |
* @see template_preprocess_calendar_day. | |
* | |
* $rows: The rendered data for this day. | |
* $rows['date'] - the date for this day, formatted as YYYY-MM-DD. |
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 | |
$columns = &$vars['columns']; | |
$items = $vars['rows']['items']; | |
for ($ci=0; $ci <count($columns); $ci++) { | |
for ($rec_time=0; $rec_time < 86400; $rec_time+= 1800) { | |
$time_all = gmdate('H:i:s', $rec_time); | |
$time_brev = gmdate('H:i', $rec_time); | |
if(!isset($items[$time_all]['values'][$columns[$ci]])) { | |
$items[$time_all]['values'][$columns[$ci]] = | |
array('<div class="item false-item"><div class="view-item view-item-tv_guide_channels2"><div class="calendar dayview"><div><div class="col-30"><div class="guideWrapper"><div class="guideTitleWrapper"><div class="guideTitle no-content">PROGRAMA NO DISPONIBLE</div></div></div></div></div><div class="cutoff"></div></div></div></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
<?php | |
$video_url = "jwplayer('video_content').setup({ | |
file: '".$video_content."', | |
image: '".$video_image."', | |
width: '100%', | |
aspectratio: '16:9' | |
});"; | |
drupal_add_js($video_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
<div class="node--news-social-share"> | |
<div class="twitter-follow"> | |
<a href="<?php print $twitter_url; ?>" class="twitter-follow-button" data-show-count="false" data-lang="es"></a> | |
</div> | |
<div class="field--news-division"></div> | |
<div class="facebook-like"> | |
<div class="fb-share-button" data-href="<?php print $url_share; ?>" data-type="button_count"></div> | |
</div> | |
<div class="twitter-share"> | |
<a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php print $url_share; ?>" data-via="<?php print $twitter_user; ?>" data-lang="en">Tweet</a> |
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 | |
$form['filters']['button'] = array( | |
// '#weight' => '4', | |
'#type' => 'button', | |
'#value' => t('Filtrar'), | |
'#ajax' => array( | |
'callback' => 'custom_ajax_submit', | |
'wrapper' => 'id', | |
'method' => 'replace', | |
), |
NewerOlder