Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging deploy #132

Merged
merged 16 commits into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php get_header(); ?>
<article id="page-404" class="post not-found">
<h1>Page not found</h1>
<p>This page was lost in translation. <a href="<?php bloginfo('url'); ?>/archive">Try a search instead?</a></p>
</article>
<?php get_footer(); ?>
29 changes: 26 additions & 3 deletions acf-json/group_614b82766af00.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@
"post_type": [
"languages"
],
"post_status": "",
"taxonomy": "",
"allow_null": 0,
"multiple": 1,
"return_format": "object",
"multiple": 1,
"allow_null": 0,
"bidirectional": 0,
"ui": 1,
"bidirectional_target": []
},
Expand Down Expand Up @@ -257,6 +259,27 @@
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_66cba73d7ea4a",
"label": "Language ISO Codes",
"name": "language_iso_codes",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"readonly": true,
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
],
"location": [
Expand All @@ -277,5 +300,5 @@
"active": true,
"description": "",
"show_in_rest": 1,
"modified": 1718738564
"modified": 1725185778
}
4 changes: 3 additions & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@
</section>

<?php wp_footer(); ?>
</footer>
</footer>
</body>
</html>
48 changes: 25 additions & 23 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
/* CONSIDER BREAKING INTO MULTIPLE FUNCTIONS FILES */

require_once('includes/class-wt-rest-posts-controller.php');
require_once('includes/update-video-featured-language-iso-codes.php');
// require_once('includes/update-all-videos-featured-language-iso-codes.php');

// enqueue stylesheets
add_action( 'wp_enqueue_scripts', 'wt_enqueue_styles' );

function wt_enqueue_styles() {
$parenthandle = 'blankslate-style';
$theme = wp_get_theme();
wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css',
wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css',
array(),
$theme->parent()->get('Version')
);
Expand All @@ -25,7 +27,7 @@ function wt_enqueue_styles() {
function wt_enqueue_js() {
wp_register_script(
'wt_js',
get_stylesheet_directory_uri() . '/js/custom.js',
get_stylesheet_directory_uri() . '/js/custom.js',
array('jquery'), true);

wp_enqueue_script('wt_js');
Expand Down Expand Up @@ -133,18 +135,18 @@ function searchfilter($query)
}
return $query;
}

add_filter('pre_get_posts', 'searchfilter');

// remove header bump from core css output
add_action('get_header', 'my_filter_head');

function my_filter_head() {
remove_action('wp_head', '_admin_bar_bump_cb');
}
}

// initiate options page - consider deprecating this
if( function_exists('acf_add_options_page') ) {
if( function_exists('acf_add_options_page') ) {
acf_add_options_page();
}

Expand Down Expand Up @@ -277,9 +279,9 @@ function html5wp_pagination()
}

