-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed some images and update with calendar
- Loading branch information
Lookmai
committed
Sep 29, 2013
1 parent
fc70100
commit bebe8a4
Showing
16 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.dp-cur, .chip dt, .te, .te-t, .te-rev-s, .rb-n, .rb-i, .agenda, .event-title{ | ||
white-space:normal !important; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
$your_google_calendar="https://www.google.com/calendar/[email protected]&gsessionid=OK"; | ||
$url= parse_url($your_google_calendar); | ||
$google_domain = $url['scheme'].'://'.$url['host'].dirname($url['path']).'/'; | ||
// Load and parse Google's raw calendar | ||
$dom = new DOMDocument; | ||
$dom->loadHTMLfile($your_google_calendar); | ||
// Change Google's CSS file to use absolute URLs (assumes there's only one element) | ||
$css = $dom->getElementByTagName('link')->item(0); | ||
$css_href = $css->getAttributes('href'); | ||
$css->setAttributes('href', $google_domain . $css_href); | ||
// Change Google's JS file to use absolute URLs | ||
$scripts = $dom->getElementByTagName('script')->item(0); | ||
foreach ($scripts as $script) { | ||
$js_src = $script->getAttributes('src'); | ||
if ($js_src) $script->setAttributes('src', $google_domain . $js_src); | ||
} | ||
// Create a link to a new CSS file called custom_calendar.css | ||
$element = $dom->createElement('link'); | ||
$element->setAttribute('type', 'text/css'); | ||
$element->setAttribute('rel', 'stylesheet'); | ||
$element->setAttribute('href', 'custom_calendar.css'); | ||
// Append this link at the end of the element | ||
$head = $dom->getElementByTagName('head')->item(0); | ||
$head->appendChild($element); | ||
// Export the HTML | ||
echo $dom->saveHTML(); | ||
?> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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