+ return "\n <div class=\"wcf-library-template\" data-id=\"".concat(item.id, "\" data-url=\"").concat(item.url, "\">\n <div class=\"thumbnail\">\n <img src=\"").concat(item.thumbnail, "\" alt=\"").concat(item.title, "\">\n </div>\n \n ").concat(item !== null && item !== void 0 && item.valid && item.valid ? "\n <!-- Show the 'Insert' button if the template is valid -->\n <button class=\"library--action insert\">\n <i class=\"eicon-file-download\"></i>\n Insert\n </button>\n " : "\n <!-- Show premium or activation buttons based on plugin status -->\n ".concat(!((_WCF_TEMPLATE_LIBRARY3 = WCF_TEMPLATE_LIBRARY) !== null && _WCF_TEMPLATE_LIBRARY3 !== void 0 && _WCF_TEMPLATE_LIBRARY3.pro_installed) ? "\n <!-- Show 'Go Premium' button if the plugin is not installed -->\n <a href=\"https://animation-addons.com\" class=\"library--action pro\" target=\"_blank\">\n <i class=\"eicon-external-link-square\"></i>\n Go Premium\n </a>\n " : '', "\n ").concat((_WCF_TEMPLATE_LIBRARY4 = WCF_TEMPLATE_LIBRARY) !== null && _WCF_TEMPLATE_LIBRARY4 !== void 0 && _WCF_TEMPLATE_LIBRARY4.pro_installed && (_WCF_TEMPLATE_LIBRARY5 = WCF_TEMPLATE_LIBRARY) !== null && _WCF_TEMPLATE_LIBRARY5 !== void 0 && _WCF_TEMPLATE_LIBRARY5.pro_active && !((_WCF_TEMPLATE_LIBRARY6 = WCF_TEMPLATE_LIBRARY) !== null && _WCF_TEMPLATE_LIBRARY6 !== void 0 && (_WCF_TEMPLATE_LIBRARY6 = _WCF_TEMPLATE_LIBRARY6.config) !== null && _WCF_TEMPLATE_LIBRARY6 !== void 0 && _WCF_TEMPLATE_LIBRARY6.wcf_valid) ? "\n <!-- Show 'Pro' button if the plugin is installed and active -->\n <a href=\"".concat(WCF_TEMPLATE_LIBRARY.dashboard_link, "\" class=\"library--action pro\" target=\"_blank\">\n <i class=\"eicon-external-link-square\"></i>\n Activate License\n </a>\n ") : '', "\n ").concat((_WCF_TEMPLATE_LIBRARY7 = WCF_TEMPLATE_LIBRARY) !== null && _WCF_TEMPLATE_LIBRARY7 !== void 0 && _WCF_TEMPLATE_LIBRARY7.pro_installed && !((_WCF_TEMPLATE_LIBRARY8 = WCF_TEMPLATE_LIBRARY) !== null && _WCF_TEMPLATE_LIBRARY8 !== void 0 && _WCF_TEMPLATE_LIBRARY8.pro_active) ? "\n <!-- Show 'Activate' button if the plugin is installed but not active -->\n <button class=\"library--action pro aaeplugin-activate\">\n <i class=\"eicon-external-link-square\"></i>\n Activate\n </button>\n " : '', "\n "), "\n \n <p class=\"title\">").concat(item.title, "</p>\n </div>\n ");
0 commit comments