diff --git a/breadcrumbs.php b/breadcrumbs.php index 6593d4e..05e3381 100644 --- a/breadcrumbs.php +++ b/breadcrumbs.php @@ -39,6 +39,7 @@ function breadcrumbs() { elseif ($l[0]=='Courses') { echo '

 / Курсове

'; } elseif ($l[0]=='News') { echo '

 / Новини

'; } elseif ($l[0]=='Labber') { echo '

 / Лаб`ъри

'; } + elseif ($l[0]=='Tribe_events') { echo '

 / Събития

'; } else { echo '

 / '.$l[0].'

'; diff --git a/events/ecp-page-template.php b/events/ecp-page-template.php new file mode 100644 index 0000000..8ba5975 --- /dev/null +++ b/events/ecp-page-template.php @@ -0,0 +1,18 @@ + + + +
+
+

+
+
+ +
+
+ + diff --git a/events/ecp-single-template.php b/events/ecp-single-template.php new file mode 100644 index 0000000..677c496 --- /dev/null +++ b/events/ecp-single-template.php @@ -0,0 +1,18 @@ + + + +
+
+

+
+ + + +
+ + +', ''); +
> */ ?> diff --git a/events/events-list-load-widget-display.php b/events/events-list-load-widget-display.php new file mode 100644 index 0000000..ffea70b --- /dev/null +++ b/events/events-list-load-widget-display.php @@ -0,0 +1,60 @@ +AllDay', +// '$event->StartDate', +// '$event->EndDate', +// '$event->ShowMapLink', +// '$event->ShowMap', +// '$event->Cost', +// '$event->Phone', + +// Don't load directly +if ( !defined('ABSPATH') ) { die('-1'); } + +$event = array(); +$tribe_ecp = TribeEvents::instance(); +reset($tribe_ecp->metaTags); // Move pointer to beginning of array. +foreach($tribe_ecp->metaTags as $tag){ + $var_name = str_replace('_Event','',$tag); + $event[$var_name] = tribe_get_event_meta( $post->ID, $tag, true ); +} + +$event = (object) $event; //Easier to work with. + +ob_start(); +if ( !isset($alt_text) ) { $alt_text = ''; } +post_class($alt_text,$post->ID); +$class = ob_get_contents(); +ob_end_clean(); +?> +
  • > + + ID ); + + //if( tribe_is_multiday( $post->ID ) || !$event->AllDay ) { + //echo ' –
    '. tribe_get_end_date($post->ID); + //} + + if( $event->AllDay ) { + echo ' ('.__('All Day','tribe-events-calendar').')'; + } + ?> +
    + +
  • + diff --git a/events/events.css b/events/events.css new file mode 100644 index 0000000..e69de29 diff --git a/events/single.php b/events/single.php new file mode 100644 index 0000000..b80eed8 --- /dev/null +++ b/events/single.php @@ -0,0 +1,112 @@ + += '0' ) ? ' +' . get_option('gmt_offset') : " " . get_option('gmt_offset'); + $gmt_offset = str_replace( array( '.25', '.5', '.75' ), array( ':15', ':30', ':45' ), $gmt_offset ); + if (strtotime( tribe_get_end_date(get_the_ID(), false, 'Y-m-d G:i') . $gmt_offset ) <= time() ) { ?>
    + +
    + + + +
    + +
    + + + + + + + + + + + + + + + + + diff --git a/functions.php b/functions.php index ee1a5dc..ab1c8b1 100644 --- a/functions.php +++ b/functions.php @@ -57,6 +57,17 @@ function de($var, $debug=true) 'after_title' => '', 'after_widget' => '' ) + ); + + register_sidebar( + array( + 'name' => 'Homepage - Row 3', + 'description' => '', + 'before_widget' => '
    ', + 'before_title' => '

    ', + 'after_title' => '

    ', + 'after_widget' => '
    ' + ) ); register_sidebar( diff --git a/home.php b/home.php index 4cedc03..4ec2045 100644 --- a/home.php +++ b/home.php @@ -9,11 +9,9 @@
    -
    - */ ?>
    @@ -23,14 +21,7 @@
    -
    -
    -

    Предстоящи събития

    -
    -
    - -
    -
    +
    diff --git a/sass/_calendar.scss b/sass/_calendar.scss index 08569c3..d9ac877 100644 --- a/sass/_calendar.scss +++ b/sass/_calendar.scss @@ -1,97 +1,102 @@ -/* --- calendar --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */ +/* --- Calendar --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */ -#calendar #ftcalendar-div { - background: none; - border: none; +#tribe-events-content {} +#tribe-events-calendar-header { - #ftcalendar-feeds { } - - #ftcalendar-nav { + .tribe-events-month-nav { overflow: hidden; - position: relative; - span { - display: block; - width: 2em; height: 2em; - position: absolute; - - a { display: block; width: 100%; height: 100%; color: #444; } + & > span, & > form { + float: left; } - #ftcalendar-prev { - left: 0; top: 0; - - a { } + & > span { + width: 20%; } - #ftcalendar-next { - right: 0; top: 0; - a { text-align: right; } + & > form { + width: 60%; + padding: 0 0 1em 8em; + overflow: hidden; } - #ftcalendar-current { - left: 0; top: 0; - width: 100%; - text-align: center; - } + .tribe-events-prev-month {} + .tribe-events-next-month { text-align: right; } + } + form select { + float: left; + width: 30%; + margin: 0 1%; } - #ftcalendar-table { - background: none; - border-spacing: 0; - border: solid #CCC; - border-width: 1px 0 0 1px; - - th, td { - border-top-color: #FFF; - border-left-color: #FFF; - border-right-color: #CCC; - border-bottom-color: #CCC; - } + .tribe-events-calendar-buttons { display: none; } +} - th { - padding: 0.2em 0; - background: rgba(0, 0, 0, 0.1); - - } +table.tribe-events-calendar { + width: 100%; + table-layout: fixed; + border-spacing: 0; + margin-bottom: 2em; + border-top: 1px solid #CCC; + border-left: 1px solid #CCC; + + td, th { + border: 1px solid #CCC; + border-left-color: #FFF; + border-top-color: #FFF; + } + thead { + th { background: #CCC; } + } + + tbody { td { - background: none; - - .ftcalendar-event-date { - background: rgba(0, 0, 0, 0.05); - padding: 0.2em 0.2em 0.2em 0; + height: 90px; + min-height: 90px; + vertical-align: top; + .daynum { + font-size: 0.8em; + line-height: 1em; + padding: 0.2em 0.6em 0.4em 0; + text-align: right; + background: rgba(0, 0, 0, 0.05); + border-bottom: 1px solid #F8F8F8; } - - &.current_day { - background: rgba(255,255,255, 0.8); - .ftcalendar-event-date { - background: rgba(0, 0, 0, 0.03); + /*tribe_events type-tribe_events status-publish hentry tribe-events-event tribe-events-real-event cat_-2*/ + .tribe_events { + position: relative; + + & > a { display: block; font-size: 0.9em; white-space: nowrap; overflow: hidden; } + & > .tribe-events-tooltip { + width: 320px; + height: 160px; + position: absolute; + left: -35%; bottom: 15px; + padding: 1em 1.3em; + background: #F6F6F6; + /*border: 1px solid #CCC;*/ + border-radius: 8px; + + @include box-shadow(#666 0 0 10px); + + .tribe-events-event-date { display: block; border-bottom: 1px dashed #CCC; padding-bottom: 0.5em; margin-bottom: 0.5em; } + .tribe-events-event-body { line-height: 1.2em; } } - } - - .ftcalendar-events-div { - background: none; - - .ftcalendar-event { - background: none; - border: none; - - div { - background: rgba(255,255,255, 0.8); - border: none; - border-bottom: 1px solid #DDD; + } - a { display: block; padding: 0.1em 0 0.2em 0; } - } - } + &.tribe-events-present { + background: rgba(255, 255, 255, 0.8);; } + + .tribe-events-event { } + + .tribe-events-tooltip { } + .tribe-events-arrow { } } } - #ftcalendar-legend { } } - diff --git a/sass/_elements.scss b/sass/_elements.scss index 730cc25..780e85c 100644 --- a/sass/_elements.scss +++ b/sass/_elements.scss @@ -68,7 +68,7 @@ article.page { } } -article.courses { +article.columns { overflow: hidden; section header { diff --git a/scripts/app.js b/scripts/app.js index 2d880ad..b95a83e 100644 --- a/scripts/app.js +++ b/scripts/app.js @@ -35,8 +35,8 @@ function loadGMaps() { } jQuery(document).ready(function ($) { - - loadGMaps(); + + if( $('body').hasClass('home') ) loadGMaps(); /* Load Tweets on the homepage */ $("#tweets").tweet({ @@ -64,7 +64,6 @@ jQuery(document).ready(function ($) { $presence.append('