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
defined('ABSPATH') or die("No script kiddies please!"); |
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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
La traduceri pentru PLUGINURI, | |
trebuie neaparat sa pun acelasi nume la domeniul din | |
load_plugin_textdomain('cwppos', false, dirname(plugin_basename(__FILE__)).'/languages/'); | |
si in languages: |
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
<div class="free-shiping"><p>FREE SHIPPING ON ALL ORDERS OVER £150</p></div> | |
.free-shiping { | |
display: table; | |
overflow: hidden; | |
} | |
p { | |
display: table-cell; | |
vertical-align: middle; |
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
class PageTemplater { | |
/** | |
* A Unique Identifier | |
*/ | |
protected $plugin_slug; | |
/** | |
* A reference to an instance of this class. | |
*/ |
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
http://matthewjamestaylor.com/blog/beautiful-css-centered-menus-no-hacks-full-cross-browser-support | |
<div id="centeredmenu"> | |
<ul> | |
<li><a href="#">Tab one</a></li> | |
<li><a href="#" class="active">Tab two</a></li> | |
<li><a href="#">Tab three</a></li> | |
<li><a href="#">Tab four</a></li> | |
</ul> | |
</div> |
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
jQuery(document).delegate('#addProgramare', 'click', function() { | |
console.log('a'); | |
}); |
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
add_action('widgets_init', 'zerif_ourfocus_widget'); | |
function zerif_ourfocus_widget() { | |
register_widget( 'zerif_ourfocus' ); | |
} | |
add_action('admin_enqueue_scripts', 'zerif_ourfocus_widget_scripts'); | |
function zerif_ourfocus_widget_scripts() { | |
wp_enqueue_media(); | |
wp_enqueue_script('zerif_our_focus_widget_script', get_template_directory_uri() . '/js/widget.js', false, '1.0', true); | |
} |
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
wp_register_style( 'zerif_php_style', get_template_directory_uri() . '/css/style.php'); | |
wp_enqueue_style( 'zerif_php_style' ); | |
intr-un fisier style.php pe care il includ in functions: | |
<?php | |
include_once "../../../../wp-load.php"; | |
header("Content-type: text/css"); | |
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
Downloadez https://github.com/thomasgriffin/TGM-Plugin-Activation | |
In functions.php: | |
require_once get_template_directory() . '/class-tgm-plugin-activation.php'; | |
add_action( 'tgmpa_register', 'zerif_register_required_plugins' ); | |
function zerif_register_required_plugins() { | |
$plugins = array( |
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
In ACF , selectez Taxonomy Term is equal to Categories. | |
Ca sa afisez in category.php: | |
$category_id = get_cat_id( single_cat_title("",false) ); | |
$test = get_field( "test",'category' . '_' . $category_id ); | |
if(isset($test) && $test != ""): | |
echo $test; | |
endif; |