���� 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 get_version() ); // style.css wp_register_style( 'mptt-blocks', Mp_Time_Table::get_plugin_url( 'media/css/style.css' ), array(), Core::get_instance()->get_version() ); // block-editor.css wp_register_style( 'mptt-blocks-editor', Mp_Time_Table::get_plugin_url( 'media/css/block-editor.css' ), array('mptt-blocks'), Core::get_instance()->get_version() ); // Internationalization /* * For custom translations * https://developer.wordpress.org/reference/functions/wp_set_script_translations/ * * By default, minified files should still be excluded, and if you want to explicitly include them, you can do so by adding --include=*.min.js to the command. * https://github.com/wp-cli/i18n-command/pull/85 * */ //wp_set_script_translations( 'mptt-blocks-js', 'mp-timetable', Mp_Time_Table::get_plugin_path() . 'languages' ); wp_set_script_translations( 'mptt-blocks-js', 'mp-timetable' ); register_block_type( 'mp-timetable/timetable', array( 'attributes' => array( 'align' => array( 'type' => 'string', ), 'col' => array( 'type' => 'array', 'items' => [ 'type' => 'integer', ], ), 'events' => array( 'type' => 'array', 'items' => [ 'type' => 'integer', ], ), 'event_categ' => array( 'type' => 'array', 'items' => [ 'type' => 'integer', ], ), 'increment' => array( 'type' => 'string', 'default' => '1', ), 'view' => array( 'type' => 'string', 'default' => 'dropdown_list', ), 'view_sort' => array( 'type' => 'string', 'default' => '', ), 'label' => array( 'type' => 'string', 'default' => __( "All Events", 'mp-timetable' ), ), 'hide_label' => array( 'type' => 'string', 'default' => '0', ), 'hide_hrs' => array( 'type' => 'string', 'default' => '0', ), 'hide_empty_rows' => array( 'type' => 'string', 'default' => '1', ), 'title' => array( 'type' => 'string', 'default' => '1', ), 'time' => array( 'type' => 'string', 'default' => '1', ), 'sub_title' => array( 'type' => 'string', 'default' => '0', ), 'description' => array( 'type' => 'string', 'default' => '1', ), 'user' => array( 'type' => 'string', 'default' => '0', ), 'group' => array( 'type' => 'string', 'default' => '0', ), 'disable_event_url' => array( 'type' => 'string', 'default' => '0', ), 'text_align' => array( 'type' => 'string', 'default' => 'center', ), 'id' => array( 'type' => 'string', ), 'row_height' => array( 'type' => 'string', 'default' => '45', ), 'font_size' => array( 'type' => 'string', ), 'responsive' => array( 'type' => 'string', 'default' => '1', ), 'text_align_vertical' => array( 'type' => 'string', 'default' => 'default', ), 'custom_class' => array( 'type' => 'string', ), 'table_layout' => array( 'type' => 'string' ), ), 'render_callback' => [ $this, 'render_timetable' ], 'editor_style' => 'mptt-blocks-editor', 'editor_script' => 'mptt-blocks-js', ) ); } private function show_shortcode($attributes) { foreach ($attributes as $key => $value) { // [] -> '1,2,3' if ( is_array($value) ) { $attributes[$key] = implode( ',', $value ); } // 'sub_title' -> 'sub-title' if ($key == 'sub_title') { $attributes['sub-title'] = $attributes[$key]; unset( $attributes[$key] ); } } echo Shortcode::get_instance()->show_shortcode( $attributes ); } public function render_timetable( $attributes ) { include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); $block_name = 'wp-block-timetable'; $class = $block_name; if ( isset( $attributes['align'] ) ) { $class .= ' align' . $attributes['align']; } ob_start(); ?>
show_shortcode($attributes); ?>