Submit
Path:
~
/
home
/
getwphos
/
public_html
/
shellfish
/
wp-content
/
plugins
/
templaza-framework
/
shortcodes
/
latest_posts
/
File Content:
latest_posts.js
(function($) { "use strict"; templaza.shortcode = templaza.shortcode || {}; templaza.shortcode.latest_posts = templaza.shortcode.latest_posts || {}; templaza.shortcode.latest_posts.load_setting = function(setting, element, form){ // // if(typeof setting.params["menu_id"] === "undefined"){ // // setting.params["menu_id"] = setting.menu_id; // // if(form.find("[name=menu_id]").length) { // // form.find("[name=menu_id]").val(setting.menu_id); // // } // // } // // if(typeof setting.params["menu_slug"] === "undefined"){ // // setting.params["menu_slug"] = setting.menu_slug; // // if(form.find("[name=menu_slug]").length) { // // form.find("[name=menu_slug]").val(setting.menu_slug); // // } // // } // console.log(setting); // console.log(element); // console.log(form); // templaza.shortcode.latest_posts.__ajax_get_categories(form.find("[name=latest_post_type]").val()); form.find("[name=latest_post_type]").on("change", function(event){ // templaza.shortcode.latest_posts.__ajax_get_categories($(this).val()); var __value = $(this).val(), __featured_ctr = form.find("[name=show_featured]"); var __editor_settings = window.elementor__uiposts_editor !== undefined?window.elementor__uiposts_editor:{}, __featured_posttypes = []; if(__editor_settings.enable_featured_for_posttypes !== undefined){ __featured_posttypes = __editor_settings.enable_featured_for_posttypes; } if(__featured_posttypes.indexOf(__value) !== -1) { __featured_ctr.closest("tr").removeClass("hide").show(); }else{ __featured_ctr.closest("tr").addClass("hide").hide(); } }); form.find("[name=latest_post_type]").trigger("change"); }; // // templaza.shortcode.latest_posts.__ajax_get_categories = function(post_type){ // $.ajax({ // url: window.ajaxurl, // data: { // action: "templaza-framework", // post_type: post_type, // shortcode: "latest_posts", // shortcode_action: "get_categories", // } // }); // }; // // // // // templaza.shortcode.latest_posts.save_setting = function(setting, element, form){ // // }; // // templaza.shortcode.latest_posts.prepare_setting = function(setting, form_element, element){ // // return setting; // // }; })(jQuery);
Submit
FILE
FOLDER
Name
Size
Permission
Action
tmpl
---
0755
helper.php
4534 bytes
0644
latest_posts.js
2669 bytes
0644
latest_posts.php
9271 bytes
0644
N4ST4R_ID | Naxtarrr