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
// inside the .php file | |
{ | |
//$mail = $_POST['mail']; | |
$date = $_POST['date']; | |
$success = true; | |
$response = json_encode( | |
array( 'success' => $success, | |
'mail' => 'mail', | |
'message' => 'test', | |
'date' => $date |
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 | |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */ | |
/* geoip.inc | |
* | |
* Copyright (C) 2007 MaxMind LLC | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either |
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
class Walker_Header extends Walker_Nav_Menu { | |
/** | |
* @see Walker::$tree_type | |
* @since 3.0.0 | |
* @var string | |
*/ | |
var $tree_type = array( 'post_type', 'taxonomy', 'custom' ); | |
/** |
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 | |
/** | |
* This class facilitates creation of settings field to the theme options | |
* through, default pre-made boxes | |
* | |
* @todo example usage | |
* | |
* @author Rafal Gicgier <[email protected]> | |
*/ |
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
require_once STYLESHEETPATH . '/skeleton/settings.class'; | |
if ( class_exists( 'Skeleton_Settings' ) ) { | |
$args = array( | |
'opt1' => array( | |
'type' => 'text', | |
'name' => 'input-text-1', | |
'desc' => 'Input type text test', | |
), |
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
<div class="pagination"> | |
<ul class="page-numbers"> | |
<li><span class="page-numbers current">1</span></li> | |
<li><a class="page-numbers" href="http://localhost/junelabs/WP/blog/page/2/">2</a></li> | |
<li><a class="page-numbers" href="http://localhost/junelabs/WP/blog/page/3/">3</a></li> | |
<li><a class="next page-numbers" href="http://localhost/junelabs/WP/blog/page/2/">▶</a></li> | |
</ul> | |
</div> |
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 | |
/** | |
* This class facilitates creation of custom post types | |
* @author Rafal Gicgier <[email protected]> | |
*/ | |
class Skeleton_Posts { | |
private $posts = array( ); |
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
require_once STYLESHEETPATH . '/skeleton/posts.class'; | |
if ( class_exists( 'Skeleton_Posts' ) ) { | |
$args = array( | |
'post1' => array( | |
'name' => 'Slider', | |
'labels' => array( | |
'singular' => 'Slider', | |
'plural' => 'Slider entries', | |
), |
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 | |
/** | |
* Generates the user pagination for custom and default queries | |
* | |
* @global object $wp_query | |
* @param object $query used within a custom loop | |
*/ | |
function skeleton_pagination($query = null) { | |
if ( !$query ) { |
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
// w functions.php | |
// upewniamy się, że szablon pozwala na featured image | |
add_theme_support( 'post-thumbnails' ); | |
// dodajemy automatycznie cięty obrazek o rozmiaracah 209 na 203 o nazwie thumb-course | |
add_image_size( 'thumb-course', 209, 203, true ); | |
// dodajemy posty podczas jednej z pierwszych akcji WordPressa | |
add_action( 'init', 'raf_cpt_init' ); |
OlderNewer