Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
// Get download uri of actual file. | |
$uri = file_entity_download_uri($file); | |
// We need query-params for download-token here. | |
$dl_link = l(t('Download'), $uri['path'], array('query' => $uri['options']['query'])); | |
print $dl_link; |
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
/* | |
* We are overriding a large part of the JS defined in leaflet (leaflet.drupal.js). | |
* Not nice, but we can't do otherwise without refactoring code in Leaflet. | |
*/ | |
(function ($) { | |
var LEAFLET_MARKERCLUSTER_EXCLUDE_FROM_CLUSTER = 0x01; | |
Drupal.behaviors.leaflet = { // overrides same behavior in leaflet/leaflet.drupal.js |
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 mytheme_date_all_day_label() { | |
return ''; | |
} | |
?> |
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 | |
class DATABASE_CONFIG { | |
var $default = array( | |
'driver' => 'mysql', | |
'persistent' => false, | |
'host' => 'localhost', | |
'login' => 'root', | |
'password' => 'mypassword', | |
'database' => 'mydatabase', | |
'encoding' => 'utf8' |
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 | |
$db = ConnectionManager::getDataSource("mydatabase_extern"); | |
$sql_extern = "SELECT id, name FROM table_extern"; | |
$result = $db->query($sql_extern); | |
?> |
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 | |
$header_data = array( | |
array( | |
'header_background' => 'background-image:url(../img/header/header_sun12.jpg)', | |
'header_elements' => array( | |
array( | |
'img_link' => "link1.php", | |
'img_title' => "Link Titel", | |
'img_pos_left' => 240, | |
'img_pos_top' => 10, |
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 | |
$smarty->assign('rh',$header_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
<?php | |
include('booster/booster_inc.php'); | |
$booster = new Booster(); | |
$booster->css_source = array( | |
'../css/smoothness/jquery-ui-1.8.5.custom.css', | |
'../css/jquery.fcbkcomplete.css', | |
'../css/formalize/formalize.css', | |
); | |
$booster->js_source = array( | |
'../js/lib/jquery-1.4.4.min.js', |
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 | |
$this->Model->setDataSource("db_extern"); // wechseln der Datenbankverbindung | |
$this->Model->findAll(...); | |
$this->Model->setDataSource("default"); // zurückwechseln zur "normalen" Verbindung | |
?> |
OlderNewer