Skip to content

Commit

Permalink
v8.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
milesimarco committed Jul 22, 2024
1 parent 787fd74 commit 31e69c2
Show file tree
Hide file tree
Showing 10 changed files with 226 additions and 221 deletions.
12 changes: 6 additions & 6 deletions amministrazionetrasparente.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Amministrazione Trasparente
Plugin URI: https://wordpress.org/plugins/amministrazione-trasparente/
Description: Soluzione completa per la pubblicazione online dei documenti ai sensi del D.lgs. n. 33 del 14/03/2013
Version: 8.1.2
Version: 8.1.3
Author: Marco Milesi
Author Email: milesimarco@outlook.com
Author URI: https://www.marcomilesi.com
Expand Down Expand Up @@ -250,13 +250,13 @@ function at_force_template( $template ) {
if( is_tax( 'tipologie' ) || is_tax( 'annirif' ) || is_tax( 'ditte' ) ) {
$theme_name = strtolower(wp_get_theme());
if (get_template() == 'pasw2013' || $theme_name == 'pasw2013' || at_option('pasw_2013') == '1') { //Se è attivata la modalità "Forza template PASW"
$template = WP_PLUGIN_DIR .'/'. plugin_basename( dirname(__FILE__) ) .'/inc/pasw2013/paswarchive-tipologie.php';
$template = WP_PLUGIN_DIR .'/'. plugin_basename( dirname(__FILE__) ) .'/includes/pasw2013/paswarchive-tipologie.php';
}

} else if ( is_singular( 'amm-trasparente' ) ) {
$theme_name = strtolower(wp_get_theme());
if (get_template() == 'pasw2013' || $theme_name == 'pasw2013' || at_option('pasw_2013') == '1') { //Se è attivata la modalità "Forza template PASW"
$template = WP_PLUGIN_DIR .'/'. plugin_basename( dirname(__FILE__) ) .'/inc/pasw2013/paswsingle-tipologie.php';
$template = WP_PLUGIN_DIR .'/'. plugin_basename( dirname(__FILE__) ) .'/includes/pasw2013/paswsingle-tipologie.php';
}
}
return $template;
Expand All @@ -265,7 +265,7 @@ function at_force_template( $template ) {

// searchTaxonomyGT by Gabriel Tavares http://www.gtplugins.com
add_action( 'admin_enqueue_scripts', function() {
wp_register_script('at_searchTaxonomyGT', plugins_url('/inc/js/searchTaxonomyGT.js', __FILE__));
wp_register_script('at_searchTaxonomyGT', plugins_url('/includes/js/searchTaxonomyGT.js', __FILE__));
wp_enqueue_script('at_searchTaxonomyGT');
} );

Expand Down Expand Up @@ -324,8 +324,8 @@ function at_force_template( $template ) {
return;
}

wp_enqueue_script( 'at_edit_js', plugin_dir_url( __FILE__ ) . '/inc/js/jquery.multi-select.js', array(), '1.0' );
wp_enqueue_style( 'at_edit_css', plugin_dir_url( __FILE__ ) . '/inc/css/multi-select.css', array(), '1.0', false);
wp_enqueue_script( 'at_edit_js', plugin_dir_url( __FILE__ ) . '/includes/js/jquery.multi-select.js', array(), '1.0' );
wp_enqueue_style( 'at_edit_css', plugin_dir_url( __FILE__ ) . '/includes/css/multi-select.css', array(), '1.0', false);
} );

