Now all modules are in core modules folder
This commit is contained in:
parent
5ba1cdfa0b
commit
05b6a91b0c
1907 changed files with 0 additions and 0 deletions
3
modules/calendar/jcalendar/Readme.txt
Normal file
3
modules/calendar/jcalendar/Readme.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Just some credits.
|
||||
|
||||
The throbber is from thickbox and the x is from a jquery tooltip library, although I cannot remember which.
|
BIN
modules/calendar/jcalendar/images/cross.png
Normal file
BIN
modules/calendar/jcalendar/images/cross.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 655 B |
BIN
modules/calendar/jcalendar/images/throbber.gif
Normal file
BIN
modules/calendar/jcalendar/images/throbber.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
49
modules/calendar/jcalendar/jcalendar.css
Normal file
49
modules/calendar/jcalendar/jcalendar.css
Normal file
|
@ -0,0 +1,49 @@
|
|||
div#calpopup {
|
||||
display: block;
|
||||
border: thin solid gray;
|
||||
/* This is css3 stuff that will not work in IE<=8.
|
||||
* What is here is a curved border for firefox and webkit
|
||||
* and a drop shadow that will only appear in webkit.
|
||||
**/
|
||||
-moz-border-radius: 1em;
|
||||
-webkit-border-radius: 1em;
|
||||
-webkit-box-shadow: 10px 10px 5px #888;
|
||||
/* End CSS3 stuff */
|
||||
background-color: white;
|
||||
width: 25%;
|
||||
position: absolute;
|
||||
top: 20em;
|
||||
left: 20em;
|
||||
|
||||
/* CSS to make sure that the popup is on top */
|
||||
z-index: 800;
|
||||
}
|
||||
|
||||
div#calpopup-body div.node {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
div#calpopup-body {
|
||||
margin: 1em;
|
||||
max-height: 20em;
|
||||
overflow-y: auto;
|
||||
/* IE7 Hack
|
||||
* This keeps the date from sticking in one place while scrolling.
|
||||
*/
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#popup-close {
|
||||
text-align: right;
|
||||
padding: 1em 1em 0 1em;
|
||||
}
|
||||
|
||||
div#nodelink {
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
img#popthrobber {
|
||||
text-align: center;
|
||||
margin: 3em;
|
||||
}
|
14
modules/calendar/jcalendar/jcalendar.info
Normal file
14
modules/calendar/jcalendar/jcalendar.info
Normal file
|
@ -0,0 +1,14 @@
|
|||
; $Id: jcalendar.info,v 1.1.4.2 2008/06/23 14:55:01 karens Exp $
|
||||
name = Calendar Popup
|
||||
description = "Replaces the links to calendar items with a javascript popup that gracefully regresses if javascript is not enabled"
|
||||
dependencies[] = calendar
|
||||
dependencies[] = views
|
||||
core = 6.x
|
||||
package = Date/Time
|
||||
|
||||
; Information added by drupal.org packaging script on 2011-01-03
|
||||
version = "6.x-2.4"
|
||||
core = "6.x"
|
||||
project = "calendar"
|
||||
datestamp = "1294072550"
|
||||
|
82
modules/calendar/jcalendar/jcalendar.js
Normal file
82
modules/calendar/jcalendar/jcalendar.js
Normal file
|
@ -0,0 +1,82 @@
|
|||
if (Drupal.jsEnabled) {
|
||||
$(document).ready(function() {
|
||||
// I am assuming that all of the links are refering to an internal node
|
||||
|
||||
// add the attribute rel=facebox to all of the links I want to have a popup
|
||||
$('div.view-field > a').attr('class', 'popup');
|
||||
|
||||
// on click of a link
|
||||
$('a.popup').click(function(a) {
|
||||
|
||||
// Make sure that other stuff is closed. This seems to cause a problem in Fx2 and IE7.
|
||||
$('div#calpopup').fadeOut();
|
||||
$('div#calpopup').remove();
|
||||
|
||||
// create div to hold data and add it to the end of the body
|
||||
var div = $('<div id="calpopup"><div id="popup-close"><img id="popup-close-img" src="' + Drupal.settings.jcalendar.path + '/images/cross.png" /></div><div id="calpopup-body"><img src="' + Drupal.settings.jcalendar.path + '/images/throbber.gif" id="popthrobber" /></div></div>').attr('style','display: none');
|
||||
div.appendTo(document.body);
|
||||
|
||||
// Locate Popup
|
||||
var offset = $(this).offset();
|
||||
// Check position with window width.
|
||||
var offset_left = offset.left + 5;
|
||||
if ($(window).width() < $('#calpopup').width() + offset.left) {
|
||||
offset_left -= $('#calpopup').width() + 5;
|
||||
if (offset_left < 0) {
|
||||
offset_left = 0;
|
||||
}
|
||||
}
|
||||
var offset_top = offset.top + 25;
|
||||
if ($(window).height() < $('#calpopup').height() + offset_top) {
|
||||
offset_top -= $('#calpopup').height() + 25;
|
||||
if (offset_top < 0) {
|
||||
offset_top = 0;
|
||||
}
|
||||
}
|
||||
$('#calpopup').css('left', offset_left);
|
||||
$('#calpopup').css('top', offset_top);
|
||||
|
||||
// Show Popup
|
||||
$('#calpopup').fadeIn('slow');
|
||||
|
||||
// If sucessful call this
|
||||
function domCallback(msg) {
|
||||
$('#calpopup-body').html(msg);
|
||||
}
|
||||
|
||||
// Get NodeID and ItemID
|
||||
var ids = $(this).parent().parent().attr('class');
|
||||
var arrs = ids.split(" ");
|
||||
var arr = arrs[0].split(".");
|
||||
var nid = arr[1];
|
||||
var id = arr[4];
|
||||
|
||||
// fill the div with data
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: Drupal.settings.basePath + "?q=jcalendar/getnode/"+nid+"/"+ids,
|
||||
success: function(msg){
|
||||
domCallback(msg);
|
||||
}
|
||||
});
|
||||
|
||||
// On click of the close image
|
||||
$('img#popup-close-img').click(function(x) {
|
||||
$('div#calpopup').fadeOut();
|
||||
$('div#calpopup').remove();
|
||||
});
|
||||
|
||||
$(document).click(function(y) {
|
||||
var $tgt = $(y.target);
|
||||
if (!$tgt.parents().is('div#calpopup')) {
|
||||
$('div#calpopup').fadeOut();
|
||||
$('div#calpopup').remove();
|
||||
$(document).unbind("click");
|
||||
}
|
||||
});
|
||||
|
||||
// Don't Follow the real link
|
||||
return false;
|
||||
});
|
||||
});
|
||||
}
|
97
modules/calendar/jcalendar/jcalendar.module
Normal file
97
modules/calendar/jcalendar/jcalendar.module
Normal file
|
@ -0,0 +1,97 @@
|
|||
<?php
|
||||
// $Id: jcalendar.module,v 1.1.4.17 2010/11/21 12:24:45 karens Exp $
|
||||
|
||||
/**
|
||||
* @file
|
||||
* jQuery Calendar UI features.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Display help and module information
|
||||
* @param section which section of the site we're displaying help
|
||||
* @return help text for section
|
||||
*/
|
||||
function jcalendar_help($path, $arg) {
|
||||
$output = '';
|
||||
switch ($path) {
|
||||
case "admin/help#jcalendar":
|
||||
$output = '<p>'. t("Creates a popup for calendar dates.") .'</p>';
|
||||
break;
|
||||
}
|
||||
return $output;
|
||||
} // function jcalendar_help
|
||||
|
||||
/**
|
||||
* Get calendar node for popup
|
||||
* @param integer nid Node id.
|
||||
* @param string id Date field unique id.
|
||||
* @return string HTML for node
|
||||
*/
|
||||
function get_calendar_node($nid, $id) {
|
||||
$GLOBALS['devel_shutdown'] = FALSE;
|
||||
if (is_numeric($nid)) {
|
||||
if ($node = node_load($nid)) {
|
||||
if (node_access("view", $node)) {
|
||||
$node->date_id = $id;
|
||||
$node->date_repeat_show = FALSE;
|
||||
print theme('jcalendar_view', $node);
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
||||
/**
|
||||
* Implemetation of hook_menu()
|
||||
*/
|
||||
function jcalendar_menu() {
|
||||
|
||||
$items['jcalendar/getnode'] = array(
|
||||
'title' => 'Get Calendar Node',
|
||||
'page callback' => 'get_calendar_node',
|
||||
'page arguments' => array(2, 3),
|
||||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the calendar view to inject javascript.
|
||||
* @param view Which view we are using.
|
||||
* @return unknown as of yet.
|
||||
*/
|
||||
function jcalendar_views_pre_view(&$view, &$display_id) {
|
||||
static $js_added = false;
|
||||
if ($js_added) {
|
||||
return;
|
||||
}
|
||||
foreach ($view->display as $display) {
|
||||
if ($display->display_plugin == 'calendar') {
|
||||
$js_added = true;
|
||||
$path = drupal_get_path('module', 'jcalendar');
|
||||
$settings['jcalendar']['path'] = base_path() . $path;
|
||||
drupal_add_js($settings, 'setting');
|
||||
drupal_add_js($path .'/jcalendar.js');
|
||||
drupal_add_css($path .'/jcalendar.css');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_theme().
|
||||
*/
|
||||
function jcalendar_theme() {
|
||||
return array(
|
||||
'jcalendar_view' => array('arguments' => array('node' => NULL)),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrideable theme for the jcalendar popup view.
|
||||
*
|
||||
* Defaults to show the standard teaser view of the node.
|
||||
*/
|
||||
function theme_jcalendar_view($node) {
|
||||
$output = node_view($node, TRUE);
|
||||
$output .= '<div id="nodelink">'. l(t('more', array(), $node->language), calendar_get_node_link($node)) .'</div>';
|
||||
return $output;
|
||||
}
|
28
modules/calendar/jcalendar/translations/jcalendar.cs.po
Normal file
28
modules/calendar/jcalendar/translations/jcalendar.cs.po
Normal file
|
@ -0,0 +1,28 @@
|
|||
# $Id: jcalendar.cs.po,v 1.1.2.1 2010/10/22 20:06:37 wojtha Exp $
|
||||
#
|
||||
# Czech translation of Calendar (6.x-2.2)
|
||||
# Copyright (c) 2010 by the Czech translation team
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calendar (6.x-2.2)\n"
|
||||
"POT-Creation-Date: 2010-10-22 20:03+0000\n"
|
||||
"PO-Revision-Date: 2010-09-29 20:42+0000\n"
|
||||
"Language-Team: Czech\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=((((n%10)==1)&&((n%100)!=11))?(0):(((((n%10)>=2)&&((n%10)<=4))&&(((n%100)<10)||((n%100)>=20)))?(1):2));\n"
|
||||
|
||||
msgid "Creates a popup for calendar dates."
|
||||
msgstr "Vytvoří popup okno pro data kalendáře"
|
||||
msgid "Calendar Popup"
|
||||
msgstr "Calendar Popup"
|
||||
msgid ""
|
||||
"Replaces the links to calendar items with a javascript popup that "
|
||||
"gracefully regresses if javascript is not enabled"
|
||||
msgstr ""
|
||||
"Nahradí odkaz na položku kalendáře vyskakovacím oknem. Vyžaduje "
|
||||
"povolený javascript."
|
||||
msgid "Get Calendar Node"
|
||||
msgstr "Získej uzel kalendáře"
|
27
modules/calendar/jcalendar/translations/jcalendar.hu.po
Normal file
27
modules/calendar/jcalendar/translations/jcalendar.hu.po
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Hungarian translation of Calendar (all releases)
|
||||
# Copyright (c) 2009 by the Hungarian translation team
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Calendar (all releases)\n"
|
||||
"POT-Creation-Date: 2009-11-10 16:39+0000\n"
|
||||
"PO-Revision-Date: 2009-10-31 09:55+0000\n"
|
||||
"Language-Team: Hungarian\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n!=1);\n"
|
||||
|
||||
msgid "Creates a popup for calendar dates."
|
||||
msgstr "Hozzárendel egy felugró ablakot a naptár napjaihoz."
|
||||
msgid "Calendar Popup"
|
||||
msgstr "Calendar Popup"
|
||||
msgid ""
|
||||
"Replaces the links to calendar items with a javascript popup that "
|
||||
"gracefully regresses if javascript is not enabled"
|
||||
msgstr ""
|
||||
"Egy javscript felugró ablakra cseréli a naptár elemek "
|
||||
"hivatkozásait, ami elegánsan eltűnik, ha a javascript nem "
|
||||
"engedélyezett."
|
||||
msgid "Get Calendar Node"
|
||||
msgstr "Naptár tartalom lekérdezése"
|
49
modules/calendar/jcalendar/translations/jcalendar.pot
Normal file
49
modules/calendar/jcalendar/translations/jcalendar.pot
Normal file
|
@ -0,0 +1,49 @@
|
|||
# $Id: jcalendar.pot,v 1.1.2.1 2009/02/17 11:06:21 karens Exp $
|
||||
#
|
||||
# LANGUAGE translation of Drupal (general)
|
||||
# Copyright YEAR NAME <EMAIL@ADDRESS>
|
||||
# Generated from files:
|
||||
# jcalendar.module,v 1.1.4.15 2009/01/10 20:14:16 karens
|
||||
# jcalendar.info,v 1.1.4.2 2008/06/23 14:55:01 karens
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"POT-Creation-Date: 2009-02-17 05:04-0600\n"
|
||||
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
|
||||
"Last-Translator: NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
||||
|
||||
#: jcalendar.module:18
|
||||
msgid "Creates a popup for calendar dates."
|
||||
msgstr ""
|
||||
|
||||
#: jcalendar.module:90
|
||||
msgid "more"
|
||||
msgstr ""
|
||||
|
||||
#: jcalendar.module:48
|
||||
msgid "Get Calendar Node"
|
||||
msgstr ""
|
||||
|
||||
#: jcalendar.module:0
|
||||
msgid "jcalendar"
|
||||
msgstr ""
|
||||
|
||||
#: jcalendar.info:0
|
||||
msgid "Calendar Popup"
|
||||
msgstr ""
|
||||
|
||||
#: jcalendar.info:0
|
||||
msgid "Replaces the links to calendar items with a javascript popup that gracefully regresses if javascript is not enabled"
|
||||
msgstr ""
|
||||
|
||||
#: jcalendar.info:0
|
||||
msgid "Date/Time"
|
||||
msgstr ""
|
||||
|
Reference in a new issue