private function _build() { // setup metadata $osd = new stdClass(); $osd->blog_url = get_option('siteurl'); $osd->search_param = '?s=' . self::OSD_SEARCHTERM_PARAMS; $osd->blog_name = get_option('blogname'); $osd->blog_desc = get_option('blogdescription'); $osd->blog_favicon = wpi_get_favicon_url(); $osd->blog_html_type = get_option('html_type'); $osd->language = get_hreflang(); $this->osd = $osd; $this->_setContent(); unset($osd); }
function wpi_get_hatom_title() { $sc = is_at(); $att = array(); $att['href'] = get_permalink(); $att['rel'] = 'bookmark archive'; $att['rev'] = 'vote-for'; $att['class'] = 'taggedlink url fn'; if ($sc == wpiSection::ATTACHMENT || $sc == wpiSection::SINGLE || $sc == wpiSection::PAGE) { $att['class'] .= ' dn'; } $att['hreflang'] = get_hreflang(); $att['xml:lang'] = $att['hreflang']; $att['title'] = get_the_title(); $htm = _t('a', $att['title'], $att); if ($sc == wpiSection::HOME) { $htm .= wpi_get_subtitle(); } $htm = _t('h2', $htm, array('class' => 'entry-title item')); return apply_filters(wpiFilter::HTOM_TITLE, $htm); }
public function getAttachment() { global $wp_query; $title = string_len(trim(wp_title('', false)), 90); $pid = $wp_query->post->ID; $ppid = $wp_query->post->post_parent; $pathway = array(); // rss $pathway['first'] = array($title . ' comments feeds', array('href' => get_post_comments_feed_link($pid), 'type' => 'application/rss+xml', 'title' => __($title . ' | Subscribe to this comments feed', WPI_META), 'hreflang' => get_hreflang(), 'rel' => self::RSS_REL, 'class' => 'rtxt rss16', 'rev' => 'feed:rss2')); // home $pathway['home'] = $this->getFrontpage(); // parent $att = array(); $att['href'] = get_permalink($ppid); $att['title'] = 'Parent | ' . get_the_title($ppid); $att['class'] = 'parent-link dc-subject'; $att['hreflang'] = get_hreflang(); $pathway['parent'] = array(get_the_title($ppid), $att); // attachments $att = array(); $att['href'] = get_permalink($pid); $att['title'] = __('Attachment | permalink', WPI_META); $pathway['attachment'] = array('Attachment', $att); // attachments-pid $att = array(); $att['href'] = get_permalink() . '#content-top'; $att['title'] = $title . ' | Skip to content'; $att['hreflang'] = get_hreflang(); $att['class'] = 'last-items ' . self::DN_ARROW; if (($pageno = wpi_get_post_current_paged()) != false) { $pathway['post'] = array($title, $att); $title = 'on page ' . $pageno; $att = array(); $att['href'] = wpi_paged_url($pageno); $att['title'] = $title; $att['rev'] = 'site:relative'; } $pathway['last'] = array($title, $att); return $pathway; }