PageSourceSearch

https://www.svfischbach.de/modules/cwsoft-anynews/frontend.js

js svfischbach.de collected 2026-10-08 20:03:13 UTC 1,682 bytes, 37 lines download raw bytes

1/**
2 * Code snippet: cwsoft-anynews
3 *
4 * This code snippets grabs news entries from the WebsiteBaker news
5 * module and displays them on any page you want by invoking the function
6 * getNewsItems() via a page of type code or the index.php
7 * file of the template.
8 *
9 * This file contains JavaScript code to display a message in case the 
10 * jQuery files are not loaded via the index.php file of the frontend template.
11 * 
12 * LICENSE: GNU General Public License 3.0
13 * 
14 * @platform    CMS WebsiteBaker 2.8.x
15 * @package     cwsoft-anynews
16 * @author      cwsoft (http://cwsoft.de)
17 * @copyright   cwsoft
18 * @license     http://www.gnu.org/licenses/gpl-3.0.html
19*/
20
21function showJqueryStatus(addinName) {
22	if (typeof jQuery == 'undefined' || typeof(WB_URL) == "undefined") {
23		// create a message to be displayed to the user
24		msg = "Sorry, the required jQuery files for " + addinName + " are not loaded in your template.";
25		msg += "\nPlease ensure the code below is included within the <head> section of your template 'index.php' file.";
26		msg += "\nYou can use the external admin tool Addon File Editor (AFE) to modify this template file.";
27		msg += "\n\n<?php\n    // automatically include optional WB module files (frontend.css, frontend.js)";
28		msg += "\n    if (function_exists('register_frontend_modfiles')) {";
29		msg += "\n        register_frontend_modfiles('css');";
30		msg += "\n        register_frontend_modfiles('jquery');";
31		msg += "\n        register_frontend_modfiles('js');"
32		msg += "\n    }\n?>";
33	
34		// output status message so user is aware that he needs to modify the template to use all Anynews features
35		alert(msg);
36	}
37}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.