Commit a01d8818 authored by shammash's avatar shammash Committed by lechuck
Browse files

updated weekly-schedule to 2.4.

parent 89d15521
.ui-tooltip,.qtip{position:absolute;left:-28000px;top:-28000px;display:none;max-width:280px;min-width:50px;font-size:10.5px;line-height:12px;z-index:15000;}.ui-tooltip-fluid{display:block;visibility:hidden;position:static!important;float:left!important;}.ui-tooltip-content{position:relative;padding:5px 9px;overflow:hidden;border-width:1px;border-style:solid;text-align:left;word-wrap:break-word;overflow:hidden;}.ui-tooltip-titlebar{position:relative;min-height:14px;padding:5px 35px 5px 10px;overflow:hidden;border-width:1px 1px 0;border-style:solid;font-weight:bold;}.ui-tooltip-titlebar+.ui-tooltip-content{border-top-width:0!important;}/*!Default close button class */ .ui-tooltip-titlebar .ui-state-default{position:absolute;right:4px;top:50%;margin-top:-9px;cursor:pointer;outline:medium none;border-width:1px;border-style:solid;}* html .ui-tooltip-titlebar .ui-state-default{top:16px;}.ui-tooltip-titlebar .ui-icon,.ui-tooltip-icon .ui-icon{display:block;text-indent:-1000em;}.ui-tooltip-icon,.ui-tooltip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}.ui-tooltip-icon .ui-icon{width:18px;height:14px;text-align:center;text-indent:0;font:normal bold 10px/13px Tahoma,sans-serif;color:inherit;background:transparent none no-repeat -100em -100em;}/*!Default tooltip style */ .ui-tooltip-default .ui-tooltip-titlebar,.ui-tooltip-default .ui-tooltip-content{border-color:#F1D031;background-color:#FFFFA3;color:#555;}.ui-tooltip-default .ui-tooltip-titlebar{background-color:#FFEF93;}.ui-tooltip-default .ui-tooltip-icon{border-color:#CCC;background:#F1F1F1;color:#777;}.ui-tooltip-default .ui-tooltip-titlebar .ui-state-hover{border-color:#AAA;color:#111;}.ui-tooltip .ui-tooltip-tip{margin:0 auto;overflow:hidden;background:transparent!important;border:0 dashed transparent!important;z-index:10;}.ui-tooltip .ui-tooltip-tip,.ui-tooltip .ui-tooltip-tip *{position:absolute;line-height:.1px!important;font-size:.1px!important;color:#123456;background:transparent;border:0 dashed transparent;}.ui-tooltip .ui-tooltip-tip canvas{top:0;left:0;}#qtip-overlay{position:fixed;left:-10000em;top:-10000em;}#qtip-overlay.blurs{cursor:pointer;}#qtip-overlay div{position:absolute;left:0;top:0;width:100%;height:100%;background-color:black;opacity:.7;filter:alpha(opacity=70);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";}/*!Light tooltip style */ .ui-tooltip-light .ui-tooltip-titlebar,.ui-tooltip-light .ui-tooltip-content{border-color:#E2E2E2;color:#454545;}.ui-tooltip-light .ui-tooltip-content{background-color:white;}.ui-tooltip-light .ui-tooltip-titlebar{background-color:#f1f1f1;}/*!Dark tooltip style */ .ui-tooltip-dark .ui-tooltip-titlebar,.ui-tooltip-dark .ui-tooltip-content{border-color:#303030;color:#f3f3f3;}.ui-tooltip-dark .ui-tooltip-content{background-color:#505050;}.ui-tooltip-dark .ui-tooltip-titlebar{background-color:#404040;}.ui-tooltip-dark .ui-tooltip-icon{border-color:#444;}.ui-tooltip-dark .ui-tooltip-titlebar .ui-state-hover{border-color:#303030;}/*!Cream tooltip style */ .ui-tooltip-cream .ui-tooltip-titlebar,.ui-tooltip-cream .ui-tooltip-content{border-color:#F9E98E;color:#A27D35;}.ui-tooltip-cream .ui-tooltip-content{background-color:#FBF7AA;}.ui-tooltip-cream .ui-tooltip-titlebar{background-color:#F0DE7D;}.ui-tooltip-cream .ui-state-default .ui-tooltip-icon{background-position:-82px 0;}/*!Red tooltip style */ .ui-tooltip-red .ui-tooltip-titlebar,.ui-tooltip-red .ui-tooltip-content{border-color:#D95252;color:#912323;}.ui-tooltip-red .ui-tooltip-content{background-color:#F78B83;}.ui-tooltip-red .ui-tooltip-titlebar{background-color:#F06D65;}.ui-tooltip-red .ui-state-default .ui-tooltip-icon{background-position:-102px 0;}.ui-tooltip-red .ui-tooltip-icon{border-color:#D95252;}.ui-tooltip-red .ui-tooltip-titlebar .ui-state-hover{border-color:#D95252;}/*!Green tooltip style */ .ui-tooltip-green .ui-tooltip-titlebar,.ui-tooltip-green .ui-tooltip-content{border-color:#90D93F;color:#3F6219;}.ui-tooltip-green .ui-tooltip-content{background-color:#CAED9E;}.ui-tooltip-green .ui-tooltip-titlebar{background-color:#B0DE78;}.ui-tooltip-green .ui-state-default .ui-tooltip-icon{background-position:-42px 0;}/*!Blue tooltip style */ .ui-tooltip-blue .ui-tooltip-titlebar,.ui-tooltip-blue .ui-tooltip-content{border-color:#ADD9ED;color:#5E99BD;}.ui-tooltip-blue .ui-tooltip-content{background-color:#E5F6FE;}.ui-tooltip-blue .ui-tooltip-titlebar{background-color:#D0E9F5;}.ui-tooltip-blue .ui-state-default .ui-tooltip-icon{background-position:-2px 0;}/*!Add shadows to your tooltips in:FF3+,Chrome 2+,Opera 10.6+,IE6+,Safari 2+*/ .ui-tooltip-shadow{-webkit-box-shadow:1px 1px 3px 1px rgba(0,0,0,0.15);-moz-box-shadow:1px 1px 3px 1px rgba(0,0,0,0.15);box-shadow:1px 1px 3px 1px rgba(0,0,0,0.15);}.ui-tooltip-shadow .ui-tooltip-titlebar,.ui-tooltip-shadow .ui-tooltip-content{filter:progid:DXImageTransform.Microsoft.Shadow(Color='gray',Direction=135,Strength=3);-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Color='gray',Direction=135,Strength=3)";_margin-bottom:-3px;.margin-bottom:-3px;}/*!Add rounded corners to your tooltips in:FF3+,Chrome 2+,Opera 10.6+,IE9+,Safari 2+*/ .ui-tooltip-rounded,.ui-tooltip-rounded .ui-tooltip-content,.ui-tooltip-tipsy,.ui-tooltip-tipsy .ui-tooltip-content,.ui-tooltip-youtube,.ui-tooltip-youtube .ui-tooltip-content{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.ui-tooltip-rounded .ui-tooltip-titlebar,.ui-tooltip-tipsy .ui-tooltip-titlebar,.ui-tooltip-youtube .ui-tooltip-titlebar{-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0;}.ui-tooltip-rounded .ui-tooltip-titlebar+.ui-tooltip-content,.ui-tooltip-tipsy .ui-tooltip-titlebar+.ui-tooltip-content,.ui-tooltip-youtube .ui-tooltip-titlebar+.ui-tooltip-content{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;}/*!Youtube tooltip style */ .ui-tooltip-youtube{-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;}.ui-tooltip-youtube .ui-tooltip-titlebar,.ui-tooltip-youtube .ui-tooltip-content{_margin-bottom:0;.margin-bottom:0;background:transparent;background:rgba(0,0,0,0.85);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000)";color:white;border-color:#CCC;}.ui-tooltip-youtube .ui-tooltip-icon{border-color:#222;}.ui-tooltip-youtube .ui-tooltip-titlebar .ui-state-hover{border-color:#303030;}.ui-tooltip-jtools{background:#232323;background:rgba(0,0,0,0.7);background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-gradient(linear,left top,left bottom,from(#717171),to(#232323));border:2px solid #ddd;border:2px solid rgba(241,241,241,1);-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333;}.ui-tooltip-jtools .ui-tooltip-titlebar{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)";}.ui-tooltip-jtools .ui-tooltip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)";}.ui-tooltip-jtools .ui-tooltip-titlebar,.ui-tooltip-jtools .ui-tooltip-content{background:transparent;color:white;border:0 dashed transparent;}.ui-tooltip-jtools .ui-tooltip-icon{border-color:#555;}.ui-tooltip-jtools .ui-tooltip-titlebar .ui-state-hover{border-color:#333;}.ui-tooltip-cluetip{-webkit-box-shadow:4px 4px 5px rgba(0,0,0,0.4);-moz-box-shadow:4px 4px 5px rgba(0,0,0,0.4);box-shadow:4px 4px 5px rgba(0,0,0,0.4);}.ui-tooltip-cluetip .ui-tooltip-titlebar{background-color:#87876A;color:white;border:0 dashed transparent;}.ui-tooltip-cluetip .ui-tooltip-content{background-color:#D9D9C2;color:#111;border:0 dashed transparent;}.ui-tooltip-cluetip .ui-tooltip-icon{border-color:#808064;}.ui-tooltip-cluetip .ui-tooltip-titlebar .ui-state-hover{border-color:#696952;color:#696952;}.ui-tooltip-tipsy{border:0;}.ui-tooltip-tipsy .ui-tooltip-titlebar,.ui-tooltip-tipsy .ui-tooltip-content{_margin-bottom:0;.margin-bottom:0;background:transparent;background:rgba(0,0,0,.87);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000)";color:white;border:0 transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:bold;line-height:16px;text-shadow:0 1px black;}.ui-tooltip-tipsy .ui-tooltip-titlebar{padding:6px 35px 0 10;}.ui-tooltip-tipsy .ui-tooltip-content{padding:6px 10;}.ui-tooltip-tipsy .ui-tooltip-icon{border-color:#222;text-shadow:none;}.ui-tooltip-tipsy .ui-tooltip-titlebar .ui-state-hover{border-color:#303030;}.ui-tooltip-tipped .ui-tooltip-titlebar,.ui-tooltip-tipped .ui-tooltip-content{border:3px solid #959FA9;filter:none;-ms-filter:none;}.ui-tooltip-tipped .ui-tooltip-titlebar{background:#3A79B8;background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-webkit-gradient(linear,left top,left bottom,from(#3A79B8),to(#2E629D));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)";color:white;font-weight:normal;font-family:serif;border-bottom-width:0;-moz-border-radius:3px 3px 0 0;-webkit-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;}.ui-tooltip-tipped .ui-tooltip-content{background-color:#F9F9F9;color:#454545;-moz-border-radius:0 0 3px 3px;-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;}.ui-tooltip-tipped .ui-tooltip-icon{border:2px solid #285589;background:#285589;}.ui-tooltip-tipped .ui-tooltip-icon .ui-icon{background-color:#FBFBFB;color:#555;}.ui-tooltip:not(.ie9haxors) div.ui-tooltip-content,.ui-tooltip:not(.ie9haxors) div.ui-tooltip-titlebar{filter:none;-ms-filter:none;}
\ No newline at end of file
......@@ -3,7 +3,7 @@ Contributors: jackdewey
Donate link: http://yannickcorner.nayanna.biz/wordpress-plugins/weekly-schedule/
Tags: schedule, events, grid, weekly, multiple, tooltip, jQuery
Requires at least: 2.8
Tested up to: 3.0
Tested up to: 3.2.1
Stable tag: trunk
The purpose of this plugin is to allow users to create a schedule of weekly events and display that schedule on a page in a table form. Users can style events using stylesheets based on their category and can assign information to items that will be displayed in a tooltip.
......@@ -26,6 +26,9 @@ You can see a demonstration of the output of the plugin using a single schedule
== Changelog ==
= 2.4 =
* Updated qtip tooltip plugin to version 2.0 RC
= 2.3.2 =
* Made fixes to accept event names with single quotes in their name
......
......@@ -8,6 +8,7 @@
}
.ws-schedule table {
table-layout: fixed;
border-padding: 0px !important;
}
.ws-schedule .verticalcolumn1 {
float: left;
......
......@@ -2,7 +2,7 @@
/*Plugin Name: Weekly Schedule
Plugin URI: http://yannickcorner.nayanna.biz/wordpress-plugins/
Description: A plugin used to create a page with a list of TV shows
Version: 2.3.2
Version: 2.4
Author: Yannick Lefebvre
Author URI: http://yannickcorner.nayanna.biz
Copyright 2010 Yannick Lefebvre (email : ylefebvre@gmail.com)
......@@ -147,9 +147,9 @@ function ws_install() {
$options['endtime'] = 22;
$options['timedivision'] = 0.5;
$options['tooltipwidth'] = 300;
$options['tooltiptarget'] = 'rightMiddle';
$options['tooltippoint'] = 'leftMiddle';
$options['tooltipcolorscheme'] = 'cream';
$options['tooltiptarget'] = 'right center';
$options['tooltippoint'] = 'left center';
$options['tooltipcolorscheme'] = 'ui-tooltip';
$options['displaydescription'] = "tooltip";
$options['daylist'] = "";
$options['timeformat'] = "24hours";
......@@ -169,7 +169,7 @@ function ws_install() {
$genoptions['debugmode'] = false;
$genoptions['includestylescript'] = "";
$genoptions['frontpagestylescript'] = false;
$genoptions['version'] = "2.0";
$genoptions['version'] = "2.4";
update_option("WeeklyScheduleGeneral", $genoptions);
}
......@@ -180,6 +180,25 @@ function ws_install() {
update_option("WeeklyScheduleGeneral", $genoptions);
}
elseif ($genoptions['version'] == "2.3")
{
$genoptions['version'] = '2.4';
update_option('WeeklyScheduleGeneral', $genoptions);
for ( $counter = 1; $counter <= $genoptions['numberschedules']; $counter += 1) {
$colors = array('cream' => 'ui-tooltip', 'dark' => 'ui-tooltip-dark', 'green' => 'ui-tooltip-green', 'light' => 'ui-tooltip-light', 'red' => 'ui-tooltip-red', 'blue' => 'ui-tooltip-blue');
$positions = array('topLeft' => 'top left', 'topMiddle' => 'top center', 'topRight' => 'top right', 'rightTop' => 'right top', 'rightMiddle' => 'right center', 'rightBottom' => 'right bottom', 'bottomLeft' => 'bottom left', 'bottomMiddle' => 'bottom center', 'bottomRight' => 'bottom right', 'leftTop' => 'left top', 'leftMiddle' => 'left center', 'leftBottom' => 'left bottom');
$schedulename = 'WS_PP' . $counter;
$options = get_option($schedulename);
$options['tooltipcolorscheme'] = $colors[$options['tooltipcolorscheme']];
$options['tooltiptarget'] = $positions[$options['tooltiptarget']];
$options['tooltippoint'] = $positions[$options['tooltippoint']];
update_option($schedulename, $options);
}
}
}
register_activation_hook(WS_FILE, 'ws_install');
......@@ -246,9 +265,9 @@ if ( ! class_exists( 'WS_Admin' ) ) {
$options['endtime'] = 22;
$options['timedivision'] = 0.5;
$options['tooltipwidth'] = 300;
$options['tooltiptarget'] = 'rightMiddle';
$options['tooltippoint'] = 'leftMiddle';
$options['tooltipcolorscheme'] = 'cream';
$options['tooltiptarget'] = 'right center';
$options['tooltippoint'] = 'left center';
$options['tooltipcolorscheme'] = 'ui-tooltip';
$options['displaydescription'] = "tooltip";
$options['daylist'] = "";
$options['timeformat'] = "24hours";
......@@ -664,9 +683,9 @@ if ( ! class_exists( 'WS_Admin' ) ) {
$options['endtime'] = 22;
$options['timedivision'] = 0.5;
$options['tooltipwidth'] = 300;
$options['tooltiptarget'] = 'rightMiddle';
$options['tooltippoint'] = 'leftMiddle';
$options['tooltipcolorscheme'] = 'cream';
$options['tooltiptarget'] = 'right center';
$options['tooltippoint'] = 'left center';
$options['tooltipcolorscheme'] = 'ui-tooltip';
$options['displaydescription'] = "tooltip";
$options['daylist'] = "";
$options['timeformat'] = "24hours";
......@@ -715,7 +734,7 @@ if ( ! class_exists( 'WS_Admin' ) ) {
$genoptions['debugmode'] = false;
$genoptions['includestylescript'] = $upgradeoptions['includestylescript'];
$genoptions['frontpagestylescript'] = false;
$genoptions['version'] = "2.0";
$genoptions['version'] = "2.4";
update_option('WeeklyScheduleGeneral', $genoptions);
}
......@@ -1012,15 +1031,15 @@ if ( ! class_exists( 'WS_Admin' ) ) {
<tr>
<td>Tooltip Color Scheme</td>
<td><select name='tooltipcolorscheme' style='width: 100px'>
<?php $colors = array('cream', 'dark', 'green', 'light', 'red', 'blue');
foreach ($colors as $color)
<?php $colors = array('ui-tooltip' => 'cream', 'ui-tooltip-dark' => 'dark', 'ui-tooltip-green' => 'green', 'ui-tooltip-light' => 'light', 'ui-tooltip-red' => 'red', 'ui-tooltip-blue' => 'blue');
foreach ($colors as $key => $color)
{
if ($color == $options['tooltipcolorscheme'])
if ($key == $options['tooltipcolorscheme'])
$samecolor = "selected='selected'";
else
$samecolor = "";
echo "<option value='" . $color . "' " . $samecolor . ">" . $color . "\n";
echo "<option value='" . $key . "' " . $samecolor . ">" . $color . "\n";
}
?>
</select></td>
......@@ -1029,13 +1048,14 @@ if ( ! class_exists( 'WS_Admin' ) ) {
<tr>
<td>Tooltip Anchor Point on Data Cell</td>
<td><select name='tooltiptarget' style='width: 200px'>
<?php $positions = array('topLeft' => 'Top-Left Corner', 'topMiddle' => 'Middle of Top Side',
'topRight' => 'Top-Right Corner', 'rightTop' => 'Right Side of Top-Right Corner',
'rightMiddle' => 'Middle of Right Side', 'rightBottom' => 'Right Side of Bottom-Right Corner',
'bottomLeft' => 'Under Bottom-Left Side', 'bottomMiddle' => 'Under Middle of Bottom Side',
'bottomRight' => 'Under Bottom-Right Side', 'leftTop' => 'Left Side of Top-Left Corner',
'leftMiddle' => 'Middle of Left Side', 'leftBottom' => 'Left Side of Bottom-Left Corner');
foreach($positions as $index => $position)
<?php $positions = array('top left' => 'Top-Left Corner', 'top center' => 'Middle of Top Side',
'top right' => 'Top-Right Corner', 'right top' => 'Right Side of Top-Right Corner',
'right center' => 'Middle of Right Side', 'right bottom' => 'Right Side of Bottom-Right Corner',
'bottom left' => 'Under Bottom-Left Side', 'bottom center' => 'Under Middle of Bottom Side',
'bottom right' => 'Under Bottom-Right Side', 'left top' => 'Left Side of Top-Left Corner',
'left center' => 'Middle of Left Side', 'left bottom' => 'Left Side of Bottom-Left Corner');
foreach($positions as $index => $position)
{
if ($index == $options['tooltiptarget'])
$sameposition = "selected='selected'";
......@@ -1049,12 +1069,13 @@ if ( ! class_exists( 'WS_Admin' ) ) {
</select></td>
<td>Tooltip Attachment Point</td>
<td><select name='tooltippoint' style='width: 200px'>
<?php $positions = array('topLeft' => 'Top-Left Corner', 'topMiddle' => 'Middle of Top Side',
'topRight' => 'Top-Right Corner', 'rightTop' => 'Right Side of Top-Right Corner',
'rightMiddle' => 'Middle of Right Side', 'rightBottom' => 'Bottom-Right Corner',
'bottomLeft' => 'Bottom-Left Corner', 'bottomMiddle' => 'Center of Bottom Side',
'bottomRight' => 'Bottom Corner of Right Side', 'leftTop' => 'Top Corner of Left Side',
'leftMiddle' => 'Middle of Left Side', 'leftBottom' => 'Bottom Corner of Left Side');
<?php $positions = array('top left' => 'Top-Left Corner', 'top center' => 'Middle of Top Side',
'top right' => 'Top-Right Corner', 'right top' => 'Right Side of Top-Right Corner',
'right center' => 'Middle of Right Side', 'right bottom' => 'Right Side of Bottom-Right Corner',
'bottom left' => 'Under Bottom-Left Side', 'bottom center' => 'Under Middle of Bottom Side',
'bottom right' => 'Under Bottom-Right Side', 'left top' => 'Left Side of Top-Left Corner',
'left center' => 'Middle of Left Side', 'left bottom' => 'Left Side of Bottom-Left Corner');
foreach($positions as $index => $position)
{
if ($index == $options['tooltippoint'])
......@@ -1449,8 +1470,8 @@ function ws_library_flat_func($atts) {
}
function ws_library($scheduleid = 1, $starttime = 19, $endtime = 22, $timedivision = 0.5, $layout = 'horizontal', $tooltipwidth = 300, $tooltiptarget = 'rightMiddle',
$tooltippoint = 'leftMiddle', $tooltipcolorscheme = 'cream', $displaydescription = 'tooltip', $daylist = '', $timeformat = '24hours',
function ws_library($scheduleid = 1, $starttime = 19, $endtime = 22, $timedivision = 0.5, $layout = 'horizontal', $tooltipwidth = 300, $tooltiptarget = 'right center',
$tooltippoint = 'leftMiddle', $tooltipcolorscheme = 'ui-tooltip', $displaydescription = 'tooltip', $daylist = '', $timeformat = '24hours',
$adjusttooltipposition = true, $linktarget = 'newwindow') {
global $wpdb;
......@@ -1719,20 +1740,20 @@ function ws_library($scheduleid = 1, $starttime = 19, $endtime = 22, $timedivisi
$output .= "\t\t\tcontent: jQuery(this).attr('tooltip'), // Use the tooltip attribute of the element for the content\n";
$output .= "\t\t\tstyle: {\n";
$output .= "\t\t\t\twidth: " . $tooltipwidth . ",\n";
$output .= "\t\t\t\tname: '" . $tooltipcolorscheme . "' // Give it a crea mstyle to make it stand out\n";
$output .= "\t\t\t\tclasses: '" . $tooltipcolorscheme . "' // Give it a crea mstyle to make it stand out\n";
$output .= "\t\t\t},\n";
$output .= "\t\t\tposition: {\n";
if ($adjusttooltipposition)
$output .= "\t\t\t\tadjust: {screen: true},\n";
$output .= "\t\t\t\tcorner: {\n";
$output .= "\t\t\t\t\ttarget: '" . $tooltiptarget . "',\n";
$output .= "\t\t\t\t\ttooltip: '" . $tooltippoint . "'\n";
$output .= "\t\t\t\t}\n";
$output .= "\t\t\t\tadjust: {method: 'flip flip'},\n";
$output .= "\t\t\t\tviewport: jQuery(window),\n";
$output .= "\t\t\t\tat: '" . $tooltiptarget . "',\n";
$output .= "\t\t\t\tmy: '" . $tooltippoint . "'\n";
$output .= "\t\t\t}\n";
$output .= "\t\t});\n";
$output .= "\t});\n";
$output .= "});\n";
$output .= "</script>\n";
}
$output .= "<!-- End of Weekly Schedule Output -->\n";
......@@ -1740,8 +1761,8 @@ function ws_library($scheduleid = 1, $starttime = 19, $endtime = 22, $timedivisi
return $output;
}
function ws_library_flat($scheduleid = 1, $starttime = 19, $endtime = 22, $timedivision = 0.5, $layout = 'horizontal', $tooltipwidth = 300, $tooltiptarget = 'rightMiddle',
$tooltippoint = 'leftMiddle', $tooltipcolorscheme = 'cream', $displaydescription = 'tooltip', $daylist = '', $timeformat = '24hours',
function ws_library_flat($scheduleid = 1, $starttime = 19, $endtime = 22, $timedivision = 0.5, $layout = 'horizontal', $tooltipwidth = 300, $tooltiptarget = 'right center',
$tooltippoint = 'leftMiddle', $tooltipcolorscheme = 'ui-tooltip', $displaydescription = 'tooltip', $daylist = '', $timeformat = '24hours',
$adjusttooltipposition = true) {
global $wpdb;
......@@ -1986,7 +2007,8 @@ function ws_conditionally_add_scripts_and_styles($posts){
if ($load_qtip)
{
wp_enqueue_script('qtip', get_bloginfo('wpurl') . '/wp-content/plugins/weekly-schedule/jquery-qtip/jquery.qtip-1.0.min.js');
wp_enqueue_style('qtipstyle', get_bloginfo('wpurl') . '/wp-content/plugins/weekly-schedule/jquery-qtip/jquery.qtip-2.0.min.css');
wp_enqueue_script('qtip', get_bloginfo('wpurl') . '/wp-content/plugins/weekly-schedule/jquery-qtip/jquery.qtip-2.0.min.js');
}
return $posts;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment