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: Listar Uploads | |
Description: Plugin para listar todos os arquivos de uploads com suas URLs. | |
*/ | |
// Adiciona uma página de configurações ao menu do WordPress | |
function listar_uploads_menu() { | |
add_options_page( 'Listar Uploads', 'Listar Uploads', 'manage_options', 'listar-uploads', 'listar_uploads_page' ); | |
} |
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
#!/bin/bash | |
# Solicitar o nome do usuário | |
echo "Digite o nome do usuário:" | |
read novo_usuario | |
# Adicionar o usuário fornecido | |
adduser "$novo_usuario" | |
# Adicionar o usuário ao grupo sudo |
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
// Registrando o Post Type "Séries" | |
function registrar_post_type_series() | |
{ | |
$labels = array( | |
'name' => 'Séries', | |
'singular_name' => 'Série', | |
'menu_name' => 'Séries', | |
'name_admin_bar' => 'Séries', | |
'add_new' => 'Nova Série', | |
'add_new_item' => 'Adicionar Nova Série', |
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
.page-template-page-favoritos .content-section .container { | |
max-width: 1350px; | |
} | |
.page-template-page-favoritos .no-cover { | |
min-height: 260px; | |
max-height: 360px; | |
padding: 49px; | |
padding-bottom: 90px; | |
padding-top: 90px; |
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
chat, pode criar pra mim media queries para as principais resoluções mobile e web do mercado atual por favor? o html é esse: <!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"> | |
<link rel="stylesheet" href="style.css"> | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet"> |
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 | |
$post_id = get_the_ID(); | |
$categories = get_the_category(); | |
$destaques = array(); | |
// Verifica se a postagem está em uma categoria | |
if ($categories) { | |
$first_category = $categories[0]; | |
$category_id = $first_category->term_id; |
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: Custom Category Highlighter | |
* Description: Adds a modal with category highlights to relevant posts. | |
* Version: 1.0 | |
* Author: Carlos Ferreira | |
*/ | |
// Enqueue styles and scripts | |
function custom_category_highlighter_scripts() { |
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 | |
class Sala { | |
private $nome; | |
private $disponivel; | |
public function __construct($nome) { | |
$this->nome = $nome; | |
$this->disponivel = true; | |
} |
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
{ | |
"name": "Example Store", | |
"slug": "example-store", | |
"payments": [ | |
{ | |
"name": "PIX", | |
"conditions": [{ | |
"externalId": "89b10d982b042fe23858c9eac903d8a0846372f6d14aead2444f554c0bc189018784265bd3e1cc2a7381e3c19275225152513b76f411d4068a8fac567699fb12bdfa8a0378c77c3afdd8046d4672150baa0d96ad254cdd0ba39ca5fe2f3db3743b1f55e51ff1eb25e262fefe0b8cbb3d738d759da5d0d2a157e4ccff1f0572416ff3d96de79499385687764ed4a910c4a8011ddd907733a78b4f5ddffe9fac55554a3ca771b382e5660a46af779931315cf1955b923c536e974df76d48654080c529eca767b2d3baba30eeed5d6f9992a5b4a96e9fefbd54b7e36371e8649400befbb667c48e79ca2432bb8a6b5528b1950c7d1416ae9e573ae0bdf20a77507b5441f0967065193366103456d054d3c91c29829408b98029ba26b3215209772efdee3307cab902847b6633928bc9dc58d612103405e63dd8640d8962bffd4c7223113d042b057cc704975ffdc0e09bee6cdace704a8a27748a0c0a1952ea18a381e4078c13266069e6d4a8ba8f38a97a7fee86a46063bd7726cdd99cc9c511e28e03c3299b7d2cc1ae00d2b30e88ffc6c198623461a10dac6b3a047c588fa385c42c813c1 |
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 if (! empty ( $this->_aVars['aFeed']['feed_image'] )): ?> | |
<div class="activity_feed_content_image"<?php if (isset ( $this->_aVars['aFeed']['feed_custom_width'] )): ?> style="width:<?php echo $this->_aVars['aFeed']['feed_custom_width']; ?>;"<?php endif; ?>> | |
<?php if (is_array ( $this->_aVars['aFeed']['feed_image'] )): ?> | |
<div class="activity_feed_multiple_image feed-img-stage-<?php echo $this->_aVars['aFeed']['total_image']; ?>"> | |
<?php | |
$img_uri = $this->_aVars['aFeed']['custom_data_cache']['destination']; | |
$img_default = explode('%s', $img_uri); | |
$img_default_uri = join('', $img_default); | |
// define('DIRECTORY', 'http://localhost/phpfox/PF.Base/file/pic/photo/'); |