Collegamento fornitore di miniature cambiamento libary

è necessario utilizzare la versione: 5.8.6.7 e modificare il file php principale

<?php
/*
Nome Plugin: link Library
Plugin URI: http://wordpress.org/extend/plugins/link-library/
Descrizione: Visualizzare i collegamenti alle pagine con una varietà di opzioni
Versione: 5.8.6.7
Autore: Yannick Lefebvre
Autore URI: http://ylefebvre.ca/

Un plugin per il blogging WordPress MySQL / PHP-based.
Diritto d'autore 2014 Yannick Lefebvre

Traduzioni:
Francese per gentile concessione Traduzione di Luc Capronnier
Danese per gentile concessione Traduzione GeorgWP (http://wordpress.blogos.dk)
Italiano per gentile concessione Traduzione di Gianni Diurno

Questo programma è software libero; è possibile ridistribuirlo e / o
modificarlo secondo i termini della Licenza Pubblica Generica GNUs
come pubblicato addlinkcatlistoverrideby Free Software Foundation; entrambe le versioni 2
della Licenza, o (a propria scelta) ogni versione successiva.

Questo programma è distribuito nella speranza che possa essere utile,
ma SENZA ALCUNA GARANZIA; senza neppure la garanzia implicita di
COMMERCIABILITÀ o idoneità per un particolare SCOPO.  vedere la
GNU General Public License per ulteriori dettagli.

Dovreste aver ricevuto una copia della GNU General Public License
insieme a questo programma; altrimenti, scrivere alla Free Software
Fondazione, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, Stati Uniti d'America.

È inoltre possibile visualizzare una copia della versione HTML della Pubblica GNU General
Licenza all'indirizzo http://www.gnu.org/copyleft/gpl.html

io, Yannick Lefebvre, può essere contattato via e-mail all'indirizzo ylefebvre@gmail.com
*/

require_once(ABSPATH . '/Wp-admin/includes/bookmark.php');

$ My_link_library_plugin globale;
$ My_link_library_plugin_admin globale;

Se ( !get_option( 'Link_manager_enabled' ) )
    add_filter( 'Pre_option_link_manager_enabled', '__Return_true' );

Se ( is_admin() ) {
    $ My_link_library_plugin_admin globale;
    richiedono plugin_dir_path( __FILE__ ) . 'Link-library-admin.php';
    $my_link_library_plugin_admin = new link_library_plugin_admin();
}

/*********************************** Link Library Class *****************************************************************************/
classe link_library_plugin {

	//costruttore della classe, costruzione compatibile PHP4 per compatibilità all'indietro
funzione link_library_plugin() {

        // Le funzioni da richiamare quando plugin è attivato e disattivato
        register_activation_hook( __FILE__, Vettore($Questo, 'Ll_install' ) );
        register_deactivation_hook( __FILE__, Vettore($Questo, 'Ll_uninstall' ) );

		$newoptions = get_option('LinkLibraryPP1', "");

		Se ( $newoptions == "" ) {
            $ My_link_library_plugin_admin globale;

            Se ( vuoto( $my_link_library_plugin_admin ) ) {
                richiedono plugin_dir_path( __FILE__ ) . 'Link-library-admin.php';
                $my_link_library_plugin_admin = new link_library_plugin_admin();
            }

			$my_link_library_plugin_admin->ll_reset_options(1, 'elenco');
			$my_link_library_plugin_admin->ll_reset_gen_settings();
		}

		// wp_ajax_ ... è eseguito solo per usrs Logged
// add_action( 'Wp_ajax_scn_check_url_action', Vettore( &$Questo, 'Ajax_action_check_url' ) );

		// Aggiungere i codici
add_shortcode('Link-library-gatti, Vettore($Questo, 'Link_library_cats_func'));
		add_shortcode('Link-library-ricerca', Vettore($Questo, 'Link_library_search_func'));
		add_shortcode('Link-library-AddLink', Vettore($Questo, 'Link_library_addlink_func'));
		add_shortcode('Link-library-addlinkcustommsg', Vettore($Questo, 'Link_library_addlink_func'));
		add_shortcode('Link-library', Vettore($Questo, 'Link_library_func'));

		// Funzione per stampare le informazioni nell'intestazione di pagina quando il plugin presente
add_action('Wp_head', Vettore($Questo, 'Ll_rss_link'));

		// Funzione per determinare se Link Library viene utilizzato su una pagina prima di stampare le intestazioni
add_filter('' the_posts, Vettore($Questo, '' conditionally_add_scripts_and_styles));
        // the_posts viene attivato prima wp_head

add_filter('Wp_title', Vettore($Questo, 'Ll_title_creator'));

		// governa riscrittura filtri per consentire il permalink personalizzati
add_filter('Rewrite_rules_array', Vettore($Questo, '' ll_insertMyRewriteRules));
		add_filter('Query_vars', Vettore($Questo, '' ll_insertMyRewriteQueryVars));

        add_action( 'Template_redirect', Vettore( $Questo, 'Ll_template_redirect' ) );
        add_action( 'Wp_ajax_link_library_tracker', Vettore( $Questo, 'Link_library_ajax_tracker' ) );
        add_action( 'Wp_ajax_nopriv_link_library_tracker', Vettore( $Questo, 'Link_library_ajax_tracker' ) );
        add_action( 'Wp_ajax_link_library_ajax_update', Vettore( $Questo, 'Link_library_ajax_update') );
        add_action( 'Wp_ajax_nopriv_link_library_ajax_update', Vettore( $Questo, 'Link_library_ajax_update') );
        add_action( 'Wp_ajax_link_library_generate_image', Vettore( $Questo, 'Link_library_generate_image') );
        add_action( 'Wp_ajax_nopriv_link_library_generate_image', Vettore( $Questo, 'Link_library_generate_image') );

		// dominio del testo di carico per la traduzione di pagine di amministrazione e stringhe di testo
load_plugin_textdomain( 'Link-library', falso, dirname( plugin_basename( __FILE__ ) ) . '/le lingue' );

        $ Wpdb globale;

        $wpdb->linkcategorymeta = $ wpdb->get_blog_prefix() . "linkcategorymeta";
	}

    /************************** Link Library funzione Installazione **************************/
    funzione ll_install() {
        $ Wpdb globale;

        Se (function_exists('Is_multisite') && is_multisite()) {
            Se (è impostato($_OTTENERE['All'intera rete']) && ($_OTTENERE['All'intera rete'] == 1))
            {
                $originalblog = $ wpdb->Blog;

                $bloglist = $ wpdb->get_col($wpdb->preparare("SELEZIONA blog_id FROM $ wpdb->blog"));
                per ciascuno ($bloglist da $ blog) {
                    switch_to_blog($blog);
                    $Questo->create_table_and_settings();
                }
                switch_to_blog($originalblog);
                ritorno;
            }
        }
        $Questo->create_table_and_settings();
    }

    funzione new_network_site($blog_id, $ID utente, $dominio, $sentiero, $site_id, $meta )
    {
        $ Wpdb globale;

        Se ( ! function_exists('Is_plugin_active_for_network') )
            require_once( ABSPATH . '/Wp-admin/includes/plugin.php' );

        Se (is_plugin_active_for_network('Link-library / link-library.php')) {
            $originalblog = $ wpdb->Blog;
            switch_to_blog($blog_id);
            $Questo->create_table_and_settings();
            switch_to_blog($originalblog);
        }
    }

    create_table_and_settings funzione()
    {
        $ Wpdb globale;

        $wpdb->links_extrainfo = $ this->DB_Prefix().'Links_extrainfo';

        $creationquery = "CREA TABELLA " . $wpdb->links_extrainfo . " (
				link_id bigint(20) NOT NULL DI DEFAULT '0',
				link_second_url varchar(255) CHARACTER SET utf8 DI DEFAULT NULL,
				link_telephone varchar(128) CHARACTER SET utf8 DI DEFAULT NULL,
				varchar link_email(128) CHARACTER SET utf8 DI DEFAULT NULL,
				link_visits bigint(20) DEFAULT '0',
				varchar link_reciprocal(255) DI DEFAULT NULL,
				link_submitter varchar(255) DI DEFAULT NULL,
				link_submitter_name VARCHAR( 128 ) NULLO,
				link_submitter_email VARCHAR( 128 ) NULLO,
				link_textfield NULL TESTO,
				link_no_follow VARCHAR(1) NULLO,
				link_featured VARCHAR(1) NULLO,
				link_manual_updated VARCHAR(1) NULLO,
				UNIQUE KEY link_id (link_id)
				);";

        require_once(ABSPATH . 'Wp-admin / include / upgrade.php');
        dbDelta( $creationquery );

        $wpdb->linkcategorymeta = $ this->DB_Prefix().'Linkcategorymeta';

        $meta_creation_query =
            'CREA TABELLA ' . $wpdb->linkcategorymeta . ' (
        meta_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
        linkcategory_id bigint(20) unsigned NOT NULL DI DEFAULT "0",
        varchar meta_key(255) DI DEFAULT NULL,
        longtext meta_value,
        UNIQUE KEY (meta_id)
        );';

        dbDelta ( $meta_creation_query );

        $genoptions = get_option('Link Library Generale');

        Se ($re-zioni != '')
        {
            Se ($re-zioni['SchemaVersion'] == '' || floatval($re-zioni['SchemaVersion']) < 3.5)
            {
                $re-zioni['SchemaVersion'] = "3.5";
                update_option('Link Library Generale', $re-zioni);
            }
            elseif (floatval($re-zioni['SchemaVersion']) < "4.6")
            {
                $re-zioni['SchemaVersion'] = "4.6";
                $wpdb->get_results("ALTER TABLE `" . $Questo->DB_Prefix() . "links_extrainfo` ADD `link_submitter_name` VARCHAR( 128 ) NULLO, ADD `link_submitter_email` VARCHAR( 128 ) NULLO , ADD `NULL link_textfield` TESTO ;");

                update_option('Link Library Generale', $re-zioni);
            }
            elseif (floatval($re-zioni['SchemaVersion']) < "4.7")
            {
                $re-zioni['SchemaVersion'] = "4.7";
                $wpdb->get_results("ALTER TABLE `" . $Questo->DB_Prefix() . "links_extrainfo` ADD `link_no_follow` VARCHAR( 1 ) NULLO;");

                update_option('Link Library Generale', $re-zioni);
            }
            elseif (floatval($re-zioni['SchemaVersion']) < "4.9")
            {
                $re-zioni['SchemaVersion'] = "4.9";
                $wpdb->get_results("ALTER TABLE `" . $Questo->DB_Prefix() . "links_extrainfo` ADD `link_featured` VARCHAR( 1 ) NULLO;");

                update_option('Link Library Generale', $re-zioni);
            }

            per ($i = 1; $io <= $ Re-zioni['' numberstylesets]; $i ++) {
                $settingsname = 'LinkLibraryPP' . $io;
                $Opzioni = get_option($settingsname);

                Se ($opzioni != '')
                {
                    Se ($opzioni['ShowName'] == '')
                        $opzioni['ShowName'] = true;

                    Se ( è impostato($opzioni['Show_image_and_name'] ) && $opzioni['Show_image_and_name'] == true)
                    {
                        $opzioni['ShowName'] = true;
                        $opzioni['' show_images] = true;
                    }

                    Se ($opzioni['SourceName'] == '')
                        $opzioni['SourceName'] = 'Primaria';

                    Se ($opzioni['Sourceimage'] == '')
                        $opzioni['Sourceimage'] = 'Primaria';

                    Se ($opzioni['ordini DragDrop'] == '')
                    {
                        Se ($opzioni['' imagepos] == 'beforename')
                            $opzioni['ordini DragDrop'] = '1,2,3,4,5,6,7,8,9,10,11,12';
                        elseif ($opzioni['' imagepos] == 'aftername')
                            $opzioni['ordini DragDrop'] = '2,1,3,4,5,6,7,8,9,10,11,12';
                        elseif ($opzioni['' imagepos] == 'afterrssicons')
                            $opzioni['ordini DragDrop'] = '2,3,4,5,6,1,7,8,9,10,11,12';
                    }
                    else if ($opzioni['ordini DragDrop'] != '')
                    {
                        $elementarray = esplodere(',', $opzioni['ordini DragDrop']);

                        $allelements = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12');
                        per ciascuno ($allelements come elemento $)
                        {
                            Se (!in_array($elemento, $ElementArray))
                            {
                                $ElementArray[] = $ Elemento;
                                $opzioni['ordini DragDrop'] = implode(",", $ElementArray);
                            }
                        }
                    }

                    Se ($opzioni['Flatlist'] === vero) $opzioni['Flatlist'] = 'Ordinata';
                    elseif ($opzioni['Flatlist'] === falso) $opzioni['Flatlist'] = 'Table';
                }

                update_option($settingsname, $opzioni);
            }
        }
    }

    funzione remove_querystring_var($url, $chiave) {

        $keypos = strpos($url, $chiave);
        Se ($keypos)
        {
            $ampersandpos = strpos($url, '&', $keypos);
            $newurl = substr($url, 0, $keypos - 1);

            Se ($ampersandpos)
                $newURL. = substr($url, $ampersandpos);
        }
        altro
            $ NewURL = $ url;

        return $ newURL;
    }

    /************************** Funzione Link Library Uninstall **************************/
    funzione ll_uninstall() {
        $genoptions = get_option('Link Library Generale');

        Se ($re-zioni != '')
        {
            Se ( è impostato( $re-zioni['foglio di stile'] ) && è impostato( $re-zioni['Fullstylesheet'] ) && $re-zioni['foglio di stile'] != '' && $re-zioni['Fullstylesheet'] == '')
            {
                $stylesheetlocation = plugins_url( $re-zioni['foglio di stile'], __FILE__ );
                Se ( il file esiste( $stylesheetlocation ) )
                    $re-zioni['Fullstylesheet'] = file_get_contents( $stylesheetlocation );

                update_option('Link Library Generale', $re-zioni);
            }
        }
    }

    funzione DB_Prefix() {
		$ Wpdb globale;
		Se (method_exists($wpdb, "get_blog_prefix"))
			return $ wpdb->get_blog_prefix();
		altro
return $ wpdb->prefisso;
	}

    	/******************************************** Stampa dati di stile a un colpo di testa *********************************************/

	funzione ll_rss_link() {
		$ Llstylesheet globale, $rss_settings;

		Se ($rss_settings != "")
		{
			$settingsname = 'LinkLibraryPP' . $rss_settings;
			$Opzioni = get_option($settingsname);

			$feedtitle = ($opzioni['Rssfeedtitle'] == "" ? __('Link Library generato feed', 'Link-library') : $opzioni['Rssfeedtitle']);

			$XPath = $ this->percorso relativo( dirname( __FILE__ ), ABSPATH );
			eco '<Link rel ="alternato" type ="application / rss + xml" title ="' . esc_html(stripslashes($feedtitle)) . '" href ="' . HOME_URL('/?link_library_rss_feed = 1&settingset =' . $rss_settings / * . '&XPath =' . $XPath * /) . '" />';
			non settato( $xpath );
		}

		Se ($llstylesheet == true)
		{
			$genoptions = get_option('Link Library Generale');

			eco "<style id = tipo 'LinkLibraryStyle' = 'text / css'>n";
			stripslashes eco($re-zioni['Fullstylesheet']);
			eco "</stile>n";
		}
	}

	/****************************************** Aggiungi collegamento nome della categoria per il titolo della pagina quando l'opzione è presente ********************************/
	funzione ll_title_creator($titolo) {
		$ WP_Query globale;
		$ Wpdb globale;
                $ Llstylesheet globale;

                Se ($llstylesheet)
                {
                    $genoptions = get_option('Link Library Generale');

                    $nomecategoria = ( è impostato( $wp_query->query_vars['CAT_NAME'] ) ? $wp_query->query_vars['CAT_NAME'] : '' );
                    $catid = ( è impostato( $_OTTENERE['Cat_id'] ) ? intval($_OTTENERE['Cat_id']) : '' );

                    $linkcatquery = "SELEZIONA t.name ";
                    $linkcatquery. = "A PARTIRE DAL " . $Questo->DB_Prefix() . "t termini LEFT JOIN " . $Questo->DB_Prefix(). "term_taxonomy TT (t.term_id = tt.term_id) ";
                    $linkcatquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
                    $linkcatquery. = "DOVE tt.taxonomy = 'link_category' E ";

                    Se ($Nome della categoria != '')
                    {
                            $linkcatquery. = "t.slug = '" . $Nome della categoria . "'";
                            $nicecatname = $ wpdb->get_var($linkcatquery);
                            return $ titolo . $re-zioni['Pagetitleprefix'] . $nicecatname . $re-zioni['Pagetitlesuffix'];
                    }
                    elseif ($catid != '')
                    {
                            $linkcatquery. = "t.term_id = '" . $catid . "'";
                            //echo $ linkcatquery;
                            $nicecatname = $ wpdb->get_var($linkcatquery);
                            return $ titolo . $re-zioni['Pagetitleprefix'] . $nicecatname . $re-zioni['Pagetitlesuffix'];
                    }
                }

		return $ titolo;
	}

    	/************************************* Funzione per aggiungere a riscrivere le regole per il sostegno permalink **********************************/
	ll_insertMyRewriteRules funzione($regole)
	{
		$newrules = array();

		$genoptions = get_option('Link Library Generale');

		Se ($re-zioni != '')
		{
			per ($i = 1; $io <= $ Re-zioni['' numberstylesets]; $i ++) {
				$settingsname = 'LinkLibraryPP' . $io;
				$Opzioni = get_option($settingsname);

				Se ($opzioni['Enablerewrite'] == true && $opzioni['Rewritepage'] != '')
					$nuove regole['(' . $opzioni['Rewritepage'] . ')/(.+?)$'] = 'Index.php?pagename = $ partite[1]&CAT_NAME = $ partite[2]';

				Se ($opzioni['Publishrssfeed'] == true)
				{
					$XPath = $ this->percorso relativo( dirname( __FILE__ ), ABSPATH );

					Se ($opzioni['Rssfeedaddress'] != '')
						$nuove regole['(' . $opzioni['Rssfeedaddress'] . ')/(.+?)$'] = HOME_URL() . '?link_library_rss_feed = 1&settingset = $ partite[1]';
					elseif ($opzioni['Rssfeedaddress'] == '')
						$nuove regole['(linkrss)/(.+?)$'] = plugins_url( 'Link_library_rss_feed = 1?settingset = $ partite[1]' . '&XPath =' . $xpath, __FILE__ );

					non settato( $xpath );
				}
			}
		}

		return $ newrules + $regole;
	}

	// Aggiungendo l'id var modo che WP riconosce
