Skip to content

Commit

Permalink
Merge pull request #140 from manualdousuario/LeiaIsso-Ladder
Browse files Browse the repository at this point in the history
Sai LeiaIsso, entra Ladder
  • Loading branch information
altendorfme authored Mar 20, 2024
2 parents a572559 + 2a52a52 commit 03b4af0
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 64 deletions.
32 changes: 15 additions & 17 deletions orbita.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: Órbita
* Plugin URI: https://gnun.es
* Description: Órbita é o plugin para criar um sistema Hacker News-like para o Manual do Usuário
* Version: 1.12
* Version: 1.2
* Author: Gabriel Nunes
* Author URI: https://gnun.es
* License: GPL v3
Expand Down Expand Up @@ -40,7 +40,7 @@
/**
* Define plugin version constant
*/
define( 'ORBITA_VERSION', '1.12' );
define( 'ORBITA_VERSION', '1.2' );
define( 'ORBITA_IMAGE_MAX_SIZE', '10' ); // MB

/**
Expand Down Expand Up @@ -541,35 +541,35 @@ function orbita_link_options( $url = '', $title = '' ) {
$publishers = [
[
"url" => "ft.com/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "bloomberg.com/",
"paywall" => "https://archive.ph/submit/?url="
],
[
"url" => "folha.uol.com.br/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "uol.com.br/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "oglobo.globo.com/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "estadao.com.br/",
"paywall" => "https://archive.ph/submit/?url="
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "nytimes.com/",
"paywall" => "https://archive.ph/submit/?url="
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "washingtonpost.com/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "wsj.com/",
Expand All @@ -581,19 +581,19 @@ function orbita_link_options( $url = '', $title = '' ) {
],
[
"url" => "veja.abril.com.br/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "exame.com/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "super.abril.com.br/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "valor.globo.com/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
],
[
"url" => "newyorker.com/",
Expand All @@ -609,7 +609,7 @@ function orbita_link_options( $url = '', $title = '' ) {
],
[
"url" => "wired.com/",
"paywall" => "https://leiaisso.net/"
"paywall" => "https://parede.pcdomanual.com/"
]
];

Expand All @@ -634,14 +634,12 @@ function orbita_link_options( $url = '', $title = '' ) {
}

if ( $options ) {
$html = '<span class="options">';
if( isset( $options['paywall'] ) ) {
$html .= '<a href="' . $options['paywall'] . '">[sem paywall]</a>&nbsp;';
$html .= '<a href="' . $options['paywall'] . '">[sem&nbsp;paywall]</a>&nbsp;';
}
if( isset( $options['translate'] ) ) {
$html .= '<a href="' . $options['translate'] . '">[traduzir]</a>&nbsp;';
}
$html .= '</span>';
}

return $html;
Expand Down
34 changes: 11 additions & 23 deletions public/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions public/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 1 addition & 16 deletions src/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $desktop: "only screen and (min-width : 700px)";
max-width: inherit;
list-style: none;
margin: 0 0 1.5rem;
line-height: 1.2;
line-height: 1.5;
display: grid;
grid-template-columns: auto 1fr;
gap: 0px 12px;
Expand Down Expand Up @@ -72,20 +72,12 @@ $desktop: "only screen and (min-width : 700px)";
.link {
display: inline;
margin-bottom: 0;
.debate {

}
}
.options {
filter: grayscale(1);
color: #535353;
}
.domain {
color: #535353;
}
}
.data {
margin-top: .5rem;
font-family: var(--ff-monospace);
font-size: var(--fs-0);
}
Expand Down Expand Up @@ -118,13 +110,6 @@ $desktop: "only screen and (min-width : 700px)";
}

.orbita-post-title {
.options {
filter: grayscale(1);
color: #535353;
a {
display: inline-block;
}
}
.domain {
color: #535353;
display: inline-block;
Expand Down

0 comments on commit 03b4af0

Please sign in to comment.