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
Validation file: | |
X\YBundle\Entity\ContactsUpload: | |
properties: | |
name: | |
- NotBlank: ~ | |
file: | |
- File: | |
maxSize: 1024k | |
mimeTypes: 'application/vnd.oasis.opendocument.spreadsheet' | |
mimeTypesMessage: Please upload valid spreadsheet file! |
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
function nimble_portfolio_register_taxonomies() { | |
register_taxonomy('nimble-portfolio-type', 'portfolio', array('hierarchical' => true, 'label' => 'Item Type', 'query_var' => true, 'rewrite' => array('slug' => 'portfolio-type'))); | |
if (count(get_terms('nimble-portfolio-type', 'hide_empty=0')) == 0) { | |
register_taxonomy('type', 'portfolio', array('hierarchical' => true, 'label' => 'Item Type')); | |
$_categories = get_categories('taxonomy=type&title_li='); | |
foreach ($_categories as $_cat) { | |
if (!term_exists($_cat->name, 'nimble-portfolio-type')) | |
wp_insert_term($_cat->name, 'nimble-portfolio-type'); | |
} |
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
if(Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { | |
File path = new File(Environment.getExternalStorageDirectory() | |
+ File.separator + context.getString(R.string.app_dir)); | |
if(!path.exists()) { | |
path.mkdirs(); | |
} | |
} |
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 | |
/** | |
* Category and product tag og:image fix for SEO by yoast / woocommerce | |
*/ | |
function fabframe_print_custom_og_image() | |
{ | |
if ( is_product_category() ) { | |
global $post; |
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 | |
/** | |
* Plugin Name: WooCommerce Payment Gateway - TF Bank | |
* Description: TF Bank Credit Line integration. | |
* Version: 1.0.1 | |
* Author: Mindaugas Budreika | |
* Author URI: mailto:mindaugas.budreika@thecoffeemate.group | |
* Text Domain: woocommerce-gateway-tf-bank | |
* WC requires at least: 3.5.3 | |
* WC tested up to: 3.5.3 |