This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Provides an opportunity to modify the *inner* schedule details HTML (ie before it is | |
* wrapped). | |
* | |
* @param string $inner_html the output HTML | |
* @param int $event_id post ID of the event we are interested in | |
*/ | |
$inner = apply_filters( 'tribe_events_event_schedule_details_inner', $cache_details[ $cache_details_key ], $event->ID ); | |
// Wrap the schedule text | |
$schedule = $before . $inner . $after; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'tribe_get_event_website_link_target', 'tribe_open_new_tab' ); | |
function tribe_open_new_tab() { | |
return '_blank'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tribe_hook_javascript() { | |
if (tribe_is_month() || (tribe_is_day) || (tribe_is_week) || (tribe_is_map) || (tribe_is_photo) || (tribe_is_list_view)) { | |
?> | |
<script type="text/javascript"> | |
document.write("JavaScript is a simple language for javatpoint learners"); | |
</script> | |
<?php | |
} | |
} | |
add_action('tribe_events_after_template', 'tribe_hook_javascript'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tribe_hook_javascript() { | |
if (tribe_is_month()) { | |
?> | |
<script type="text/javascript"> | |
document.write("JavaScript is a simple language for javatpoint learners"); | |
</script> | |
<?php | |
} | |
} | |
add_action('tribe_events_after_template', 'tribe_hook_javascript'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tribe_hook_javascript() { | |
if (tribe_is_month()) { | |
?> | |
<script type="text/javascript"> | |
// add your code here | |
</script> | |
<?php | |
} | |
} | |
add_action('wp_footer', 'tribe_hook_javascript'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update First | |
apt-get update -y | |
# Get PHP stuff | |
add-apt-repository ppa:ondrej/php -y | |
apt-get -y install php7.3 | |
# Remove added Apache | |
apt-get purge apache2 -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: The Events Calendar REST API Hide from Listing fix | |
* Description: This plugin is a temporary fix for The Events Calendar REST API issue that prevents events updated via | |
* the REST API from correctly showing in the calendar. | |
*/ | |
/** | |
* Filters the post array arguments generated during a TEC REST request to update an event to remove empty | |
* `hide_from_listings` values. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: The Events Calendar REST API Hide from Listing fix | |
* Description: This plugin is a temporary fix for The Events Calendar REST API issue that prevents events updated via | |
* the REST API from correctly showing in the calendar. | |
*/ | |
/** | |
* Filters the post array arguments generated during a TEC REST request to update an event to remove empty | |
* `hide_from_listings` values. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bitnami@ip-172-31-26-152:~/htdocs$ npm start | |
> maticjs-web@1.0.0 start /opt/bitnami/apache2/htdocs | |
> webpack-dev-server --hot | |
module.js:550 | |
throw err; | |
^ | |
Error: Cannot find module 'webpack-cli/bin/config-yargs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ '/opt/bitnami/nodejs/bin/.node.bin', | |
1 verbose cli '/opt/bitnami/nodejs/bin/npm', | |
1 verbose cli 'start' ] | |
2 info using npm@6.4.1 | |
3 info using node@v8.15.1 | |
4 verbose run-script [ 'prestart', 'start', 'poststart' ] | |
5 info lifecycle maticjs-web@1.0.0~prestart: maticjs-web@1.0.0 | |
6 info lifecycle maticjs-web@1.0.0~start: maticjs-web@1.0.0 | |
7 verbose lifecycle maticjs-web@1.0.0~start: unsafe-perm in lifecycle true |
NewerOlder