| 1 | <?php |
||
| 12 | class Stencil_Installable_Theme extends Stencil_Abstract_Installable implements Stencil_Installable_Interface { |
||
| 13 | /** |
||
| 14 | * Download format. |
||
| 15 | */ |
||
| 16 | const DOWNLOAD_FORMAT = 'https://github.com/moorscode/%s/archive/master.zip'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Get the theme slug. |
||
| 20 | * |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | public function get_slug() { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get the download link |
||
| 29 | * |
||
| 30 | * @return bool|string |
||
| 31 | */ |
||
| 32 | public function get_download_link() { |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get base directory |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function get_directory() { |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get file headers |
||
| 47 | * |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | public function get_file_data() { |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Upgrade |
||
| 58 | * |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | public function upgrade() { |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Get upgrader needed. |
||
| 67 | * |
||
| 68 | * @param bool $upgrading Installing or upgrading. |
||
| 69 | * |
||
| 70 | * @return WP_Upgrader |
||
| 71 | */ |
||
| 72 | public function get_upgrader( $upgrading = false ) { |
||
| 77 | } |
||
| 78 |