function at_option($name) {
Expand Down
4 changes: 2 additions & 2 deletions backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ function adminMessages() {
echo '
<div class="notice notice-error">
<p><b>AMMINISTRAZIONE TRASPARENTE</b></p>
<p>Per iniziare crea una nuova pagina per "Amministrazione Trasparente" utilizzando gli <a href="//wpgov.it/docs/amministrazione-trasparente/" target="_blank">shortcode</a> del plugin.<br />
Ricorda di inserire l\'ID della pagina in <b>Trasparenza -> Impostazioni</b></p>
<p>Crea una nuova pagina per "Amministrazione Trasparente" utilizzando gli <a href="https://github.com/WPGov/amministrazione-trasparente/wiki/Shortcode" target="_blank">shortcode</a> del plugin.<br />
Aggiungere l\'ID della pagina creata in <b>"Trasparenza -> Impostazioni -> Generale -> ID Pagina"</b></p>
</div>';
}

Expand Down
182 changes: 91 additions & 91 deletions inc/css/multi-select.css → includes/css/multi-select.css
Original file line number Diff line number Diff line change
@@ -1,92 +1,92 @@
.ms-container{
background: transparent url('../img/switch.png') no-repeat 50% 50%;
}

.ms-container:after{
content: ".";
display: block;
height: 0;
line-height: 0;
font-size: 0;
clear: both;
min-height: 0;
visibility: hidden;
}

.ms-container .ms-selectable, .ms-container .ms-selection{
background: #fff;
color: #555555;
float: left;
width: 45%;
}
.ms-container .ms-selection{
float: right;
}

.ms-container .ms-list{
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
-ms-transition: border linear 0.2s, box-shadow linear 0.2s;
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
transition: border linear 0.2s, box-shadow linear 0.2s;
border: 1px solid #ccc;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
position: relative;
height: 200px;
padding: 0;
overflow-y: auto;
}

.ms-container .ms-list.ms-focus{
border-color: rgba(82, 168, 236, 0.8);
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
outline: 0;
outline: thin dotted \9;
}

.ms-container ul{
margin: 0;
list-style-type: none;
padding: 0;
}

.ms-container .ms-optgroup-container{
width: 100%;
}

.ms-container .ms-optgroup-label{
margin: 0;
padding: 5px 0px 0px 5px;
cursor: pointer;
color: #999;
}

.ms-container .ms-selectable li.ms-elem-selectable,
.ms-container .ms-selection li.ms-elem-selection{
border-bottom: 1px #eee solid;
padding: 2px 10px;
color: #555;
font-size: 14px;
}

.ms-container .ms-selectable li.ms-hover,
.ms-container .ms-selection li.ms-hover{
cursor: pointer;
color: #fff;
text-decoration: none;
background-color: #08c;
}

.ms-container .ms-selectable li.disabled,
.ms-container .ms-selection li.disabled{
background-color: #eee;
color: #aaa;
cursor: text;
.ms-container{
background: transparent url('../img/switch.png') no-repeat 50% 50%;
}

.ms-container:after{
content: ".";
display: block;
height: 0;
line-height: 0;
font-size: 0;
clear: both;
min-height: 0;
visibility: hidden;
}

.ms-container .ms-selectable, .ms-container .ms-selection{
background: #fff;
color: #555555;
float: left;
width: 45%;
}
.ms-container .ms-selection{
float: right;
}

.ms-container .ms-list{
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
-ms-transition: border linear 0.2s, box-shadow linear 0.2s;
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
transition: border linear 0.2s, box-shadow linear 0.2s;
border: 1px solid #ccc;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
position: relative;
height: 200px;
padding: 0;
overflow-y: auto;
}

.ms-container .ms-list.ms-focus{
border-color: rgba(82, 168, 236, 0.8);
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
outline: 0;
outline: thin dotted \9;
}

.ms-container ul{
margin: 0;
list-style-type: none;
padding: 0;
}

.ms-container .ms-optgroup-container{
width: 100%;
}

.ms-container .ms-optgroup-label{
margin: 0;
padding: 5px 0px 0px 5px;
cursor: pointer;
color: #999;
}

.ms-container .ms-selectable li.ms-elem-selectable,
.ms-container .ms-selection li.ms-elem-selection{
border-bottom: 1px #eee solid;
padding: 2px 10px;
color: #555;
font-size: 14px;
}

.ms-container .ms-selectable li.ms-hover,
.ms-container .ms-selection li.ms-hover{
cursor: pointer;
color: #fff;
text-decoration: none;
background-color: #08c;
}

.ms-container .ms-selectable li.disabled,
.ms-container .ms-selection li.disabled{
background-color: #eee;
color: #aaa;
cursor: text;
}
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
<?php get_header(); ?>

<?php get_sidebar(); ?>

<div id="centrecontent" class="column">

<!-- breadcrumbs -->
<div id="path"><?php if(function_exists('bcn_display')) { bcn_display(); } ?></div>
<!-- fine breadcrumbs -->

<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>
<h2 class="page-title"><?php echo esc_attr( $term->name ); ?></h2>

<?php
if (is_tax( 'tipologie' )) {
if (function_exists('at_archive_buttons')) {
at_archive_buttons();
}
}
?>

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>

<div class="post type-post hentry">
<h3 class="entry-title">
<a href="<?php echo get_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</h3>

<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
</div>

<?php endwhile; ?>
<?php endif; ?>

<div class="nav">
<div class="alignleft"><?php next_posts_link('&laquo; Comunicazioni precedenti') ?></div>
<div class="alignright"><?php previous_posts_link('Comunicazioni successive &raquo;') ?></div>
</div>

<div style="clear:both"></div>

</div>
<?php include(TEMPLATEPATH . '/rightsidebar.php'); ?>
<?php get_header(); ?>

<?php get_sidebar(); ?>

<div id="centrecontent" class="column">

<!-- breadcrumbs -->
<div id="path"><?php if(function_exists('bcn_display')) { bcn_display(); } ?></div>
<!-- fine breadcrumbs -->

<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>
<h2 class="page-title"><?php echo esc_attr( $term->name ); ?></h2>

<?php
if (is_tax( 'tipologie' )) {
if (function_exists('at_archive_buttons')) {
at_archive_buttons();
}
}
?>

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>

<div class="post type-post hentry">
<h3 class="entry-title">
<a href="<?php echo get_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</h3>

<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
</div>

<?php endwhile; ?>
<?php endif; ?>

<div class="nav">
<div class="alignleft"><?php next_posts_link('&laquo; Comunicazioni precedenti') ?></div>
<div class="alignright"><?php previous_posts_link('Comunicazioni successive &raquo;') ?></div>
</div>

<div style="clear:both"></div>

</div>
<?php include(TEMPLATEPATH . '/rightsidebar.php'); ?>
<?php get_footer(); ?>
Loading

0 comments on commit 31e69c2

Please sign in to comment.