WebsiteBaker Support (2.11.x) > Modules

smoothgallery

<< < (4/13) > >>

jacobi22:
only information
this codeline in not longer needed since WB 2.8.3 SP7 or WB 2.10 (i'm not sure). the function is now included into the core, so it's not longer needed, to ask for it

if(function_exists('register_frontend_modfiles')) {

}

this code is enough in the <head> of the index.php from the template

<?php // allows to include optional module files (frontend.css, frontend.js) into the head
  register_frontend_modfiles('css');
//register_frontend_modfiles('jquery');
  register_frontend_modfiles('js');
 ?>

sebigbos:
screen.css is in the the folder /templates/DefaultTemplate/css/

dbs:
Your new head:

--- Code: ---<head>
<title><?php page_title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
<meta name="description" content="<?php page_description(); ?>" />
<meta name="keywords" content="<?php page_keywords(); ?>" />
<link href="<?php echo TEMPLATE_DIR; ?>/css/screen.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo TEMPLATE_DIR; ?>/print.css" rel="stylesheet" type="text/css" media="print" />
<?php // allows to include optional module files (frontend.css, frontend.js) into the head
  register_frontend_modfiles('css');
//register_frontend_modfiles('jquery');
  register_frontend_modfiles('js');
?>
</head>
--- End code ---

sebigbos:
deleted the code if(function_exists('register_frontend_m odfiles')) {} and changed the patrh to the stylesheet

the template shows up now

neuerheadcode

evaki:
Hier mal die bei mir lokal angelegte Seite mit dem Inhalt von <head>...</head> (Browser-Quelltext!)
Plaziert ist's im WB-DefaultTemplate (ist das bei Dir noch im Originalzustand?)
WB2.12.r81 / php7.2.3

--- Code: ---<head>

    <meta charset="utf-8" />
    <title>WB 2.12 R81</title>
    <meta name="description" content="Metatag Beschreibung" />
    <meta name="keywords" content="Metatag Schlüsselwörter" />
    <meta name="robots" content="noodp" />
    <meta name="referrer" content="same-origin" />
    <!-- Mobile viewport optimisation -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" type="text/css" href="http://localhost/templates/DefaultTemplate/css/3/w3.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="http://localhost/templates/DefaultTemplate/css/screen.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="http://localhost/templates/DefaultTemplate/css/print.css" media="print" />
    <link rel="canonical" href="http://localhost/pages/glatte-gallerie.php"/>
    <link rel="shortcut icon" href="http://localhost/templates/DefaultTemplate/images/favicon.ico" type="image/x-icon">
    <link rel="apple-touch-icon" href="http://localhost/templates/DefaultTemplate/images/apple-touch-icon.png"/>
<!--
    <link rel="alternate" type="application/rss+xml" title="Test RSS-Feed" href="http://localhost/modules/news/rss.php?page_id=??" />
-->
<link rel="stylesheet" href="http://localhost/modules/WBLingual/frontend.css" media="screen" />
<link rel="stylesheet" href="http://localhost/modules/smoothgallery/frontend.css" media="screen" />
<script>
/* inserted by register_frontend_modfiles */
var URL = 'http://localhost';
var WB_URL = 'http://localhost';
var THEME_URL = 'http://localhost/templates/DefaultTheme';
var TEMPLATE_DIR = 'http://localhost/templates/DefaultTemplate';
var TEMPLATE = 'DefaultTemplate';
var EDITOR = 'ckeditor';
</script>
<script src="http://localhost/include/jquery/domReady-min.js"></script>
<script src="http://localhost/include/jquery/LoadOnFly-min.js"></script>

<script src="http://localhost/include/jquery/jquery-min.js"></script>
<script src="http://localhost/include/jquery/jquery-migrate-min.js"></script>
<script src="http://localhost/include/jquery/jquery-insert.js"></script>
<script src="http://localhost/include/jquery/jquery-include.js"></script>
<script src="http://localhost/include/jquery/jquery_frontend.js"></script>

<script src="http://localhost/modules/smoothgallery/frontend.js"></script>

    <script id="headjs" src="http://localhost/templates/DefaultTemplate/js/head.js"></script>

<link rel="stylesheet" href="http://localhost/modules/smoothgallery/frontend_ie.css">

</head>
--- End code ---
Das Modul ist bei mir "nackt" installiert, also ohne irgendwelche Änderungen.
Die Bilder sind zu sehen und per > < wählbar.

MfG. Evaki

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version