⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prefilter.chpath.php

📁 支持中、英、繁三种语言; 3、提供9套风格任意转换; 4、内嵌全球免费可视电话系统
💻 PHP
字号:
<?php
/**
 * Smarty change design-time path to runtime path plugin
 *
 * File:     prefilter.chpath.php<br>
 * Type:     prefilter<br>
 * Name:     chpath<br>
 * Date:     May 11, 2006<br>
 * Purpose:  change design-time path to runtime path such as <link> <img src>               
 *           
 * Install:  Drop into the plugin directory, call
 *           <code>$smarty->load_filter('pre','chpath');</code>
 *           from application.
 * @author   sleetdrop <sleetdrop at gmail dot com>
 * @author Contributions from Gdj [http://community.csdn.net/Expert/TopicView3.asp?id=4645962]
 * @version  1.0
 * @param string
 * @param Smarty
 */

function smarty_prefilter_chpath($tpl_source,&$smarty)
{
    return preg_replace("/(<(img.*?src|link.*?href|script.*?src)=([\"']))(.*?)(\\3.*?>)/is","$1".TMP_DIR."$4$5",$tpl_source);
}       


?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -