| @@ -130,18 +130,15 @@ | ||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | $separator = static::separator(); |
| 133 | 133 | $template = strtolower( "{$postType}{$separator}{$slug}" ); |
| 134 | - $enabledTemplate = strtolower( Meta::TEMPLATE_ID . $template ); | |
| 135 | - | |
| 136 | 134 | /** |
| 137 | 135 | * important area for debugging |
| 138 | 136 | */ |
| 139 | 137 | |
| 140 | - return get_option( $enabledTemplate ); | |
| 138 | + return Meta::get_template_option( $template ); | |
| 141 | 139 | } |
| 142 | 140 | |
| 143 | 141 | public static function getTemplateId( $templateType ) { |
| 144 | - $metaIndex = strtolower( Meta::TEMPLATE_ID . $templateType ); | |
| 145 | - return intval( get_option( $metaIndex ) ); | |
| 142 | + return intval( Meta::get_template_option( $templateType ) ); | |
| 146 | 143 | } |
| 147 | 144 | } |