/** * WP compatibility template tag - UNSUPPORTED. */ function is_home() { return is_default_page(); }
/** * Template tag * * Note for future mods: we do NOT want to repeat identical content on multiple pages. */ function skin_keywords_tag() { global $Blog, $disp, $MainList; $r = ''; if (is_default_page()) { if (!empty($Blog)) { $r = $Blog->get('keywords'); } } elseif (in_array($disp, array('single', 'page'))) { // custom keywords for the current single post: $Item =& $MainList->get_by_idx(0); if (is_null($Item)) { // This is not an object (happens on an invalid request): return; } $r = $Item->get_custom_headers(); if (empty($r) && $Blog->get_setting('tags_meta_keywords')) { // Fall back to tags for the current single post: $r = implode(', ', $Item->get_tags()); } } if (!empty($r)) { echo '<meta name="keywords" content="' . format_to_output($r, 'htmlattr') . "\" />\n"; } }
/** * disable trash button on page row actions * * @package Default Theme Pages * * @since 0.2 * **/ function dtp_page_row_actions($actions, $post) { if (is_default_page($post)) { unset($actions['trash']); } return $actions; }