Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
makura-2025
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Raj Shah
makura-2025
Commits
eb7f05c9
Commit
eb7f05c9
authored
Jul 16, 2025
by
rajshah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: download resource count fix v1.2
parent
af79ed45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
script.js
assets/js/script.js
+1
-1
enqueuer.php
includes/enqueuer.php
+8
-1
No files found.
assets/js/script.js
View file @
eb7f05c9
...
...
@@ -348,7 +348,7 @@ jQuery(document).ready(function ($) {
console
.
log
(
"Resource ID:"
,
resourceId
);
$
.
ajax
({
url
:
frontend_ajax
_object
.
ajax_url
,
url
:
download_resource
_object
.
ajax_url
,
type
:
"POST"
,
data
:
{
action
:
"increment_download_count"
,
...
...
includes/enqueuer.php
View file @
eb7f05c9
...
...
@@ -36,12 +36,19 @@ function conserve_register_styles()
wp_enqueue_script
(
'counter-js'
,
get_template_directory_uri
()
.
'/assets/js/counterup.js'
,
array
(
'jquery'
),
$theme_version
);
wp_enqueue_script
(
'raphaelmin'
,
'https://cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js'
,
array
(
'jquery'
),
$theme_version
);
wp_localize_script
(
'custom
-JS
'
,
'custom'
,
'frontend_ajax_object'
,
array
(
'ajaxurl'
=>
admin_url
(
'admin-ajax.php'
),
)
);
wp_localize_script
(
'custom-JS'
,
'download_resource_object'
,
array
(
'ajaxurl'
=>
admin_url
(
'admin-ajax.php'
),
)
);
/** CUSTOM JS */
wp_enqueue_script
(
'custom-JS'
,
get_template_directory_uri
()
.
'/assets/js/script.js'
,
array
(
'jquery'
),
null
,
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment