__( 'Primary Navigation', 'CYSY Framework 3' ),
) );
// To display custom nav in theme use:
//*** 'your_navigation_container', 'theme_location' => 'primary' ) ); ? >
//.................. GIVE CUSTOM NAV MENU ABILITY FOR DESCRIPTIONS .................. //
// CYSY Framework 3 Copyright(c) 2012-2013 - CYber SYtes, Inc. All Rights Reserved
// To apply this to a theme simply add an item to the wp_nav_menu array like so:
// 'navigation',
// 'theme_location' => 'primary-menu',
// 'walker' => $walker
// ));
// ? >
class My_Walker extends Walker_Nav_Menu
{
function start_el(&$output, $item, $depth, $args) {
global $wp_query;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = $value = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );
$class_names = '';
$output .= $indent . ' id="li-comment-">
__( 'Primary Widget Area', 'CYSY Framework 3' ),
'id' => 'primary-widget-area',
'description' => __( 'The primary widget area', 'CYSY Framework 3' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
) );
// Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
register_sidebar( array(
'name' => __( 'Secondary Widget Area', 'CYSY Framework 3' ),
'id' => 'secondary-widget-area',
'description' => __( 'The secondary widget area', 'CYSY Framework 3' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
) );
/**
* Removes the default styles that are packaged with the Recent Comments widget.
*
* To override this in a child theme, remove the filter and optionally add your own
* function tied to the widgets_init action hook.
*
*/
function framework_remove_recent_comments_style() {
global $wp_widget_factory;
remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
}
add_action( 'widgets_init', 'framework_remove_recent_comments_style' );
if ( ! function_exists( 'framework_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post—date/time and author.
*
*/
function framework_posted_on() {
printf( __( 'Posted on %2$s by %3$s', 'CYSY Framework 3' ),
'meta-prep meta-prep-author',
sprintf( '%3$s',
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
),
sprintf( '%3$s',
get_author_posts_url( get_the_author_meta( 'ID' ) ),
sprintf( esc_attr__( 'View all posts by %s', 'CYSY Framework 3' ), get_the_author() ),
get_the_author()
)
);
}
endif;
if ( ! function_exists( 'framework_posted_in' ) ) :
/**
* Prints HTML with meta information for the current post (category, tags and permalink).
*
*/
function framework_posted_in() {
// Retrieves tag list of current post, separated by commas.
$tag_list = get_the_tag_list( '', ', ' );
if ( $tag_list ) {
$posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'CYSY Framework 3' );
} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
$posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'CYSY Framework 3' );
} else {
$posted_in = __( 'Bookmark the permalink.', 'CYSY Framework 3' );
}
// Prints the string, replacing the placeholders.
printf(
$posted_in,
get_the_category_list( ', ' ),
$tag_list,
get_permalink(),
the_title_attribute( 'echo=0' )
);
}
endif;
// Pull an image URL from the media gallery
function sp_get_image($num = 0) {
global $post;
$children = get_children(array(
'post_parent' => $post->ID,
'post_type' => 'attachment',
'post_mime_type' => 'image',
'orderby' => 'menu_order',
'order' => 'ASC'
));
$count = 0;
foreach ((array)$children as $key => $value) {
$images[$count] = $value;
$count++;
}
if(isset($images[$num]))
return wp_make_link_relative(wp_get_attachment_url($images[$num]->ID));
else
return false;
}
/********************* THESE LINES OF CODE ARE FOR THE .htaccess file
The first two lines of code are used to allow you to include .php files from outside of the /wordpress/ directory.
The next two lines of code are used for increasing the upload sizes for media to wordpress.
*** These lines below need to be added to the top of the .htaccess file that is in the root of the site.
php_value allow_url_fopen on
php_value allow_url_include on
php_value post_max_size 8M
php_value upload_max_filesize 8M
*/
/*** THIS MODIFIES THE ADMIN LOGIN SCREEN LOGO TO DISPLAY A
CUSTOM LOGO FROM THE THEME DIRECTORY.
add_filter( 'login_headerurl', 'namespace_login_headerurl' );
/**
* Replaces the login header logo URL
*
* @param $url
*/
function namespace_login_headerurl( $url ) {
$url = home_url( '/' );
return $url;
}
add_filter( 'login_headertitle', 'namespace_login_headertitle' );
/**
* Replaces the login header logo title
*
* @param $title
*/
function namespace_login_headertitle( $title ) {
$title = get_bloginfo( 'name' );
return $title;
}
add_action( 'login_head', 'namespace_login_style' );
/**
* Replaces the login header logo
*/
function namespace_login_style() {
echo '';
}
// remove version info from head and feeds
// for security buff
function complete_version_removal() {
return '';
}
add_filter('the_generator', 'complete_version_removal');
// Reformatts dashboard to eliminate a lot of the annoying things our clients see first off.
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');
function my_custom_dashboard_widgets() {
global $wp_meta_boxes;
//Right Now - Comments, Posts, Pages at a glance
//unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
//Recent Comments
//unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
//Incoming Links
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
//Plugins - Popular, New and Recently updated Wordpress Plugins
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
//Wordpress Development Blog Feed
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
//Other Wordpress News Feed
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
//Quick Press Form
//unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
//Recent Drafts List
//unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);
}
// remove unncessary header info in the of our sites
function remove_header_info() {
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'start_post_rel_link');
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'adjacent_posts_rel_link');
}
add_action('init', 'remove_header_info');
// remove extra css that recent comments widget injects
function remove_recent_comments_style() {
global $wp_widget_factory;
remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style'));
}
add_action('widgets_init', 'remove_recent_comments_style');
// this changes the footer in the admin section of wordpress
function remove_footer_admin () {
echo 'Site Developed by: CYber SYtes, Inc. Web SYtes by Design';
}
add_filter('admin_footer_text', 'remove_footer_admin');
//this line of code removes the error messages above login screen if incorrect login is entered.
// basically removes information hackers could use to know if they're having success.
add_filter('login_errors',create_function('$a', "return null;"));
//remove please update now link for clients, but keeps it live for admins
if ( !current_user_can( 'edit_users' ) ) {
remove_action('admin_notices','update_nag',3);
}
//remove links menu tab from wordpress installs, because we don't use them.
function sb_remove_admin_menus(){
if ( function_exists('remove_menu_page') ) {
remove_menu_page('link-manager.php'); // Remove the Links tab by providing its slug
}
}
add_action('admin_menu', 'sb_remove_admin_menus');
?>
1.0ParsCo Constructionhttps://www.pars-co.netNew Scholarship For PSC Students Announced By Builderrich600338<blockquote class="wp-embedded-content" data-secret="yZnA4MBitb"><a href="https://www.pars-co.net/pensacolascholarshipconstruction/">New Scholarship For PSC Students Announced By Builder</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://www.pars-co.net/pensacolascholarshipconstruction/embed/#?secret=yZnA4MBitb" width="600" height="338" title="“New Scholarship For PSC Students Announced By Builder” — ParsCo Construction" data-secret="yZnA4MBitb" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script type="text/javascript">
/* <![CDATA[ */
/*! This file is auto-generated */
!function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document);
/* ]]> */
</script>
https://www.pars-co.net/wp-content/uploads/2021/08/Pensacola-State-College.jpg600337