Score:0

Render OneAll social login block in a .php file?

ml flag

I am using OneAll social login module for social registration and login. The module's login block works well on any page but not on a .php file. I am trying to render the block in a xyz.php file programmatically. When I try to render it via the following code I only gets The heading text of the block without the Facebook and Google's links.

$blockObject = block_load('social_login_widget', 'social_login_widget');
$block_ = _block_get_renderable_array(_block_render_blocks(array($blockObject)));
$output = drupal_render($block_);

Check the attached screenshot to see the code output. You can see I only get Login with your Social Network account.

screenshot

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.