| 1 |
<?php |
| 2 |
/** |
| 3 |
* Created by PhpStorm. |
| 4 |
* User: mhshohel |
| 5 |
* Date: 17/9/18 |
| 6 |
* Time: 1:33 PM |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace TUTOR; |
| 10 |
|
| 11 |
|
| 12 |
class Tutor_Base { |
| 13 |
|
| 14 |
public $course_post_type; |
| 15 |
public $lesson_post_type; |
| 16 |
|
| 17 |
public $lesson_base_permalink; |
| 18 |
|
| 19 |
public function __construct() { |
| 20 |
|
| 21 |
$this->course_post_type = tutor()->course_post_type; |
| 22 |
$this->lesson_post_type = tutor()->lesson_post_type; |
| 23 |
|
| 24 |
//Lesson Permalink |
| 25 |
$this->lesson_base_permalink = tutor_utils()->get_option('lesson_permalink_base'); |
| 26 |
if ( ! $this->lesson_base_permalink){ |
| 27 |
$this->lesson_base_permalink = $this->lesson_post_type; |
| 28 |
} |
| 29 |
|
| 30 |
} |
| 31 |
|
| 32 |
} |