'.__('On the bottom of each write post, you can mark the post as an article, you can also supply a list keyword but is not required.', 'articles').'
'.__('To display a list of all your articles, you can use the following shortcode', 'articles').': [articles]
'.__('You can also use the following template tag in your theme', 'articles').': <?php if (function_exists(\'aka_show_articles\')) { aka_show_articles(); } ?>
');
echo ('
'.__('Article Lists', 'articles').'
'.__('Below is all of your article lists; you can use them in conjunction with the articles shortcode to display only articles of a certain list. Example', 'articles').': [articles list="list name"] or use the template tag <?php if (function_exists(\'aka_show_articles\')) { aka_show_articles("list name"); } ?>
'.__('If you recently upgraded from version 1.2 or below, or have changed your meta key name in the plugin file you will need to click the button below to have the Articles plugin fully working.', 'articles').'
');
CF_Admin::callouts('articles');
echo '
';
}
function aka_admin_menu() {
add_options_page(
__('Articles Options', 'articles'),
__('Articles', 'articles'),
'manage_options',
basename(__FILE__),
'aka_settings_form'
);
}
add_action('admin_menu', 'aka_admin_menu');
// Keep for backwards compatability, ###articles### deprecated
function aka_the_content($content) {
if (strstr($content, '###articles###')) {
$content = str_replace('###articles###', aka_get_articles(), $content);
}
return $content;
}
function aka_the_excerpt($content) {
return str_replace('###articles###', '', $content);;
}
function aka_replace_token() {
add_filter('the_content', 'aka_the_content');
add_filter('the_excerpt', 'aka_the_excerpt');
}
add_action('init', 'aka_replace_token');
// Multisite
function aka_is_multisite() {
return CF_Admin::is_multisite();
}
function aka_activate_for_network() {
CF_Admin::activate_for_network('aka_activate_single');
}
function aka_activate_plugin_for_new_blog($blog_id) {
CF_Admin::activate_plugin_for_new_blog(AKA_FILE, $blog_id, 'aka_activate_single');
}
add_action('new_blog', 'aka_activate_plugin_for_new_blog');
?>