GithubHelp home page GithubHelp logo

contact_form's Introduction

contact_form

A contac form plugin for WonderCMS

To use this form, download and extract the zip file, put the folder 'contact_form' in the plugins folder of your WonderCMS website. You now can use the form in you're website. I used it in the footer of my website. In this plugin, three new editable area's are created. Infoooter1EditableArea, Infoooter2EditableArea, and Infoooter3EditableArea. You can use them to create a three column footer on you're website

The next code goes in the you're theme php file

<?php
	global $contact_form_email;
	$contact_form_email = "[email protected]";
	
	$EmbedMap = '<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1001.1449376151443!2d4.2963146973138455!3d52.099569514478546!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47c5b74d1c0dd2c7%3A0xccfe81afc891bc40!2sMadurodam!5e0!3m2!1snl!2snl!4v1489137876516" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>' 
	?>


	<footer class="container-fluid">
		<div class="container marginTop20">
			<div class="col-xs-12 col-sm-4">
				<div id="contactform" class="grayFont" style="height: 265px;">
         		  	<?php contact_form(); ?>
				</div>
				<div>
					<?=Infoooter1EditableArea()?>
				</div>
			</div>
			<div class="col-xs-12 col-sm-4">
				<div  class="embedmap" style="height: 235px;">
					<?php echo $EmbedMap; ?>
				</div>
    				<div>
					<?=Infoooter2EditableArea()?>
 		 		</div>
			</div>
			<div class="col-xs-12 col-sm-4">
				<div>
					<?=Infoooter3EditableArea()?>
				</div>
			</div>
		</div>
		<div class="text-center">
			<?=wCMS::footer()?><br><br>
		</div>
	</footer>

In you're stylesheet (style.css) of you're theme you should change the body margin-bottom to a value that can hold you're footer. In my case 400px, and add the @media body if the screen is smaller than 768px The .embedmap I use to embed a google map or an openstreet map.

body {
	color: #fff;
	background: #eee;
	margin-bottom: 400px;
	font-family: Lucida Sans Unicode, Verdana;
}

@media (max-width: 768px) {
	body {
		margin-bottom: 675px;
	}
}

.embedmap iframe {border: 1px solid #bac5d6 !important; width: 100%!important; height: 200px!important;}

contact_form's People

Contributors

hermadme avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.