Plugin Directory

Changeset 936958


Ignore:
Timestamp:
06/23/2014 07:35:32 AM (12 years ago)
Author:
digitalissimo
Message:

Added new feature

Location:
eventissimo
Files:
153 added
6 edited

Legend:

Unmodified
Added
Removed
  • eventissimo/trunk/README.txt

    r932320 r936958  
    55Requires at least: 3.8
    66Tested up to: 3.4
    7 Stable tag: 1.4.2
     7Stable tag: 1.4.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242**Calendar**
    4343
    44 *  `[eventissimo type='CALENDAR' backcolorHEX='[#069c88]' fontcolorHEX='[#FFFFFF]']` :  backcolorHEX is backcolor of the event's title. Default is #069c88 for  backcolor and #FFFFFF for color text
     44*  `[eventissimo type='CALENDAR' backcolorHEX='[#069c88]' fontcolorHEX='[#FFFFFF]' search='[TRUE|FALSE]']` :  BackcolorHEX is backcolor of the event's title. Default is #069c88
     45FontcolorHEX is the font color of the event's title. Default is  #FFFFFF
     46Search is TRUE for input search into calendar FALSE not displayed
     47
    4548
    4649**List or Block Events**
     
    145148
    146149== Changelog ==
     150= 1.4.3 =
     151* Fixed problem with hour event
     152* Added Shortcode calendar with search
     153* Fixed color shortcode calendar
    147154= 1.4.2 =
    148 * Fixed hour of event Facebook (if black default from 00:00 to 23.30)
     155* Fixed hour of event Facebook
    149156* Choise if the owner event is a page (if user is administrator of the page)
    150157= 1.4.1 =
  • eventissimo/trunk/eventissimo.php

    r932320 r936958  
    55Plugin URI: http://plugin.digitalissimoweb.it/eventissimo/
    66Description: Create and organize events into your site. Your events also automatically automatically created on Facebook and import FB's events.
    7 Version: 1.4.2
     7Version: 1.4.3
    88Author: Digitalissimo
    99Author URI: http://plugin.digitalissimoweb.it
  • eventissimo/trunk/frontend.php

    r851106 r936958  
    55
    66//Calendar
    7 function eventissimo_frontend_calendar($backcolorHEX,$textColorHEX){
     7function eventissimo_frontend_calendar($backcolorHEX,$textColorHEX,$search){
     8   
     9    if ($search == TRUE){
     10        $termSearch = isset($_POST["s1"]) ? $_POST["s1"] : "";
     11        echo '
     12        <form role="search" method="post" id="searchform" action="#">
     13            <input type="text" name="s1" id="s1" value="' . $termSearch . '"/>
     14            <input type="submit" id="searchsubmit" value="' . __("Search") . '" />
     15        </form>
     16        ';
     17   
     18    }
     19   
    820    ob_start();
    9     $arrayCalendarAll = eventissimo_json_events_fullcalendar();
     21    $arrayCalendarAll = eventissimo_json_events_fullcalendar(0,$termSearch);
    1022    $output = ob_get_contents();
    1123    ob_end_clean();
    12     return  eventissimo_stamp_calendar($arrayCalendarAll,$backcolorHEX,$textColorHEX,"month,basicWeek") .
     24   
     25   
     26    return  eventissimo_stamp_calendar($arrayCalendarAll,$backcolorHEX,$textColorHEX,"month,basicWeek",$termSearch) .
    1327        "<script>
    1428            jQuery(function() {
  • eventissimo/trunk/function.php

    r887602 r936958  
    371371}
    372372
    373 function eventissimo_json_events_fullcalendar($post_per_page=0){
     373function eventissimo_json_events_fullcalendar($post_per_page=0,$search){
    374374    $json = eventissimo_json_events($post_per_page);
     375    if ($search!="") {
     376        $json = eventissimo_searchJson(eventissimo_json_events($post_per_page),"title", $search);
     377        $response = $json;
     378    }else {
     379        $json = eventissimo_json_events($post_per_page);
     380        $response = json_decode($json);
     381    }
    375382    $array_for_fullcalendar = array();
    376383
     
    378385    //start y-d-m hh:mm:ss
    379386    //end y-d-m hh:mm:ss
    380     $response = json_decode($json);
     387   
    381388    foreach ($response as $event){
    382389        $array_for_fullcalendar[] = array(
     
    487494function eventissimo_searchJson($obj, $field, $string) {
    488495    $items = json_decode($obj);
    489    
     496
    490497    foreach ( $items as $item ) {
    491498        foreach ( $item as $key => $value) {
    492             if (($key == $field) && (strstr(strtoupper($item->$field),strtoupper($string)))) {
     499            if ((strtoupper($key) == strtoupper($field)) && (strstr(strtoupper($item->$field),strtoupper($string)))) {
    493500                $array_filter[] = $item;
    494501            }
  • eventissimo/trunk/function/shortcode.php

    r854900 r936958  
    3333            'defined'=>'',
    3434
    35             'backcolorHEX'=>'#069C88',
     35            'backcolorhrex'=>'#069C88',
    3636
    37             'textcolorHEX'=>'#FFFFFF'
     37            'textcolorhex'=>'#FFFFFF',
     38           
     39            'search'=>'FALSE'
    3840
    3941        ), $atts);
     
    4143   
    4244
    43     $type = strtoupper($sh_meta['type']);
     45    $type = strtoupper($atts['type']);
    4446
    45     $date = strtoupper($sh_meta['date'])=='TRUE'? TRUE : FALSE;
     47    $date = strtoupper($atts['date'])=='TRUE'? TRUE : FALSE;
    4648
    47     $paginate = strtoupper($sh_meta['paginate'])=='TRUE'? TRUE : FALSE;
     49    $paginate = strtoupper($atts['paginate'])=='TRUE'? TRUE : FALSE;
    4850
    49     $defined = strtoupper($sh_meta['defined']);
     51    $defined = strtoupper($atts['defined']);
    5052
    51     $post_per_page = $sh_meta['limit'];
     53    $post_per_page = $atts['limit'];
    5254
    53     $view = strtoupper($sh_meta['view']);
     55    $view = strtoupper($atts['view']);
    5456
    55     $backcolorHEX = strtoupper($sh_meta['backcolorHEX']);
     57    $backcolorHEX = strtoupper($atts['backcolorhex']);
    5658
    57     $textcolorHEX = strtoupper($sh_meta['textcolorHEX']);
     59    $textcolorHEX = strtoupper($atts['textcolorhex']);
     60
     61
     62    $search = strtoupper($atts['search'])=='TRUE'? TRUE : FALSE;
    5863
    5964    if (($paginate==TRUE) && ($post_per_page=="")) $post_per_page=10;
     
    6570        case "CALENDAR":
    6671
    67             return eventissimo_frontend_calendar($backcolorHEX,$textcolorHEX);
     72            return eventissimo_frontend_calendar($backcolorHEX,$textcolorHEX,$search);
    6873
    6974        break;
     
    98103
    99104?>
    100 
  • eventissimo/trunk/meta_post/data_events.php

    r932320 r936958  
    286286            </td> 
    287287            <td width="60px">
    288                 <input  style="<?php echo $display; ?>" readonly='true' class="required"  type="text" name="ora_inizio" id="ora_inizio" value="<?php echo $ora_inizio; ?>"/>
     288                <input  style="<?php echo $display; ?>" class="required"  type="text" name="ora_inizio" id="ora_inizio" value="<?php echo $ora_inizio; ?>"/>
    289289            </td>       
    290290        </tr>
     
    299299           
    300300            <td width="60px">
    301                 <input type="text" name="ora_fine" readonly='true'  class="required" id="ora_fine" value="<?php echo $ora_fine; ?>"/>
     301                <input type="text" name="ora_fine"   class="required" id="ora_fine" value="<?php echo $ora_fine; ?>"/>
    302302            </td>
    303303        </tr>
Note: See TracChangeset for help on using the changeset viewer.