Compare commits

..

3 Commits

7 changed files with 23 additions and 20 deletions

View File

@ -109,7 +109,7 @@ if( ! function_exists( 'xarxaprod_ajuts_filters_form') ) {
$('#archive-filters').on('click', 'input', function(){ $('#archive-filters').on('click', 'input', function(){
// vars // vars
var url = '<?php echo home_url('ajuts/'); ?>'; var url = '<?php echo home_url('ajuts/'); ?>'; //insert the custom-post-type slug
args = {}; args = {};
var appendtoURL = ''; var appendtoURL = '';
var eachfiltered = ''; var eachfiltered = '';

View File

@ -109,7 +109,7 @@ if( ! function_exists( 'xarxaprod_associats_filters_form') ) {
$('#archive-filters').on('click', 'input', function(){ $('#archive-filters').on('click', 'input', function(){
// vars // vars
var url = '<?php echo home_url('associats/'); ?>'; var url = '<?php echo home_url('associat/'); ?>'; //insert the custom-post-type slug
args = {}; args = {};
var appendtoURL = ''; var appendtoURL = '';
var eachfiltered = ''; var eachfiltered = '';

View File

@ -109,7 +109,7 @@ if( ! function_exists( 'xarxaprod_convos_filters_form') ) {
$('#archive-filters').on('click', 'input', function(){ $('#archive-filters').on('click', 'input', function(){
// vars // vars
var url = '<?php echo home_url('convos/'); ?>'; var url = '<?php echo home_url('convos/'); ?>'; //insert the custom-post-type slug
args = {}; args = {};
var appendtoURL = ''; var appendtoURL = '';
var eachfiltered = ''; var eachfiltered = '';

View File

@ -60,8 +60,8 @@ if ( ! function_exists('xarxaprod_wpplugin_custom_post_associat_init') ){
'label' => __( 'xarxaprod-associat', 'text_domain' ), 'label' => __( 'xarxaprod-associat', 'text_domain' ),
'description' => __( 'Associats', 'text_domain' ), 'description' => __( 'Associats', 'text_domain' ),
'labels' => $labels, 'labels' => $labels,
//'supports' => array( 'title', 'editor', 'thumbnail', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes' ), 'supports' => array( 'title', 'editor', 'thumbnail', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes' ),
'supports' => array( 'title', 'editor', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes' ), //'supports' => array( 'title', 'editor', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes' ),
// 'taxonomies' => array( // 'taxonomies' => array(
// 'xarxaprod-associat-category', // 'xarxaprod-associat-category',
// 'xarxaprod-associat-tag' // 'xarxaprod-associat-tag'

View File

@ -11,9 +11,10 @@
* @subpackage xarxaprod-wp-plugin/includes * @subpackage xarxaprod-wp-plugin/includes
* @author Jorge - vitrubio.net <jorge@vitrubio.net> * @author Jorge - vitrubio.net <jorge@vitrubio.net>
*/ */
if (! function_exists ('enable_mime_types') ){
function enable_mime_types( $mimes ) { function enable_mime_types( $mimes ) {
$mimes['svg'] = 'image/svg+xml'; $mimes['svg'] = 'image/svg+xml';
return $mimes; return $mimes;
}
add_filter('upload_mimes', 'enable_mime_types');
} }
add_filter('upload_mimes', 'enable_mime_types');

View File

@ -10,8 +10,9 @@
* @subpackage xarxaprod-wp-plugin/includes * @subpackage xarxaprod-wp-plugin/includes
* @author Jorge - vitrubio.net <jorge@vitrubio.net> * @author Jorge - vitrubio.net <jorge@vitrubio.net>
*/ */
if (! function_exists ('xarxaprod_wpplugin_init_textdomain') ){
function xarxaprod_wpplugin_init_textdomain() { function xarxaprod_wpplugin_init_textdomain() {
load_plugin_textdomain( 'xarxaprod-wpplugin-textdomain', null, plugin_dir_path( __FILE__ ).'/assets/languages/' ); load_plugin_textdomain( 'xarxaprod-wpplugin-textdomain', null, plugin_dir_path( __FILE__ ).'/assets/languages/' );
} }
add_action('plugins_loaded', 'xarxaprod_wpplugin_init_textdomain'); add_action('plugins_loaded', 'xarxaprod_wpplugin_init_textdomain');
}

View File

@ -11,8 +11,9 @@
* @subpackage xarxaprod_wp-plugin/includes * @subpackage xarxaprod_wp-plugin/includes
* @author Jorge - vitrubio.net <jorge@vitrubio.net> * @author Jorge - vitrubio.net <jorge@vitrubio.net>
*/ */
if (! function_exists ('xarxaprod_public_styles') ){
function xarxaprod_public_styles() { function xarxaprod_public_styles() {
add_editor_style( 'assets/css/xarxaprod-wpplugin-styles.css' ); add_editor_style( 'assets/css/xarxaprod-wpplugin-styles.css' );
} }
add_action( 'admin_init', 'xarxaprod_public_styles' ); add_action( 'admin_init', 'xarxaprod_public_styles' );
}