When making templates, you may need to use plug-ins in some places.
Then you need to check whether the plug-in is enabled, you can use the following plug-in:
<?php $all = Typecho_Plugin::export();?>
<?php if (array_key_exists('插件名称', $all['activated'])) : ?>
...........
...........
<?php endif; ?>