[wordpress插件] Download Directory下载目录

wordpress 插件 文章 2020-04-21 16:40 0 68 全屏看文
评分
60
描述

Download Directory allow you to create a download directory website.

下载目录允许您创建下载目录网站。

You will be abble to provide to your visitor a listing of software, freeware, shareware …

您将无法向访问者提供软件,免费软件,共享软件的清单...

Work with mostly any theme

处理几乎所有主题

Multilingual ready : currently translated in French and English.

支持多种语言:当前以法语和英语翻译。

.Pot file provided, can be fully translated in any language.

.Pot文件已提供,可以用任何语言进行完全翻译。

Slug translatable: Every archive, post, categories, tags … link are translatable.

可翻译:每个存档,帖子,类别,标签…链接都是可翻译的。

it’s mean than you can provide post slug in your language, like :

这意味着您可以用自己的语言提供信息,例如:

    • site.dev/download/wordpress
    • site.dev/download/wordpress

    • site.dev/descargas/wordpress
    • site.dev/descargas/wordpress

    • site.dev/telecharger/wordpres
    • site.dev/telecharger/wordpres

    With Download Directory, you can track the number of times each software are downloaded.

    使用下载目录,您可以跟踪每个软件的下载次数。

    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.

    访问者还可以注册到更新警报列表,以便他们的收藏夹软件可以使用新版本时,他们可以接收电子邮件警报。

    Updating the version field of a sofware automatically send an email alert to the suscriber of this current software.

    更新软件的版本字段会自动向该软件的订户发送电子邮件警报。

    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.

    用户还可以在任何需要的时候从更新列表中注销自己,只需按照收到的邮件警报底部的链接进行操作即可。

    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 …

    等...

    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.

    此页面还会显示下载链接,如果损坏,还将显示指向网站编辑器的链接,如果提供的话,还会显示指向镜像链接的链接。

    You can use 3 miror links, more the direct download link.

    您可以使用3个镜像链接,更多是直接下载链接。

    French Demo at http://www.patricelaurent.net/telechargements/

    法语演示,网址为 http://www.patricelaurent.net/telechargements/

    See it in action here : http://www.patricelaurent.net/telecharger

    在此处查看操作: http://www.patricelaurent.net/telecharger

    /wordpress/download-directory/

    / wordpress / download-directory /

    Usage

    用法

      1. Create a new Downloads, as you will normally do for a normal post.
      2. 创建新的下载内容,就像通常在普通帖子中一样。

      3. In the “software informations” meta box, provide the version, size, download link, editor website, editor url miror link if available
      4. 在“软件信息”元框中,提供版本,大小,下载链接,编辑器网站,编辑器URL镜像链接(如果可用)

      5. Choose a category, add tags et license type (eg: freeware, shareware,etc..)
      6. 选择一个类别,添加标签和许可证类型(例如:免费软件,共享软件等)。

      7. Add featured image to illustrate it
      8. 添加特色图片进行说明

      9. publish
      10. 发布

      Advanced usage

      高级用法

      You can use your own template for archive, category, tags and single file.

      您可以将自己的模板用于存档,类别,标签和单个文件。

      For archives pages, just create an file called archive-down_repo.php in your current theme directory.

      对于存档页面,只需在当前主题目录中创建一个名为archive-down_repo.php的文件即可。

      For single page, simply create a single-down_repo.php file in your theme directory.

      对于单个页面,只需在主题目录中创建一个single-down_repo.php文件。

      Adding your own css and style.

      添加自己的CSS和样式。

      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):

      然后将此代码添加到主题函数文件(或任何个人插件)中:

      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;

      }

      }

      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,只需添加一个空过滤器

      add_filter('down_repo_style',function(){return null;},10,1);

        add_filter('down_repo_style',function(){return null;},10,1);

安装步骤

From your WordPress dashboard

从您的WordPress仪表板中

    1. Visit ‘Plugins > Add New’
    2. 访问“插件>添加新内容”

    3. Search for ‘download-directory’
    4. 搜索“下载目录”

    5. Activate Download Repository Pro from your Plugins page.
    6. 从“插件”页面激活“下载Repository Pro”。

    7. Enjoy
    8. 享受

    From WordPress.org

    来自WordPress.org

      1. Download the plugin.
      2. 下载插件。

      3. Upload the ‘download-directory’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
      4. 使用您喜欢的方法(ftp,sftp,scp等)将“下载目录”目录上传到您的“ / wp-content / plugins /”目录中

      5. Activate the plugin from your Plugins page.
      6. 从“插件”页面激活插件。

      7. Enjoy
      8. 享受

      From GitHub

      来自GitHub

        1. Download the plugin.
        2. 下载插件。

        3. Upload the ‘download-directory’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
        4. 使用您喜欢的方法(ftp,sftp,scp等)将“下载目录”目录上传到您的“ / wp-content / plugins /”目录中

        5. Activate the plugin from your Plugins page.
        6. 从“插件”页面激活插件。

        7. Enjoy
        8. 享受

下载地址
https://downloads.wordpress.org/plugin/download-directory.1.0.1.zip
-EOF-