模板技巧之判断插件是否激活

模板部分,判断是否加载插件:

<?php $all = Typecho_Plugin::export();?>
<?php if (array_key_exists('插件名称', $all['activated'])) : ?>
...........
...........
<?php endif; ?>

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

Grow your business fast with

Suku