a simple calendar plugin for jQuery and Twitter Bootstrap.
Works inline, in dropdowns, and in the responsive navbar!
Note: that each event in the example has a diferent behavior
array( "27/4/2013", 'github drinkup', 'https://github.com/blog/category/drinkup', 'blue' )
array( "7/4/2013", 'bootstrap logo popover!', '#', '#51a351', '<img src="http://bit.ly/XRpKAE" />' )
array( "17/4/2013", 'octocat!', 'https://github.com/logos', 'red', 'new github logo <img src="http://git.io/Xmayvg" />' )
$(document).ready( function(){ theMonths = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; theDays = ["S", "M", "T", "W", "T", "F", "S"]; $('#calendar_test').calendar({ months: theMonths, days: theDays, req_ajax: { type: 'get', url: 'json.php' } }); });
<?php $month = isset($_GET['month']) ? $_GET['month'] : date('n'); $year = isset($_GET['year']) ? $_GET['year'] : date('Y'); $array = array( array( "7/$month/$year", 'bootstrap logo popover!', '#', '#51a351', '<img src="http://bit.ly/XRpKAE" />' ), array( "17/$month/$year", 'octocat!', 'https://github.com/logos', 'blue', 'new github logo <img src="http://git.io/Xmayvg" />' ), array( "27/$month/$year", 'github drinkup', 'https://github.com/blog/category/drinkup', 'red' ) ); header('Content-Type: application/json'); echo json_encode($array); exit; ?>
original bic_calendar by bic.cat.
bootstrap_calendar fork (english localization and updates) by xero