| @@ -117,34 +117,8 @@ | ||
| 117 | 117 | $registry = Component_Registry::instance(); |
| 118 | 118 | return $registry::pages(); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | -/** | |
| 122 | - * Gets the registered headers. | |
| 123 | - * | |
| 124 | - * @return array Array of registered headers. | |
| 125 | - */ | |
| 126 | -function blockspare_get_headers() { | |
| 127 | - $registry = Component_Registry::instance(); | |
| 128 | - return $registry::headers(); | |
| 129 | -} | |
| 130 | - | |
| 131 | -/** | |
| 132 | - * Gets the registered footers. | |
| 133 | - * | |
| 134 | - * @return array Array of registered footers. | |
| 135 | - */ | |
| 136 | -function blockspare_get_footers() { | |
| 137 | - $registry = Component_Registry::instance(); | |
| 138 | - return $registry::footers(); | |
| 139 | -} | |
| 140 | - | |
| 141 | -function blockspare_get_templates() { | |
| 142 | - $registry = Component_Registry::instance(); | |
| 143 | - return $registry::templates(); | |
| 144 | -} | |
| 145 | - | |
| 146 | - | |
| 147 | 121 | function blockspare_import_images_replace_url($content =''){ |
| 148 | 122 | |
| 149 | 123 | preg_match_all( '#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $content, $match ); |
| 150 | 124 | $all_links = array_unique( $match[0] ); |