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
app.config(function($routeProvider) { | |
$routeProvider.when("/", | |
{ | |
controller: "", | |
templateUrl: "" | |
}).when("/", | |
{ | |
controller: "", | |
templateUrl: "" | |
}) |
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
$http({ | |
url: "", | |
method: "", | |
}).success(function(data, status, headers, config) { | |
$scope.data = data; | |
}).error(function(data, status, headers, config) { | |
$scope.status = status; | |
}); |
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
app.controller('Controller_Name', function($scope) { | |
}); |
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 ( dynamic_sidebar('example_widget_area_name') ) : 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
if (function_exists('register_sidebar')) { | |
register_sidebar(array( | |
'name' => 'Sidebar Widgets', | |
'id' => 'sidebar-widgets', | |
'description' => 'These are widgets for the sidebar.', | |
'before_widget' => '<div id="%1$s" class="widget %2$s">', | |
'after_widget' => '</div>', | |
'before_title' => '<h2>', | |
'after_title' => '</h2>' | |
)); |
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 dbConnect($sql_hostName, $sql_Username, $sql_Password, $dbName = '') { | |
$server = $sql_hostName; | |
$name = $dbName; | |
$username = $sql_Username; | |
$password = $sql_Password; | |
$dsn = 'mysql:host='.$server.';dbname='.$name; | |
try { | |
$db = new PDO($dsn, $username, $password); | |
return $db; |
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 dbQuery($conn, $sql='SELECT *', $params) { | |
$queryTerms = explode(" ", $sql); | |
$toBind = array(); | |
foreach ($queryTerms as $term) { | |
if ($term[0] == ':') { | |
array_push($toBind, $term); | |
} | |
} | |
try { | |
$stmt = $conn->prepare($sql); |
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 | |
/** | |
* Plugin Name: | |
* Plugin URI: | |
* Description: | |
* Version: | |
* Author: Josh Crowther | |
* Author URI: http://joshcrowther.com | |
* License: GPL2 | |
*/ |
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' => 'custom_post_type_name', 'posts_per_page' => 100 ) ); ?> | |
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?> | |
<?php the_post_thumbnail(); ?> | |
<h3><?php the_title() ?></h3> | |
<a href="<?php the_permalink() ?>">Read More</a> | |
<?php endwhile; ?> |
OlderNewer