我正在尝试使用Ansible编辑apache.conf.这是我的conf的一部分:
# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
Options FollowSymLinks …Run Code Online (Sandbox Code Playgroud) 我有这样的代码块:
<div class="services">
<div class="grid grid-pad">
<?php
query_posts(array('post_type' => 'services', 'posts_per_page' => -1));
while (have_posts()) : the_post();
?>
<div class="col-1-3 tri-clear">
<div class="single-service">
<i class="fa <?php echo types_render_field("icon", array("output" => "raw")); ?> service-icon"></i>
<?php the_title('<h3 class="service-title">', '</h3>'); ?>
<?php the_content('<p>', '</p>'); ?>
</div>
</div>
<?php endwhile; ?>
<!-- how to add button here? -->
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我想<button>Contact Us</button>在那里添加(我标记的地方)。由于某种原因,我无法编辑源代码,但我可以添加自定义 javascript(使用 jQuery)来添加按钮。如何实现?
感谢您的意见。