Skip to content

Instantly share code, notes, and snippets.

@max-kk
Created March 17, 2023 18:18
Show Gist options
  • Save max-kk/0083411b7dfbcf934d2c06f884bf71a0 to your computer and use it in GitHub Desktop.
Save max-kk/0083411b7dfbcf934d2c06f884bf71a0 to your computer and use it in GitHub Desktop.
FV toolbar.patch
Index: public/class-fv-public.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/public/class-fv-public.php b/public/class-fv-public.php
--- a/public/class-fv-public.php (revision 180f8ddeef46b02792f1d52a3b66b69eaaf43b04)
+++ b/public/class-fv-public.php (date 1679076895854)
@@ -86,7 +86,9 @@
$fv_sorting = $contest->sorting;
}
- include FV::$THEMES_ROOT . 'toolbar.php';
+ $tpl_path = apply_filters( 'fv/tpl/toolbar', FV::$THEMES_ROOT . 'toolbar.php', $contest, $upload_enabled );
+
+ fv_render_tpl( $tpl_path, compact('contest', 'fv_sorting', 'upload_enabled', 'search', 'category_filter') );
if ( !$css_loaded ) {
wp_add_inline_style('fv_main_css',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment