first commit

This commit is contained in:
2026-04-28 15:13:50 +02:00
commit a95acc355b
63745 changed files with 9487948 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/**
* Add to cart button
*
* More info on overriding template files can be found here: https://www.download-monitor.com/kb/overriding-content-templates/
*
* @version 4.9.6
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
/** @var \WPChill\DownloadMonitor\Shop\Product\Product $product */
/** @var string $atc_url */
?>
<aside class="download-box">
<?php echo wp_kses_post( $product->get_image() ); ?>
<div class="download-count"><?php echo esc_html( dlm_format_money( $product->get_price() ) ); ?></div>
<div class="download-box-content">
<h1><?php echo esc_html( $product->get_title() ); ?></h1>
<p><?php $product->the_excerpt(); ?></p>
<a class="download-button" title="<?php echo esc_html__( 'Purchase Now', 'download-monitor' ); ?>" href="<?php echo esc_url( $atc_url ); ?>"
rel="nofollow">
<?php echo esc_html__( 'Purchase Now', 'download-monitor' ); ?>
</a>
</div>
</aside>

View File

@@ -0,0 +1,32 @@
<?php
/**
* Add to cart button
*
* More info on overriding template files can be found here: https://www.download-monitor.com/kb/overriding-content-templates/
*
* @version 5.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
/** @var \WPChill\DownloadMonitor\Shop\Product\Product $product */
/** @var string $atc_url */
?>
<a class="aligncenter download-button" href="<?php
echo esc_url( $atc_url ); ?>" rel="nofollow">
<?php
printf( esc_html__( 'Purchase &ldquo;%s&rdquo;', 'download-monitor' ), esc_html( $product->get_title() ) ); ?>
<small><?php
echo esc_html( dlm_format_money( $product->get_price() ) ); ?>
<?php
$excerpt = $product->get_excerpt();
if ( ! empty( $excerpt ) ) {
?>
- <?php
$product->the_excerpt(); ?></small>
<?php
}
?>
</a>