@@ -15,172 +15,172 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | class Sensei_Shortcode_Loader{ |
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * @var array { |
|
| 20 | - * type string $shortcode |
|
| 21 | - * type Sensei_Shortcode |
|
| 22 | - * } all the shortcodes and which class to instantiate when they are called from |
|
| 23 | - * WordPress's do_shortcode() function. |
|
| 24 | - * |
|
| 25 | - */ |
|
| 26 | - protected $shortcode_classes; |
|
| 27 | - |
|
| 28 | - /** |
|
| 29 | - * Run all the functions that needs to be hooked into WordPress |
|
| 30 | - * |
|
| 31 | - * @since 1.9.0 |
|
| 32 | - */ |
|
| 33 | - public function __construct(){ |
|
| 34 | - |
|
| 35 | - // create a list of shortcodes and the class that handles them |
|
| 36 | - $this->setup_shortcode_class_map(); |
|
| 37 | - |
|
| 38 | - // setup all the shortcodes and load the listener into WP |
|
| 39 | - $this->initialize_shortcodes(); |
|
| 40 | - |
|
| 41 | - // add sensei body class for shortcodes |
|
| 42 | - add_filter( 'body_class', array( $this, 'possibly_add_body_class' )); |
|
| 43 | - |
|
| 44 | - // array( $this, 'add_body_class') |
|
| 45 | - |
|
| 46 | - } |
|
| 47 | - |
|
| 48 | - /** |
|
| 49 | - * Array of shortcode classes that should be instantiated when WordPress loads |
|
| 50 | - * a Sensei specific shortcode. |
|
| 51 | - * This list contains: |
|
| 52 | - * $shortcode => $class_name |
|
| 53 | - * |
|
| 54 | - * $shortcode is the actual shortcode the user will add to the editor |
|
| 55 | - * $class_name is the name of the class that will be instantiated to handle |
|
| 56 | - * the rendering of the shortcode. |
|
| 57 | - * |
|
| 58 | - * NOTE: When adding a new shortcode here be sure to load your shortcodes class |
|
| 59 | - * in class-sensei-autoloader class_file_map function |
|
| 60 | - */ |
|
| 61 | - public function setup_shortcode_class_map(){ |
|
| 62 | - |
|
| 63 | - $this->shortcode_classes = array( |
|
| 64 | - 'sensei_featured_courses' => 'Sensei_Shortcode_Featured_Courses', |
|
| 65 | - 'sensei_user_courses' => 'Sensei_Shortcode_User_Courses', |
|
| 66 | - 'sensei_courses' => 'Sensei_Shortcode_Courses', |
|
| 67 | - 'sensei_teachers' => 'Sensei_Shortcode_Teachers', |
|
| 68 | - 'sensei_user_messages' => 'Sensei_Shortcode_User_Messages', |
|
| 69 | - 'sensei_course_page' => 'Sensei_Shortcode_Course_Page', |
|
| 70 | - 'sensei_lesson_page' => 'Sensei_Shortcode_Lesson_Page', |
|
| 71 | - 'sensei_course_categories' => 'Sensei_Shortcode_Course_Categories', |
|
| 72 | - 'sensei_unpurchased_courses' => 'Sensei_Shortcode_Unpurchased_Courses', |
|
| 73 | - ); |
|
| 74 | - |
|
| 75 | - // legacy shortcode handling: |
|
| 76 | - Sensei_Legacy_Shortcodes::init(); |
|
| 77 | - |
|
| 78 | - } |
|
| 79 | - |
|
| 80 | - /** |
|
| 81 | - * Add all shortcodes here |
|
| 82 | - * |
|
| 83 | - * This function adds shortcodes to WP that links to other functionality. |
|
| 84 | - * @since 1.9.0 |
|
| 85 | - */ |
|
| 86 | - public function initialize_shortcodes(){ |
|
| 87 | - |
|
| 88 | - // shortcodes should only respond to front end calls |
|
| 89 | - if( is_admin() || defined( 'DOING_AJAX' ) ){ |
|
| 90 | - return; |
|
| 91 | - } |
|
| 92 | - |
|
| 93 | - /** |
|
| 94 | - * Tell WP to run this classes load_shortcode function for all the |
|
| 95 | - * shortcodes registered here in. |
|
| 96 | - * |
|
| 97 | - * With this method we only load shortcode classes when we need them. |
|
| 98 | - */ |
|
| 99 | - foreach( $this->shortcode_classes as $shortcode => $class ){ |
|
| 100 | - |
|
| 101 | - // all Sensei shortcodes are rendered by this loader class |
|
| 102 | - // it acts as an interface between wp and the shortcodes registered |
|
| 103 | - // above |
|
| 104 | - add_shortcode( $shortcode, array( $this,'render_shortcode' ) ); |
|
| 105 | - |
|
| 106 | - } |
|
| 107 | - |
|
| 108 | - } |
|
| 109 | - |
|
| 110 | - /** |
|
| 111 | - * Respond to WordPress do_shortcode calls |
|
| 112 | - * for shortcodes registered in the initialize_shortcodes function. |
|
| 113 | - * |
|
| 114 | - * @since 1.9.0 |
|
| 115 | - * |
|
| 116 | - * @param $attributes |
|
| 117 | - * @param $content |
|
| 118 | - * @param $code the shortcode that is being requested |
|
| 119 | - * |
|
| 120 | - * @return string |
|
| 121 | - */ |
|
| 122 | - public function render_shortcode( $attributes='', $content='', $code ){ |
|
| 123 | - |
|
| 124 | - // only respond if the shortcode that we've added shortcode |
|
| 125 | - // classes for. |
|
| 126 | - if( ! isset( $this->shortcode_classes[ $code ] ) ){ |
|
| 127 | - return ''; |
|
| 128 | - } |
|
| 129 | - |
|
| 130 | - // create an instances of the current requested shortcode |
|
| 131 | - $shortcode_handling_class = $this->shortcode_classes[ $code ]; |
|
| 132 | - $shortcode = new $shortcode_handling_class( $attributes, $content, $code ); |
|
| 133 | - |
|
| 134 | - // we expect the sensei class instantiated to implement the Sensei_Shortcode interface |
|
| 135 | - if( ! in_array( 'Sensei_Shortcode_Interface', class_implements( $shortcode) ) ){ |
|
| 136 | - |
|
| 137 | - $message = "The rendering class for your shortcode: $code, must implement the Sensei_Shortcode interface"; |
|
| 138 | - _doing_it_wrong('Sensei_Shortcode_Loader::render_shortcode',$message, '1.9.0' ); |
|
| 139 | - |
|
| 140 | - } |
|
| 141 | - |
|
| 142 | - return $shortcode->render(); |
|
| 143 | - |
|
| 144 | - } |
|
| 145 | - |
|
| 146 | - /** |
|
| 147 | - * Add the Sensei body class if |
|
| 148 | - * the current page has a Sensei shortcode. |
|
| 149 | - * |
|
| 150 | - * Note: legacy shortcodes not supported here. |
|
| 151 | - * |
|
| 152 | - * @since 1.9.0 |
|
| 153 | - * |
|
| 154 | - * @param array $classes |
|
| 155 | - * @return array |
|
| 156 | - */ |
|
| 157 | - public function possibly_add_body_class ( $classes ) { |
|
| 158 | - |
|
| 159 | - global $post; |
|
| 160 | - |
|
| 161 | - $has_sensei_shortcode = false; |
|
| 162 | - |
|
| 163 | - if ( is_a( $post, 'WP_Post' ) ) { |
|
| 164 | - |
|
| 165 | - // check all registered Sensei shortcodes (not legacy shortcodes) |
|
| 166 | - foreach ( $this->shortcode_classes as $shortcode => $class ){ |
|
| 167 | - |
|
| 168 | - if ( has_shortcode( $post->post_content, $shortcode ) ) { |
|
| 18 | + /** |
|
| 19 | + * @var array { |
|
| 20 | + * type string $shortcode |
|
| 21 | + * type Sensei_Shortcode |
|
| 22 | + * } all the shortcodes and which class to instantiate when they are called from |
|
| 23 | + * WordPress's do_shortcode() function. |
|
| 24 | + * |
|
| 25 | + */ |
|
| 26 | + protected $shortcode_classes; |
|
| 27 | + |
|
| 28 | + /** |
|
| 29 | + * Run all the functions that needs to be hooked into WordPress |
|
| 30 | + * |
|
| 31 | + * @since 1.9.0 |
|
| 32 | + */ |
|
| 33 | + public function __construct(){ |
|
| 34 | + |
|
| 35 | + // create a list of shortcodes and the class that handles them |
|
| 36 | + $this->setup_shortcode_class_map(); |
|
| 37 | + |
|
| 38 | + // setup all the shortcodes and load the listener into WP |
|
| 39 | + $this->initialize_shortcodes(); |
|
| 40 | + |
|
| 41 | + // add sensei body class for shortcodes |
|
| 42 | + add_filter( 'body_class', array( $this, 'possibly_add_body_class' )); |
|
| 43 | + |
|
| 44 | + // array( $this, 'add_body_class') |
|
| 45 | + |
|
| 46 | + } |
|
| 47 | + |
|
| 48 | + /** |
|
| 49 | + * Array of shortcode classes that should be instantiated when WordPress loads |
|
| 50 | + * a Sensei specific shortcode. |
|
| 51 | + * This list contains: |
|
| 52 | + * $shortcode => $class_name |
|
| 53 | + * |
|
| 54 | + * $shortcode is the actual shortcode the user will add to the editor |
|
| 55 | + * $class_name is the name of the class that will be instantiated to handle |
|
| 56 | + * the rendering of the shortcode. |
|
| 57 | + * |
|
| 58 | + * NOTE: When adding a new shortcode here be sure to load your shortcodes class |
|
| 59 | + * in class-sensei-autoloader class_file_map function |
|
| 60 | + */ |
|
| 61 | + public function setup_shortcode_class_map(){ |
|
| 62 | + |
|
| 63 | + $this->shortcode_classes = array( |
|
| 64 | + 'sensei_featured_courses' => 'Sensei_Shortcode_Featured_Courses', |
|
| 65 | + 'sensei_user_courses' => 'Sensei_Shortcode_User_Courses', |
|
| 66 | + 'sensei_courses' => 'Sensei_Shortcode_Courses', |
|
| 67 | + 'sensei_teachers' => 'Sensei_Shortcode_Teachers', |
|
| 68 | + 'sensei_user_messages' => 'Sensei_Shortcode_User_Messages', |
|
| 69 | + 'sensei_course_page' => 'Sensei_Shortcode_Course_Page', |
|
| 70 | + 'sensei_lesson_page' => 'Sensei_Shortcode_Lesson_Page', |
|
| 71 | + 'sensei_course_categories' => 'Sensei_Shortcode_Course_Categories', |
|
| 72 | + 'sensei_unpurchased_courses' => 'Sensei_Shortcode_Unpurchased_Courses', |
|
| 73 | + ); |
|
| 74 | + |
|
| 75 | + // legacy shortcode handling: |
|
| 76 | + Sensei_Legacy_Shortcodes::init(); |
|
| 77 | + |
|
| 78 | + } |
|
| 79 | + |
|
| 80 | + /** |
|
| 81 | + * Add all shortcodes here |
|
| 82 | + * |
|
| 83 | + * This function adds shortcodes to WP that links to other functionality. |
|
| 84 | + * @since 1.9.0 |
|
| 85 | + */ |
|
| 86 | + public function initialize_shortcodes(){ |
|
| 87 | + |
|
| 88 | + // shortcodes should only respond to front end calls |
|
| 89 | + if( is_admin() || defined( 'DOING_AJAX' ) ){ |
|
| 90 | + return; |
|
| 91 | + } |
|
| 92 | + |
|
| 93 | + /** |
|
| 94 | + * Tell WP to run this classes load_shortcode function for all the |
|
| 95 | + * shortcodes registered here in. |
|
| 96 | + * |
|
| 97 | + * With this method we only load shortcode classes when we need them. |
|
| 98 | + */ |
|
| 99 | + foreach( $this->shortcode_classes as $shortcode => $class ){ |
|
| 100 | + |
|
| 101 | + // all Sensei shortcodes are rendered by this loader class |
|
| 102 | + // it acts as an interface between wp and the shortcodes registered |
|
| 103 | + // above |
|
| 104 | + add_shortcode( $shortcode, array( $this,'render_shortcode' ) ); |
|
| 105 | + |
|
| 106 | + } |
|
| 107 | + |
|
| 108 | + } |
|
| 109 | + |
|
| 110 | + /** |
|
| 111 | + * Respond to WordPress do_shortcode calls |
|
| 112 | + * for shortcodes registered in the initialize_shortcodes function. |
|
| 113 | + * |
|
| 114 | + * @since 1.9.0 |
|
| 115 | + * |
|
| 116 | + * @param $attributes |
|
| 117 | + * @param $content |
|
| 118 | + * @param $code the shortcode that is being requested |
|
| 119 | + * |
|
| 120 | + * @return string |
|
| 121 | + */ |
|
| 122 | + public function render_shortcode( $attributes='', $content='', $code ){ |
|
| 123 | + |
|
| 124 | + // only respond if the shortcode that we've added shortcode |
|
| 125 | + // classes for. |
|
| 126 | + if( ! isset( $this->shortcode_classes[ $code ] ) ){ |
|
| 127 | + return ''; |
|
| 128 | + } |
|
| 129 | + |
|
| 130 | + // create an instances of the current requested shortcode |
|
| 131 | + $shortcode_handling_class = $this->shortcode_classes[ $code ]; |
|
| 132 | + $shortcode = new $shortcode_handling_class( $attributes, $content, $code ); |
|
| 133 | + |
|
| 134 | + // we expect the sensei class instantiated to implement the Sensei_Shortcode interface |
|
| 135 | + if( ! in_array( 'Sensei_Shortcode_Interface', class_implements( $shortcode) ) ){ |
|
| 136 | + |
|
| 137 | + $message = "The rendering class for your shortcode: $code, must implement the Sensei_Shortcode interface"; |
|
| 138 | + _doing_it_wrong('Sensei_Shortcode_Loader::render_shortcode',$message, '1.9.0' ); |
|
| 139 | + |
|
| 140 | + } |
|
| 141 | + |
|
| 142 | + return $shortcode->render(); |
|
| 143 | + |
|
| 144 | + } |
|
| 145 | + |
|
| 146 | + /** |
|
| 147 | + * Add the Sensei body class if |
|
| 148 | + * the current page has a Sensei shortcode. |
|
| 149 | + * |
|
| 150 | + * Note: legacy shortcodes not supported here. |
|
| 151 | + * |
|
| 152 | + * @since 1.9.0 |
|
| 153 | + * |
|
| 154 | + * @param array $classes |
|
| 155 | + * @return array |
|
| 156 | + */ |
|
| 157 | + public function possibly_add_body_class ( $classes ) { |
|
| 158 | + |
|
| 159 | + global $post; |
|
| 160 | + |
|
| 161 | + $has_sensei_shortcode = false; |
|
| 162 | + |
|
| 163 | + if ( is_a( $post, 'WP_Post' ) ) { |
|
| 164 | + |
|
| 165 | + // check all registered Sensei shortcodes (not legacy shortcodes) |
|
| 166 | + foreach ( $this->shortcode_classes as $shortcode => $class ){ |
|
| 167 | + |
|
| 168 | + if ( has_shortcode( $post->post_content, $shortcode ) ) { |
|
| 169 | 169 | |
| 170 | - $has_sensei_shortcode = true; |
|
| 171 | - } |
|
| 170 | + $has_sensei_shortcode = true; |
|
| 171 | + } |
|
| 172 | 172 | |
| 173 | - } |
|
| 174 | - } |
|
| 173 | + } |
|
| 174 | + } |
|
| 175 | 175 | |
| 176 | - if( $has_sensei_shortcode ) { |
|
| 177 | - $classes[] = 'sensei' ; |
|
| 178 | - } |
|
| 176 | + if( $has_sensei_shortcode ) { |
|
| 177 | + $classes[] = 'sensei' ; |
|
| 178 | + } |
|
| 179 | 179 | |
| 180 | 180 | |
| 181 | - return $classes; |
|
| 182 | - |
|
| 183 | - } |
|
| 181 | + return $classes; |
|
| 182 | + |
|
| 183 | + } |
|
| 184 | 184 | |
| 185 | 185 | } // end class Sensei_Shortcodes |
| 186 | 186 | new Sensei_Shortcode_Loader(); |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 3 | 3 | /** |
| 4 | - * Content wrappers |
|
| 5 | - * |
|
| 6 | - * All support theme wrappers can be found in includes/theme-integrations |
|
| 7 | - * |
|
| 8 | - * @author Automattic |
|
| 9 | - * @package Sensei |
|
| 10 | - * @category Templates |
|
| 11 | - * @version 1.9.0 |
|
| 12 | - */ |
|
| 4 | + * Content wrappers |
|
| 5 | + * |
|
| 6 | + * All support theme wrappers can be found in includes/theme-integrations |
|
| 7 | + * |
|
| 8 | + * @author Automattic |
|
| 9 | + * @package Sensei |
|
| 10 | + * @category Templates |
|
| 11 | + * @version 1.9.0 |
|
| 12 | + */ |
|
| 13 | 13 | ?> |
| 14 | 14 | |
| 15 | 15 | </main> |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Content wrappers Start |
|
| 4 | - * |
|
| 5 | - * All support theme wrappers can be found in includes/theme-integrations |
|
| 6 | - * |
|
| 7 | - * @author WooThemes |
|
| 8 | - * @package WooCommerce/Templates |
|
| 9 | - * @version 1.6.4 |
|
| 10 | - */ |
|
| 3 | + * Content wrappers Start |
|
| 4 | + * |
|
| 5 | + * All support theme wrappers can be found in includes/theme-integrations |
|
| 6 | + * |
|
| 7 | + * @author WooThemes |
|
| 8 | + * @package WooCommerce/Templates |
|
| 9 | + * @version 1.6.4 |
|
| 10 | + */ |
|
| 11 | 11 | ?> |
| 12 | 12 | <div id="container"> |
| 13 | 13 | <div id="content" role="main"> |
@@ -14,10 +14,10 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | class Sensei_Course_Results { |
| 16 | 16 | |
| 17 | - /** |
|
| 18 | - * @var string |
|
| 19 | - */ |
|
| 20 | - public $courses_url_base; |
|
| 17 | + /** |
|
| 18 | + * @var string |
|
| 19 | + */ |
|
| 20 | + public $courses_url_base; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Constructor. |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | global $wp_query, $current_user; |
| 99 | 99 | |
| 100 | 100 | if( isset( $wp_query->query_vars['course_results'] ) ) { |
| 101 | - Sensei_Templates::get_template( 'course-results/course-info.php' ); |
|
| 101 | + Sensei_Templates::get_template( 'course-results/course-info.php' ); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | } |
@@ -117,20 +117,20 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | sensei_do_deprecated_action( 'sensei_course_results_lessons','1.9.','sensei_course_results_content_inside_after', $course ); |
| 119 | 119 | |
| 120 | - sensei_do_deprecated_action( 'sensei_course_results_bottom','1.9.','sensei_course_results_content_inside_after', $course->ID ); |
|
| 120 | + sensei_do_deprecated_action( 'sensei_course_results_bottom','1.9.','sensei_course_results_content_inside_after', $course->ID ); |
|
| 121 | 121 | |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |
| 125 | 125 | * Load template for displaying course lessons |
| 126 | - * |
|
| 126 | + * |
|
| 127 | 127 | * @since 1.4.0 |
| 128 | 128 | * @return void |
| 129 | 129 | */ |
| 130 | 130 | public function course_lessons() { |
| 131 | 131 | |
| 132 | 132 | global $course; |
| 133 | - _deprecated_function( 'Sensei_modules course_lessons ', '1.9.0' ); |
|
| 133 | + _deprecated_function( 'Sensei_modules course_lessons ', '1.9.0' ); |
|
| 134 | 134 | |
| 135 | 135 | } |
| 136 | 136 | |
@@ -147,62 +147,62 @@ discard block |
||
| 147 | 147 | return $classes; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | - /** |
|
| 151 | - * Deprecate the sensei_course_results_content hook |
|
| 152 | - * |
|
| 153 | - * @deprecated since 1.9.0 |
|
| 154 | - */ |
|
| 155 | - public static function deprecate_sensei_course_results_content_hook(){ |
|
| 150 | + /** |
|
| 151 | + * Deprecate the sensei_course_results_content hook |
|
| 152 | + * |
|
| 153 | + * @deprecated since 1.9.0 |
|
| 154 | + */ |
|
| 155 | + public static function deprecate_sensei_course_results_content_hook(){ |
|
| 156 | 156 | |
| 157 | - sensei_do_deprecated_action('sensei_course_results_content', '1.9.0','sensei_course_results_content_before'); |
|
| 157 | + sensei_do_deprecated_action('sensei_course_results_content', '1.9.0','sensei_course_results_content_before'); |
|
| 158 | 158 | |
| 159 | - } |
|
| 159 | + } |
|
| 160 | 160 | |
| 161 | - /** |
|
| 162 | - * Fire the sensei frontend message hook |
|
| 163 | - * |
|
| 164 | - * @since 1.9.0 |
|
| 165 | - */ |
|
| 166 | - public static function fire_sensei_message_hook(){ |
|
| 161 | + /** |
|
| 162 | + * Fire the sensei frontend message hook |
|
| 163 | + * |
|
| 164 | + * @since 1.9.0 |
|
| 165 | + */ |
|
| 166 | + public static function fire_sensei_message_hook(){ |
|
| 167 | 167 | |
| 168 | - do_action( 'sensei_frontend_messages' ); |
|
| 168 | + do_action( 'sensei_frontend_messages' ); |
|
| 169 | 169 | |
| 170 | - } |
|
| 170 | + } |
|
| 171 | 171 | |
| 172 | - /** |
|
| 173 | - * Deprecate the course_results info hook |
|
| 174 | - * |
|
| 175 | - * @since 1.9.0 |
|
| 176 | - */ |
|
| 177 | - public static function deprecate_course_result_info_hook(){ |
|
| 172 | + /** |
|
| 173 | + * Deprecate the course_results info hook |
|
| 174 | + * |
|
| 175 | + * @since 1.9.0 |
|
| 176 | + */ |
|
| 177 | + public static function deprecate_course_result_info_hook(){ |
|
| 178 | 178 | |
| 179 | - sensei_do_deprecated_action( 'sensei_course_results_info', '1.9.0', 'sensei_course_results_content_inside_before' ); |
|
| 179 | + sensei_do_deprecated_action( 'sensei_course_results_info', '1.9.0', 'sensei_course_results_content_inside_before' ); |
|
| 180 | 180 | |
| 181 | - } |
|
| 181 | + } |
|
| 182 | 182 | |
| 183 | - /** |
|
| 184 | - * Deprecate the sensei_course_results_top hook |
|
| 185 | - * |
|
| 186 | - * @deprecate since 1.9.0 |
|
| 187 | - */ |
|
| 188 | - public static function deprecate_course_results_top_hook(){ |
|
| 183 | + /** |
|
| 184 | + * Deprecate the sensei_course_results_top hook |
|
| 185 | + * |
|
| 186 | + * @deprecate since 1.9.0 |
|
| 187 | + */ |
|
| 188 | + public static function deprecate_course_results_top_hook(){ |
|
| 189 | 189 | |
| 190 | - global $course; |
|
| 191 | - sensei_do_deprecated_action( 'sensei_course_results_top', '1.9.0' ,'sensei_course_results_content_inside_before',$course->ID ); |
|
| 190 | + global $course; |
|
| 191 | + sensei_do_deprecated_action( 'sensei_course_results_top', '1.9.0' ,'sensei_course_results_content_inside_before',$course->ID ); |
|
| 192 | 192 | |
| 193 | - } |
|
| 193 | + } |
|
| 194 | 194 | |
| 195 | - /** |
|
| 196 | - * Fire the course image hook |
|
| 197 | - * |
|
| 198 | - * @since 1.8.0 |
|
| 199 | - */ |
|
| 200 | - public static function fire_course_image_hook(){ |
|
| 195 | + /** |
|
| 196 | + * Fire the course image hook |
|
| 197 | + * |
|
| 198 | + * @since 1.8.0 |
|
| 199 | + */ |
|
| 200 | + public static function fire_course_image_hook(){ |
|
| 201 | 201 | |
| 202 | - global $course; |
|
| 203 | - sensei_do_deprecated_action('sensei_course_image','1.9.0', 'sensei_single_course_content_inside_before', array( get_the_ID()) ); |
|
| 202 | + global $course; |
|
| 203 | + sensei_do_deprecated_action('sensei_course_image','1.9.0', 'sensei_single_course_content_inside_before', array( get_the_ID()) ); |
|
| 204 | 204 | |
| 205 | - } |
|
| 205 | + } |
|
| 206 | 206 | |
| 207 | 207 | } // End Class |
| 208 | 208 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public static function has_language_pack_available( $locale = null ) { |
| 93 | 93 | |
| 94 | - if ( is_null( $locale ) ) { |
|
| 94 | + if ( is_null( $locale ) ) { |
|
| 95 | 95 | |
| 96 | 96 | $locale = get_locale(); |
| 97 | 97 | |
@@ -109,11 +109,11 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | - if( isset( $_GET['translation_updated'] ) && 5 == $_GET['translation_updated'] ){ |
|
| 112 | + if( isset( $_GET['translation_updated'] ) && 5 == $_GET['translation_updated'] ){ |
|
| 113 | 113 | |
| 114 | - return false; |
|
| 114 | + return false; |
|
| 115 | 115 | |
| 116 | - } |
|
| 116 | + } |
|
| 117 | 117 | |
| 118 | 118 | $version = get_option( 'woothemes_sensei_language_pack_version', array( '0', $locale ) ); |
| 119 | 119 | |
@@ -1,51 +1,51 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 3 | 3 | /** |
| 4 | - * Content-course.php template file |
|
| 5 | - * |
|
| 6 | - * responsible for content on archive like pages. Only shows the course excerpt. |
|
| 7 | - * |
|
| 8 | - * For single course content please see single-course.php |
|
| 9 | - * |
|
| 10 | - * @author Automattic |
|
| 11 | - * @package Sensei |
|
| 12 | - * @category Templates |
|
| 13 | - * @version 1.9.0 |
|
| 14 | - */ |
|
| 4 | + * Content-course.php template file |
|
| 5 | + * |
|
| 6 | + * responsible for content on archive like pages. Only shows the course excerpt. |
|
| 7 | + * |
|
| 8 | + * For single course content please see single-course.php |
|
| 9 | + * |
|
| 10 | + * @author Automattic |
|
| 11 | + * @package Sensei |
|
| 12 | + * @category Templates |
|
| 13 | + * @version 1.9.0 |
|
| 14 | + */ |
|
| 15 | 15 | ?> |
| 16 | 16 | |
| 17 | 17 | <li <?php post_class( WooThemes_Sensei_Course::get_course_loop_content_class() ); ?> > |
| 18 | 18 | |
| 19 | 19 | <?php |
| 20 | - /** |
|
| 21 | - * This action runs before the sensei course content. It runs inside the sensei |
|
| 22 | - * content-course.php template. |
|
| 23 | - * |
|
| 24 | - * @since 1.9 |
|
| 25 | - * |
|
| 26 | - * @param integer $course_id |
|
| 27 | - */ |
|
| 28 | - do_action( 'sensei_course_content_before', get_the_ID() ); |
|
| 29 | - ?> |
|
| 20 | + /** |
|
| 21 | + * This action runs before the sensei course content. It runs inside the sensei |
|
| 22 | + * content-course.php template. |
|
| 23 | + * |
|
| 24 | + * @since 1.9 |
|
| 25 | + * |
|
| 26 | + * @param integer $course_id |
|
| 27 | + */ |
|
| 28 | + do_action( 'sensei_course_content_before', get_the_ID() ); |
|
| 29 | + ?> |
|
| 30 | 30 | |
| 31 | 31 | <section class="course-content"> |
| 32 | 32 | |
| 33 | 33 | <section class="entry"> |
| 34 | 34 | |
| 35 | 35 | <?php |
| 36 | - /** |
|
| 37 | - * Fires just before the course content in the content-course.php file. |
|
| 38 | - * |
|
| 39 | - * @since 1.9 |
|
| 40 | - * |
|
| 41 | - * @param integer $course_id |
|
| 42 | - * |
|
| 43 | - * @hooked Sensei_Templates::the_title - 5 |
|
| 44 | - * @hooked Sensei()->course->course_image - 10 |
|
| 45 | - * @hooked Sensei()->course->the_course_meta - 20 |
|
| 46 | - */ |
|
| 47 | - do_action('sensei_course_content_inside_before', get_the_ID() ); |
|
| 48 | - ?> |
|
| 36 | + /** |
|
| 37 | + * Fires just before the course content in the content-course.php file. |
|
| 38 | + * |
|
| 39 | + * @since 1.9 |
|
| 40 | + * |
|
| 41 | + * @param integer $course_id |
|
| 42 | + * |
|
| 43 | + * @hooked Sensei_Templates::the_title - 5 |
|
| 44 | + * @hooked Sensei()->course->course_image - 10 |
|
| 45 | + * @hooked Sensei()->course->the_course_meta - 20 |
|
| 46 | + */ |
|
| 47 | + do_action('sensei_course_content_inside_before', get_the_ID() ); |
|
| 48 | + ?> |
|
| 49 | 49 | |
| 50 | 50 | <p class="course-excerpt"> |
| 51 | 51 | |
@@ -54,34 +54,34 @@ discard block |
||
| 54 | 54 | </p> |
| 55 | 55 | |
| 56 | 56 | <?php |
| 57 | - /** |
|
| 58 | - * Fires just after the course content in the content-course.php file. |
|
| 59 | - * |
|
| 60 | - * @since 1.9 |
|
| 61 | - * |
|
| 62 | - * @param integer $course_id |
|
| 63 | - * |
|
| 64 | - * @hooked Sensei()->course->the_course_free_lesson_preview - 20 |
|
| 65 | - */ |
|
| 66 | - do_action('sensei_course_content_inside_after', get_the_ID() ); |
|
| 67 | - ?> |
|
| 57 | + /** |
|
| 58 | + * Fires just after the course content in the content-course.php file. |
|
| 59 | + * |
|
| 60 | + * @since 1.9 |
|
| 61 | + * |
|
| 62 | + * @param integer $course_id |
|
| 63 | + * |
|
| 64 | + * @hooked Sensei()->course->the_course_free_lesson_preview - 20 |
|
| 65 | + */ |
|
| 66 | + do_action('sensei_course_content_inside_after', get_the_ID() ); |
|
| 67 | + ?> |
|
| 68 | 68 | |
| 69 | 69 | </section> <!-- section .entry --> |
| 70 | 70 | |
| 71 | 71 | </section> <!-- section .course-content --> |
| 72 | 72 | |
| 73 | 73 | <?php |
| 74 | - /** |
|
| 75 | - * Fires after the course block in the content-course.php file. |
|
| 76 | - * |
|
| 77 | - * @since 1.9 |
|
| 78 | - * |
|
| 79 | - * @param integer $course_id |
|
| 80 | - * |
|
| 81 | - * @hooked Sensei()->course->the_course_free_lesson_preview - 20 |
|
| 82 | - */ |
|
| 83 | - do_action('sensei_course_content_after', get_the_ID() ); |
|
| 84 | - ?> |
|
| 74 | + /** |
|
| 75 | + * Fires after the course block in the content-course.php file. |
|
| 76 | + * |
|
| 77 | + * @since 1.9 |
|
| 78 | + * |
|
| 79 | + * @param integer $course_id |
|
| 80 | + * |
|
| 81 | + * @hooked Sensei()->course->the_course_free_lesson_preview - 20 |
|
| 82 | + */ |
|
| 83 | + do_action('sensei_course_content_after', get_the_ID() ); |
|
| 84 | + ?> |
|
| 85 | 85 | |
| 86 | 86 | |
| 87 | 87 | </li> <!-- article .(<?php esc_attr_e( join( ' ', get_post_class( array( 'course', 'post' ) ) ) ); ?> --> |
| 88 | 88 | \ No newline at end of file |
@@ -19,62 +19,62 @@ |
||
| 19 | 19 | |
| 20 | 20 | <?php |
| 21 | 21 | |
| 22 | - /** |
|
| 23 | - * Hook inside the single lesson above the content |
|
| 24 | - * |
|
| 25 | - * @since 1.9.0 |
|
| 26 | - * |
|
| 27 | - * @param integer $lesson_id |
|
| 28 | - * |
|
| 29 | - * @hooked deprecated_lesson_image_hook - 10 |
|
| 30 | - * @hooked deprecate_sensei_lesson_single_title - 15 |
|
| 31 | - * @hooked Sensei_Lesson::lesson_image() - 17 |
|
| 32 | - * @hooked deprecate_lesson_single_main_content_hook - 20 |
|
| 33 | - */ |
|
| 34 | - do_action( 'sensei_single_lesson_content_inside_before', get_the_ID() ); |
|
| 35 | - |
|
| 36 | - ?> |
|
| 22 | + /** |
|
| 23 | + * Hook inside the single lesson above the content |
|
| 24 | + * |
|
| 25 | + * @since 1.9.0 |
|
| 26 | + * |
|
| 27 | + * @param integer $lesson_id |
|
| 28 | + * |
|
| 29 | + * @hooked deprecated_lesson_image_hook - 10 |
|
| 30 | + * @hooked deprecate_sensei_lesson_single_title - 15 |
|
| 31 | + * @hooked Sensei_Lesson::lesson_image() - 17 |
|
| 32 | + * @hooked deprecate_lesson_single_main_content_hook - 20 |
|
| 33 | + */ |
|
| 34 | + do_action( 'sensei_single_lesson_content_inside_before', get_the_ID() ); |
|
| 35 | + |
|
| 36 | + ?> |
|
| 37 | 37 | |
| 38 | 38 | <section class="entry fix"> |
| 39 | 39 | |
| 40 | 40 | <?php |
| 41 | 41 | |
| 42 | - if ( sensei_can_user_view_lesson() ) { |
|
| 42 | + if ( sensei_can_user_view_lesson() ) { |
|
| 43 | 43 | |
| 44 | - if( apply_filters( 'sensei_video_position', 'top', $post->ID ) == 'top' ) { |
|
| 44 | + if( apply_filters( 'sensei_video_position', 'top', $post->ID ) == 'top' ) { |
|
| 45 | 45 | |
| 46 | - do_action( 'sensei_lesson_video', $post->ID ); |
|
| 46 | + do_action( 'sensei_lesson_video', $post->ID ); |
|
| 47 | 47 | |
| 48 | - } |
|
| 48 | + } |
|
| 49 | 49 | |
| 50 | - the_content(); |
|
| 50 | + the_content(); |
|
| 51 | 51 | |
| 52 | - } else { |
|
| 53 | - ?> |
|
| 52 | + } else { |
|
| 53 | + ?> |
|
| 54 | 54 | |
| 55 | 55 | <p> <?php the_excerpt(); ?> </p> |
| 56 | 56 | |
| 57 | 57 | <?php |
| 58 | - } |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | - ?> |
|
| 60 | + ?> |
|
| 61 | 61 | |
| 62 | 62 | </section> |
| 63 | 63 | |
| 64 | 64 | <?php |
| 65 | 65 | |
| 66 | - /** |
|
| 67 | - * Hook inside the single lesson template after the content |
|
| 68 | - * |
|
| 69 | - * @since 1.9.0 |
|
| 70 | - * |
|
| 71 | - * @param integer $lesson_id |
|
| 72 | - * |
|
| 73 | - * @hooked Sensei()->frontend->sensei_breadcrumb - 30 |
|
| 74 | - */ |
|
| 75 | - do_action( 'sensei_single_lesson_content_inside_after', get_the_ID() ); |
|
| 76 | - |
|
| 77 | - ?> |
|
| 66 | + /** |
|
| 67 | + * Hook inside the single lesson template after the content |
|
| 68 | + * |
|
| 69 | + * @since 1.9.0 |
|
| 70 | + * |
|
| 71 | + * @param integer $lesson_id |
|
| 72 | + * |
|
| 73 | + * @hooked Sensei()->frontend->sensei_breadcrumb - 30 |
|
| 74 | + */ |
|
| 75 | + do_action( 'sensei_single_lesson_content_inside_after', get_the_ID() ); |
|
| 76 | + |
|
| 77 | + ?> |
|
| 78 | 78 | |
| 79 | 79 | </article><!-- .post --> |
| 80 | 80 | |
@@ -1,17 +1,17 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 3 | 3 | /** |
| 4 | - * Content-lesson.php template file |
|
| 5 | - * |
|
| 6 | - * responsible for content on archive like pages. Only shows the lesson excerpt. |
|
| 7 | - * |
|
| 8 | - * For single lesson content please see single-lesson.php |
|
| 9 | - * |
|
| 10 | - * @author Automattic |
|
| 11 | - * @package Sensei |
|
| 12 | - * @category Templates |
|
| 13 | - * @version 1.9.0 |
|
| 14 | - */ |
|
| 4 | + * Content-lesson.php template file |
|
| 5 | + * |
|
| 6 | + * responsible for content on archive like pages. Only shows the lesson excerpt. |
|
| 7 | + * |
|
| 8 | + * For single lesson content please see single-lesson.php |
|
| 9 | + * |
|
| 10 | + * @author Automattic |
|
| 11 | + * @package Sensei |
|
| 12 | + * @category Templates |
|
| 13 | + * @version 1.9.0 |
|
| 14 | + */ |
|
| 15 | 15 | ?> |
| 16 | 16 | |
| 17 | 17 | <article <?php post_class( get_the_ID() ); ?> > |
@@ -19,32 +19,32 @@ discard block |
||
| 19 | 19 | <section class="lesson-content"> |
| 20 | 20 | |
| 21 | 21 | <?php |
| 22 | - /** |
|
| 23 | - * sensei_content_lesson_before |
|
| 24 | - * action that runs before the sensei {post_type} content. It runs inside the sensei |
|
| 25 | - * content.php template. This applies to the specific post type that you've targeted. |
|
| 26 | - * |
|
| 27 | - * @since 1.9.0 |
|
| 28 | - * @param string $lesson_id |
|
| 29 | - */ |
|
| 30 | - do_action( 'sensei_content_lesson_before', get_the_ID() ); |
|
| 31 | - ?> |
|
| 22 | + /** |
|
| 23 | + * sensei_content_lesson_before |
|
| 24 | + * action that runs before the sensei {post_type} content. It runs inside the sensei |
|
| 25 | + * content.php template. This applies to the specific post type that you've targeted. |
|
| 26 | + * |
|
| 27 | + * @since 1.9.0 |
|
| 28 | + * @param string $lesson_id |
|
| 29 | + */ |
|
| 30 | + do_action( 'sensei_content_lesson_before', get_the_ID() ); |
|
| 31 | + ?> |
|
| 32 | 32 | |
| 33 | 33 | <section class="entry"> |
| 34 | 34 | |
| 35 | 35 | <?php |
| 36 | - /** |
|
| 37 | - * Fires just before the post content in the content-lesson.php file. |
|
| 38 | - * |
|
| 39 | - * @since 1.9.0 |
|
| 40 | - * |
|
| 41 | - * @hooked Sensei()->modules->module_archive_description - 11 |
|
| 42 | - * @hooked Sensei_Lesson::the_lesson_meta - 20 |
|
| 43 | - * |
|
| 44 | - * @param string $lesson_id |
|
| 45 | - */ |
|
| 46 | - do_action('sensei_content_lesson_inside_before', get_the_ID()); |
|
| 47 | - ?> |
|
| 36 | + /** |
|
| 37 | + * Fires just before the post content in the content-lesson.php file. |
|
| 38 | + * |
|
| 39 | + * @since 1.9.0 |
|
| 40 | + * |
|
| 41 | + * @hooked Sensei()->modules->module_archive_description - 11 |
|
| 42 | + * @hooked Sensei_Lesson::the_lesson_meta - 20 |
|
| 43 | + * |
|
| 44 | + * @param string $lesson_id |
|
| 45 | + */ |
|
| 46 | + do_action('sensei_content_lesson_inside_before', get_the_ID()); |
|
| 47 | + ?> |
|
| 48 | 48 | |
| 49 | 49 | <p class="lesson-excerpt"> |
| 50 | 50 | |
@@ -53,28 +53,28 @@ discard block |
||
| 53 | 53 | </p> |
| 54 | 54 | |
| 55 | 55 | <?php |
| 56 | - /** |
|
| 57 | - * Fires just after the post content in the lesson-content.php file. |
|
| 58 | - * |
|
| 59 | - * @since 1.9.0 |
|
| 60 | - * |
|
| 61 | - * @param string $lesson_id |
|
| 62 | - */ |
|
| 63 | - do_action('sensei_content_lesson_inside_after', get_the_ID()); |
|
| 64 | - ?> |
|
| 56 | + /** |
|
| 57 | + * Fires just after the post content in the lesson-content.php file. |
|
| 58 | + * |
|
| 59 | + * @since 1.9.0 |
|
| 60 | + * |
|
| 61 | + * @param string $lesson_id |
|
| 62 | + */ |
|
| 63 | + do_action('sensei_content_lesson_inside_after', get_the_ID()); |
|
| 64 | + ?> |
|
| 65 | 65 | |
| 66 | 66 | </section> <!-- section .entry --> |
| 67 | 67 | |
| 68 | 68 | <?php |
| 69 | - /** |
|
| 70 | - * This action runs after the sensei lesson content. It runs inside the sensei |
|
| 71 | - * lesson-content.php template. |
|
| 72 | - * |
|
| 73 | - * @since 1.9.0 |
|
| 74 | - * @param string $lesson_id |
|
| 75 | - */ |
|
| 76 | - do_action( 'sensei_content_lesson_after', get_the_ID() ); |
|
| 77 | - ?> |
|
| 69 | + /** |
|
| 70 | + * This action runs after the sensei lesson content. It runs inside the sensei |
|
| 71 | + * lesson-content.php template. |
|
| 72 | + * |
|
| 73 | + * @since 1.9.0 |
|
| 74 | + * @param string $lesson_id |
|
| 75 | + */ |
|
| 76 | + do_action( 'sensei_content_lesson_after', get_the_ID() ); |
|
| 77 | + ?> |
|
| 78 | 78 | |
| 79 | 79 | </section> <!-- article .lesson-content --> |
| 80 | 80 | |
@@ -1,17 +1,17 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 3 | 3 | /** |
| 4 | - * Content-message.php template file |
|
| 5 | - * |
|
| 6 | - * responsible for content on archive like pages. Only shows the message excerpt. |
|
| 7 | - * |
|
| 8 | - * For single message content please see single-message.php |
|
| 9 | - * |
|
| 10 | - * @author Automattic |
|
| 11 | - * @package Sensei |
|
| 12 | - * @category Templates |
|
| 13 | - * @version 1.9.0 |
|
| 14 | - */ |
|
| 4 | + * Content-message.php template file |
|
| 5 | + * |
|
| 6 | + * responsible for content on archive like pages. Only shows the message excerpt. |
|
| 7 | + * |
|
| 8 | + * For single message content please see single-message.php |
|
| 9 | + * |
|
| 10 | + * @author Automattic |
|
| 11 | + * @package Sensei |
|
| 12 | + * @category Templates |
|
| 13 | + * @version 1.9.0 |
|
| 14 | + */ |
|
| 15 | 15 | ?> |
| 16 | 16 | |
| 17 | 17 | <article <?php post_class( array( 'post','sensei_message'), get_the_ID() ); ?>> |
@@ -19,31 +19,31 @@ discard block |
||
| 19 | 19 | <section class="message-content"> |
| 20 | 20 | |
| 21 | 21 | <?php |
| 22 | - /** |
|
| 23 | - * action that runs before the sensei {post_type} content. It runs inside the sensei |
|
| 24 | - * content.php template. This applies to the specific post type that you've targeted. |
|
| 25 | - * |
|
| 26 | - * @since 1.9 |
|
| 27 | - * @param string $message_id |
|
| 28 | - * |
|
| 29 | - * @hooked Sensei_Messages::the_message_title - 10 |
|
| 30 | - * @hooked Sensei_Messages::the_message_sender - 20 |
|
| 31 | - */ |
|
| 32 | - do_action( 'sensei_content_message_before', get_the_ID() ); |
|
| 33 | - ?> |
|
| 22 | + /** |
|
| 23 | + * action that runs before the sensei {post_type} content. It runs inside the sensei |
|
| 24 | + * content.php template. This applies to the specific post type that you've targeted. |
|
| 25 | + * |
|
| 26 | + * @since 1.9 |
|
| 27 | + * @param string $message_id |
|
| 28 | + * |
|
| 29 | + * @hooked Sensei_Messages::the_message_title - 10 |
|
| 30 | + * @hooked Sensei_Messages::the_message_sender - 20 |
|
| 31 | + */ |
|
| 32 | + do_action( 'sensei_content_message_before', get_the_ID() ); |
|
| 33 | + ?> |
|
| 34 | 34 | |
| 35 | 35 | <section class="entry"> |
| 36 | 36 | |
| 37 | 37 | <?php |
| 38 | - /** |
|
| 39 | - * Fires just before the post content in the content-message.php file. |
|
| 40 | - * |
|
| 41 | - * @since 1.9 |
|
| 42 | - * |
|
| 43 | - * @param string $message_id |
|
| 44 | - */ |
|
| 45 | - do_action('sensei_content_message_inside_before', get_the_ID()); |
|
| 46 | - ?> |
|
| 38 | + /** |
|
| 39 | + * Fires just before the post content in the content-message.php file. |
|
| 40 | + * |
|
| 41 | + * @since 1.9 |
|
| 42 | + * |
|
| 43 | + * @param string $message_id |
|
| 44 | + */ |
|
| 45 | + do_action('sensei_content_message_inside_before', get_the_ID()); |
|
| 46 | + ?> |
|
| 47 | 47 | |
| 48 | 48 | <p class="message-excerpt"> |
| 49 | 49 | |
@@ -52,28 +52,28 @@ discard block |
||
| 52 | 52 | </p> |
| 53 | 53 | |
| 54 | 54 | <?php |
| 55 | - /** |
|
| 56 | - * Fires just after the post content in the message-content.php file. |
|
| 57 | - * |
|
| 58 | - * @since 1.9 |
|
| 59 | - * |
|
| 60 | - * @param string $message_id |
|
| 61 | - */ |
|
| 62 | - do_action('sensei_content_message_inside_after', get_the_ID()); |
|
| 63 | - ?> |
|
| 55 | + /** |
|
| 56 | + * Fires just after the post content in the message-content.php file. |
|
| 57 | + * |
|
| 58 | + * @since 1.9 |
|
| 59 | + * |
|
| 60 | + * @param string $message_id |
|
| 61 | + */ |
|
| 62 | + do_action('sensei_content_message_inside_after', get_the_ID()); |
|
| 63 | + ?> |
|
| 64 | 64 | |
| 65 | 65 | </section> <!-- section .entry --> |
| 66 | 66 | |
| 67 | 67 | <?php |
| 68 | - /** |
|
| 69 | - * This action runs after the sensei message content. It runs inside the sensei |
|
| 70 | - * message-content.php template. |
|
| 71 | - * |
|
| 72 | - * @since 1.9 |
|
| 73 | - * @param string $message_id |
|
| 74 | - */ |
|
| 75 | - do_action( 'sensei_content_message_after', get_the_ID() ); |
|
| 76 | - ?> |
|
| 68 | + /** |
|
| 69 | + * This action runs after the sensei message content. It runs inside the sensei |
|
| 70 | + * message-content.php template. |
|
| 71 | + * |
|
| 72 | + * @since 1.9 |
|
| 73 | + * @param string $message_id |
|
| 74 | + */ |
|
| 75 | + do_action( 'sensei_content_message_after', get_the_ID() ); |
|
| 76 | + ?> |
|
| 77 | 77 | |
| 78 | 78 | </section> <!-- article .message-content --> |
| 79 | 79 | |