Compare commits

..

No commits in common. "b01f31a98ee0a572271c7575259bf3fd8c516846" and "e6277a5e8965d2338e9959e3ab61a4d702f1ecbe" have entirely different histories.

7 changed files with 20 additions and 23 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,9 +10,8 @@
* @subpackage xarxaprod-wp-plugin/includes
* @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/' );
}
add_action('plugins_loaded', 'xarxaprod_wpplugin_init_textdomain');
}
}
add_action('plugins_loaded', 'xarxaprod_wpplugin_init_textdomain');

View File

@ -11,9 +11,8 @@
* @subpackage xarxaprod_wp-plugin/includes
* @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_action( 'admin_init', 'xarxaprod_public_styles' );
}
}
add_action( 'admin_init', 'xarxaprod_public_styles' );