This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function sanitizeString($var) | |
| { | |
| $var = stripslashes($var); | |
| $var = strip_tags($var); | |
| $var = htmlentities($var); | |
| return $var; | |
| } | |
| function sanitizeMySQL($connection, $var) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Theme Name: Go Foundation | |
| Author: Hasan Gökçe | |
| Description: This theme ideal for foundations | |
| Version: 1.0 | |
| License: GNU General Public License v2 or later | |
| License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| Text Domain: gofoundation | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( have_posts() ) : | |
| while ( have_posts () ) : | |
| the_post(); | |
| //loop content (template tags, html, etc) | |
| endwhile; | |
| endif; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Intented to use bootstrap 3. | |
| // Location is like a 'primary' | |
| // After, you print menu just add create_bootstrap_menu("primary") in your preferred position; | |
| #add this function in your theme functions.php | |
| function create_bootstrap_menu( $theme_location ) { | |
| if ( ($theme_location) && ($locations = get_nav_menu_locations()) && isset($locations[$theme_location]) ) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function my_login_logo() { ?> | |
| <style type="text/css"> | |
| #login h1 a, .login h1 a { | |
| background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/img/logo_login.png); | |
| height:80px; | |
| width:80px; | |
| background-size: 80px 80px; | |
| background-repeat: no-repeat; | |
| padding-bottom: 00px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Html | |
| <img onclick="pauseVid()" src="images/button-sound.png" height="13" width="13" /> | |
| <audio id="myVideo" width="0" height="0"> | |
| <source src="music.mp3" type="audio/mpeg"> | |
| Tarayıcınız Html5'i desteklemiyor. | |
| </audio> | |
| // Music control | |
| <script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| script type="text/javascript"> | |
| function changeClass() | |
| { | |
| // Code examples from above | |
| } | |
| window.onload = function() | |
| { | |
| document.getElementById("MyElement").addEventListener( 'click', changeClass); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="messages.css"> | |
| <meta charset="utf-8"> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $loop = new WP_Query( array( | |
| 'post_type' => 'Property', | |
| 'posts_per_page' => -1 | |
| ) | |
| ); | |
| ?> | |
| <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var inputFile = document.getElementById("finput"); | |
| inputFile.addEventListener("change", handleFile, false); | |
| function handleAudioFile() { | |
| var fileList = this.files; /* now you can work with the file list */ | |
| file = fileList[0]; | |
| file.src = URL.createObjectURL(file); //If you use | |
| var formData = new FormData(file); | |
| formData.append('file', file); |
OlderNewer