【发布时间】:2016-05-13 08:28:42
【问题描述】:
我在 Joomla 网站上使用 AddToAny 插件。我需要替换代码,以便可以“预览页面”而不是“打印”(ctrl+p)。 我在 /plugins/content/addtoany 中找到了 AddToAny 文件,但我没有看到 print service code 的代码
【问题讨论】:
我在 Joomla 网站上使用 AddToAny 插件。我需要替换代码,以便可以“预览页面”而不是“打印”(ctrl+p)。 我在 /plugins/content/addtoany 中找到了 AddToAny 文件,但我没有看到 print service code 的代码
【问题讨论】:
插件中没有用于生成链接的代码,除非您正在谈论添加特定链接的 css 类(见下文)。
所有链接都是通过AddToAny的js生成的:http://static.addtoany.com/menu/page.js
您可能已经知道,所有的渲染都是用类生成的(由上面的 js 文件提供支持):https://www.addtoany.com/buttons/customize/standalone_services
<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
<a class="a2a_button_facebook"></a>
<a class="a2a_button_twitter"></a>
<a class="a2a_button_google_plus"></a>
<a class="a2a_button_pinterest"></a>
<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>
<script type="text/javascript" src="//static.addtoany.com/menu/page.js"></script>
这意味着链接本身不是在插件中“生成”的,因此您的解决方案是尝试通过 MVC override plugin 覆盖插件还是开发自己的解决方案。
【讨论】: