Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #67 from TakwimuAfrica/remove-indicator
Browse files Browse the repository at this point in the history
[Hotfix] Remove ACF indicator
  • Loading branch information
KhadijaMahanga authored Mar 10, 2020
2 parents 520e9e0 + a3ec78c commit f034d50
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 298 deletions.
30 changes: 0 additions & 30 deletions wp-content/themes/hurumap/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ function hurumap_block_editor_styles()
wp_enqueue_style('hurumap-block-editor-style', get_theme_file_uri('/assets/css/editor-blocks.css'), array(), '1.1');
wp_enqueue_script('remove-default-styles-wrapper-script', get_theme_file_uri('/assets/js/remove-default-styles-wrapper.js'));

/**
* PDF preview script
*/
wp_enqueue_script("pdfJS", "https://mozilla.github.io/pdf.js/build/pdf.js");
}
add_action('wp_enqueue_scripts', 'hurumap_load_scripts');
function hurumap_load_scripts()
Expand Down Expand Up @@ -173,32 +169,6 @@ function bidirectional_acf_update_value( $value, $post_id, $field ) {

add_filter('acf/update_value/key=field_5dee703609976', 'bidirectional_acf_update_value', 10, 6);


/**
* Revert once all indicators have been replaced
* a custom acf block for indicators (image, documents, embed, raw-html, free-form)
* filter publish post
*/
function register_acf_block_types()
{
// register an indicator block.
acf_register_block_type(array(
'name' => 'Indicator',
'title' => __('Indicator'),
'description' => __('An indicator block.'),
'render_template' => get_template_directory() . '/template-parts/blocks/indicator.php',
'enqueue_script' => get_template_directory_uri() . '/template-parts/blocks/indicator.js',
'category' => 'widgets',
'icon' => 'admin-comments',
'keywords' => array('indicator'),
));
//add more block here
}
// Check if function exists and hook into setup.
if (function_exists('acf_register_block_type')) {
add_action('acf/init', 'register_acf_block_types');
}

//rename elasticsearch/elastic press index name
function custom_index_name() {
return 'takwimu';
Expand Down
124 changes: 0 additions & 124 deletions wp-content/themes/hurumap/template-parts/blocks/indicator.js

This file was deleted.

144 changes: 0 additions & 144 deletions wp-content/themes/hurumap/template-parts/blocks/indicator.php

This file was deleted.

0 comments on commit f034d50

Please sign in to comment.