// add custom post types for language archive
add_action('init', 'create_post_type_languages');
add_action('init', 'create_post_type_languages');
add_action('init', 'create_post_type_videos');
add_action('init', 'create_post_type_lexicons');
add_action('init', 'create_post_type_lexicons');
add_action('init', 'create_post_type_resources'); // indexing misc.
// revitalization project
// translation/interpretation
Expand All @@ -294,12 +296,12 @@ function html5wp_pagination()
// Team
function create_post_type_team()
{
register_taxonomy_for_object_type('category', 'team');
register_taxonomy_for_object_type('category', 'team');
register_taxonomy_for_object_type('post_tag', 'team');
register_post_type('team',
array(
'labels' => array(
'name' => __('Team', 'team'),
'name' => __('Team', 'team'),
'singular_name' => __('Team', 'team'),
'add_new' => __('Add New', 'team'),
'add_new_item' => __('Add New team', 'team'),
Expand Down Expand Up @@ -332,12 +334,12 @@ function create_post_type_team()
// Partners
function create_post_type_partners()
{
register_taxonomy_for_object_type('category', 'partners');
register_taxonomy_for_object_type('category', 'partners');
register_taxonomy_for_object_type('post_tag', 'partners');
register_post_type('partners',
array(
'labels' => array(
'name' => __('Partners', 'partner'),
'name' => __('Partners', 'partner'),
'singular_name' => __('Partner', 'partner'),
'add_new' => __('Add New', 'partner'),
'add_new_item' => __('Add New Partner', 'partner'),
Expand Down Expand Up @@ -368,12 +370,12 @@ function create_post_type_partners()
// Languages
function create_post_type_languages()
{
register_taxonomy_for_object_type('category', 'languages');
register_taxonomy_for_object_type('category', 'languages');
register_taxonomy_for_object_type('post_tag', 'languages');
register_post_type('languages',
array(
'labels' => array(
'name' => __('Languages', 'language'),
'name' => __('Languages', 'language'),
'singular_name' => __('Language', 'language'),
'add_new' => __('Add New', 'language'),
'add_new_item' => __('Add New Language', 'language'),
Expand Down Expand Up @@ -408,12 +410,12 @@ function create_post_type_languages()
// Videos
function create_post_type_videos()
{
register_taxonomy_for_object_type('category', 'videos');
register_taxonomy_for_object_type('category', 'videos');
register_taxonomy_for_object_type('post_tag', 'videos');
register_post_type('videos',
array(
'labels' => array(
'name' => __('Videos', 'video'),
'name' => __('Videos', 'video'),
'singular_name' => __('Video', 'video'),
'add_new' => __('Add New', 'video'),
'add_new_item' => __('Add New Video', 'video'),
Expand Down Expand Up @@ -449,12 +451,12 @@ function create_post_type_videos()
// Lexicons
function create_post_type_lexicons()
{
register_taxonomy_for_object_type('category', 'lexicons');
register_taxonomy_for_object_type('category', 'lexicons');
register_taxonomy_for_object_type('post_tag', 'lexicons');
register_post_type('lexicons',
array(
'labels' => array(
'name' => __('Lexicons', 'lexicons'),
'name' => __('Lexicons', 'lexicons'),
'singular_name' => __('Lexicon', 'lexicon'),
'add_new' => __('Add New', 'lexicon'),
'add_new_item' => __('Add New Lexicon', 'lexicon'),
Expand Down Expand Up @@ -490,12 +492,12 @@ function create_post_type_lexicons()
// External Resources
function create_post_type_resources()
{
register_taxonomy_for_object_type('category', 'resources');
register_taxonomy_for_object_type('category', 'resources');
register_taxonomy_for_object_type('post_tag', 'resources');
register_post_type('resources',
array(
'labels' => array(
'name' => __('Resources', 'resource'),
'name' => __('Resources', 'resource'),
'singular_name' => __('Resource', 'resource'),
'add_new' => __('Add New', 'resource'),
'add_new_item' => __('Add New Resource', 'resource'),
Expand Down Expand Up @@ -532,12 +534,12 @@ function create_post_type_resources()
// Fellows
function create_post_type_fellows()
{
register_taxonomy_for_object_type('category', 'fellows');
register_taxonomy_for_object_type('category', 'fellows');
register_taxonomy_for_object_type('post_tag', 'fellows');
register_post_type('fellows',
array(
'labels' => array(
'name' => __('Fellows', 'fellows'),
'name' => __('Fellows', 'fellows'),
'singular_name' => __('Fellow', 'fellows'),
'add_new' => __('Add New', 'fellows'),
'add_new_item' => __('Add New Fellow', 'fellows'),
Expand Down Expand Up @@ -571,12 +573,12 @@ function create_post_type_fellows()
// Reports
function create_post_type_reports()
{
register_taxonomy_for_object_type('category', 'reports');
register_taxonomy_for_object_type('category', 'reports');
register_taxonomy_for_object_type('post_tag', 'reports');
register_post_type('reports',
array(
'labels' => array(
'name' => __('Reports', 'reports'),
'name' => __('Reports', 'reports'),
'singular_name' => __('Report', 'reports'),
'add_new' => __('Add New', 'reports'),
'add_new_item' => __('Add New Report', 'reports'),
Expand Down
Loading
Loading