?> " /> <meta name="dc.language" content="<?php echo context::global_filter($core->blog->settings->lang, 0, 0, 0, 0, 0, 'BlogLanguage'); ?> " /> <meta name="dc.publisher" content="<?php echo context::global_filter($core->blog->settings->editor, 1, 0, 0, 0, 0, 'BlogEditor'); ?> " /> <meta name="dc.rights" content="<?php echo context::global_filter($core->blog->settings->copyright_notice, 1, 0, 0, 0, 0, 'BlogCopyrightNotice'); ?> " /> <meta name="dc.date" scheme="W3CDTF" content="<?php echo context::global_filter(dt::iso8601($core->blog->upddt, $core->blog->settings->blog_timezone), 0, 0, 0, 0, 0, 'BlogUpdateDate'); ?> " /> <meta name="dc.type" content="text" /> <meta name="dc.format" content="text/html" /> <link rel="contents" title="<?php echo __('Archives'); ?> " href="<?php echo context::global_filter($core->blog->url . $core->url->getBase("archive"), 0, 0, 0, 0, 0, 'BlogArchiveURL'); ?> " /> <?php $params = array(); $_ctx->categories = $core->blog->getCategories($params);
/** Returns comment date formating according ISO 8601 standard. @param rs Invisible parameter @return <b>string</b> */ public static function getISO8601Date(&$rs) { return dt::iso8601($rs->getTS(), $rs->comment_tz); }
private function getPages($blog_id, $user, $pwd, $limit = null, $id = null) { $this->setUser($user, $pwd); $this->setBlog(); $this->checkPagesPermission(); $params = array('post_type' => 'page', 'order' => 'post_position ASC, post_title ASC'); if ($id) { $params['post_id'] = (int) $id; } if ($limit) { $params['limit'] = $limit; } $posts = $this->core->blog->getPosts($params); $res = array(); while ($posts->fetch()) { $tres = array("dateCreated" => new xmlrpcDate($posts->getTS()), "userid" => $posts->user_id, "page_id" => $posts->post_id, "page_status" => $this->translateWpStatus((int) $posts->post_status), "description" => $posts->post_content_xhtml, "title" => $posts->post_title, "link" => $posts->getURL(), "permaLink" => $posts->getURL(), "categories" => array(), "excerpt" => $posts->post_excerpt_xhtml, "text_more" => '', "mt_allow_comments" => (int) $posts->post_open_comment, "mt_allow_pings" => (int) $posts->post_open_tb, "wp_slug" => $posts->post_url, "wp_password" => $posts->post_password, "wp_author" => $posts->getAuthorCN(), "wp_page_parent_id" => 0, "wp_page_parent_title" => '', "wp_page_order" => $posts->post_position, "wp_author_id" => $posts->user_id, "wp_author_display_name" => $posts->getAuthorCN(), "date_created_gmt" => new xmlrpcDate(dt::iso8601($posts->getTS(), $posts->post_tz)), "custom_fields" => array(), "wp_page_template" => 'default'); # --BEHAVIOR-- xmlrpcGetPageInfo $this->core->callBehavior('xmlrpcGetPageInfo', $this, array(&$tres)); $res[] = $tres; } return $res; }
/** Returns comment date formating according to the ISO 8601 standard. @param rs Invisible parameter @param type <b>string</b> (dt|upddt) defaults to comment_dt @return <b>string</b> */ public static function getISO8601Date($rs, $type = '') { if ($type == 'upddt') { return dt::iso8601($rs->getTS($type) + dt::getTimeOffset($rs->comment_tz), $rs->comment_tz); } else { return dt::iso8601($rs->getTS(), $rs->comment_tz); } }