Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
40c961c3a2
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
71 lines (61 sloc) 2.92 KB
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 2 );
function theme_enqueue_styles() {
wp_enqueue_style( 'sis-fonts', 'https://fonts.googleapis.com/css?family=PT+Sans:700', array('cs-style') );
wp_enqueue_style( 'sis-css', get_stylesheet_directory_uri() . '/css/sistertalk.css', array('cs-style') );
wp_enqueue_script( 'sis-js', get_stylesheet_directory_uri() . '/sistertalk.js', array( 'cs' ));
wp_enqueue_script( 'st-navigation', get_stylesheet_directory_uri() . '/navigation.js', array( 'cs-bootstrap-js'), '20120206', true );
}
add_action( 'wp_enqueue_scripts', 'theme_dequeue_styles', 999 );
function theme_dequeue_styles() {
wp_dequeue_script( 'cs-navigation' );
}
function enqueue_mobile_js(){
wp_enqueue_script( 'sis-mobile-js', get_stylesheet_directory_uri() . '/sistertalk-mobile.js');
}
add_action( 'init', 'enqueue_mobile_js', 0 );
function show_people(){
if ( !is_plugin_active('uc-people/uc-people.php') ) {
activate_plugin('uc-people/uc-people.php');
}
};
//add_action( 'after_switch_theme', 'show_people' );
function hide_people(){
if ( is_plugin_active('uc-people/uc-people.php') ) {
deactivate_plugins('uc-people/uc-people.php');
}
};
//add_action( 'switch_theme', 'hide_people' );
function hide_uup(){
global $wp_themes;
if ( is_plugin_active('uup/uup.php') ) {
remove_shortcode('uc_uup');
}
};
//add_action( 'init', 'hide_uup' );
function tfc_remove_page_templates( $templates ) {
unset( $templates['page-user-profile.php'] );
unset( $templates['user-index-table.php'] );
unset( $templates['user-index.php'] );
return $templates;
}
add_filter( 'theme_page_templates', 'tfc_remove_page_templates' );
add_filter( 'wp_head' , 'addToHead' );
function addToHead() {
echo '<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=0">
<meta http-equiv="cleartype" content="on">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="SisterTalk">
<meta name="msapplication-TileImage" content="'. get_stylesheet_directory_uri() .'/img/144.png">
<meta name="msapplication-TileColor" content="#ffffff">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="'. get_stylesheet_directory_uri() .'/img/144.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="'. get_stylesheet_directory_uri() .'/img/114.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="'. get_stylesheet_directory_uri() .'/img/72.png">
<link rel="apple-touch-icon-precomposed" href="'. get_stylesheet_directory_uri() .'/57.png">
<link rel="shortcut icon" href="'. get_stylesheet_directory_uri() .'/img/144.png">
<link rel="manifest" href="'. get_stylesheet_directory_uri() .'/manifest.json">';
}
?>