当前位置:网站首页>Zblog determines whether a plug-in installs the enabled built-in function code
Zblog determines whether a plug-in installs the enabled built-in function code
2022-06-24 16:48:00 【Shell house railing - Wenxi】
Development Zblog When the subject is , Occasionally, a function depends on a plug-in , such as , The image upload function relies on... For most themes Ueditor Editor , and Ueditor The editor is in ZBlog Is in the form of a plug-in , Can be deleted by the user , If it is deleted, the uploading function of the theme image will be affected , Therefore, you need to determine whether the plug-in is installed in the topic , To prompt the user to install or give different setting schemes .
Correlation function
zblog The function used to determine whether the plug-in is installed
$zbp->LoadApp('plugin', 'plugin ID')->isloadedZblog Function used to determine whether the plug-in is enabled in
$zbp->CheckPlugin('plugin ID')Tips :【plugin ID】 It can be found in the configuration file of the plug-in plugin.xml Found in , Such as UEditor Medium “UEditor” The plug-in ID.
Examples of use
1、 Judge UEditor Whether the editor plug-in is installed
if($zbp->LoadApp('plugin', 'UEditor')->isloaded){
echo 'UEditor Editor plug-in installed ';}
else{
echo 'UEditor The editor plug-in has not been installed ';}2、 Judge UEditor Whether the editor plug-in is enabled
if($zbp->CheckPlugin('UEditor')){
echo 'UEditor Editor plug-in enabled ';}
else{
echo 'UEditor The editor plug-in has not been enabled ';}Function position :zb_system/function/lib/zblogphp.php
边栏推荐
- [tke] modify the cluster corendns service address
- What does the router pin mean?
- The million bonus competition is about to start, and Ti-One will be upgraded to help you win the championship!
- How does the easynvr/easygbs live video platform use Wireshark to capture and analyze data locally?
- zblog系统实现前台调用当天发布文章数量的教程
- [leetcode108] convert an ordered array into a binary search tree (medium order traversal)
- Development trend of CAE simulation analysis software
- About with admin option and with grant option
- Abstract factory pattern
- A troubleshooting of golang memory leak
猜你喜欢
![[go] concurrent programming channel](/img/6a/d62678467bbc6dfb6a50ae42bacc96.jpg)
[go] concurrent programming channel

A survey on dynamic neural networks for natural language processing, University of California

Ui- first lesson

Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)
![[leetcode108] convert an ordered array into a binary search tree (medium order traversal)](/img/e1/0fac59a531040d74fd7531e2840eb5.jpg)
[leetcode108] convert an ordered array into a binary search tree (medium order traversal)

Applet - use of template

Applet wxss

Ps\ai and other design software pondering notes

A survey of training on graphs: taxonomy, methods, and Applications

A survey on model compression for natural language processing (NLP model compression overview)
随机推荐
Introduction to koa (II) building the koa program
网站SEO排名越做越差是什么原因造成的?
重新定义存储架构,华为用了不止5颗“芯”
Introduction of thread pool and sharing of practice cases
Video intelligent analysis platform easycvr derivative video management platform menu bar small screen adaptive optimization
Comparison of jmeter/k6/locust pressure measuring tools (not completed yet)
Finite element simulation in design
Kubernetes 1.20.5 setting up Sentinel
What can Lu yuanjiu Jiao buy?
How to save data to the greatest extent after deleting LV by misoperation under AIX?
Prometheus deployment
Experience and suggestions on cloud development database
Pagoda activities, team members can enjoy a lightweight server 1 core 2g5m 28 yuan for two years
Problems encountered in the work of product manager
Talk about some good ways to participate in the project
Regular expression learning artifact!
Popular explanation [redirection] and its practice
Bitwise Operators
FPGA project development: experience sharing of lmk04821 chip project development based on jesd204b (I)
How to use the national standard streaming media server to view the video stream of the surveillance camera? How to correctly use UDP and TCP protocols?