Compare commits
3 Commits
e6277a5e89
...
b01f31a98e
Author | SHA1 | Date |
---|---|---|
jorge | b01f31a98e | |
jorge | 5d183925c5 | |
jorge | 2bc7c46f3f |
|
@ -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/'); ?>';
|
||||
var url = '<?php echo home_url('ajuts/'); ?>'; //insert the custom-post-type slug
|
||||
args = {};
|
||||
var appendtoURL = '';
|
||||
var eachfiltered = '';
|
||||
|
|
|
@ -109,7 +109,7 @@ if( ! function_exists( 'xarxaprod_associats_filters_form') ) {
|
|||
$('#archive-filters').on('click', 'input', function(){
|
||||
|
||||
// vars
|
||||
var url = '<?php echo home_url('associats/'); ?>';
|
||||
var url = '<?php echo home_url('associat/'); ?>'; //insert the custom-post-type slug
|
||||
args = {};
|
||||
var appendtoURL = '';
|
||||
var eachfiltered = '';
|
||||
|
|
|
@ -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/'); ?>';
|
||||
var url = '<?php echo home_url('convos/'); ?>'; //insert the custom-post-type slug
|
||||
args = {};
|
||||
var appendtoURL = '';
|
||||
var eachfiltered = '';
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -11,9 +11,10 @@
|
|||
* @subpackage xarxaprod-wp-plugin/includes
|
||||
* @author Jorge - vitrubio.net <jorge@vitrubio.net>
|
||||
*/
|
||||
|
||||
function enable_mime_types( $mimes ) {
|
||||
$mimes['svg'] = 'image/svg+xml';
|
||||
return $mimes;
|
||||
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');
|
||||
}
|
||||
add_filter('upload_mimes', 'enable_mime_types');
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
* @subpackage xarxaprod-wp-plugin/includes
|
||||
* @author Jorge - vitrubio.net <jorge@vitrubio.net>
|
||||
*/
|
||||
|
||||
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');
|
||||
if (! function_exists ('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');
|
||||
}
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
* @subpackage xarxaprod_wp-plugin/includes
|
||||
* @author Jorge - vitrubio.net <jorge@vitrubio.net>
|
||||
*/
|
||||
|
||||
function xarxaprod_public_styles() {
|
||||
add_editor_style( 'assets/css/xarxaprod-wpplugin-styles.css' );
|
||||
}
|
||||
add_action( 'admin_init', 'xarxaprod_public_styles' );
|
||||
if (! function_exists ('xarxaprod_public_styles') ){
|
||||
function xarxaprod_public_styles() {
|
||||
add_editor_style( 'assets/css/xarxaprod-wpplugin-styles.css' );
|
||||
}
|
||||
add_action( 'admin_init', 'xarxaprod_public_styles' );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue