', $output); } } } if (get_option('plp_add_spans_at_start_of_anchors') == 'on') { // Add spans to linked Pages $output = preg_replace('``', '', $output); // Add spans to unlinked Pages $link_link_data = mysql_query("SELECT post_title FROM " . $posts_table . " WHERE link_link = '0' AND post_status = 'publish'"); while ($row = mysql_fetch_assoc($link_link_data)) { extract($row); $post_title = qTrans_compatibility(wptexturize($post_title)); $output = str_replace($post_title, '' . $post_title, $output); } if (get_option('plp_unlink_current') == 'on' && get_option('plp_unlink_js') != 'on') { global $post; $current_page_data = mysql_query("SELECT post_title FROM " . $posts_table . " WHERE ID = '" . $post->ID . "' AND post_type = 'page'"); while ($row = mysql_fetch_assoc($current_page_data)) { extract($row); $post_title = qTrans_compatibility(wptexturize($post_title)); $output = str_replace($post_title, '' . $post_title, $output); } } } if (get_option('plp_add_spans_inside_anchors') == 'on') { // Add spans to linked Pages $output = preg_replace('``', '', $output); $output = preg_replace('``', '', $output); // Add spans to unlinked Pages $link_link_data = mysql_query("SELECT post_title FROM " . $posts_table . " WHERE link_link = '0' AND post_status = 'publish'"); while ($row = mysql_fetch_assoc($link_link_data)) { extract($row); $post_title = qTrans_compatibility(wptexturize($post_title)); $output = str_replace($post_title, '' . $post_title . '', $output); } if (get_option('plp_unlink_current') == 'on' && get_option('plp_unlink_js') != 'on') { global $post; $current_page_data = mysql_query("SELECT post_title FROM " . $posts_table . " WHERE ID = '" . $post->ID . "' AND post_type = 'page'"); while ($row = mysql_fetch_assoc($current_page_data)) { extract($row); $post_title = qTrans_compatibility(wptexturize($post_title)); $output = str_replace($post_title, '' . $post_title . '', $output); } } } $alt_link_text_data = mysql_query("SELECT post_title, alt_link_text FROM " . $posts_table . " WHERE alt_link_text IS NOT NULL AND post_status = 'publish'"); while ($row = mysql_fetch_assoc($alt_link_text_data)) { extract($row); $post_title = qTrans_compatibility(wptexturize($post_title)); $output = str_replace('>' . $post_title . '<', '>' . $alt_link_text . '<', $output); } $custom_link_class_data = mysql_query("SELECT ID, custom_link_class FROM " . $posts_table . " WHERE custom_link_class IS NOT NULL AND post_status = 'publish'"); while ($row = mysql_fetch_assoc($custom_link_class_data)) { extract($row); $output = str_replace('page-item-' . $ID . '"', $custom_link_class . ' page-item-' . $ID . '"', $output); // Once for pages where page-item-x is the final class... $output = str_replace('page-item-' . $ID . ' ', $custom_link_class . ' page-item-' . $ID . ' ', $output); // ...and once for pages where it isn't } $redirect_url_data = mysql_query("SELECT ID, redirect_url FROM " . $posts_table . " WHERE redirect_url IS NOT NULL AND post_status = 'publish'"); while ($row = mysql_fetch_assoc($redirect_url_data)) { extract($row); $page_url = get_permalink($ID); $output = str_replace($page_url . '"', $redirect_url . '"', $output); } return $output; } function qTrans_compatibility($post_title) { if (function_exists(qtrans_split)) { $post_title = qtrans_split($post_title); //explode the string in a array $_array_[lang_code]=content $post_title = $post_title[qtrans_getLanguage()]; //get the content from array with actual language } return $post_title; } ?> Men's Clothing Newtown PA, Mens Clothing Bucks County PA, Men's Clothier Bucks County PA