Skip to content

MBaroky/bss-to-php-blank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blank repo for Bootstrap Studio to create PHP site

Including the PHP form files

tested on Bootstrap Studio 5.1.1

Instructions

1. Install via git

git clone https://github.com/MBaroky/bss-to-php-blank.git

2. Create Bootstrap Studio Template with files:

3. In export advanced options add

<path where installed bss-to-php-blank>/PHPer.bat

4. On each additional page

take care don't use name: form.html

in PHPer.bat: at line #8 inside () add

, <your file's name without extention>.php

In header

at the beginning of file:

for active case and mobile detect: optional

<?php
$activePage = basename($_SERVER['PHP_SELF'], ".php");
function isMobile() {
    return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
?>

then use the following code in each link's class attribute to dinamicly add the active class * [FILENAME] is the href of the link as relative path *

<?= ($activePage == '[FILENAME]') ? 'active':''; ?>

to use the isMobile method: * whatsapp link example *

<?= (isMobile()) ? 'https://wa.me/201202855556':'https://web.whatsapp.com/send?phone=201202855556'; ?>

in the end of file:

<!--end of header.php-->

In footer

In index

In contact

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published