PageSourceSearch

https://www.bubenheim.de/modules/anynews/frontend.js

js bubenheim.de collected 2026-10-02 18:33:20 UTC 1,655 bytes, 38 lines download raw bytes

1/**
2 * Code snippet: 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 * displayNewsItems() 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     anynews
16 * @author      cwsoft (http://cwsoft.de)
17 * @version     2.1.0
18 * @copyright   cwsoft
19 * @license     http://www.gnu.org/licenses/gpl-3.0.html
20*/
21
22function showJqueryStatus(addinName) {
23	if (typeof jQuery == 'undefined' || typeof(WB_URL) == "undefined") {
24		// create a message to be displayed to the user
25		msg = "Sorry, the required jQuery files for " + addinName + " are not loaded in your template.";
26		msg += "\nPlease ensure the code below is included within the <head> section of your template 'index.php' file.";
27		msg += "\nYou can use the external admin tool Addon File Editor (AFE) to modify this template file.";
28		msg += "\n\n<?php\n    // automatically include optional WB module files (frontend.css, frontend.js)";
29		msg += "\n    if (function_exists('register_frontend_modfiles')) {";
30		msg += "\n        register_frontend_modfiles('css');";
31		msg += "\n        register_frontend_modfiles('jquery');";
32		msg += "\n        register_frontend_modfiles('js');"
33		msg += "\n    }\n?>";
34	
35		// output status message so user is aware that he needs to modify his template to get Postits displayed
36		alert(msg);
37	}
38}

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.