eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

201
active users

#widget

0 posts0 participants0 posts today

mastodon, ayuda:

conocéis alguna app de calendario para android que se vincule con google calendar y traiga un widget tipo agenda que incluya las tareas pero sea configurable en aspecto?

el widget de google calendar incluye las tareas pero no hay forma de que no tenga un tamaño de letra demencial, y el Event Flow Widget, que me gusta basssstante, no muestra las tareas :(

Hey #fedihelp,

I'm struggling with an #Android #widget issue, and I was wondering if anyone had any clue.

Basically: I have a widget with a grid of items. I want the items in the grid to stick to a certain aspect ratio, regardless of the widget width. The height should dynamically adjust so it always stays that aspect ratio. Normally I would use a ConstraintLayout, but that doesn't seem supported on widgets and I cannot find any good alternative.

Code here: github.com/CatimaLoyalty/Andro

Thank you!

GitHubWidget with all cards by realwk · Pull Request #2566 · CatimaLoyalty/AndroidAdded grid-style widget for all cards Changed card view background to fill it with color even if there is picture

can anyone point me to a tutorial for making a simple widget that takes my youtube channel RSS feed and shows the last 1-4 videos I've uploaded?

i keep finding either ONLY third party subscription sites ($$$) or super outdated stuff

(video tutorial would be ideal for my brain but I can make do with a thorough text tutorial as long as it assumes i'm a baby who knows nothing)

i'm just hand updating my Now page for now but I'd love to automate it :P #widget #code #help (im not a programmer!)

WordPress - Display hook action priority in the dashboard
https://shkspr.mobi/blog/2024/08/wordpress-display-hook-action-priority-in-the-dashboard/

If your WordPress site has lots of plugins, it's sometimes difficult to keep track of what is manipulating your content. Ever wondered what priority all your various actions and filters have? This is a widget which will show you which actions are registered to your blog's hooks, and their priority order.

It looks like this:

Stick this code in your theme's functions.php or in its own plugin.

function edent_priority_dashboard_widget_contents() {    global $wp_filter;     //  Change this to the hook you're interested in    $hook_name = "the_content";    if ( isset( $wp_filter[$hook_name] ) ) {        //  Display the hook name in the widget        echo "<h3>{$hook_name}</h3>";        //  Start a list        echo "<ul>";        //  Loop through the callbacks in priority order        foreach ( $wp_filter[$hook_name]->callbacks as $priority => $callbacks ) {            echo "<li>Priority: {$priority}<ul>";            foreach ( $callbacks as $callback ) {                //  Some callbacks are arrays                if ( is_array( $callback["function"] ) ) {                    if (is_object($callback["function"][0])) {                        $callback_info = get_class($callback["function"][0]) . '::' . $callback["function"][1];                    } else {                        $callback_info = $callback["function"][0] . '::' . $callback["function"][1];                    }                } else {                    $callback_info = $callback["function"];                }                //  Show the information                echo "<li>Callback: {$callback_info}</li>";            }            echo "</ul></li>";        }        echo '</ul>';    }     else {        echo "No filters found for hook: {$hook_name}";    }    //  Scrap of CSS to ensure list items display properly on the dashboard    $priority_css_code = "#edent_dashboard_widget ul { list-style: circle; padding: 1em; }";    //  Inline the CSS    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"data:text/css;base64," .         base64_encode($priority_css_code) . "\">";}//  Register the widget with the admin dashboardfunction edent_register_dashboard_widget() {    wp_add_dashboard_widget(        "edent_dashboard_widget",   //  ID of the widget        "Priorities",   //  Title of the widget        "edent_priority_dashboard_widget_contents"  //  Function to run    );}add_action( "wp_dashboard_setup", "edent_register_dashboard_widget" );

Why?

WordPress lets you add actions and filters to hooks. For example, whenever your blog wants to show some content, a hook of the_content is run.

You can add an action to run a function when that happens. For example, if you want to make all the text in your blog posts uppercase, you could add this to your theme or plugin:

function lower_case_everything( $content ) {   return strtolower( $content );}add_filter( 'the_content', 'lower_case_everything', 99 );

The add_filter says "When the hook called the_content is fired, run the function lower_case_everything, with a priority of 99". The lower the number, the sooner the function is run.

https://shkspr.mobi/blog/2024/08/wordpress-display-hook-action-priority-in-the-dashboard/

Terence Eden’s Blog · WordPress - Display hook action priority in the dashboardIf your WordPress site has lots of plugins, it’s sometimes difficult to keep track of what is manipulating your content. Ever wondered what priority all your various actions and filters have?…

🆕 blog! “WordPress - Display hook action priority in the dashboard”

If your WordPress site has lots of plugins, it's sometimes difficult to keep track of what is manipulating your content. Ever wondered what priority all your various actions and filters have? This is a widget which will show you which actions are registered to your blog's hooks, and their…

👀 Read more: shkspr.mobi/blog/2024/08/wordp

#php #widget #WordPress

Terence Eden’s Blog · WordPress - Display hook action priority in the dashboardIf your WordPress site has lots of plugins, it’s sometimes difficult to keep track of what is manipulating your content. Ever wondered what priority all your various actions and filters have?…