ll_insertMyRewriteQueryVars funzione($la cui)
	{
		array_push($la cui, 'CAT_NAME');
		return $ la cui;
	}

    funzione addhttp( $url ) {
        Se (!preg_match("~ ^(?:f|HT)tps?://~ i", $url)) {
            $url = "http://" . $url;
        }
        return $ url;
    }

	/*********************************************** Privato Link Library categorie di funzioni *************************************/

	PrivateLinkLibraryCategories funzione($order = 'nome', $hide_if_empty = true, $table_width = 100, $num_colonne = 1, $catanchor = true,
				   $flatlist = 'table', $CategoryList = '', $excludecategorylist = '', $showcategorydescheaders = false,
				   $showonecatonly = false, $settings = '', $loadingicon = '/icons/Ajax-loader.gif', $catlistdescpos = 'right',
				   $DebugMode = false, $paginazione = false, $linksperpage = 5, $showcatlinkcount = false, $showonecatmode = 'AJAX',
				   $cattargetaddress = '', $rewritepage = '', $showinvisible = false, $showuserlinks = false, $showcatonsearchresults = false) {

		$ Wpdb globale;

		$output = '';

                $IDCategoria = '';

		Se (è impostato($_OTTENERE['Cat_id']))
			$categoryid = intval($_OTTENERE['Cat_id']);

		Se (!è impostato($_OTTENERE['Searchll']) || $showcatonsearchresults == true)
		{
			$countcat = 0;

			$ordine = strtolower($ordine);

			$uscita. = "<!-- Link Library Categorie di uscita ->nn";

			Se ($showonecatonly == true && ($showonecatmode == 'AJAX' || $showonecatmode == ''))
			{
                $nonce = wp_create_nonce( 'Link_library_ajax_refresh' );

				$uscita. = "<SCRIPT LANGUAGE ="JavaScript">n";
				$uscita. = "l'oggetto Ajax;n";
				$uscita. = "funzione showLinkCat ( _incomingID, _settingsID, _numero di pagina) {n";
				$uscita. = "Se (tipo di(ajaxobject) != "non definito") { ajaxobject.abort(); }n";

				$uscita. = "tjQuery('#ContentLoading').ginocchiera();" .
                           "jQuery.ajax( {" .
                           "    genere: 'INVIARE', " .
                           "    url: '" . ADMIN_URL( 'Admin-ajax.php' ) . "', " .
                           "    dati: { azione: 'Link_library_ajax_update', " .
                           "            _ajax_nonce: '" . $nonce . "', " .
                           "            id : _incomingID, " .
                           "            impostazioni : _settingsID, " .
                           "            linkresultpage: _numero di pagina }, " .
                           "    successo: funzione( dati ){ " .
                           "            jQuery('#linklist" . $impostazioni. "').html( dati ); " .
                           "            jQuery('#ContentLoading').ginocchiera();n" .
                           "            } } ); ";
				$uscita. = "}n";

				$uscita. = "</SCRIPT>nn";
			}

			// Maniglia categoria Link ordinamento
$ direzione = 'ASC';
			Se (substr($ordine,0,1) == '_') {
				$direzione = 'desc';
				$ordine = substr($ordine,1);
			}

			Se (!è impostato($direzione)) $direzione = '';
			// Recuperare i dati categoria collegamento come una serie di hashesa

$ Linkcatquery = "SELEZIONARE ";
            Se ( $showcatlinkcount || $paginatura ) {
                $linkcatquery. = "contare(l.link_name) come LinkCount, ";
            }
			$linkcatquery. = "t.name, t.term_id, t.slug come category_nicename, tt.description come category_description ";
			$linkcatquery. = "A PARTIRE DAL " . $Questo->DB_Prefix() . "t termini LEFT JOIN " . $Questo->DB_Prefix(). "term_taxonomy TT (t.term_id = tt.term_id)";
			$linkcatquery. = " LEFT JOIN " . $Questo->DB_Prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";

			$linkcatquery. = " LEFT JOIN " . $Questo->DB_Prefix() . "Links L su (tr.object_id = l.link_id";

			Se ($showinvisible == false)
				$linkcatquery. = " E l.link_visible != 'N'";

			Se (!$showuserlinks)
				$linkcatquery. = " E l.link_description non come '% LinkLibrary:In attesa di moderazione:RemoveTextToApprove%' ";

			$linkcatquery. = " ) ";

			$linkcatquery. = "DOVE tt.taxonomy = 'link_category'";

			Se ($CategoryList != "")
				$linkcatquery. = " E t.term_id in (" . $CategoryList. ")";

			Se ($excludecategorylist != "")
				$linkcatquery. = " E non t.term_id in (" . $excludecategorylist . ")";

			Se ($hide_if_empty == true)
				$linkcatquery. = " E l.link_name != '' ";

			$linkcatquery. = " GROUP BY t.name ";

			Se ($ordine == "nome")
				$linkcatquery. = " ORDER BY t.name " . $direzione;
			elseif ($ordine == "id")
				$linkcatquery. = " ORDER BY t.term_id " . $direzione;
			elseif ($ordine == "ordine")
				$linkcatquery. = " ORDER BY t.term_order " . $direzione;
			elseif ($ordine == "catlist")
				$linkcatquery. = " ORDER BY FIELD(t.term_id," . $CategoryList . ") ";

			$catnames = $ wpdb->get_results($linkcatquery);

			Se ($modalità di debug)
			{
				$uscita. = "n<!-- categoria Query: " . print_r($linkcatquery, VERO) . "-->nn";
				$uscita. = "n<!-- Categoria Risultati: " . print_r($catnames, VERO) . "-->nn";
			}

			// Visualizzare ogni categoria

Se ($catnames) {

				$uscita. =  "<div id ="tabella di collegamento" class ="tabella di collegamento">";

				Se ($flatlist == 'table')
					$uscita. = "<table width ="" . $table_width . "%">n";
				elseif ($flatlist == 'ordinata')
					$uscita. = "<ul class = 'menù'>n";
				elseif ($flatlist == 'discesa')
					$uscita. = "<form name = 'catselect'><selezionare il nome = 'catdropdown' class = 'catdropdown'>";

				$LinkCount = 0;

				per ciascuno ( (Vettore) $catnames come $ catname) {
					// Gestire ogni categoria.
					// Primo, fissare l'informazioni sort_order
// $ orderby = $ cat['ordinamento'];
					//$orderby = (bool_from_yn($gatto['SORT_DESC'])?'_':'') . $ordinato da;

					$catfront = '';
					$cattext = '';
					$catitem = '';

					// Visualizzare il nome della categoria
$ Countcat + = 1;
					Se ($flatlist == 'table' e (($countcat % $num_colonne == 1) o ($num_colonne == 1) )) $uscita. = "<TR>n";

					Se ($flatlist == 'table')
						$catfront = '	<TD>';
					elseif ($flatlist == 'ordinata')
						$catfront = '	<in>';
					elseif ($flatlist == 'discesa')
					{
						$catfront = '	<opzione ';
						Se ($IDCategoria != '' && $IDCategoria == $ catname->term_id)
							$catfront. = 'selezionato ="selezionato" ';
						$catfront. = 'valore ="';
					}

					Se ($showonecatonly)
					{
						Se ($showonecatmode == 'AJAX' || $showonecatmode == '')
						{
							Se ($flatlist != 'Discesa')
								$cattext = "<a href = '#' onclick ="showLinkCat('" . $catname->term_id. "', '" . $impostazioni . "', 1);return false;" >";
							elseif ($flatlist == 'discesa')
								$cattext = $ catname->term_id;
						}
						elseif ($showonecatmode == 'HTMLGET')
						{
							Se ($flatlist != 'Discesa')
								$cattext = "<a href ='";

							Se ($cattargetaddress != '' && strpos($cattargetaddress, "?") != false)
							{
								$cattext. = $ cattargetaddress;
								$cattext. = "&cat_id =";
							}
							elseif ($cattargetaddress != '' && strpos($cattargetaddress, "?") == false)
							{
								$cattext. = $ cattargetaddress;
								$cattext. = "?cat_id =";
							}
							elseif ($cattargetaddress == '')
								$cattext. = "?cat_id =";

							$cattext. = $ catname->term_id;

							Se ($flatlist != 'Discesa')
								$cattext. = "'>";
						}
						elseif ($showonecatmode == 'HTMLGETPERM')
						{
							Se ($flatlist != 'Discesa')
								$cattext = "<a href ='";

							$cattext. = "/" . $rewritepage . "/" . $catname->category_nicename;

							Se ($flatlist != 'Discesa')
								$cattext. = "'>";
						}
					}
					else if ($catanchor)
					{
						Se (!$paginatura)
						{
							Se ($flatlist != 'Discesa')
								$cattext = '<a href ="';

							$cattext. = '#' . $catname->category_nicename;

							Se ($flatlist != 'Discesa')
								$cattext. = '">';
						}
						elseif ($paginatura)
						{
							Se ($linksperpage == 0 && $linksperpage == '')
								$linksperpage = 5;

							$pageposition = ( $LinkCount + 1 ) / $linksperpage;
							$ceilpageposition abbandonare =($pageposition);
							Se ( $ceilpageposition == 0 && !è impostato( $_OTTENERE['Linkresultpage'] ) ) {
								Se ($flatlist != 'Discesa')
									$cattext = '<a href ="';

								$cattext. = get_permalink() . '#' . $catname->category_nicename;

								Se ( $flatlist != 'Discesa' )
									$cattext. = '">';
							} altro {
								Se ( $flatlist != 'Discesa' )
									$cattext = '<a href ="';

								$cattext. = '?linkresultpage = ' . ($ceilpageposition == 0 ? 1 : $ceilpageposition) . '#' . $catname->category_nicename;

								Se ( $flatlist != 'Discesa' )
									$cattext. = '">';
							}

							$LinkCount = $ LinkCount + $catname->LinkCount;
						}
					}
					altro
$ Cattext = '';

					Se ( $flatlist == 'discesa' )
						$cattext. = '">';

					Se ( $catlistdescpos == 'giusto' || $catlistdescpos == ' ) {
						$catitem. = '<div class ="linkcatname">' . $catname->nome . '</div>';
						Se ($showcatlinkcount)
							$catitem. = " (" . $catname->LinkCount . ")";
					}

					Se ( $showcategorydescheaders ) {
						$catname->category_description = esc_html($catname->category_description);
						$catname->category_description = str_replace("[", "<", $catname->category_description);
						$catname->category_description = str_replace("]", ">", $catname->category_description);
						$catname->category_description = str_replace("&quot;", """, $catname->category_description);
						$catitem. = "<campata = classe 'linkcatdesc'>" . $catname->category_description . "</campata>";
					}

					Se ($catlistdescpos == 'sinistra')
					{
						$catitem. = '<div class ="linkcatname">' . $catname->nome . '</div>';
						Se ($showcatlinkcount)
							$catitem. = " (" . $catname->LinkCount . ")";
					}

					Se (($catanchor || $showonecatonly) && $flatlist != 'Discesa')
						$catitem. = "</un>";

					$uscita. = ($catfront . $cattext . $catitem );

					Se ($flatlist == 'table')
						$catterminator = "	</TD>n";
					elseif ($flatlist == 'ordinata')
						$catterminator = "	</in>n";
					elseif ($flatlist == 'discesa')
						$catterminator = "	</opzione>n";

					$uscita. = ($catterminator);

					Se ($flatlist == "tavolo" e ($countcat % $num_colonne == 0)) $uscita. = "</TR>n";
				}

				Se ($flatlist == "tavolo" e ($countcat % $num_colonne == 3)) $uscita. = "</TR>n";
				Se ($flatlist == "tavolo" && $catnames)
					$uscita. = "</tavolo>n";
				elseif ($flatlist == 'ordinata' && $catnames)
					$uscita. = "</il>n";
				elseif ($flatlist == 'discesa' && $catnames)
				{
					$uscita. = "</Selezionare>n";
					$uscita. = "<'tasto' di tipo pulsante = onclick = 'showcategory()'>" . __('Partire!', 'Link-library') . "</pulsante>";
					$uscita. = "</modulo>";
				}

				$uscita. = "</div>n";

				Se ($showonecatonly && ($showonecatmode == 'AJAX' || $showonecatmode == ''))
				{
					Se ($loadingicon == '') $loadingicon = '/icons/Ajax-loader.gif';
					$uscita. = "<div class = 'contentLoading' id = stile 'contentLoading' = 'Display: nessuna;'><img src ='" . plugins_url( $loadingicon, __FILE__ ) . "'alt =' Caricamento dati, attendere prego...'></div>n";
				}

				Se ($flatlist == 'discesa')
				{
					$uscita. = "<Script type = 'text / javascript'>n";
					$uscita. = "TFUNCTION showcategory(){n";

					Se ($showonecatonly && ($showonecatmode == 'AJAX' || $showonecatmode == '') )
					{
						$uscita. = "catidvar = document.catselect.catdropdown.options[document.catselect.catdropdown.selectedIndex].valore;";
						$uscita. = "showLinkCat(catidvar, '" . $impostazioni . "', 1);return false; }";
					}
					altro
					{
						$uscita. = "ttlocation = n";
						$uscita. = "document.catselect.catdropdown.options[document.catselect.catdropdown.selectedIndex].valore }n";

					}
					$uscita. = "</SCRIPT>n";
				}
			}
			altro
			{
				$uscita. = "<div>" . __('Non ci sono categorie trovate', 'Link-library') . ".</div>";
			}

			$uscita. = "n<!-- Fine del Link Library Categorie di uscita ->nn";
		}
		return $ uscita;
	}

	funzione ll_highlight_phrase($str, $frase, $tag_open = '<forte>', $TAG_CLOSE = '</forte>')
	{
		Se ($str == '')
		{
			ritorno '';
		}

		Se ($frase != '')
		{
			ritorno preg_replace('/(' .preg_quote($frase, '/').'(?![^<]*>))/io', $tag_open."\1".$TAG_CLOSE, $str);
		}

		return $ str;
	}

    funzione link_library_display_pagination( $previouspagenumber, $nextpagenumber, $numero di pagine, $numero di pagina, $showonecatonly, $showonecatmode, $AJAXcatid, $impostazioni, $ID pagina ) {

        $dotbelow = false;
        $dotabove = false;

        $incomingget = $ _GET;
        non settato ( $incomingget['Page_id'] );
        non settato ( $incomingget['Linkresultpage'] );
        non settato ( $incomingget['Cat_id'] );

        Se ($numero di pagine > 1)
        {
            $= Uscita paginazione "<div class = 'pageselector'>";

            Se ($numero di pagina != 1)
            {
                $uscita paginazione. = "<span class = 'previousnextactive'>";

                Se (!$showonecatonly) {
                    $argumentarray = array ( 'Page_id' => get_the_ID(), 'Linkresultpage' => $previouspagenumber );
                    $argumentarray = array_merge( $argumentarray, $incomingget );
                    $targetAddress = add_query_arg( $argumentarray );

                    $uscita paginazione. = "<a href ='" . $targetAddress . "'>" . __('Precedente', 'Link-library') . "</un>";
                } elseif ($showonecatonly) {
                    Se ($showonecatmode == 'AJAX' || $showonecatmode == '')
                        $uscita paginazione. = "<a href = '#' onclick ="showLinkCat('" . $AJAXcatid . "', '" . $impostazioni . "', " . $previouspagenumber . ");return false;" >" . __('Precedente', 'Link-library') . "</un>";
                    elseif ($showonecatmode == 'HTMLGET') {
                        $argumentarray = array ( 'Page_id' => $ID pagina, 'Linkresultpage' => $previouspagenumber, = 'Cat_id'> $AJAXcatid );
                        $argumentarray = array_merge( $argumentarray, $incomingget );
                        $targetAddress = add_query_arg( $argumentarray );

                        $uscita paginazione. = "<a href ='" . $targetAddress . "' >" . __('Precedente', 'Link-library') . "</un>";
                    }

                }

                $uscita paginazione. = "</campata>";
            }
            altro
                $ Paginationoutput. = "<span class = 'previousnextinactive'>" . __('Precedente', 'Link-library') . "</campata>";

            per ($contatore = 1; $contatore <= $ TotalePagine; $contatore ++)
            {
                Se ($contatore <= 2 || $contatore >= $ TotalePagine - 1 || ($contatore <= $ Pagenumber + 2 && $contatore >= $ Pagenumber - 2))
                {
                    Se ($contatore != $ Pagenumber)
                        $uscita paginazione. = "<span class = 'unselectedpage'>";
                    altro
                        $ Paginationoutput. = "<campata = classe 'selectedpage'>";

                    Se (!$showonecatonly) {
                        $argumentarray = array ( 'Page_id' => $ID pagina, 'Linkresultpage' => $contatore );
                        $argumentarray = array_merge( $argumentarray, $incomingget );
                        $targetAddress = add_query_arg( $argumentarray );

                        $uscita paginazione. = "<a href ='" . $targetAddress . "'>" . $contatore . "</un>";
                    } elseif ($showonecatonly) {
                        Se ($showonecatmode == 'AJAX' || $showonecatmode == '')
                            $uscita paginazione. = "<a href = '#' onclick ="showLinkCat('" . $AJAXcatid . "', '" . $impostazioni . "', " . $contatore . ");return false;" >" . $contatore . "</un>";
                        elseif ($showonecatmode == 'HTMLGET') {
                            $argumentarray = array ( 'Page_id' => $ID pagina, 'Linkresultpage' => $contatore, = 'Cat_id'> $AJAXcatid );
                            $argumentarray = array_merge( $argumentarray, $incomingget );
                            $targetAddress = add_query_arg( $argumentarray );

                            $uscita paginazione. = "<a href ='" . $targetAddress . "' >" . $contatore . "</un>";
                        }

                    }

                    $uscita paginazione. = "</un></campata>";
                }

                Se ($contatore >= 2 && $contatore < $numero di pagina - 2 && $dotbelow == false)
                {
                    $uscita paginazione. = "...";
                    $dotbelow = true;
                }

                Se ($contatore > $numero di pagina + 2 && $contatore < $numero di pagine - 1 && $dotabove == false)
                {
                    $uscita paginazione. = "...";
                    $dotabove = true;
                }
            }

            Se ($numero di pagina != $ TotalePagine)
            {
                $uscita paginazione. = "<span class = 'previousnextactive'>";

                Se (!$showonecatonly) {
                    $argumentarray = array ( 'Page_id' => $ID pagina, 'Linkresultpage' => $nextpagenumber );
                    $argumentarray = array_merge( $argumentarray, $incomingget );
                    $targetAddress = add_query_arg( $argumentarray );

                    $uscita paginazione. = "<a href ='" . $targetAddress . "'>" . __('Il prossimo', 'Link-library') . "</un>";
                }

                elseif ($showonecatonly)
                {
                    Se ($showonecatmode == 'AJAX' || $showonecatmode == '')
                        $uscita paginazione. = "<a href = '#' onclick ="showLinkCat('" . $AJAXcatid . "', '" . $impostazioni . "', " . $nextpagenumber . ");return false;" >" . __('Il prossimo', 'Link-library') . "</un>";
                    elseif ($showonecatmode == 'HTMLGET') {
                        $argumentarray = array ( 'Page_id' => $ID pagina, 'Linkresultpage' => $nextpagenumber );
                        $argumentarray = array_merge( $argumentarray, $incomingget );
                        $targetAddress = add_query_arg( $argumentarray );

                        $uscita paginazione. = "<a href ='" . $targetAddress . "' >" . __('Il prossimo', 'Link-library') . "</un>";
                    }

                }

                $uscita paginazione. = "</campata>";
            }
            altro
                $ Paginationoutput. = "<span class = 'previousnextinactive'>" . __('Il prossimo', 'Link-library') . "</campata>";

            $uscita paginazione. = "</div>";
        }

        return $ paginationoutput;
    }

	funzione PrivateLinkLibrary($order = 'nome', $hide_if_empty = true, $catanchor = true,
									$showdescription = false, $shownotes = false, $Mostra classificazione = false,
									$showupdated = false, $CategoryList = '', $show_images = false,
									$show_image_and_name = false, $use_html_tags = false,
									$show_rss = false, $beforenote = '<br />', $nofollow = false, $excludecategorylist = '',
									$afternote = '', $beforeitem = '<in>', $afteritem = '</in>', $beforedesc = '', $afterdesc = '',
									$displayastable = false, $beforelink = '', $afterlink = '', $showcolumnheaders = false,
									$linkheader = '', $descheader = '', $notesheader = '', $catlistwrappers = 1, $beforecatlist1 = '',
									$beforecatlist2 = '', $beforecatlist3 = '', $divorheader = false, $catnameoutput = 'linklistcatname',
									$show_rss_icon = false, $linkaddfrequency = 0, $addbeforelink = '', $addafterlink = '', $destinazione del link = '',
									$showcategorydesclinks = false, $showadmineditlinks = true, $showonecatonly = false, $AJAXcatid = '',
									$defaultsinglecat = '', $rsspreview = false, $rsspreviewcount = 3, $rssfeedinline = false,
									$rssfeedinlinecontent = false, $rssfeedinlinecount = 1, $beforerss = '', $afterrss = '',
									$rsscachedir = '', $direzione = 'ASC', $linkdirection = 'ASC', $linkorder = 'name',
									$paginazione = false, $linksperpage = 5, $hidecategorynames = false, $settings = '',
									$showinvisible = false, $showdate = false, $beforedate = '', $alla data = '', $catdescpos = 'right',
									$showuserlinks = false, $rsspreviewwidth = 900, $rsspreviewheight = 700, $beforeimage = '', $residua = '',
									$imagepos = 'beforename', $Imageclass = '', $AJAXpageid = 1, $DebugMode = false, $usethumbshotsforimages = false,
									$showonecatmode = 'AJAX', $ordine dragdrop = '1,2,3,4,5,6,7,8,9,10', $ShowName = true, $displayweblink = 'false',
									$sourceweblink = 'primario', $showtelephone = 'false', $sourcetelephone = 'primario', $showemail = 'false', $showlinkhits = false,
									$beforeweblink = '', $afterweblink = '', $weblinklabel = '', $beforetelephone = '', $aftertelephone = '', $telephonelabel = '',
									$beforeemail = '', $afteremail = '', $label email = '', $beforelinkhits = '', $afterlinkhits = '', $emailcommand = '',
									$sourceimage = '', $SourceName = '', $thumbshotscid = '', $maxlinks = '', $beforelinkrating = '', $afterlinkrating = '',
									$showlargedescription = false, $beforelargedescription = '', $afterlargedescription = '', $featuredfirst = false, $shownameifnoimage = false,
                                    $enablelinkpopup = false, $popupwidth = 300, $popupheight = 400, $nocatonstartup = false, $linktitlecontent = 'nomecollegamento', $paginationposition = 'dopo', $uselocalimagesoverthumbshots = false, $showlinksonclick = false ) {

		$ Wpdb globale;

		$= uscita "n<!-- Inizio di uscita Link Library ->nn";

        $currentcategory = 1;
        $nomecategoria = "";

        Se ( $showonecatonly && $showonecatmode == 'AJAX' && $AJAXcatid == '' ) {
            $AJAXnocatset = true;
        } altro {
            $AJAXnocatset = false;
        }

		Se ($showonecatonly && $showonecatmode == 'AJAX' && $AJAXcatid != '' && $_OTTENERE['Searchll'] == "")
		{
			$CategoryList = $ AJAXcatid;
		}
		elseif ($showonecatonly && $showonecatmode == 'HTMLGET' && è impostato($_OTTENERE['Cat_id']) && ( !è impostato( $_OTTENERE['Searchll'] ) || ( è impostato( $_OTTENERE['Searchll'] ) && $_OTTENERE['Searchll'] == "" ) ) )
		{
			$CategoryList = intval($_OTTENERE['Cat_id']);
			$AJAXcatid = $ CategoryList;
		}
		elseif ($showonecatonly && $showonecatmode == 'HTMLGETPERM' && $_OTTENERE['Searchll'] == "")
		{
			$ WP_Query globale;

			$categoryname = $ wp_query->query_vars['CAT_NAME'];
			$AJAXcatid = $ nomecategoria;
		}
		elseif ($showonecatonly && $AJAXcatid == '' && $defaultsinglecat != '' && ( !è impostato( $_OTTENERE['Searchll'] ) || ( è impostato( $_OTTENERE['Searchll'] ) && $_OTTENERE['Searchll'] == "" ) ) )
		{
			$CategoryList = $ defaultsinglecat;
			$AJAXcatid = $ CategoryList;
		}
		elseif ($showonecatonly && $AJAXcatid == '' && $defaultsinglecat == '' && $_OTTENERE['Searchll'] == "")
		{
			$catquery = "SELEZIONA t.name distinta, t.term_id ";
			$catquery. = "A PARTIRE DAL " . $Questo->DB_Prefix() . "termini t ";
			$catquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "term_taxonomy TT (t.term_id = tt.term_id) ";
			$catquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
			$catquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "link L ON (tr.object_id = l.link_id) ";
            $catquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "links_extrainfo ON (l.link_id = le.link_id) ";
			$catquery. = "DOVE tt.taxonomy = 'link_category' ";

			Se ($hide_if_empty)
				$catquery. = "E l.link_id non è nullo e non l.link_description come '% LinkLibrary:In attesa di moderazione:RemoveTextToApprove%' ";

			Se ($CategoryList != "")
				$catquery. = " E t.term_id in (" . $CategoryList. ")";

			Se ($excludecategorylist != "")
				$catquery. = " E non t.term_id in (" . $excludecategorylist . ")";

			Se ($showinvisible == false)
				$catquery. = " E l.link_visible != 'N'";

			$mode = "normale";

			$catquery. = " Ordinato da ";

			Se ($featuredfirst == true)
				$catquery. = "DESC le.link_featured, ";

			Se ($ordine == "nome")
				$catquery. = " nome " . $direzione;
			elseif ($ordine == "id")
				$catquery. = " t.term_id " . $direzione;
			elseif ($ordine == "ordine")
				$catquery. = " t.term_order " . $direzione;
			elseif ($ordine == "catlist")
				$catquery. = " CAMPO(t.term_id," . $CategoryList . ") ";

			Se ($ordine dei collegamenti == "nome")
				$catquery. = ", link_name " . $linkdirection;
			elseif ($ordine dei collegamenti == "id")
				$catquery. = ", link_id " . $linkdirection;
			elseif ($ordine dei collegamenti == "ordine")
				$catquery. = ", link_order ". $linkdirection;
			elseif ($ordine dei collegamenti == "Data")
				$catquery. = ", link_updated ". $linkdirection;

			$catitems = $ wpdb->get_results($catquery);

			Se ($modalità di debug)
			{
				$uscita. = "n<!-- AJAX Default Category Query: " . print_r($catquery, VERO) . "-->nn";
				$uscita. = "n<!-- AJAX predefinito Categoria Risultati: " . print_r($catitems, VERO) . "-->nn";
			}

			Se ($catitems)
			{
				$CategoryList = $ catitems[0]->term_id;
				$AJAXcatid = $ CategoryList;
			}
		}

		$linkquery = "SELEZIONA distinta *, l.link_id come proper_link_id, UNIX_TIMESTAMP(l.link_updated) come link_date, ";
		$linkquery. = "SE (DATE_ADD(l.link_updated, INTERVALLO 120 MINUTE) >= NOW(), 1,0) come recently_updated ";
		$linkquery. = "A PARTIRE DAL " . $Questo->DB_Prefix() . "termini t ";
		$linkquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "term_taxonomy TT (t.term_id = tt.term_id) ";
		$linkquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";
		$linkquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "link L ON (tr.object_id = l.link_id) ";
		$linkquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "links_extrainfo ON (l.link_id = le.link_id) ";
		$linkquery. = "DOVE tt.taxonomy = 'link_category' ";

		Se ($hide_if_empty)
			$linkquery. = "E l.link_id non è nullo e non l.link_description come '% LinkLibrary:In attesa di moderazione:RemoveTextToApprove%' ";

		Se ($CategoryList != "" || è impostato($_OTTENERE['Cat_id']))
			$linkquery. = " E t.term_id in (" . $CategoryList. ")";

		Se ( è impostato($Nome della categoria) && $Nome della categoria != "" && $showonecatmode == 'HTMLGETPERM')
			$linkquery. = " E t.slug = '" . $Nome della categoria. "'";

		Se ($excludecategorylist != "")
			$linkquery. = " E non t.term_id in (" . $excludecategorylist . ")";

		Se ($showinvisible == false)
			$linkquery. = " E l.link_visible != 'N'";

		Se (è impostato($_OTTENERE['Searchll']) && $_OTTENERE['Searchll'] != "")
		{
            $SearchTerms = array();
            $searchstring = $ _GET['Searchll'];

            $offset = 0;
            mentre ( strpos( $stringa di ricerca, '"', $compensare ) !== false ) {
                Se ( $Offset == 0 ) {
                    $offset = strpos( $stringa di ricerca, '"' );
                } altro {
                    $endpos = strpos( $stringa di ricerca, '"', $compensare + 1);
                    $SearchTerms[] = substr( $stringa di ricerca, $compensare + 1, $endpos - $compensare - 2 );
                    $strlength = ( $endpos + 1 ) - ( $compensare + 1 );
                    $searchstring = substr_replace( $stringa di ricerca, '', $compensare - 1, $endpos + 2 - ( $compensare)  );
                    $offset = 0;
                }
            }

            Se ( !vuoto( $stringa di ricerca ) )
            {
                $SearchTerms = array_merge( $SearchTerms, esplodere(" ", $stringa di ricerca ) );
            }

			Se ($SearchTerms)
			{
				$mode = "ricerca";
				$termnb = 1;

				per ciascuno($SearchTerms come $ searchterm)
				{
                    Se ( !vuoto( $termine di ricerca ) ) {
                        $searchterm = str_replace( '-', '', $termine di ricerca );
                        $searchterm = str_replace( ';', '', $termine di ricerca );
                        $searchterm = esc_html( stripslashes( $termine di ricerca ) );
                        Se ( $searchterm == true )
                        {
                            Se ($termnb == 1)
                            {
                                $linkquery. = 'E (link_name come "%' . $termine di ricerca . '%" ';
                                $termnb ++;
                            }
                            altro
                            {
                                $linkquery. = 'O link_name come "%' . $termine di ricerca . '%" ';
                            }

                            Se ($hidecategorynames == false)
                                $linkquery. = 'O nome come "%' . $termine di ricerca . '%" ';
                            Se ($Sownotes)
                                $linkquery. = 'O link_notes come "%' . $termine di ricerca . '%" ';
                            Se ($descrizione spettacolo)
                                $linkquery. = 'O link_description come "%' . $termine di ricerca . '%" ';
                            Se ($lo showlargedescriptio)
                                $linkquery. = 'O link_textfield come "%' . $termine di ricerca . '%" ';
                        }
                    }
				}

				$linkquery. = ")";
			}
		}
		altro
$ mode = "normale";

		$linkquery. = " Ordinato da ";

		Se ($featuredfirst == true)
			$linkquery. = "link_featured DESC, ";

		Se ($ordine == "nome")
			$linkquery. = " nome " . $direzione;
		elseif ($ordine == "id")
			$linkquery. = " t.term_id " . $direzione;
		elseif ($ordine == "ordine")
			$linkquery. = " t.term_order " . $direzione;
		elseif ($ordine == "catlist")
			$linkquery. = " CAMPO(t.term_id," . $CategoryList . ") ";

		Se ($ordine dei collegamenti == "nome" || $linkorder == 'casuale')
			$linkquery. = ", l.link_name " . $linkdirection;
		elseif ($ordine dei collegamenti == "id")
			$linkquery. = ", l.link_id " . $linkdirection;
		elseif ($ordine dei collegamenti == "ordine")
			$linkquery. = ", l.link_order ". $linkdirection;
		elseif ($ordine dei collegamenti == "Data")
			$linkquery. = ", l.link_updated ". $linkdirection;

		Se ($paginatura && $modalità != 'Ricerca')
		{
			$linkitemsforcount = $ wpdb->get_results($linkquery);

			$numberoflinks = count($linkitemsforcount);

			$quantità = $ linksperpage + 1;

            Se ( è impostato( $_INVIARE['Linkresultpage'] ) || è impostato( $_OTTENERE['Linkresultpage'] ) ) {

                Se ( è impostato( $_INVIARE['Linkresultpage'] ) ) {
                    $pagenumber = $ _POST['Linkresultpage'];
                } elseif ( è impostato( $_OTTENERE['Linkresultpage'] ) ) {
                    $pagenumber = $ _GET['Linkresultpage'];
                }

				$startingitem = ($numero di pagina - 1) * $linksperpage;
				$linkquery. = " LIMITE " . $startingitem . ", " . $quantità;
			} altro {
				$pagenumber = 1;
				$linkquery. = " LIMITE 0, " . $quantità;
			}
		}

		$linkitems = $ wpdb->get_results($linkquery, ARRAY_A);

		Se ($modalità di debug)
		{
			$uscita. = "n<!-- collegamento Query: " . print_r($linkquery, VERO) . "-->nn";
			$uscita. = "n<!-- Risultati link: " . print_r($linkitems, VERO) . "-->nn";
		}

		Se ($paginatura)
		{
			Se ($linksperpage == 0 && $linksperpage == '')
				$linksperpage = 5;

			Se (contare($linkitems) > $linksperpage)
			{
				array_pop($linkitems);
				$NextPage = true;
			}
			altro
$ NextPage = false;

			Se( è impostato( $numberoflinks ) ) {
				$preroundpages = $ numberoflinks / $linksperpage;
				$TotalePagine = ceil( $preroundpages * 1 ) / 1;
			}
		}

		Se ($linkorder == 'casuale')
		{
			rimescolare($linkitems);
		}

		Se ( $maxlinks != '' ) {
			Se ( is_numeric( $maxlinks ) ) {
				array_splice( $linkitems, $maxlinks );
			}
		}

        Se ($paginatura && $modalità != "ricerca" && $paginationposition == 'PRIMA' )
        {
            $previouspagenumber = $ numero di pagina - 1;
            $nextpagenumber = $ numero di pagina + 1;
            $ID pagina = get_the_ID();

            $uscita. = $ this->link_library_display_pagination( $previouspagenumber, $nextpagenumber, $numero di pagine, $numero di pagina, $showonecatonly, $showonecatmode, $AJAXcatid, $impostazioni, $ID pagina );
        }

        eco "<!-- showonecatmode: " . $showonecatonly . ", AJAXnocatset: " . $AJAXnocatset . ", nocatonstartup: " . $nocatonstartup . "-->";

		// link di visualizzazione
        Se ( ( $linkitems && $showonecatonly && $AJAXnocatset && $nocatonstartup && !è impostato( $_OTTENERE['Searchll'] ) ) || ( vuoto( $linkitems ) && $nocatonstartup && vuoto( $_OTTENERE['Searchll'] ) ) ) {
                $uscita. = "<div id = 'Elenco link" . $impostazioni . "'Class =' ​​Elenco link'>n";
                $uscita. = '</div>';
        } elseif ( $linkitems ) {
			$uscita. = "<div id = 'Elenco link" . $impostazioni . "'Class =' ​​Elenco link'>n";

			Se ( $Modalità == 'ricerca' ) {
				$uscita. = "<div class = 'resulttitle'>" . __('Cerca risultati per', 'Link-library') . " '" . stripslashes( $_OTTENERE['Searchll'] ) . "'</div>";
			}

			$currentcategoryid = -1;

            $XPath = $ this->percorso relativo( dirname( __FILE__ ), ABSPATH );

			per ciascuno ( $linkitems come $ LinkItem ) {

				Se ($currentcategoryid != $ LinkItem['Term_id'])
				{
					Se ($currentcategoryid != -1 && $showonecatonly && $_OTTENERE['Searchll'] == "")
					{
						rompere;
					}
					Se ($currentcategoryid != -1)
					{
						// Chiudere l'ultima categoria
Se ($displayastable)
							$uscita. = "t</tavolo>n";
						altro
$ Output. = "t</il>n";

						Se ($catlistwrappers != '')
							$uscita. = "</div>";

			            Se ( $showlinksonclick ) {
							$uscita. = "</div>";
						}

						$uscita. = "</div>";

						$currentcategory = $ currentcategory + 1;
					}

					$currentcategoryid = $ LinkItem['Term_id'];
					$uscita. = "<div class = 'LinkLibraryCat LinkLibraryCat" . $currentcategoryid . "'>";
					$LinkCount = 0;
                    $catlink = '';
                    $cattext = '';
                    $catenddiv = '';

					Se ($catlistwrappers == 1)
						$uscita. = "<div class ="" . $beforecatlist1 . "">";
					else if ($catlistwrappers == 2)
					{
						$resto = $ currentcategory % $catlistwrappers;
						interruttore ($resto) {

							Astuccio 0:
								$uscita. = "<div class ="" . $beforecatlist2 . "">";
								rompere;

							Astuccio 1:
								$uscita. = "<div class ="" . $beforecatlist1 . "">";
								rompere;
						}
					}
					else if ($catlistwrappers == 3)
					{
						$resto = $ currentcategory % $catlistwrappers;
						interruttore ($resto) {

							Astuccio 0:
								$uscita. = "<div class ="" . $beforecatlist3 . "">";
								rompere;

							Astuccio 2:
								$uscita. = "<div class ="" . $beforecatlist2 . "">";
								rompere;

							Astuccio 1:
								$uscita. = "<div class ="" . $beforecatlist1 . "">";
								rompere;
						}
					}

					// Visualizzare il nome della categoria
Se ($hidecategorynames == false || $hidecategorynames == "")
					{
                        $caturl = get_metadata( 'Linkcategory', $LinkItem['Term_id'], 'Linkcaturl', vero );

						Se ($catanchor)
							$cattext = '<div id ="' . $LinkItem['Lumaca'] . '">';
						altro
$ Cattext = '';

						Se ($divorheader == false)
						{
							Se ($modalità == "ricerca")
								per ciascuno ($SearchTerms come $ searchterm)
								{
									$LinkItem['nome'] = $ This->ll_highlight_phrase($LinkItem['nome'], $termine di ricerca, '<campata = classe"highlight_word">', '</campata>');
								}

							$catlink = '<div class ="' . $catnameoutput . '">';

							Se ($catdescpos == "giusto" || $catdescpos == ') {
                                Se ( !vuoto( $caturl ) ) {
                                    $catlink. = '<a href ="' . $Questo->addhttp( $caturl ) . '" ';

                                    Se ( !vuoto( $linktarget ) )
                                        $catlink. = '= bersaglio"' . $linktarget . '"';

                                    $catlink. = '>';
                                }
                                $catlink. = $ LinkItem['nome'];
                                Se ( !vuoto( $caturl ) ) {
                                    $catlink. = '</un>';
                                }
                            }

							Se ($showcategorydesclinks)
							{
								$catlink. = "<campata = classe 'linklistcatnamedesc'>";
								$LinkItem['descrizione'] = str_replace("[", "<", $LinkItem['descrizione']);
								$LinkItem['descrizione'] = str_replace("]", ">", $LinkItem['descrizione']);
								$catlink. = $ LinkItem['descrizione'];
								$catlink. = '</campata>';
							}

							Se ($catdescpos == "sinistra") {
                                Se ( !vuoto( $caturl ) ) {
                                    $catlink. = '<a href ="' . $Questo->addhttp( $caturl ) . '" ';

                                    Se ( !vuoto( $linktarget ) )
                                        $catlink. = '= bersaglio"' . $linktarget . '"';

                                    $catlink. = '>';
                                }
                                $catlink. = $ LinkItem['nome'];
                                Se ( !vuoto( $caturl ) ) {
                                    $catlink. = '</un>';
                                }
                            }

                            Se ( $showlinksonclick ) {
                                $catlink. = '<campata = classe"expandlinks" id ="LinksInCat' . $LinkItem['Term_id'] . '">';
                                $catlink. = '<img src ="' . plugins_url( 'Icone / espandere-32.png', __FILE__ ) . '" />';
                                $catlink. = '</campata>';
                            }

							$catlink. = "</div>";
						}
						else if ($divorheader == true)
						{
							Se ($modalità == "ricerca")
							per ciascuno ($SearchTerms come $ searchterm)
							{
								$LinkItem['nome'] = $ This->ll_highlight_phrase($LinkItem['nome'], $termine di ricerca, '<campata = classe"highlight_word">', '</campata>');
							}

							$catlink = '<div class ="'. $catnameoutput . '">';

							Se ($catdescpos == "giusto" || $catdescpos == ') {
                                Se ( !vuoto( $caturl ) ) {
                                    $catlink. = '<a href ="' . $Questo->addhttp( $caturl ). '" ';

                                    Se ( !vuoto( $linktarget ) )
                                        $catlink. = '= bersaglio"' . $linktarget . '"';

                                    $catlink. = '>';
                                }
                                $catlink. = $ LinkItem['nome'];
                                Se ( !vuoto( $caturl ) ) {
                                    $catlink. = '</un>';
                                }
                            }


							Se ($showcategorydesclinks)
							{
								$catlink. = "<campata = classe 'linklistcatnamedesc'>";
								$LinkItem['descrizione'] = str_replace("[", "<", $LinkItem['descrizione']);
								$LinkItem['descrizione'] = str_replace("]", ">", $LinkItem['descrizione']);
								$catlink. = $ LinkItem['descrizione'];
								$catlink. = '</campata>';
							}

							Se ($catdescpos == "sinistra") {
                                Se ( !vuoto( $caturl ) ) {
                                    $catlink. = '<a href ="' . $Questo->addhttp( $caturl ) . '" ';

                                    Se ( !vuoto( $linktarget ) )
                                        $catlink. = '= bersaglio"' . $linktarget . '"';

                                    $catlink. = '>';
                                }
                                $catlink. = $ LinkItem['nome'];
                                Se ( !vuoto( $caturl ) ) {
                                    $catlink. = '</un>';
                                }
                            }

                            Se ( $showlinksonclick ) {
                                $catlink. = '<campata = classe"expandlinks" id ="LinksInCat' . $LinkItem['Term_id'] . '">';
                                $catlink. = '<img src ="' . plugins_url( 'Icone / espandere-32.png', __FILE__ ) . '" />';
                                $catlink. = '</campata>';
                            }

							$catlink. = '</div>';
						}

						Se ($catanchor)
							$catenddiv = '</div>';
						altro
$ Catenddiv = '';
					}

                    $uscita. = $ cattext . $catlink . $catenddiv;

                    Se ( $showlinksonclick ) {
                        $uscita. = '<div class ="LinksInCat' . $currentcategoryid . 'LinksInCat">';
                    }

					Se ($displayastable == true)
					{
						$catstartlist = "nt<class = tavolo 'linklisttable'>n";
						Se ($showcolumnheaders == true)
						{
							$catstartlist. = "<div class = 'linklisttableheaders'><TR>";

							Se ($linkheader != "")
								$catstartlist. = "<esimo><div class = 'linklistcolumnheader'>".$linkheader."</div></esimo>";

							Se ($descheader != "")
								$catstartlist. = "<esimo><div class = 'linklistcolumnheader'>".$descheader."</div></esimo>";

							Se ($notesheader != "")
								$catstartlist. = "<esimo><div class = 'linklistcolumnheader'>".$notesheader."</div></esimo>";

							$catstartlist. = "</TR></div>n";
						}
						altro
$ Catstartlist. = '';
					}
					altro
$ Catstartlist = "nt<il>n";

					$uscita. = $ catstartlist;
				}

				$tra = "n";

				Se ($rssfeedinline == true)
					include_once(ABSPATH . WPINC . '/Feed.php');

				Se ($showuserlinks == true || strpos($LinkItem['Link_description'], "Link Biblioteca:In attesa di moderazione:RemoveTextToApprove") == false)
				{
					$LinkCount = $ LinkCount + 1;

					Se ($linkaddfrequency > 0)
						Se (($LinkCount - 1) % $linkaddfrequency == 0)
							$stripslashes uscita. =($addbeforelink);

					Se (!è impostato($LinkItem['aggiornato di recente'])) $LinkItem['aggiornato di recente'] = false;
					$stripslashes uscita. =($beforeitem);
					Se ($showupdated && $LinkItem['aggiornato di recente'])
						$uscita. = get_option('Links_recently_updated_prepend');

					$the_link = '#';
					Se (!vuoto($LinkItem['LINK_URL']) )
						$the_link = esc_html($LinkItem['LINK_URL']);

					$the_second_link = '#';
					Se (!vuoto($LinkItem['Link_second_url']) )
						$the_second_link = esc_html($LinkItem['Link_second_url']);

					$rel = $ LinkItem['Link_rel'];
					Se ('' != $ Rel e !$nofollow e !$LinkItem['Link_no_follow'])
						$rel = 'rel ="' . $rel . '"';
					else if ('' != $ Rel e ($nofollow o $ LinkItem['Link_no_follow']))
						$rel = 'rel ="' . $rel . ' non seguire"';
					else if ('' == $ rel e ($nofollow o $ LinkItem['Link_no_follow']))
						$rel = 'rel ="non seguire"';

					Se ($use_html_tags) {
						$descnotes = $ LinkItem['' link_notes];
						$descnotes = str_replace("[", "<", $descnotes);
						$descnotes = str_replace("]", ">", $descnotes);
					}
					altro
$ Descnotes = esc_html($LinkItem['' link_notes], ENT_QUOTES);

					Se ($use_html_tags) {
						$desc = $ LinkItem['Link_description'];
						$desc = str_replace("[", "<", $disc);
						$desc = str_replace("]", ">", $disc);
					} altro {
						$desc = esc_html($LinkItem['Link_description'], ENT_QUOTES);
					}

					$cleandesc = $ disc;
					$cleanname = esc_html($LinkItem['Link_name'], ENT_QUOTES);

                    Se ( $use_html_tags ) {
                        $textfield = stripslashes( $LinkItem['Link_textfield'] );
                        $textfield = str_replace( '[', '<', $campo di testo );
						$textfield = str_replace( ']', '>', $campo di testo );
                    } altro {
                        $textfield = stripslashes( $LinkItem['Link_textfield'] );
                    }


					Se ($modalità == "ricerca")
					{
						per ciascuno ($SearchTerms come $ searchterm)
						{
							$descnotes = $ this->ll_highlight_phrase($descnotes, $termine di ricerca, '<campata = classe"highlight_word">', '</campata>');
							$desc = $ this->ll_highlight_phrase($disc, $termine di ricerca, '<campata = classe"highlight_word">', '</campata>');
							$name = $ this->ll_highlight_phrase($LinkItem['Link_name'], $termine di ricerca, '<campata = classe"highlight_word">', '</campata>');
							$textfield = $ this->ll_highlight_phrase($campo di testo, $termine di ricerca, '<campata = classe"highlight_word">', '</campata>');
						}
				}
					altro
$ Name = $ cleanname;

                    Se ( $linktitlecontent == 'nomecollegamento' ) {
                        $title = $ cleanname;
                    } elseif ($linktitlecontent == 'linkdesc' ) {
                        $title = $ cleandesc;
                    }

					Se ($showupdated) {
					   Se (substr($LinkItem['Wp.dev'],0,2) != '00') {
							$titolo. = ' (' .__('Ultimo aggiornamento', 'Link-library') . '' . date_i18n(get_option('Links_updated_date_format'), strtotime( $LinkItem['Link_updated'] ) ) .')';
						}
					}

					Se (!vuoto( $titolo ) )
						$title = '= titolo"' . $titolo . '"';

					$alt = 'alt ="' . $cleanname . '"';

					$target = $ LinkItem['Link_target'];
					Se ('' != $ Bersaglio)
						$target = '= bersaglio"' . $bersaglio . '"';
					altro
					{
						$target = $ linktarget;
						Se ('' != $ Bersaglio)
							$target = '= bersaglio"' . $bersaglio . '"';
					}

					Se ($DragDrop ordini == '') $ordine dragdrop = '1,2,3,4,5,6,7,8,9,10';
						$dragndroparray = esplodere(',', $ordini goccia trazione);
						Se ($dragndroparray)
						{
							per ciascuno ($dragndroparray da $ arrayelements) {
								interruttore ($arrayelements) {
									Astuccio 1: 	//------------------ uscita immagine --------------------
                                        $imageoutput = '';
										Se ( (($LinkItem['Link_image'] != '' || $usethumbshotsforimages)) && ($show_images)) {
											$imageoutput. = stripslashes($beforeimage) . '<a href ="';

                                            Se ( !$enablelinkpopup ) {
                                                Se ($sourceimage == 'primaria' || $sourceimage == '')
                                                    $imageoutput. = $ the_link;
                                                elseif ($sourceimage == 'secondaria')
                                                    $imageoutput. = $ the_second_link;
                                            } altro {
                                                    $imageoutput. = HOME_URL() . '/?link_library_popup_content = 1&creare un collegamento a = ' . $LinkItem['Proper_link_id'] . '&settings =' . $impostazioni . '&height =' . ( vuoto( $popupheight ) ? 300 : $popupheight ) . '&larghezza =' . ( vuoto( $popupwidth ) ? 400 : $popupwidth ) . '&XPath =' . $xpath;
                                                }

											$imageoutput. = '" id ="link-' . $LinkItem['Proper_link_id'] . '" class ="' . ( $enablelinkpopup ? 'Thickbox' : 'Track_this_link' ) . '' . ( $LinkItem['Link_featured'] ? 'In primo piano' : '' ). '" ' . $rel . $titolo . $bersaglio. '>';

											Se ( $usethumbshotsforimages && ( !$uselocalimagesoverthumbshots || vuoto( $uselocalimagesoverthumbshots ) || ( $uselocalimagesoverthumbshots && vuoto( $LinkItem['Link_image'] ) ) ) ) {
												Se ( !vuoto( $thumbshotscid ) )
													$imageoutput. = '<img src ="http://free.pagepeeker.com/v2/thumbs.php?size = s&url ='  . $il link . '"';


											} else if ( !$usethumbshotsforimages || ( $usethumbshotsforimages && $uselocalimagesoverthumbshots && !vuoto( $LinkItem['Link_image'] ) ) ) {
                                                Se ( strpos($LinkItem['Link_image'], 'Http') !== false )
                                                    $imageoutput. = '<img src ="http://free.pagepeeker.com/v2/thumbs.php?size = s&url ='  . $il link . '"';
                                                altro // Se si tratta di un percorso relativo
                                                    $ Imageoutput. = '<img src ="http://free.pagepeeker.com/v2/thumbs.php?size = s&url ='  . $il link . '"';
                                            }

                                            Se ( !$usethumbshotsforimages || ($usethumbshotsforimages && !vuoto( $thumbshotscid ) ) || ( $usethumbshotsforimages && $uselocalimagesoverthumbshots && !vuoto( $LinkItem['Link_image'] ) ) ) {

                                                $imageoutput. = $ alt . $titolo;

                                                Se ($Imageclass != '')
                                                    $imageoutput. = 'class ="' . $Imageclass . '" ';

                                                $imageoutput. = "/>";

                                                $imageoutput. = '</un>' . stripslashes($immagine persistente);
                                            }
                                        }

										Se ( ( !vuoto( $imageoutput ) || ( $usethumbshotsforimages && !vuoto( $thumbshotscid ) ) )  && ($show_images) ) {
											$uscita. = $ imageoutput;
											rompere;
										}
										elseif ($show_images == false || $shownameifnoimage == false)
											rompere;

									Astuccio 2: 	//------------------ nome uscita --------------------
										Se (($ShowName == true) || ($show_images == true && $LinkItem['Link_image'] == '' && $arrayelements == 1))
										{
											$stripslashes uscita. =($beforelink);

											Se (($SourceName == 'primaria' && $il link != '#') || ($SourceName == 'secondaria' && $the_second_link != '#'))
											{
												$uscita. = '<a href ="';

												Se ( !$enablelinkpopup ) {
                                                    Se ( $SourceName == 'primaria' || $SourceName == '' )
                                                        $uscita. = $ the_link;
                                                    elseif ( $SourceName == 'secondaria' )
    													$uscita. = $ the_second_link;
                                                } altro {
                                                    $uscita. = HOME_URL() . '/?link_library_popup_content = 1&creare un collegamento a = ' . $LinkItem['Proper_link_id'] . '&settings =' . $impostazioni . '&height =' . ( vuoto( $popupheight ) ? 300 : $popupheight ) . '&larghezza =' . ( vuoto( $popupwidth ) ? 400 : $popupwidth ) . '&XPath =' . $xpath;
                                                }

												$uscita. = '" id ="link-' . $LinkItem['Proper_link_id'] . '" class ="' . ( $enablelinkpopup ? 'Thickbox' : 'Track_this_link' ) . '' . ( $LinkItem['Link_featured'] ? ' In primo piano' : '' ). '" ' . $rel . $titolo . $bersaglio. '>';
											}

											$uscita. = nome $;

											Se (($SourceName == 'primaria' && $il link != '#') || ($SourceName == 'secondaria' && $the_second_link != '#'))
												$uscita. = '</un>';

											Se (($showadmineditlinks) && current_user_can("manage_links")) {
												$uscita. = $ tra . '<a href ="' . add_query_arg( Vettore( = 'Azione'> 'modificare', = 'Link_id'> $LinkItem['Proper_link_id'] ), ADMIN_URL( 'Link.php' ) ) . '">(' . __('Modificare', 'Link-library') . ')</un>';
											}

											Se ($showupdated && $LinkItem['aggiornato di recente']) {
												$uscita. = get_option('Links_recently_updated_append');
											}

											$stripslashes uscita. =($afterlink);
										}

										rompere;

									Astuccio 3: 	//------------------ data di uscita --------------------

										$formatteddate = date_i18n(get_option('Links_updated_date_format'), $LinkItem['Link_date']);

										Se ($showdate)
											$uscita. = $ tra . stripslashes($beforedate) . $formatteddate . stripslashes($dopo la data);

										rompere;

									Astuccio 4: 	//------------------ Descrizione Output --------------------

										Se ($descrizione spettacolo)
											$uscita. = $ tra . stripslashes($beforedesc) . $disc . stripslashes($afterdesc);

										rompere;

									Astuccio 5: 	//------------------ uscita Note --------------------

										Se ($Sownotes) {
											$uscita. = $ tra . stripslashes($beforenote) . $descnotes . stripslashes($afternote);
										}

										rompere;

									Astuccio 6: 	//------------------ Uscita RSS Icons --------------------

										Se ($show_rss || $show_rss_icon || $rsspreview)
											$stripslashes uscita. =($beforerss) . '<div class ="rsselements">';

										Se ($show_rss && ($LinkItem['Link_rss'] != '')) {
											$uscita. = $ tra . '<a class ="rss" href ="' . $LinkItem['Link_rss'] . '">RSS</un>';
										}
										Se ($show_rss_icon && ($LinkItem['Link_rss'] != '')) {
											$uscita. = $ tra . '<a class ="rssicon" href ="' . $LinkItem['Link_rss'] . '"><img src ="' . plugins_url( 'Icone / feed-icon-14x14.png', __FILE__ ) . '" /></un>';
										}
										Se ($rsspreview && $LinkItem['Link_rss'] != '')
										{
											$uscita. = $ tra . '<a href ="' . HOME_URL() . '/?link_library_rss_preview = 1&keepThis = true&creare un collegamento a = ' . $LinkItem['Proper_link_id'] . '&previewcount =' . $rsspreviewcount . 'Height =' . (($rsspreviewwidth == "") ?  900 : $rsspreviewwidth) . '&larghezza =' . (($rsspreviewheight == "") ? 700 : $rsspreviewheight) . '&XPath =' . UrlEncode( $xpath ) . '" title ="' . __('Anteprima di RSS feed per', 'Link-library') . '' . $cleanname . '" class ="thickbox"><img src ="' . plugins_url( 'Icone / anteprima-16x16.png', __FILE__ ) . '" /></un>';
										}

										Se ($show_rss || $show_rss_icon || $rsspreview)
											$uscita. = '</div>' . stripslashes($afterrss);

										Se ($rssfeedinline && $LinkItem['Link_rss'])
										{
											$rss = fetch_feed($LinkItem['Link_rss']);
											Se (!is_wp_error( $rss ) ) :
												$MaxItems = $ RSS->get_item_quantity($rssfeedinlinecount);

												$rss_items = $ RSS->get_items(0, $MaxItems);

												Se ($rss_items)
												{
													$uscita. = '<div id ="ll_rss_results">';

													per ciascuno($rss_items come $ item)
													{
														$uscita. = '<div class ="pezzo" = stile"imbottitura:0 5px 5px;">';
														$uscita. = '<div class ="rssTitle"><un target ="feedwindow" href ="' . $articolo->get_permalink() . '">' . $articolo->get_title() . '</un> - ' . $articolo->get_date('J F Y | g:Ho un') . '</div>';
														Se ($rssfeedinlinecontent) $uscita. = '<div class ="rsscontent">' . $articolo->get_description() . '</div>';
														$uscita. = '</div>';
														$uscita. = '<br />';													}

													$uscita. = '</div>';
												}

											finisci se;
										}
										rompere;
									Astuccio 7: 	//------------------ Uscita link --------------------

										Se ($displayweblink != 'False') {
											$uscita. = $ tra . stripslashes($beforeweblink) . "<a href ='";

											Se ($sourceweblink == "primario" || $sourceweblink == "")
												$uscita. = $ the_link;
											elseif ($sourceweblink == "secondario")
												$uscita. = $ the_second_link;

											$uscita. = "'Id =' link-" . $LinkItem['Proper_link_id'] . "'Class =' ​​track_this_link' " . $bersaglio . ">";

											Se ($displayweblink == 'indirizzo')
											{
												Se (($sourceweblink == "primario" || $sourceweblink == '') && $il link != '')
													$uscita. = $ the_link;
												elseif ($sourceweblink == "secondario" && $the_second_link != '')
													$uscita. = $ the_second_link;
											}
											elseif ($displayweblink == 'etichetta' && $weblinklabel != '')
												$uscita. = $ weblinklabel;

											$uscita. = "</un>" . stripslashes($afterweblink);
										}

										rompere;
									Astuccio 8: 	//------------------ uscita Telefono --------------------

										Se ($Sowtelefone != 'False')
										{
											$uscita. = $ tra . stripslashes($beforetelephone);

											Se ($Sowtelefone != 'Plain')
											{
												$uscita. = "<a href ='";

												Se (($sourcetelephone == "primario" || $sourcetelephone == '') && $il link != '')
													$uscita. = $ the_link;
												elseif ($sourcetelephone == "secondario" && $the_second_link != '')
													$uscita. = $ the_second_link;

												$uscita. = "'Id =' link-" . $LinkItem['Proper_link_id'] . "'Class =' ​​track_this_link' >";
											}

											Se ($showtelephone == 'link' || $Sowtelefone == "pianura")
												$uscita. = $ LinkItem['Link_telephone'];
											elseif ($showtelephone == 'etichetta')
												$uscita. = $ telephonelabel;

											Se ($Sowtelefone != 'Plain')
												$uscita. = "</un>";

											$stripslashes uscita. =($aftertelephone);
										}
										rompere;
									Astuccio 9: 	//------------------ E-mail in uscita --------------------

										Se ($showemail != 'False')
										{
											$uscita. = $ tra . stripslashes($beforeemail);

											Se ($showemail != 'Plain')
											{
												$uscita. = "<a href ='";

												Se ($showemail == 'mailto' || $showemail == 'mailtolabel')
													$uscita. = "mailto:" . $LinkItem['Link_email'];
												elseif ($showemail == 'comando' || $showemail == 'commandlabel')
												{
													$newcommand = str_replace("#e-mail", $LinkItem['Link_email'], $emailcommand);
													$cleanlinkname = str_replace(" ", "%20", $LinkItem['Link_name']);
													$newcommand = str_replace("#azienda", $cleanlinkname, $newcommand);
													$uscita. = $ newcommand;
												}

												$uscita. = "'>";
											}

											Se ($showemail == 'normale' || $showemail == 'mailto' || $showemail == 'comando')
												$uscita. = $ LinkItem['Link_email'];
											elseif ($showemail == 'mailtolabel' || $showemail == 'commandlabel')
												$uscita. = $ emaillabel;

											Se ($showemail != 'Plain')
												$uscita. = "</un>";

											$stripslashes uscita. =($afteremail);
										}

										rompere;
									Astuccio 10: 	//------------------ Link Visite uscita --------------------

										Se ($showlinkhits)
										{
											$uscita. = $ tra . stripslashes($beforelinkhits);

											$uscita. = $ LinkItem['' link_visits];

											$stripslashes uscita. =($afterlinkhits);
										}

										rompere;

									Astuccio 11: 	//------------------ Uscita Giudizio Sito --------------------

										Se ($showrating)
										{
											$uscita. = $ tra . stripslashes($beforelinkrating);

											$uscita. = $ LinkItem['Link_rating'];

											$stripslashes uscita. =($afterlinkrating);
										}

										rompere;

									Astuccio 12: 	//------------------ Collegamento Grande Descrizione Output --------------------

										Se ($lo showlargedescriptio)
										{
											$uscita. = $ tra . stripslashes($beforelargedescription);

											$uscita. = $ textfield;

											$stripslashes uscita. =($afterlargedescription);
										}

										rompere;
									}
								}
							}

					$stripslashes uscita. =($afteritem) . "n";

					Se ($linkaddfrequency > 0)
						Se ($LinkCount % $linkaddfrequency == 0)
							$stripslashes uscita. =($addafterlink);

				}

			} // fine, mentre

			// Chiudere l'ultima categoria
Se ($displayastable)
				$uscita. = "t</tavolo>n";
			altro
$ Output. = "t</il>n";

			Se ($catlistwrappers != '')
				$uscita. = "</div>";

            Se ( $showlinksonclick ) {
                $uscita. = "</div>";
            }

			$uscita. = "</div>";

			Se ( $paginatura && $modalità != "ricerca" && ( $paginationposition == 'dopo' || vuoto( $paginatura ) ) ) {
                $previouspagenumber = $ numero di pagina - 1;
                $nextpagenumber = $ numero di pagina + 1;
                $ID pagina = get_the_ID();

                $uscita. = $ this->link_library_display_pagination( $previouspagenumber, $nextpagenumber, $numero di pagine, $numero di pagina, $showonecatonly, $showonecatmode, $AJAXcatid, $impostazioni, $ID pagina );
			}

			$XPath = $ this->percorso relativo( dirname( __FILE__ ), ABSPATH );
            $nonce = wp_create_nonce( 'Ll_tracker' );

			$uscita. = "<script type = 'text / javascript'>n";
			$uscita. = "jQuery(documento).pronto(funzione()n";
			$uscita. = "{n";
			$uscita. = "jQuery('A.track_this_link').clic(funzione() {n";
			$uscita. = "di link = this.id;n";
			$uscita. = "di link = linkid.substring(5);";
			$uscita. = "path = '" . $xpath . "';";
			$uscita. = "jQuery.ajax( {" .
                       "    genere: 'INVIARE'," .
                       "    url: '" . ADMIN_URL( 'Admin-ajax.php' ) . "', " .
                       "    dati: { azione: 'Link_library_tracker', " .
                       "            _ajax_nonce: '" . $nonce . "', " .
                       "            id:i link, xpath:sentiero } " .
                       "    });n";
			$uscita. = "return true;n";
			$uscita. = "});n";
            $uscita. = "jQuery('#linklist" . $impostazioni . " .expandlinks').clic(funzione() {n";
            $uscita. = "target = '' + jQuery(Questo).attr('Id');n";
            $uscita. = "Se ( jQuery( bersaglio ).è(':visibile') ) {n";
            $uscita. = "jQuery(bersaglio).slideUp();n";
            $uscita. = "jQuery(Questo).bambini('IMG').attr('Src', '" . plugins_url( 'Icone / espandere-32.png', __FILE__ ) . "');n";
            $uscita. = "} altro {n";
            $uscita. = "jQuery(bersaglio).scorrere verso il basso();n";
            $uscita. = "jQuery(Questo).bambini('IMG').attr('Src', '" . plugins_url( 'Icone / compressione-32.png', __FILE__ ) . "');n";
            $uscita. = "}n";
            $uscita. = "});n";
			$uscita. = "});n";
			$uscita. = "</copione>";
			non settato( $xpath );
			$currentcategory = $ currentcategory + 1;

			$uscita. = "</div>n";

		} else if ( è impostato( $_OTTENERE['Searchll'] ) ) {
            $uscita. = "<div id = 'Elenco link" . $impostazioni . "'Class =' ​​Elenco link'>n";
            $uscita. = __('Nessun collegamento trovato corrispondente ai criteri di ricerca', 'Link-library') . ".n";
            $uscita. = "</div>";
        } altro {
			$uscita. = "<div id = 'Elenco link" . $impostazioni . "'Class =' ​​Elenco link'>n";
			$uscita. = __('Non ci sono link trovato', 'Link-library') . ".n";
			$uscita. = "</div>";
		}

		$uscita. = "n<!-- Fine di Link in uscita Biblioteca ->nn";

		return $ uscita;
	}

	funzione PrivateLinkLibrarySearchForm($searchlabel = 'Ricerca', $searchresultsaddress = '') {

		Se ($searchlabel == "") $searchlabel = __('Ricerca', 'Link-library');
		$= uscita "<form method = 'ottenere' id = 'llsearch'";
                Se ($searchresultsaddress != '')
                    $uscita. = " action ='" . $searchresultsaddress . "'";
                $uscita. = ">n";
		$uscita. = "<div>n";
		$uscita. = "<input type = 'text' onfocus ="this.value = ''" value ='" . $searchlabel . "...'Name =' searchll' id = 'searchll'/>";
		$uscita. = "<input type = 'hidden' value ='" .  get_the_ID() . "'Name =' page_id' id = 'page_id'/>";
		$uscita. = "<input type = 'invia' value ='" . $searchlabel . "'/>";
		$uscita. = "</div>n";
		$uscita. = "</modulo>nn";

		return $ uscita;
	}

	funzione PrivateLinkLibraryAddLinkForm($selectedcategorylist = '', $excludedcategorylist = '', $addnewlinkmsg = '', $linknamelabel = '', $linkaddrlabel = '',
											$linkrsslabel = '', $linkcatlabel = '', $linkdesclabel = '', $linknoteslabel = '', $addlinkbtnlabel = '', $hide_if_empty = true,
											$showaddlinkrss = false, $showaddlinkdesc = false, $showaddlinkcat = false, $showaddlinknotes = false,
											$addlinkreqlogin = false, $DebugMode = false, $addlinkcustomcat = false, $linkcustomcatlabel = '',
											$linkcustomcatlistentry = 'categoria inviati dagli utenti (definire in basso)', $showaddlinkreciprocal = false,
											$linkreciprocallabel = '', $showaddlinksecondurl = false, $linksecondurllabel = '',
											$showaddlinktelephone = false, $linktelephonelabel = '', $showaddlinkemail = false, $linkemaillabel = '',
											$showcaptcha = false, $captureddata = '', $linksubmitternamelabel = '', $showlinksubmittername = false,
											$linksubmitteremaillabel = '', $showaddlinksubmitteremail = false, $linksubmittercommentlabel = '',
											$showlinksubmittercomment = false, $linksubmissionthankyouurl = '', $addlinkcatlistoverride = '',
											$showcustomcaptcha = false, $customcaptchaquestion = '', $linklargedesclabel = 'Large Descrizione', $showuserlargedescription = false, $usetextareaforusersubmitnotes = false, $settings = 1, $codice = 'link-library-AddLink') {

		$ Wpdb globale;
                $= uscita "";

                $settingsname = 'LinkLibraryPP' . $impostazioni;
                $Opzioni = get_option($settingsname);

                Se ($Codice == 'link-library-AddLink' || $Codice == 'link-library-addlinkcustommsg')
                {
                    Se (è impostato($_OTTENERE['Addlinkmessage']))
                        {
                            Se ($_OTTENERE['Addlinkmessage'] == 1)
                                $= uscita "<div class = 'llmessage'>" . __('Codice Confermare non dato', 'Link-library') . ".</div>";
                            elseif ($_OTTENERE['Addlinkmessage'] == 2)
                                $= uscita "<div class = 'llmessage'>" . __('Il codice CAPTCHA è sbagliato', 'Link-library') . ".</div>";
                            elseif ($_OTTENERE['Addlinkmessage'] == 3)
                                $= uscita "<div class = 'llmessage'>" . __('Captcha code è valida solo per 5 minuti', 'Link-library') . ".</div>";
                            elseif ($_OTTENERE['Addlinkmessage'] == 4)
                                $= uscita "<div class = 'llmessage'>" . __('Nessun biscotto captcha dato. Assicurarsi che i cookie siano abilitati', 'Link-library') . ".</div>";
                            elseif ($_OTTENERE['Addlinkmessage'] == 5)
                                $= uscita "<div class = 'llmessage'>" . __('Captcha risposta non è stata fornita.', 'Link-library') . "</div>";
                            elseif ($_OTTENERE['Addlinkmessage'] == 6)
                                $= uscita "<div class = 'llmessage'>" . __('Captcha risposta è errata', 'Link-library') . ".</div>";
                            elseif ($_OTTENERE['Addlinkmessage'] == 7)
                                $= uscita "<div class = 'llmessage'>" . __('Utente categoria non è stata fornita in modo corretto. inserimento di collegamento fallito '., 'Link-library') . "</div>";
                            elseif ($_OTTENERE['Addlinkmessage'] == 8)
                            {
                                $uscita. = "<div class = 'llmessage'>" . $opzioni['Newlinkmsg'];
                                Se ($opzioni['' showuserlinks] == false)
                                        $uscita. = " " . $opzioni['Moderatemsg'];
                                $uscita. = "</div>";
                            }
                            elseif ($_OTTENERE['Addlinkmessage'] == 9)
                                $= uscita "<div class = 'llmessage'>" . __('Errore: Link non ha un indirizzo '., 'Link-library') . "</div>";
                            elseif ($_OTTENERE['Addlinkmessage'] == 10)
                                $= uscita "<div class = 'llmessage'>" . __('Errore: Creare un collegamento esiste già '., 'Link-library') . "</div>";
                        }
                }

		Se ($Codice == 'link-library-AddLink' && (($addlinkreqlogin && current_user_can("leggere")) || !$addlinkreqlogin))
		{
			$uscita. = "<form method = 'post' id = azione 'lladdlink' = ''>n";

            $uscita. = wp_nonce_field('LL_ADDLINK_FORM', '_Wpnonce', vero, falso);
            $uscita. = "<input type = 'hidden' name = 'thankyouurl' value ='" . $linksubmissionthankyouurl . "'/>";
            $uscita. = '<Tipo di ingresso ="nascosto" name ="link_library_user_link_submission" valore ="1" />';
            $ WP_Query globale;
            $thePostID = $ wp_query->inviare->ID;
            $uscita. = "<input type = 'hidden' name = 'pageid' value ='" . $thePostID . "'/>";
            $uscita. = "<input type = 'hidden' name = 'settingsid' value ='" . $impostazioni . "'/>";

            $XPath = $ this->percorso relativo( dirname( __FILE__ ), ABSPATH );
            $uscita. = "<input type = 'hidden' name = 'XPath' value ='" . esc_attr( $xpath ) . "'/>";
            non settato( $xpath );

			$uscita. = "<div class = 'lladdlink'>n";

			Se ($addnewlinkmsg == "") $addnewlinkmsg = __('Aggiungere nuovo link', 'Link-library');
			$uscita. = "<div id = 'lladdlinktitle'>" . $addnewlinkmsg . "</div>n";

			$uscita. = "<tavolo>n";

			Se ($linknamelabel == "") $linknamelabel = __('Link name', 'Link-library');
			$uscita. = "<TR><esimo>" . $linknamelabel . "</esimo><TD><input type = 'text' name = 'link_name' id = 'link_name' value ='" . ( è impostato( $_OTTENERE['Addlinkname'] ) ? esc_html(stripslashes($_OTTENERE['Addlinkname']), '1') : '') . "'/></TD></TR>n";

			Se ($linkaddrlabel == "") $linkaddrlabel = __('Indirizzo Link', 'Link-library');
			$uscita. = "<TR><esimo>" . $linkaddrlabel . "</esimo><TD><input type = 'text' name = 'LINK_URL' id = 'LINK_URL' value ='" . ( è impostato( $_OTTENERE['Addlinkurl'] ) ? esc_html(stripslashes($_OTTENERE['Addlinkurl']), '1') : '' ) . "'/></TD></TR>n";

			Se ($showaddlinkrss)
			{
				Se ($linkrsslabel == "") $linkrsslabel = __('Link RSS', 'Link-library');
				$uscita. = "<TR><esimo>" . $linkrsslabel . "</esimo><TD><input type = 'text' name = 'link_rss' id = 'link_rss' value ='" . ( è impostato( $_OTTENERE['Addlinkrss'] ) ? esc_html(stripslashes($_OTTENERE['Addlinkrss']), '1') : '' ) . "'/></TD></TR>n";
			}

			$linkcatquery = "SELEZIONA t.name distinta, t.term_id, t.slug come category_nicename, tt.description come category_description ";
			$linkcatquery. = "A PARTIRE DAL " . $Questo->DB_Prefix() . "termini t ";
			$linkcatquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "term_taxonomy TT (t.term_id = tt.term_id) ";
			$linkcatquery. = "LEFT JOIN " . $Questo->DB_Prefix() . "term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) ";

			$linkcatquery. = "DOVE tt.taxonomy = 'link_category' ";

			Se ($selectedcategorylist != "")
			{
				$linkcatquery. = " E t.term_id in (" . $selectedcategorylist. ")";
			}

			Se ($excludedcategorylist != "")
			{
				$linkcatquery. = " E non t.term_id in (" . $excludedcategorylist . ")";
			}

			$linkcatquery. = " ORDER BY t.name ASC";

			$linkcats = $ wpdb->get_results($linkcatquery);

			Se ($modalità di debug)
			{
				$uscita. = "n<!-- di ricerca Categoria per la forma link aggiungi:" . print_r($linkcatquery, VERO) . "-->nn";
				$uscita. = "n<!-- I risultati di query di categoria per la forma link aggiungi:" . print_r($linkcats, VERO) . "-->n";
			}

			Se ($linkcats)
			{
				Se ($showaddlinkcat)
				{
					Se ($linkcatlabel == "") $linkcatlabel = __('Categoria Link', 'Link-library');

					$uscita. = "<TR><esimo>" . $linkcatlabel . "</esimo><TD><SELECT name = 'link_category' id = 'link_category'>";

					Se ($linkcustomcatlistentry == "") $linkcustomcatlistentry = __('Categoria inviati dagli utenti (definire in basso)', 'Link-library');

					per ciascuno ($linkcats come $ linkcat)
					{
						$uscita. = "<Value option ='" . $linkcat->term_id . "' ";
						Se ( è impostato($_OTTENERE['Addlinkcat']) && $_OTTENERE['Addlinkcat'] == $ linkcat->term_id)
							$uscita. = "selezionato";
						$uscita. = ">" . $linkcat->nome;
					}

					Se ($addlinkcustomcat)
						$uscita. = "<Value option = 'nuovo'>" . stripslashes($linkcustomcatlistentry) . "n";

					$uscita. = "</SELEZIONARE></TD></TR>n";
				}
				altro
				{
					$uscita. = "<input type = 'hidden' name = 'link_category' id = valore 'link_category' ='" . $linkcats[0]->term_id . "'>";
				}

				Se ($addlinkcustomcat)
					$uscita. = "<TR><esimo>" .  $linkcustomcatlabel . "</esimo><TD><input type = 'text' name = 'link_user_category' id = 'link_user_category' value ='" . ( è impostato( $_OTTENERE['Addlinkusercat']) ? esc_html(stripslashes($_OTTENERE['Addlinkusercat']), '1') : '') . "'/></TD></TR>n";
			}

			Se ($showaddlinkdesc)
			{
				Se ($linkdesclabel == "") $linkdesclabel = __('Descrizione Link', 'Link-library');
				$uscita. = "<TR><esimo>" . $linkdesclabel . "</esimo><TD><input type = 'text' name = 'link_description' id = 'link_description' value ='" . ( è impostato( $_OTTENERE['Addlinkdesc'] ) ? esc_html(stripslashes($_OTTENERE['Addlinkdesc']), '1') : '' ) . "'/></TD></TR>n";
			}

			Se ($showuserlargedescription)
			{
				Se ($linklargedesclabel == "") $linklargedesclabel = __('Descrizione Grande', 'Link-library');
				$uscita. = "<TR><th style = "vertical-align: superiore'>" . $linklargedesclabel . "</esimo><TD><name = textarea 'link_textfield' id = 'link_textfield' cols = '66'>" . ( è impostato( $_OTTENERE['Addlinktextfield'] ) ? esc_html(stripslashes($_OTTENERE['Addlinktextfield']), '1') : '' ) . "</textarea></TD></TR>n";
			}

			Se ($showaddlinknotes)
			{
				Se ($linknoteslabel == "") $linknoteslabel = __('note Link', 'Link-library');
				$uscita. = "<TR><esimo>" . $linknoteslabel . "</esimo><TD>";

				Se ($usetextareaforusersubmitnotes == false || $usetextareaforusersubmitnotes == '')
					$uscita. = "<input type = 'text' name = id 'link_notes' = valore 'link_notes' ='";
				elseif ($usetextareaforusersubmitnotes == true)
					$uscita. = "<Nome textarea = id 'link_notes' = 'link_notes'>";

				$uscita. = ( è impostato( $_OTTENERE['' addlinknotes] ) ? esc_html(stripslashes($_OTTENERE['' addlinknotes]), '1') : '' );

				Se ($usetextareaforusersubmitnotes == false || $usetextareaforusersubmitnotes == '')
					$uscita. = "'/>";
				elseif ($usetextareaforusersubmitnotes == true)
					$uscita. = "</textarea>";

				$uscita. = "</TD></TR>n";
			}

			Se ($showaddlinkreciprocal)
			{
				Se ($== linkreciprocallabel "") $linkreciprocallabel = __('Reciprocal Link', 'Link-library');
				$uscita. = "<TR><esimo>" . $linkreciprocallabel . "</esimo><TD><input type = 'text' name = 'll_reciprocal' id = 'll_reciprocal' value ='" . ( è impostato( $_OTTENERE['Addlinkreciprocal'] ) ? esc_html(stripslashes($_OTTENERE['Addlinkreciprocal']), '1') : '' ) . "'/></TD></TR>n";
			}

			Se ($showaddlinksecondurl)
			{
				Se ($linksecondurllabel == "") $linksecondurllabel = __('Indirizzo secondario', 'Link-library');
				$uscita. = "<TR><esimo>" . $linksecondurllabel . "</esimo><TD><input type = 'text' name = 'll_secondwebaddr' id = 'll_secondwebaddr' value ='" . ( è impostato( $_OTTENERE['Addlinksecondurl'] ) ? esc_html(stripslashes($_OTTENERE['Addlinksecondurl']), '1') : '' ) . "'/></TD></TR>n";
			}

			Se ($showaddlinktelephone)
			{
				Se ($== linktelephonelabel "") $linktelephonelabel = __('Telefono', 'Link-library');
				$uscita. = "<TR><esimo>" . $linktelephonelabel . "</esimo><TD><input type = 'text' name = 'll_telephone' id = 'll_telephone' value ='" . ( è impostato( $_OTTENERE['Addlinktelephone'] ) ? esc_html(stripslashes($_OTTENERE['Addlinktelephone']), '1') : '' ) . "'/></TD></TR>n";
			}

			Se ($showaddlinkemail)
			{
				Se ($linkemaillabel == "") $linkemaillabel = __('E-mail', 'Link-library');
				$uscita. = "<TR><esimo>" . $linkemaillabel . "</esimo><TD><input type = 'text' name = 'll_email' id = 'll_email' value ='" . ( è impostato( $_OTTENERE['Addlinkemail'] ) ? esc_html(stripslashes($_OTTENERE['Addlinkemail']), '1') : '' ) . "'/></TD></TR>n";
			}

			Se ($showlinksubmittername)
			{
				Se ($linksubmitternamelabel == "") $linksubmitternamelabel = __('Inviato Nome', 'Link-library');
				$uscita. = "<TR><esimo>" . $linksubmitternamelabel . "</esimo><TD><input type = 'text' name = 'll_submittername' id = 'll_submittername' value ='" . ( è impostato( $_OTTENERE['Addlinksubmitname'] ) ? esc_html(stripslashes($_OTTENERE['Addlinksubmitname']), '1') : '' ) . "'/></TD></TR>n";
			}

			Se ($showaddlinksubmitteremail)
			{
				Se ($linksubmitteremaillabel == "") $linksubmitteremaillabel = __('Inviato da E-mail', 'Link-library');
				$uscita. = "<TR><esimo>" . $linksubmitteremaillabel . "</esimo><TD><input type = 'text' name = 'll_submitteremail' id = 'll_submitteremail' value ='" . ( è impostato( $_OTTENERE['Addlinksubmitemail'] ) ? esc_html(stripslashes($_OTTENERE['Addlinksubmitemail']), '1') : '' ). "'/></TD></TR>n";
			}

			Se ($showlinksubmittercomment)
			{
				Se ($linksubmittercommentlabel == "") $linksubmittercommentlabel = __('Commento Inviato', 'Link-library');
				$uscita. = "<TR><th style = "vertical-align: superiore;'>" . $linksubmittercommentlabel . "</esimo><TD><Nome textarea = 'll_submittercomment' id = 'll_submittercomment' cols = '38 ''>" . ( è impostato( $_OTTENERE['Addlinksubmitcomment'] ) ? esc_html(stripslashes($_OTTENERE['Addlinksubmitcomment']), '1') : '' ) . "</textarea></TD></TR>n";
			}

			Se ($showcaptcha)
			{
				$uscita. = "<TR><TD></TD><TD><span id = 'captchaimage'><img src ='" . plugins_url( 'Captcha / easycaptcha.php', __FILE__ ) . "'/></campata></TD></TR>n";
				$uscita. = "<TR><esimo>" . __('Inserisci il codice di sopra di immagine', 'Link-library') . "</esimo><TD><input type name = 'text' = 'CONFIRM_CODE' /></TD></TR>n";
			}

			Se ($showcustomcaptcha)
			{
				Se ($customcaptchaquestion == "") $customcaptchaquestion = __('Sta bollendo l'acqua calda o fredda?', 'Link-library');
				$uscita. = "<TR><th style = "vertical-align: superiore;'>" . $customcaptchaquestion . "</esimo><TD><input type = 'text' name = 'll_customcaptchaanswer' id = 'll_customcaptchaanswer' value ='" . (è impostato( $_OTTENERE['Ll_customcaptchaanswer'] ) ? esc_html(stripslashes($_OTTENERE['Ll_customcaptchaanswer']), '1') : '' ) . "'/></TD></TR>n";
			}

			$uscita. = "</tavolo>n";

			Se ($addlinkbtnlabel == "") $addlinkbtnlabel = __('Add link', 'Link-library');
			$uscita. = '<campata = stile"confine:0;" class ="LLUserLinkSubmit"><Tipo di ingresso ="Invia" name ="Invia" valore ="' . $addlinkbtnlabel . '" /></campata>';

			$uscita. = "</div>n";
			$uscita. = "</modulo>nn";
		}

		return $ uscita;
	}

	funzione relativePath($a partire dal, $a, $ps = DIRECTORY_SEPARATOR) {
		$arFrom = esplodere($ps, rtrim($a partire dal, $ps));
		$arto = esplodere($ps, rtrim($a, $ps));
		mentre(contare($arFrom) && contare($Arto) && ($arFrom[0] == $ Arto[0])) {
			array_shift($arFrom);
			array_shift($Arto);
		}
		$tornare = str_pad("", contare($arFrom) * 3, '..'. $ Ps).implodere($ps, $Arto);

		// Non rivelare nulla circa il percorso è non è necessaria, i.e. è lo standard
Se( $tornare === '../../../' ) {
			$ritorno = '';
        }

		return $ ritorno;
	}

	/*
	 * LinkLibraryCategories funzione()
	 *
	 * inserito da Yannick Lefebvre
	 *
	 * lista di output un link categorie, elencati per categoria, usando il
	 * impostazioni in $ wpdb->linkcategories e uscita come tabella
	 *
	 * parametri:
	 *   ordine ('Nome' default)  - Ordina collegare le categorie da 'nome' o 'id' o 'categoria-list'. Quando è impostato su 'AdminSettings', utilizzerà i parametri impostati nel pannello di amministrazione Impostazioni.
	 *   hide_if_empty (di default vero)  - Supress messa vuote categorie di collegamenti
	 *   table_witdh (predefinito 100) - Larghezza del tavolo, percentuale
	 *   num_colonne (predefinito 1) - Numero di colonne nella tabella
	 *   catanchor (di default vero) - Determina se devono essere creati dei link ad ancore generate
	 *   flatlist (default 'tabella') - Quando è impostata su true, visualizza un elenco non ordinato anziché una tabella
	 *   CategoryList (predefinito nullo) - Specifica un elenco separato da parte delle uniche categorie che dovrebbe essere visualizzato
	 *   excludecategorylist (predefinito nullo) - Specifica un elenco separato da virgole delle categorie che non devono essere visualizzati
	 *   showcategorydescheaders (predefinito nullo) - Show categoria descrizioni in lista delle categorie
	 *   showonecatonly (falso di default) - Attivare la modalità AJAX che mostra una sola categoria alla volta
	 *   impostazioni (predefinito NULL) - Impostazioni Set ID, utilizzato solo quando showonecatonly è vero
	 *   loadingicon (predefinito NULL) - Percorso a icona per visualizzare quando mostrare una sola categoria alla volta
	 *   catlistdescpos (default 'giusto') - Posizione di descrizione di categoria relativa per citarne
	 *   modalità di debug (falso di default)
	 *   paginatura (falso di default)
	 *   linksperpage (predefinito 5)
	 *   showcatlinkcount (falso di default)
	 *   showonecatmode (default 'AJAX')
	 *   cattargetaddress
	 *   rewritepage
	 *   showinvisible
	 */

	LinkLibraryCategories funzione($order = 'nome', $hide_if_empty = true, $table_width = 100, $num_colonne = 1, $catanchor = true,
								   $flatlist = 'table', $CategoryList = '', $excludecategorylist = '', $showcategorydescheaders = false,
								   $showonecatonly = false, $settings = '', $loadingicon = '/icons/Ajax-loader.gif', $catlistdescpos = 'right', $DebugMode = false,
								   $paginazione = false, $linksperpage = 5, $showcatlinkcount = false, $showonecatmode = 'AJAX', $cattargetaddress = '',
								   $rewritepage = '', $showinvisible = false, $showuserlinks = true, $showcatonsearchresults = false) {

		Se (strpos($ordine, 'Impostazioni amministratore') != false)
		{
			$settingsetid = substr($ordine, 13);
			$settingsetname = "LinkLibraryPP" . $settingsetid;
			$Opzioni = get_option($settingsetname);

			$genoptions = get_option('Link Library Generale');

			return $ this->PrivateLinkLibraryCategories($opzioni['ordine'], $opzioni['Hide_if_empty'], $opzioni['Table_width'], $opzioni['' num_colonne], $opzioni['Catanchor'], $opzioni['Flatlist'],
									 $opzioni['CategoryList'], $opzioni['Excludecategorylist'], $opzioni['' showcategorydescheaders], $opzioni['Showonecatonly'], '',
									 $opzioni['Loadingicon'], $opzioni['Catlistdescpos'], $re-zioni['modalità di debug'], $opzioni['Impaginazione'], $opzioni['Linksperpage'],
									 $opzioni['Showcatlinkcount'], $opzioni['Showonecatmode'], $opzioni['Cattargetaddress'], $opzioni['Rewritepage'], $opzioni['Showinvisible'], $opzioni['' showuserlinks], $opzioni['' showcatonsearchresults]);
		}
		altro
return $ this->PrivateLinkLibraryCategories($ordine, $hide_if_empty, $table_width, $num_colonne, $catanchor, $flatlist, $CategoryList, $excludecategorylist, $showcategorydescheaders,
			$showonecatonly, $impostazioni, $loadingicon, $catlistdescpos, $modalità di debug, $paginatura, $linksperpage, $showcatlinkcount, $showonecatmode, $cattargetaddress,
			$rewritepage, $showinvisible, $showuserlinks, $showcatonsearchresults);

	}

	/*
	 * funzione LinkLibrary()
	 *
	 * inserito da Yannick Lefebvre
	 *
	 * Lista un'uscita di tutti i link, elencati per categoria, usando il
	 * impostazioni in $ wpdb->linkcategories e output come nidificata
	 * HTML lista non ordinata. Può anche inserire ancore per categorie
	 *
	 * parametri:
	 *   ordine ('Nome' default)  - Ordina collegare le categorie da 'nome' o 'id'. Quando è impostato su 'AdminSettings', utilizzerà i parametri impostati nel pannello di amministrazione Impostazioni.
	 *   hide_if_empty (di default vero)  - Supress messa vuote categorie di collegamenti
	 *   catanchor (di default vero) - Aggiunge nome ancore ai collegamenti CATEGORIE per essere in grado di collegarsi direttamente alle categorie
	 *   descrizione spettacolo (falso di default) - Collegamento viene visualizzato descrizioni. aggiunto per 2.1 dal momento che le categorie di link non hanno più questa impostazione
	 *   Sownotes (falso di default) - Mostra le note, oltre alla descrizione per i collegamenti (utile in quanto campo note è più grande di descrizione)
	 *   showrating (falso di default) - Collegamento viene visualizzato feedback. aggiunto per 2.1 dal momento che le categorie di link non hanno più questa impostazione
	 *   showupdated (falso di default) - Collegamento viene visualizzato data aggiornata. aggiunto per 2.1 dal momento che le categorie di link non hanno più questa impostazione
	 *   CategoryList (predefinito nullo) - Mostra solo link all'interno di categorie selezionate. Inserire il numero di categoria in una stringa separati da virgole
	 *   Visualizza immagini (falso di default) - Consente di visualizzare le immagini dei collegamenti. aggiunto per 2.1 dal momento che le categorie di link non hanno più questa impostazione
	 *   show_image_and_name (falso di default) - Mostra sia l'immagine e il nome, invece di solo uno o l'altro
	 *   use_html_tags (falso di default) - Usa tag HTML per la formattazione e non solo loro visualizzazione
	 *   show_rss (falso di default) - Visualizzare RSS URI se disponibili nella descrizione di collegamento
	 *   beforenote (predefinito <br />) - Codice per stampare tra la descrizione e le note
	 *   non seguire (falso di default) - tag aggiunge nofollow al link in uscita
	 *   excludecategorylist (predefinito nullo) - Specifica un elenco separato da virgole delle categorie che non devono essere visualizzati
	 *   afternote (predefinito nullo) - Codice / Testo da visualizzare dopo la nota
	 *   beforeitem (predefinito nullo) - Codice / Testo da visualizzare prima voce
	 *   afteritem (predefinito nullo) - Codice / Testo da visualizzare dopo il punto
	 *   beforedesc (predefinito nullo) - Codice / Testo da visualizzare prima della descrizione
	 *   afterdesc (predefinito nullo) - Codice / Testo da visualizzare dopo la descrizione
	 *   displayastable (falso di default) - Visualizzare gli elenchi di link come una tabella (quando il vero) o come una lista non ordinata (quando falso)
	 *   beforelink (predefinito nullo) - Codice / Testo da visualizzare prima del collegamento
	 *   afterlink (predefinito nullo) - Codice / Testo da visualizzare dopo il collegamento
	 *   showcolumnheaders (falso di default) - Mostra intestazioni delle colonne se il rendering in modalità tabella
	 *   linkheader (predefinito nullo) - Testo da visualizzare nella colonna di collegamento durante la visualizzazione come tabella
	 *   descheader (predefinito nullo) - Testo da visualizzare nella colonna disc durante la visualizzazione come tabella
	 *   notesheader (predefinito nullo) - Testo da visualizzare nella colonna note durante la visualizzazione come tabella
	 *   catlistwrappers (predefinito 1) - Numero di diversi insiemi di elementi alternati da collocare prima e dopo ogni sezione categoria collegamento
	 *   beforecatlist1 (predefinito nullo) - Primo elemento da porre prima di una sezione di collegamento categoria
	 *   beforecatlist2 (predefinito nullo) - Secondo elemento da porre prima di una sezione di collegamento categoria
	 *   beforecatlist3 (predefinito nullo) - Terzo elemento da porre prima di una sezione di collegamento categoria
	 *   divorheader (falso di default) - div uscita prima e dopo il nome gatto se falso, intestazione uscita tag se è vero
	 *   catnameoutput (linklistcatname di default) - Nome della div class o di dirigersi verso l'uscita
	 *   showrssicon (falso di default) - Uscita RSS URI se disponibile, e assegnare all'icona standard RSS
	 *   linkaddfrequency (predefinito 0) - Frequenza alla quale in più, prima e dopo l'uscita deve essere collocato intorno link
	 *   addbeforelink (predefinito nullo) - uscita aggiungere un elemento prima di collegamento
	 *   addafterlink (predefinito nullo) - uscita aggiungere un elemento dopo il collegamento
	 *   linktarget (predefinito nullo) - Specifica la finestra di destinazione di collegamento
	 *   showcategorydescheaders (falso di default) - Display Link descrizione di categoria durante la stampa lista delle categorie
	 *   showcategorydesclinks (falso di default) - Display Descrizione categoria collegamento durante la stampa link
	 *   showadmineditlinks (falso di default) - Display Edit collegamenti in uscita, se il login come amministratore
	 *   showonecatonly (falso di default) - Mostra solo una categoria alla volta
	 *   AJAXcatid (predefinito nullo) - ID categoria per AJAX sub-query
	 *   defaultsinglecat (predefinito nullo) - ID di prima categoria da visualizzare in modalità singola categoria
	 *   rsspreview (falso di default) - Aggiungere link di anteprima dopo indirizzi feed RSS
	 *   rssfeedpreviewcount(predefinito 3) - Numero di RSS elemento disponibile per anteprima alimentare
	 *   rssfeedinline (falso di default) - Spettacoli ultima elementi del feed in linea con elenco di link
	 *   rssfeedinlinecontent (falso di default) - Spettacoli ultima elementi del feed contenuti in linea con elenco di link
	 *   rssfeedinlinecount (predefinito 1) - Numero di RSS elementi da mostrare in linea alimentare
	 *   beforerss (predefinito nullo) - String per l'uscita prima del blocco RSS
	 *   afterrss (predefinito nullo) - String per l'uscita dopo il blocco RSS
	 *   rsscachedir (predefinito nullo) - Percorso per la libreria SimplePie per memorizzare le informazioni di cache RSS - Obsoleto
	 *   direzione (ASC di default) - direzione di ordinamento per collegamento Categorie
	 *   linkdirection (ASC di default) - direzione di ordinamento per i link all'interno di ogni categoria
	 *   ordine dei collegamenti ('Nome' default) - ordinamento dei collegamenti all'interno di ogni categoria
	 *   paginatura (falso di default) - Limita numero di link visualizzato per pagina
	 *   linksperpage (predefinito 5) - Numero di link da visualizzare per pagina in modalità paginazione
	 *   hidecategorynames (falso di default) - Mostra nomi delle categorie in lista Link Library
	 *   impostazioni (predefinito NULL) - Impostazione Set ID
	 *   showinvisible (falso di default) - link spettacoli che vengono impostati per essere invisibile
	 *   showdate (falso di default) - Determina è dovrebbe essere visualizzato collegamento data di aggiornamento
	 *   beforedate (predefinito nullo) - Codice / testo da visualizzare prima della data di collegamento
	 *   dopo la data (predefinito nullo) - Codice / Testo da displated dopo la data di collegamento
	 *   catdescpos (default 'giusto') - Posizione del collegamento categoria descrizione di uscita
	 *   showuserlinks (falso di default) - Specifica se inseriti dall'utente collegamenti dovrebbero essere mostrate immediatamente dopo la presentazione
	 *   rsspreviewwidth (predefinito 900) - Specifica la larghezza della finestra in cui vengono visualizzati RSS anteprime
	 *   rsspreviewheight (predefinito 700) - Specifica l'altezza della scatola in cui vengono visualizzati RSS anteprime
	 *   beforeimage (predefinito nullo) - Codice / testo da visualizzare link immagine prima
	 *   immagine persistente (predefinito nullo) - Codice / testo da visualizzare un'immagine link dopo
	 *   imagepos (predefinito beforename) - Posizione dell'immagine rispetto al nome del collegamento
	 *   Imageclass (predefinito nullo) - Classe che verrà assegnato alle immagini di collegamento
	 *   modalità di debug (falso di default) - Aggiunge informazioni di debug come commenti nell'output di WordPress per facilitare il debug remoto
	 *   usethumbshotsforimages (falso di default) - Usi Thumbshots.org per generare immagini per i link
	 *   showonecatmode (AJAX di default) - Metodo utilizzato per caricare le diverse categorie, quando mostrando solo uno alla volta
	 *   ordini goccia trazione (predefinito 1,2,3,4,5,6,7,8,9,10) - Ordine di sotto-sezioni di collegamento del display
	 *   displayweblink (default 'false')
	 *   sourceweblink (predefinito 'primaria')
	 *   Sowtelefone (default 'false')
	 *   sourcetelephone (predefinito 'primaria')
	 *   showemail (default 'false')
	 *   showlinkhits (falso di default)
	 *   beforeweblink (predefinito nullo)
	 *   afterweblink (predefinito nullo)
	 *   weblinklabel (predefinito nullo)
	 *   beforetelephone (predefinito nullo)
	 *   aftertelephone (predefinito nullo)
	 *   telephonelabel (predefinito nullo)
	 *   beforeemail (predefinito nullo)
	 *   afteremail (predefinito nullo)
	 *   etichetta e-mail (predefinito nullo)
	 *   beforelinkhits (predefinito nullo)
	 *   afterlinkhits (predefinito nullo)
	 *   emailcommand (predefinito nullo)
	 */

	funzione LinkLibrary($order = 'nome', $hide_if_empty = true, $catanchor = true,
									$showdescription = false, $shownotes = false, $Mostra classificazione = false,
									$showupdated = false, $CategoryList = '', $show_images = false,
									$show_image_and_name = false, $use_html_tags = false,
									$show_rss = false, $beforenote = '<br />', $nofollow = false, $excludecategorylist = '',
									$afternote = '', $beforeitem = '<in>', $afteritem = '</in>', $beforedesc = '', $afterdesc = '',
									$displayastable = false, $beforelink = '', $afterlink = '', $showcolumnheaders = false,
									$linkheader = '', $descheader = '', $notesheader = '', $catlistwrappers = 1, $beforecatlist1 = '',
									$beforecatlist2 = '', $beforecatlist3 = '', $divorheader = false, $catnameoutput = 'linklistcatname',
									$show_rss_icon = false, $linkaddfrequency = 0, $addbeforelink = '', $addafterlink = '', $destinazione del link = '',
									$showcategorydesclinks = false, $showadmineditlinks = true, $showonecatonly = false, $AJAXcatid = '',
									$defaultsinglecat = '', $rsspreview = false, $rsspreviewcount = 3, $rssfeedinline = false, $rssfeedinlinecontent = false,
									$rssfeedinlinecount = 1, $beforerss = '', $afterrss = '', $rsscachedir = NULL, $direzione = 'ASC',
									$linkdirection = 'ASC', $linkorder = 'name', $paginazione = false, $linksperpage = 5, $hidecategorynames = false,
									$settings = '', $showinvisible = false, $showdate = false, $beforedate = '', $alla data = '', $catdescpos = 'right',
									$showuserlinks = false, $rsspreviewwidth = 900, $rsspreviewheight = 700, $beforeimage = '', $residua = '', $imagepos = 'beforename',
									$Imageclass = '', $AJAXpageid = 1, $DebugMode = false, $usethumbshotsforimages = false, $showonecatmode = 'AJAX',
									$ordine dragdrop = '1,2,3,4,5,6,7,8,9,10', $ShowName = true, $displayweblink = 'false', $sourceweblink = 'primario', $showtelephone = 'false',
									$sourcetelephone = 'primario', $showemail = 'false', $showlinkhits = false, $beforeweblink = '', $afterweblink = '', $weblinklabel = '',
									$beforetelephone = '', $aftertelephone = '', $telephonelabel = '', $beforeemail = '', $afteremail = '', $label email = '', $beforelinkhits = '',
									$afterlinkhits = '', $emailcommand = '', $sourceimage = 'primario', $SourceName = 'primario', $thumbshotscid = '',
									$maxlinks = '', $beforelinkrating = '', $afterlinkrating = '', $showlargedescription = false, $beforelargedescription = '',
									$afterlargedescription = '', $featuredfirst = false, $shownameifnoimage = false, $enablelinkpopup = false, $popupwidth = 300, $popupheight = 400, $nocatonstartup = false, $linktitlecontent = 'nomecollegamento', $paginationposition = 'dopo', $uselocalimagesoverthumbshots = false, $showlinksonclick = false ) {

		Se (strpos($ordine, 'Impostazioni amministratore') !== false)
		{
			$settingsetid = substr($ordine, 13);
			$settingsetname = "LinkLibraryPP" . $settingsetid;
			$Opzioni = get_option($settingsetname);

			$genoptions = get_option('Link Library Generale');

			return $ this->PrivateLinkLibrary($opzioni['ordine'], $opzioni['Hide_if_empty'], $opzioni['Catanchor'], $opzioni['Mostra descrizione'], $opzioni["Sownotes'],
									  $opzioni['Showrating'], $opzioni['Showupdated'], $opzioni['CategoryList'], $opzioni['' show_images],
									  falso, $opzioni['' use_html_tags], $opzioni['Show_rss'], $opzioni['Beforenote'],
									  $opzioni['non seguire'], $opzioni['Excludecategorylist'], $opzioni['Afternote'], $opzioni['Beforeitem'],
									  $opzioni['Afteritem'], $opzioni['Beforedesc'], $opzioni['Afterdesc'], $opzioni['Displayastable'],
									  $opzioni['Beforelink'], $opzioni['Afterlink'], $opzioni['' showcolumnheaders], $opzioni['Linkheader'],
									  $opzioni["Descheader '], $opzioni['Notesheader'], $opzioni['' catlistwrappers], $opzioni['Beforecatlist1'],
									  $opzioni['Beforecatlist2'], $opzioni['Beforecatlist3'], $opzioni['Divorheader'], $opzioni['Catnameoutput'],
									  $opzioni['Show_rss_icon'], $opzioni["Linkaddfrequency '], $opzioni['Addbeforelink'], $opzioni['Addafterlink'],
									  $opzioni['Linktarget'], $opzioni['' showcategorydesclinks], $opzioni['Showadmineditlinks'], $opzioni['Showonecatonly'],
									  $AJAXcatid, $opzioni['Defaultsinglecat'], $opzioni['Rsspreview'], $opzioni['Rsspreviewcount'], $opzioni['Rssfeedinline'],
									  $opzioni['Rssfeedinlinecontent'], $opzioni['Rssfeedinlinecount'], $opzioni['Beforerss'], $opzioni['Afterrss'],
									  NULLO, $opzioni['direzione'], $opzioni['Linkdirection'], $opzioni['Ordine Link'],
									  $opzioni['Impaginazione'], $opzioni['Linksperpage'], $opzioni['' hidecategorynames], $settingsetid, $opzioni['Showinvisible'],
									  $opzioni['Showdate'], $opzioni['Beforedate'], $opzioni['Alla data'], $opzioni['Catdescpos'], $opzioni['' showuserlinks],
									  $opzioni['Rsspreviewwidth'], $opzioni['Rsspreviewheight'], $opzioni['Beforeimage'], $opzioni['Residua'], $opzioni['' imagepos],
									  $opzioni['Imageclass'], $AJAXpageid, $re-zioni['modalità di debug'], $opzioni['Usethumbshotsforimages'], 'AJAX', $opzioni['ordini DragDrop'],
									  $opzioni['ShowName'], $opzioni['Displayweblink'], $opzioni['Sourceweblink'], $opzioni["Sowtelefone '], $opzioni['Sourcetelephone'],
									  $opzioni['Showemail'], $opzioni['' Showlinkhits], $opzioni['Beforeweblink'], $opzioni['Afterweblink'], $opzioni['Weblinklabel'],
									  $opzioni['Beforetelephone'], $opzioni['Aftertelephone'], $opzioni['Telephonelabel'], $opzioni['Beforeemail'], $opzioni['Afteremail'],
									  $opzioni['Etichetta di e-mail'], $opzioni['' beforelinkhits], $opzioni['' afterlinkhits], $opzioni['Emailcommand'], $opzioni['Sourceimage'],
									  $opzioni['SourceName'], $re-zioni['Thumbshotscid'], $opzioni['' maxlinks], $opzioni['Beforelinkrating'],
									  $opzioni['Afterlinkrating'], $opzioni['Showlargedescriptio il'], $opzioni['Beforelargedescription'],
									  $opzioni['Afterlargedescription'], $opzioni['Featuredfirst'], $opzioni['Shownameifnoimage'], $opzioni['Enable_link_popup'],
                                      $opzioni['Popup_width'], $opzioni['Popup_height'], $opzioni['Nocatonstartup'], $opzioni['Link titleContent'], $opzioni["La posizione Impaginazione '], $opzioni['' uselocalimagesoverthumbshots], $opzioni['Showlinksonclick'] );
		}
		altro
return $ this->PrivateLinkLibrary($ordine, $hide_if_empty, $catanchor, $descrizione spettacolo, $Sownotes, $showrating,
									$showupdated, $CategoryList, $show_images, falso, $use_html_tags,
									$show_rss, $beforenote, $non seguire, $excludecategorylist, $afternote, $beforeitem, $afteritem,
									$beforedesc, $afterdesc, $displayastable, $beforelink, $afterlink, $showcolumnheaders,
									$linkheader, $descheader, $notesheader, $catlistwrappers, $beforecatlist1,
									$beforecatlist2, $beforecatlist3, $divorheader, $catnameoutput, $show_rss_icon,
									$linkaddfrequency, $addbeforelink, $addafterlink, $linktarget, $showcategorydesclinks, $showadmineditlinks,
									$showonecatonly, '', $defaultsinglecat, $rsspreview, $rsspreviewcount, $rssfeedinline, $rssfeedinlinecontent, $rssfeedinlinecount,
									$beforerss, $afterrss, NULLO, $direzione, $linkdirection, $ordine dei collegamenti,
									$paginatura, $linksperpage, $hidecategorynames, $impostazioni, $showinvisible, $showdate, $beforedate, $dopo la data, $catdescpos,
									$showuserlinks, $rsspreviewwidth, $rsspreviewheight, $beforeimage, $immagine persistente, $imagepos, $Imageclass, '', $modalità di debug,
									$usethumbshotsforimages, $showonecatmode, $ordini goccia trazione, $ShowName, $displayweblink, $sourceweblink, $Sowtelefone,
									$sourcetelephone, $showemail, $showlinkhits, $beforeweblink, $afterweblink, $weblinklabel, $beforetelephone, $aftertelephone,
									$telephonelabel, $beforeemail, $afteremail, $etichetta e-mail, $beforelinkhits, $afterlinkhits, $emailcommand, $sourceimage, $SourceName,
									$thumbshotscid, $maxlinks, $beforelinkrating, $afterlinkrating, $lo showlargedescriptio, $beforelargedescription,
									$afterlargedescription, $featuredfirst, $shownameifnoimage, $enablelinkpopup, $popupwidth, $popupheight, $nocatonstartup, $Link titleContent, $posizione di impaginazione, $uselocalimagesoverthumbshots, $showlinksonclick );
	}

	/********************************************** Funzione per processo 


 codice corto *********************************************/

	funzione link_library_cats_func($atts) {
		$categorylistoverride = '';
		$excludecategoryoverride = '';
		$settings = '';

		estratto(shortcode_atts(Vettore(
			= 'Categorylistoverride'> '',
			'Excludecategoryoverride' => '',
			'Impostazioni' => ''
		), $atts));

		Se ($impostazioni == '')
		{
			$settings = 1;
			$Opzioni = get_option('LinkLibraryPP1');
		}
		altro
		{
			$settingsname = 'LinkLibraryPP' . $impostazioni;
			$Opzioni = get_option($settingsname);
		}

		Se ($categorylistoverride != '')
			$selectedcategorylist = $ categorylistoverride;
		altro
$ Selectedcategorylist = $ options['CategoryList'];

		Se ($excludecategoryoverride != '')
			$excludedcategorylist = $ excludecategoryoverride;
		altro
$ Excludedcategorylist = $ options['Excludecategorylist'];

		$genoptions = get_option('Link Library Generale');

		return $ this->PrivateLinkLibraryCategories($opzioni['ordine'], $opzioni['Hide_if_empty'], $opzioni['Table_width'], $opzioni['' num_colonne], $opzioni['Catanchor'], $opzioni['Flatlist'],
									 $selectedcategorylist, $excludedcategorylist, $opzioni['' showcategorydescheaders], $opzioni['Showonecatonly'], $impostazioni,
									 $opzioni['Loadingicon'], $opzioni['Catlistdescpos'], $re-zioni['modalità di debug'], $opzioni['Impaginazione'], $opzioni['Linksperpage'],
									 $opzioni['Showcatlinkcount'], $opzioni['Showonecatmode'], $opzioni['Cattargetaddress'], $opzioni['Rewritepage'],
									 $opzioni['Showinvisible'], $opzioni['' showuserlinks], $opzioni['' showcatonsearchresults]);
	}

	/********************************************** Funzione per processo 
codice corto *********************************************/ funzione link_library_search_func($atts) { $settings = ''; estratto(shortcode_atts(Vettore( 'Impostazioni' => '' ), $atts)); Se ($impostazioni == '') $Opzioni = get_option('LinkLibraryPP1'); altro { $settingsname = 'LinkLibraryPP' . $impostazioni; $Opzioni = get_option($settingsname); } return $ this->PrivateLinkLibrarySearchForm($opzioni['Searchlabel'], $opzioni['Searchresultsaddress']); } /********************************************** Funzione per processo [link-library-add-link] codice corto *********************************************/ funzione link_library_insert_link( $linkdata, $wp_error = false, $addlinknoaddress = false) { $ Wpdb globale; $link_name = ''; $LINK_URL = ''; $default = array( = 'Link_id'> 0, = 'Link_name'> '', = 'LINK_URL'> '', 'Link_rating' => 0 ); $linkdata = wp_parse_args( $linkdata, $default ); $linkdata = sanitize_bookmark( $linkdata, 'Db' ); estratto( stripslashes_deep( $linkdata ), EXTR_SKIP ); $aggiornamento = false; Se ( !vuoto( $link_id ) ) $aggiornamento = true; Se ( tagliare( $link_name ) == '' ) { Se ( tagliare( $LINK_URL ) != '' ) { $link_name = $ LINK_URL; } altro { ritorno 0; } } Se ($addlinknoaddress == false) { Se ( tagliare( $LINK_URL ) == '' ) ritorno 0; } Se ( vuoto( $link_rating ) ) $link_rating = 0; Se ( vuoto( $link_image ) ) $link_image = ''; Se ( vuoto( $link_target ) ) $link_target = ''; Se ( vuoto( $link_visible ) ) $= Link_visible 'Y'; Se ( vuoto( $link_owner ) ) $link_owner = get_current_user_id(); Se ( vuoto( $link_notes ) ) $link_notes = ''; Se ( vuoto( $link_description ) ) $link_description = ''; Se ( vuoto( $link_rss ) ) $link_rss = ''; Se ( vuoto( $link_rel ) ) $link_rel = ''; // Assicurarsi che abbiamo impostato una categoria valida Se ( ! è impostato( $link_category ) || 0 count ==( $link_category ) || !is_array( $link_category ) ) { $link_category = array( get_option( 'Default_link_category' ) ); } Se ( $aggiornare ) { Se ( falsa === $ wpdb->aggiornare( $wpdb->link, compatto('LINK_URL', 'Link_name', 'Link_image', 'Link_target', 'Link_description', 'Link_visible', 'Link_rating', 'Link_rel', '' link_notes, 'Link_rss'), compatto('Link_id') ) ) { Se ( $wp_error ) return new WP_Error( 'Db_update_error', __( 'Impossibile aggiornare collegamento nel database', 'Link-library' ), $wpdb->LAST_ERROR ); altro ritorno 0; } } altro { Se ( falsa === $ wpdb->inserire( $wpdb->link, compatto('LINK_URL', 'Link_name', 'Link_image', 'Link_target', 'Link_description', 'Link_visible', 'Link_owner', 'Link_rating', 'Link_rel', '' link_notes, 'Link_rss') ) ) { Se ( $wp_error ) return new WP_Error( 'Db_insert_error', __( 'Impossibile inserire link nel database', 'Link-library' ), $wpdb->LAST_ERROR ); altro ritorno 0; } $link_id = (int) $wpdb->insert_id; } wp_set_link_cats( $link_id, $link_category ); Se ( $aggiornare ) do_action( 'EDIT_LINK', $link_id ); altro do_action( 'Add_link', $link_id ); clean_bookmark_cache( $link_id ); return $ link_id; } funzione link_library_addlink_func($atts, $soddisfare, $codice) { $settings = ''; $categorylistoverride = ''; $excludecategoryoverride = ''; estratto(shortcode_atts(Vettore( 'Impostazioni' => '', = 'Categorylistoverride'> '', 'Excludecategoryoverride' => '' ), $atts)); Se ($impostazioni == '') $settings = 1; $settingsname = 'LinkLibraryPP' . $impostazioni; $Opzioni = get_option($settingsname); $genoptions = get_option('Link Library Generale'); Se ($categorylistoverride != '') $selectedcategorylist = $ categorylistoverride; elseif ($opzioni['Addlinkcatlistoverride'] != '') $selectedcategorylist = $ options['Addlinkcatlistoverride']; altro $ Selectedcategorylist = $ options['CategoryList']; Se ($excludecategoryoverride != '') $excludedcategorylist = $ excludecategoryoverride; altro $ Excludedcategorylist = $ options['Excludecategorylist']; ritorno ( è impostato( $outputMessage ) ? $outputMessage : '') . $Questo->PrivateLinkLibraryAddLinkForm($selectedcategorylist, $excludedcategorylist, $opzioni['Addnewlinkmsg'], $opzioni['Linknamelabel'], $opzioni["Linkaddrlabel '], $opzioni['Linkrsslabel'], $opzioni['Linkcatlabel'], $opzioni['Linkdesclabel'], $opzioni['Linknoteslabel'], $opzioni['Addlinkbtnlabel'], $opzioni['Hide_if_empty'], $opzioni['Showaddlinkrss'], $opzioni['Showaddlinkdesc'], $opzioni['Showaddlinkcat'], $opzioni['' Showaddlinknotes], $opzioni['Addlinkreqlogin'], $re-zioni['modalità di debug'], $opzioni['Addlinkcustomcat'], $opzioni['Linkcustomcatlabel'], $opzioni['Linkcustomcatlistentry'], $opzioni['Showaddlinkreciprocal'], $opzioni['Linkreciprocallabel'], $opzioni['Showaddlinksecondurl'], $opzioni["Linksecondurllabel '], $opzioni['Showaddlinktelephone'], $opzioni['Linktelephonelabel'], $opzioni['Showaddlinkemail'], $opzioni['linkemaillabel'], $opzioni['Showcaptcha'], (è impostato($captureddata) ? $captureddata : nullo), $opzioni['Linksubmitternamelabel'], $opzioni['Showlinksubmittername'], $opzioni['Linksubmitteremaillabel'], $opzioni['Showaddlinksubmitteremail'], $opzioni['Linksubmittercommentlabel'], $opzioni['Showlinksubmittercomment'], $re-zioni['Linksubmissionthankyouurl'], $opzioni['Addlinkcatlistoverride'], $opzioni['Showcustomcaptcha'], $opzioni['Customcaptchaquestion'], $opzioni['Linklargedesclabel'], $opzioni['Showuserlargedescription'], $opzioni['' usetextareaforusersubmitnotes], $impostazioni, $codice); } /********************************************** Funzione per processo codice corto *********************************************/ funzione link_library_func($atts) { $settings = ''; $notesoverride = ''; $descoverride = ''; $rssoverride = ''; $categorylistoverride = ''; $excludecategoryoverride = ''; $tableoverride = ''; estratto(shortcode_atts(Vettore( = 'Categorylistoverride'> '', 'Excludecategoryoverride' => '', 'Notesoverride' => '', = 'Descoverride'> '', 'Rssoverride' => '', = 'Tableoverride'> '', 'Impostazioni' => '' ), $atts)); Se ($impostazioni == '') { $settings = 1; $Opzioni = get_option('LinkLibraryPP1'); } altro { $settingsname = 'LinkLibraryPP' . $impostazioni; $Opzioni = get_option($settingsname); } Se ($notesoverride != '') $selectedshownotes = $ notesoverride; altro $ Selectedshownotes = $ options["Sownotes']; Se ($descoverride != '') $selectedshowdescription = $ descoverride; altro $ Selectedshowdescription = $ options['Mostra descrizione']; Se ($rssoverride != '') $selectedshowrss = $ rssoverride; altro $ Selectedshowrss = $ options['Show_rss']; Se ($categorylistoverride != '') $selectedcategorylist = $ categorylistoverride; altro $ Selectedcategorylist = $ options['CategoryList']; Se ($excludecategoryoverride != '') $excludedcategorylist = $ excludecategoryoverride; altro $ Excludedcategorylist = $ options['Excludecategorylist']; Se ($tableoverride != '') $overridedisplayastable = $ tableoverride; altro $ Overridedisplayastable = $ options['Displayastable']; $genoptions = get_option('Link Library Generale'); $linklibraryoutput = ""; Se (floatval($re-zioni['SchemaVersion']) < "4.6") { $Questo->ll_install(); $genoptions = get_option('Link Library Generale'); Se ($impostazioni == '') $Opzioni = get_option('LinkLibraryPP1'); altro { $settingsname = 'LinkLibraryPP' . $impostazioni; $Opzioni = get_option($settingsname); } } Se ($re-zioni['modalità di debug'] == true) $linklibraryoutput. = "n<!-- Biblioteca Info Impostazioni:" . print_r($opzioni, VERO) . "-->n"; $linklibraryoutput. = $ this->PrivateLinkLibrary( $opzioni['ordine'], $opzioni['Hide_if_empty'], $opzioni['Catanchor'], $selectedshowdescription, $selectedshownotes, $opzioni['Showrating'], $opzioni['Showupdated'], $selectedcategorylist, $opzioni['' show_images], falso, $opzioni['' use_html_tags], $opzioni['Show_rss'], $opzioni['Beforenote'], $opzioni['non seguire'], $excludedcategorylist, $opzioni['Afternote'], $opzioni['Beforeitem'], $opzioni['Afteritem'], $opzioni['Beforedesc'], $opzioni['Afterdesc'], $overridedisplayastable, $opzioni['Beforelink'], $opzioni['Afterlink'], $opzioni['' showcolumnheaders], $opzioni['Linkheader'], $opzioni["Descheader '], $opzioni['Notesheader'], $opzioni['' catlistwrappers], $opzioni['Beforecatlist1'], $opzioni['Beforecatlist2'], $opzioni['Beforecatlist3'], $opzioni['Divorheader'], $opzioni['Catnameoutput'], $opzioni['Show_rss_icon'], $opzioni["Linkaddfrequency '], $opzioni['Addbeforelink'], $opzioni['Addafterlink'], $opzioni['Linktarget'], $opzioni['' showcategorydesclinks], $opzioni['Showadmineditlinks'], $opzioni['Showonecatonly'], '', $opzioni['Defaultsinglecat'], $opzioni['Rsspreview'], $opzioni['Rsspreviewcount'], $opzioni['Rssfeedinline'], $opzioni['Rssfeedinlinecontent'], $opzioni['Rssfeedinlinecount'], $opzioni['Beforerss'], $opzioni['Afterrss'], NULLO, $opzioni['direzione'], $opzioni['Linkdirection'], $opzioni['Ordine Link'], $opzioni['Impaginazione'], $opzioni['Linksperpage'], $opzioni['' hidecategorynames], $impostazioni, $opzioni['Showinvisible'], $opzioni['Showdate'], $opzioni['Beforedate'], $opzioni['Alla data'], $opzioni['Catdescpos'], $opzioni['' showuserlinks], $opzioni['Rsspreviewwidth'], $opzioni['Rsspreviewheight'], $opzioni['Beforeimage'], $opzioni['Residua'], $opzioni['' imagepos], $opzioni['Imageclass'], '', $re-zioni['modalità di debug'], $opzioni['Usethumbshotsforimages'], $opzioni['Showonecatmode'], $opzioni['ordini DragDrop'], $opzioni['ShowName'], $opzioni['Displayweblink'], $opzioni['Sourceweblink'], $opzioni["Sowtelefone '], $opzioni['Sourcetelephone'], $opzioni['Showemail'], $opzioni['' Showlinkhits], $opzioni['Beforeweblink'], $opzioni['Afterweblink'], $opzioni['Weblinklabel'], $opzioni['Beforetelephone'], $opzioni['Aftertelephone'], $opzioni['Telephonelabel'], $opzioni['Beforeemail'], $opzioni['Afteremail'], $opzioni['Etichetta di e-mail'], $opzioni['' beforelinkhits], $opzioni['' afterlinkhits], $opzioni['Emailcommand'], $opzioni['Sourceimage'], $opzioni['SourceName'], $re-zioni['Thumbshotscid'], $opzioni['' maxlinks], $opzioni['Beforelinkrating'], $opzioni['Afterlinkrating'], $opzioni['Showlargedescriptio il'], $opzioni['Beforelargedescription'], $opzioni['Afterlargedescription'], $opzioni['Featuredfirst'], $opzioni['Shownameifnoimage'], ( è impostato($opzioni['Enable_link_popup']) ? $opzioni['Enable_link_popup'] : falso ), ( è impostato($opzioni['Popup_width']) ? $opzioni['Popup_width'] : 300 ), ( è impostato( $opzioni['Popup_height'] ) ? $opzioni['Popup_height'] : 400 ), $opzioni['Nocatonstartup'], $opzioni['Link titleContent'], ( è impostato( $opzioni["La posizione Impaginazione '] ) ? $opzioni["La posizione Impaginazione '] : 'DOPO' ), $opzioni['' uselocalimagesoverthumbshots], $opzioni['Showlinksonclick'] ); return $ linklibraryoutput; } conditionally_add_scripts_and_styles funzione($messaggi){ Se (vuoto($messaggi)) return $ messaggi; $load_jquery = false; $load_thickbox = false; $load_style = false; $ Testvar globale; $genoptions = get_option('Link Library Generale'); Se (is_admin()) { $load_jquery = false; $load_thickbox = false; $load_style = false; } altro { per ciascuno ($i post come $ postale) { $continuesearch = true; $searchpos = 0; $settingsetids = array(); mentre ($continuesearch) { $linklibrarypos = stripos($inviare->POST_CONTENT, 'Link-library', $searchpos); Se ($linklibrarypos == false) { $linklibrarypos = stripos($inviare->POST_CONTENT, 'Link-library]', $searchpos); Se ($linklibrarypos == false) Se (stripos($inviare->POST_CONTENT, 'Link-library-gatti) || stripos($inviare->POST_CONTENT, 'Link-library-AddLink')) $load_style = true; } $continuesearch = $ linklibrarypos; Se ($continuesearch) { $load_style = true; $load_jquery = true; $shortcodeend = stripos($inviare->POST_CONTENT, ']', $linklibrarypos); Se ($shortcodeend) $searchpos = $ shortcodeend; altro $ Searchpos = $ linklibrarypos + 1; Se ($shortcodeend) { $settingconfigpos = stripos($inviare->POST_CONTENT, 'Impostazioni =', $linklibrarypos); Se ($settingconfigpos && $settingconfigpos < $shortcodeend) { $settingset = substr($inviare->POST_CONTENT, $settingconfigpos + 9, $shortcodeend - $settingconfigpos - 9); $settingsetids[] = $ Settingset; } else if (contare($settingsetids) == 0) { $settingsetids[] = 1; } } } } } Se ($settingsetids) { per ciascuno ($settingsetids come $ settingsetid) { $settingsname = 'LinkLibraryPP' . $settingsetid; $Opzioni = get_option($settingsname); Se ( $opzioni['Showonecatonly'] ) { $load_jquery = true; } Se ( $opzioni['Rsspreview'] || ( è impostato( $opzioni['Enable_link_popup'] ) && $opzioni['Enable_link_popup'] ) ) { $load_thickbox = true; } Se ($opzioni['Publishrssfeed'] == true) { $ rss_settings globali; $rss_settings = $ settingsetid; } } } Se ($re-zioni['Includescriptcss'] != '') { $= PageList esplodono (',', $re-zioni['Includescriptcss']); $loadscripts = false; per ciascuno($pagelist da $ pageid) { Se ( ( $pageid == 'fronte' && is_front_page() ) || ( $pageid == 'categoria' && is_category() ) || ( $pageid == 'all') || ( is_page( $pageid ) ) ) { $load_jquery = true; $load_thickbox = true; $load_style = true; } } } } $ Llstylesheet globale; Se ( $load_style ) { $llstylesheet = true; } altro { $llstylesheet = false; } Se ( $load_jquery ) { wp_enqueue_script( 'Jquery' ); } Se ( $load_thickbox ) { wp_enqueue_script( 'Thickbox' ); wp_enqueue_style ( 'Thickbox' ); } return $ messaggi; } funzione ll_template_redirect( $modello ) { Se ( !vuoto( $_INVIARE['Link_library_user_link_submission'] ) ) { require_once plugin_dir_path( __FILE__ ) . 'Usersubmission.php'; link_library_process_user_submission( $Questo ); ritorno ''; } else if ( !vuoto( $_OTTENERE['Link_library_rss_feed'] ) ) { require_once plugin_dir_path( __FILE__ ) . 'Rssfeed.php'; link_library_generate_rss_feed(); ritorno ''; } else if ( !vuoto( $_OTTENERE['Link_library_popup_content'] ) ) { require_once plugin_dir_path( __FILE__ ) . 'Linkpopup.php'; link_library_popup_content( $Questo ); ritorno ''; } else if ( !vuoto( $_OTTENERE['Link_library_rss_preview'] ) ) { require_once plugin_dir_path( __FILE__ ) . 'Rsspreview.php'; link_library_generate_rss_preview( $Questo ); ritorno ''; } altro { return $ template; } } funzione link_library_ajax_tracker() { require_once plugin_dir_path( __FILE__ ) . 'Tracker.php'; link_library_process_ajax_tracker( $Questo ); } funzione link_library_ajax_update() { require_once plugin_dir_path( __FILE__ ) . 'Link-library-ajax.php'; link_library_render_ajax( $Questo ); } funzione link_library_generate_image() { $ My_link_library_plugin_admin globale; Se ( vuoto( $my_link_library_plugin_admin ) ) { richiedono plugin_dir_path( __FILE__ ) . 'Link-library-admin.php'; $my_link_library_plugin_admin = new link_library_plugin_admin(); } richiedono plugin_dir_path( __FILE__ ) . 'Link-library-image-generator.php'; link_library_ajax_image_generator( $my_link_library_plugin_admin ); } } $ My_link_library_plugin globale; $my_link_library_plugin = new link_library_plugin(); ?>