This file contains 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 | |
// including any theme all css & js files - https://codex.wordpress.org/Function_Reference/wp_enqueue_style | |
function corlate_theme_files(){ | |
wp_enqueue_style( 'bootstrap', get_template_directory_uri(). | |
'/css/bootstrap.min.css', array(), '3.0.3', 'all'); | |
wp_register_style('bootstrap'); | |
} | |
add_action('wp_enqueue_scripts', 'corlate_theme_files'); |
This file contains 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 language_attributes(); ?> - language attributes | |
<?php bloginfo( 'charset' ); ?> - meta charset bloginfo (see: https://codex.wordpress.org/Function_Reference/bloginfo) | |
<?php wp_title( '|', true, 'right' ); ?> - title dynamic (see: https://codex.wordpress.org/Function_Reference/wp_title) | |
<?php wp_head(); ?> - hook | |
<?php wp_footer(); ?> - hook | |
This file contains 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 | |
// including corlate theme all css & js files | |
function corlate_theme_files(){ | |
// Including CSS files: | |
wp_register_style( 'bootstrap', get_template_directory_uri(). | |
'/css/bootstrap.min.css', array(), '3.0.3', 'all'); | |
wp_register_style( 'font-awesome', get_template_directory_uri(). |
This file contains 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 include 'config/config.php';?> | |
<?php include 'lib/Database.php';?> | |
<?php include 'helpers/formet.php'; ?> | |
<?php include 'inc/header.php'; ?> | |
<?php include 'inc/slider.php'; ?> | |
<?php | |
$db= new Database(); | |
$fm= new Formet(); |
This file contains 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
<!-- Load TinyMCE --> | |
<script src="js/tiny-mce/jquery.tinymce.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
setupTinyMCE(); | |
setDatePicker('date-picker'); | |
$('input[type="checkbox"]').fancybutton(); | |
$('input[type="radio"]').fancybutton(); | |
}); | |
</script> |
This file contains 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 | |
define("DB_HOST", "localhost"); | |
define("DB_USER", "root"); | |
define("DB_PASS", ""); | |
define("DB_NAME", "your_db_name"); | |
?> |
This file contains 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 | |
Class Database{ | |
public $host = DB_HOST; | |
public $user = DB_USER; | |
public $pass = DB_PASS; | |
public $dbname = DB_NAME; | |
public $link; | |
public $error; |
This file contains 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 | |
/** | |
* Format Class | |
*/ | |
class Format{ | |
public function formatDate($date){ | |
return date('F j, Y, g:i a', strtotime($date)); | |
} | |
public function textShorten($text, $limit = 400){ |
This file contains 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 | |
/** | |
*Session Class | |
**/ | |
class Session{ | |
public static function init(){ | |
if (version_compare(phpversion(), '5.4.0', '<')) { | |
if (session_id() == '') { | |
session_start(); | |
} |
OlderNewer