本文整理汇总了PHP中Updater::post_extension方法的典型用法代码示例。如果您正苦于以下问题:PHP Updater::post_extension方法的具体用法?PHP Updater::post_extension怎么用?PHP Updater::post_extension使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Updater
的用法示例。
在下文中一共展示了Updater::post_extension方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$base_dir = '/path/to/continental';
$content_dir = '/home/blog/Dropbox/blog';
$shared_dir = '/path/to/continental/shared';
# /shared is part of capistrano deploy
} else {
$base_dir = $_SERVER['HOME'] . '/Sites/continental';
$content_dir = $base_dir . '/content';
$shared_dir = $base_dir;
}
// Paths
Updater::$source_path = $content_dir;
Template::$template_dir = $base_dir . '/resources/templates';
Updater::$dest_path = $shared_dir . '/www';
Updater::$blog_path = $shared_dir . '/www';
// Set to same as $dest_path for your blog index at `yoursite.com`; else set it to `dir/blog`
Updater::$cache_path = $base_dir . '/cache';
Updater::$hook_path = $base_dir . '/engine';
Updater::$post_extension = '.md';
// Blog metadata
Post::$blog_title = 'My Blog';
Post::$blog_url = 'http://www.mydomain.com/';
Post::$blog_description = 'I\'m a blogger.';
Post::$blog_uri = '';
// Keep blank if you want your blog index at `yoursite.com`. For `yoursite.com/blog/` set it to `/blog`
Post::$author = 'Nick Wynja';
// Settings
Post::$create_short_url = false;
//Turn to `true` to roll your own shorter/cleaner URLs. Uses short domain and slug
Post::$short_url_redirect_file = '/home/blog/short_co/.htaccess';
//Full local path
Post::$short_url_domain = 'short.co/';