- site.dev/download/wordpress
- site.dev/download/wordpress li>
- site.dev/descargas/wordpress
- site.dev/descargas/wordpress li>
- site.dev/telecharger/wordpres
- site.dev/telecharger/wordpres li>
- …
- … li>
ul>
With Download Directory, you can track the number of times each software are downloaded.
使用下载目录,您可以跟踪每个软件的下载次数。 p>
Visitor can also register to an update alert list, allowing them to receive an email alert when new release are available to their favorites softwares.
访问者还可以注册到更新警报列表,以便他们的收藏夹软件可以使用新版本时,他们可以接收电子邮件警报。 p>
Updating the version field of a sofware automatically send an email alert to the suscriber of this current software.
更新软件的版本字段会自动向该软件的订户发送电子邮件警报。 p>
User are also able to unregister themself from an update list whenever they want, simply by following the link at the bottom of the mail alerte they have received.
用户还可以在任何需要的时候从更新列表中注销自己,只需按照收到的邮件警报底部的链接进行操作即可。 p>
When user click on “download”, they are redirected to a “downloading” page, providing an automatic loading of the download, incrementing download counter and allowing you to display whatever you want in this page (via widgets), like advertising
当用户单击“下载”时,他们将重定向到“下载”页面,提供下载的自动加载,增加下载计数器,并允许您在此页面中显示所需的内容(通过小部件),例如广告
, etc …
等... p>
This page also display the download link, and, in case it is broken, a link to the website editor, and even link to miror link if you provided it.
此页面还会显示下载链接,如果损坏,还将显示指向网站编辑器的链接,如果提供的话,还会显示指向镜像链接的链接。 p>
You can use 3 miror links, more the direct download link.
您可以使用3个镜像链接,更多是直接下载链接。 p>
French Demo at http://www.patricelaurent.net/telechargements/
法语演示,网址为 http://www.patricelaurent.net/telechargements/ p>
See it in action here : http://www.patricelaurent.net/telecharger在此处查看操作: http://www.patricelaurent.net/telecharger /wordpress/download-directory/
/ wordpress / download-directory /
p>
Usage
用法 h3>
- Create a new Downloads, as you will normally do for a normal post.
- 创建新的下载内容,就像通常在普通帖子中一样。 li>
- In the “software informations” meta box, provide the version, size, download link, editor website, editor url miror link if available
- 在“软件信息”元框中,提供版本,大小,下载链接,编辑器网站,编辑器URL镜像链接(如果可用) li>
- Choose a category, add tags et license type (eg: freeware, shareware,etc..)
- 选择一个类别,添加标签和许可证类型(例如:免费软件,共享软件等)。 li>
- Add featured image to illustrate it
- 添加特色图片进行说明 li>
- publish
- 发布 li>
ol>
Advanced usage
高级用法 h3>
You can use your own template for archive, category, tags and single file.
您可以将自己的模板用于存档,类别,标签和单个文件。 p>
For archives pages, just create an file called archive-down_repo.php in your current theme directory.
对于存档页面,只需在当前主题目录中创建一个名为archive-down_repo.php的文件即可。 p>
For single page, simply create a single-down_repo.php file in your theme directory.
对于单个页面,只需在主题目录中创建一个single-down_repo.php文件。 p>
Adding your own css and style.
添加自己的CSS和样式。 p>
create a css file in your theme directory.
在主题目录中创建一个CSS文件。
Name it as you want.
随意命名。
then add this code in your theme function file (or in any personnal plugin):
然后将此代码添加到主题函数文件(或任何个人插件)中: p>
add_filter('down_repo_style','my_custom_css',10,1); add_filter('down_repo_style','my_custom_css',10,1);function my_custom_css($css){
函数my_custom_css($ css){
$css=get_stylesheet_directory_uri().'/mycss.css';
$ css = get_stylesheet_directory_uri()。'/ mycss.css';
return $css;
返回$ css;
}
}
code> pre>
This will symply replace the current css file of the plugin by your one.
这将由您自己替换插件的当前css文件。
If you jsut want to disable the css of the plugin, just add a null filter
如果您想禁用插件的CSS,只需添加一个空过滤器 p>
add_filter('down_repo_style',function(){return null;},10,1); add_filter('down_repo_style',function(){return null;},10,1);
code> pre>