Skip to content

Commit

Permalink
TSFEM 2.6.0 RC-1. Cleaned connect interface, fixed Focus crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
sybrew committed Oct 3, 2022
1 parent 66ddad5 commit 382ebab
Show file tree
Hide file tree
Showing 16 changed files with 75 additions and 42 deletions.
14 changes: 10 additions & 4 deletions extensions/essentials/articles/trunk/inc/index.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<?php
/**
* When I write, I can shake off all my cares.
* My sorrow disappears, my spirits are revived!
* Met schrijven word ik alles kwijt,
* mijn verdriet verdwijnt, mijn moed herleeft.
*
* But, and that’s a big question, will I ever be able to write something great,
* will I ever become a journalist or a writer?
* Maar, en dat is de grote vraag, zal ik ooit nog iets groots kunnen schrijven,
* zal ik ooit eens journaliste en schrijfster worden?
*
* (When I write, I can shake off all my cares,
* my sorrow disappears, my spirits revives.
*
* But, and that's a big question, will I ever be able to write something great,
* will I ever become a journalist and writer?)
*
* - Anne Frank
*/
7 changes: 7 additions & 0 deletions extensions/essentials/focus/trunk/inc/classes/admin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

/**
* Require extension views trait.
*
* @since 1.5.2
*/
\TSF_Extension_Manager\_load_trait( 'extension/views' );

/**
* Class TSF_Extension_Manager\Extension\Focus\Admin
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ input[type="checkbox"].tsfem-e-focus-collapse-checkbox:checked:after {
display: block;
height: 2em;
width: 2em;
vertical-align: middle; /* inherited downward */
vertical-align: middle; /* captured down */
cursor: pointer;
position: relative;
box-shadow: 0 0 0 0 rgba(0,0,0,.25) inset, 0 0 0 0 rgba(0,0,0,.25);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ protected static function reset_replacements() {
];
// This is also where /(%%single)?/ regex comes in.
static::$prefix_preserve = [
// 'ct_pa_', // Custom Taxonomy Product Attribute
// Custom Taxonomy Product Attribute, implied via ct_*:
// 'ct_pa_',
'ct_', // Custom Taxonomy field name., this can be %%ct_something%%single%%, which we do not test.
'cf_', // Custom field name.
];
Expand Down
Empty file.
6 changes: 6 additions & 0 deletions extensions/free/transport/trunk/lib/images/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
/**
* I can control the flow of paint; there is no accident.
*
* - Paul Jackson Pollock
*/
7 changes: 7 additions & 0 deletions extensions/free/transport/trunk/lib/js/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
/**
* The aim of our efficiency has not been to produce goods, but to harvest dollars...
* The production of goods was always secondary to the securing of dollars.
*
* - Henry Laurence Gantt
*/
4 changes: 2 additions & 2 deletions extensions/free/transport/trunk/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Not all SEO plugins are alike. The SEO Framework (TSF) takes a straightforward a
| Primary term ID&dagger; | `postmeta` | `_yoast_wpseo_primary_{$taxonomy}` | &ndash; |
| Term metadata&Dagger; | `options` | `wpseo_taxonomy_meta` | &#x2713;&#xFE0F; |

_&#x2a; When transformed, the importer will set a flag for TSF to add the site title. You can remove this flag via the post edit screen._ <br>
_&#x2a; When found, the importer will set a flag for TSF to add the site title. You can remove this flag via the post edit screen._ <br>
_&dagger; To transport primary term IDs, the taxonomy must be active before Transport can detect the data. For example, WooCommerce must be active to transport Primary Product Category IDs for Products._ <br>
_&Dagger; This includes: title, description, Open Graph title, Open Graph description, Twitter title, Twitter description, Canonical URL, and Robots noindex._

Expand Down Expand Up @@ -214,7 +214,7 @@ The following data will be irretrievably deleted from your database; doing this
| Canonical URL | `termmeta` | `rank_math_canonical_url` | &ndash; |
| Robots metadata | `termmeta` | `rank_math_robots` | &#x2713;&#xFE0F; |

_&#x2a; When transformed, the importer will set a flag for TSF to add the site title. You can remove this flag via the post edit screen._ <br>
_&#x2a; When found, the importer will set a flag for TSF to add the site title. You can remove this flag via the post edit screen._ <br>
_&dagger; Conditional: Twitter metadata is only transported when enabled for the post or term in Rank Math._
_&Dagger; To transport primary term IDs, the taxonomy must be active before Transport can detect the data. For example, WooCommerce must be active to transport Primary Product Category IDs for Products._ <br>

Expand Down
7 changes: 0 additions & 7 deletions extensions/premium/monitor/trunk/views/layout/general/top.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
$about = '';
$actions = '';

if ( $options ) { // phpcs:ignore, Generic.CodeAnalysis.EmptyStatement
// TODO
} else {
$info = __( 'Let SEO Monitor help you improve your website. Your privacy is respected, read how below.', 'the-seo-framework-extension-manager' );
$about = '<div class="tsfem-top-about tsfem-about-activation tsfem-flex tsfem-flex-row tsfem-flex-nowrap"><div>' . esc_html( $info ) . '</div></div>';
}

?>
<div class=tsfem-title>
<header><h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<p><?= esc_html__( 'Get detailed information about your website. Automatically.', 'the-seo-framework-extension-manager' ) ?></p>
</div>
</div>
<div class="tsfem-connect-action tsfem-flex">
<div class="tsfem-connect-action">
<?php $this->get_view( 'forms/connect' ); ?>
</div>
</div>
Expand Down
33 changes: 24 additions & 9 deletions inc/traits/core/ui.trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ private function init_ui() {
* @param string $type The type of main content. Accepts 'panes' and 'connect'.
*/
final protected function ui_wrap( $type = 'panes' ) {
\add_action( 'tsfem_page', [ $this, 'header_wrap' ], 25 );
\add_action( 'tsfem_page', [ $this, $type . '_wrap' ], 100 );
\add_action( 'tsfem_page', [ $this, "{$type}_header_wrap" ], 25 );
\add_action( 'tsfem_page', [ $this, "{$type}_page_wrap" ], 100 );
\add_action( 'tsfem_page', [ $this, 'footer_wrap' ], 200 );

\do_action( 'tsfem_before_page' );
Expand All @@ -100,9 +100,9 @@ final protected function page_wrap() {
/**
* Outputs header wrap and does callback.
*
* @since 1.5.0
* @since 2.6.0
*/
final public function header_wrap() {
final public function panes_header_wrap() {
echo '<div id=tsfem-sticky-top>';
echo '<div id=tsfem-top-super-wrap><section id=tsfem-top-wrap class="tsfem-flex tsfem-flex-row tsfem-flex-nogrowshrink tsfem-flex-space">';
\do_action( 'tsfem_header' );
Expand All @@ -111,6 +111,20 @@ final public function header_wrap() {
echo '</div>';
}

/**
* Outputs header wrap and does callback.
*
* @since 2.6.0
*/
final public function connect_header_wrap() {
echo '<div id=tsfem-sticky-top>';
echo '<div id=tsfem-top-super-wrap><section id=tsfem-top-wrap class="tsfem-flex tsfem-flex-row tsfem-flex-nogrowshrink tsfem-flex-space connect-top-wrap">';
\do_action( 'tsfem_header' );
echo '</section></div>';
$this->notice_wrap();
echo '</div>';
}

/**
* Outputs notice wrap and does callback.
*
Expand All @@ -130,11 +144,12 @@ final public function notice_wrap() {
* @since 1.5.0
* @since 2.0.1 Now listens to $this->wrap_type
* @since 2.2.0 Is no longer a tsfem-flex-item.
* @since 2.6.0 Added a super wrap to allow a condensed layout.
* @since 2.6.0 1. Added a super wrap to allow a condensed layout.
* 2. Renamed from "panes_wrap".
*/
final public function panes_wrap() {
final public function panes_page_wrap() {
printf(
'<div class=tsfem-panes-super-wrap><main class="tsfem-panes-wrap tsfem-panes-wrap-%s">',
'<div id=tsfem-panes-super-wrap><main class="tsfem-panes-wrap tsfem-panes-wrap-%s">',
// phpcs:ignore, WordPress.Security.EscapeOutput.OutputNotEscaped
\in_array( $this->wrap_type, [ 'column', 'row' ], true ) ? $this->wrap_type : 'column'
);
Expand All @@ -147,8 +162,8 @@ final public function panes_wrap() {
*
* @since 1.5.0
*/
final public function connect_wrap() {
echo '<div class=tsfem-panes-super-wrap><main class=tsfem-connect-wrap>';
final public function connect_page_wrap() {
echo '<div id=tsfem-panes-super-wrap><main id=tsfem-connect-wrap class="tsfem-flex tsfem-flex-row">';
\do_action( 'tsfem_content' );
echo '</main></div>';
}
Expand Down
23 changes: 12 additions & 11 deletions lib/css/tsfem-ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,9 @@ body.tsfem.rtl .wrap {
max-width: 1240px;
}

/* Stretches content over the page, pushing footer down. */
.tsfem-connect-wrap {
flex: 1 1 auto;
margin: 1.2vw;
#tsfem-connect-wrap {
justify-content: center;
margin: 0 1.2vw;
}

#tsfem-sticky-top {
Expand All @@ -162,7 +161,7 @@ body.tsfem.rtl .wrap {
margin-bottom: 1.2vw;
top: 32px;
z-index: 9980; /* Admin sidebar is 9990 */
background: linear-gradient( to bottom, rgba(0,0,0,.3), rgba(0,0,0,0) ); /* Revealed when notices appear */
background: linear-gradient( to bottom, rgba(0,0,0,.1), rgba(0,0,0,0) ); /* Revealed when notices appear */
}

@media screen and ( max-width: 782px ) {
Expand Down Expand Up @@ -192,6 +191,11 @@ body.tsfem.rtl .wrap {
margin: 0 auto;
padding: 1em 1.2vw;
max-width: 1240px;
gap: 1em;
}

#tsfem-top-wrap.connect-top-wrap {
justify-content: center;
}

/* "padding: 0 0 1.4%" Edge/Firefox inline margins issue */
Expand Down Expand Up @@ -225,6 +229,7 @@ body.tsfem.rtl .wrap {
#tsfem-top-wrap .tsfem-title {
text-align: left;
align-items: center;
align-self: center;
}

.tsfem-top-actions,
Expand Down Expand Up @@ -704,10 +709,6 @@ body.rtl .tsfem-button-loading:after {
justify-content: space-between;
}

.tsfem-connect-option:last-of-type {
margin-bottom: 0;
}

.tsfem-connect-text,
.tsfem-connect-action {
margin: .5em 0;
Expand All @@ -730,7 +731,7 @@ body.rtl .tsfem-button-loading:after {
margin-bottom: 0;
}

.tsfem-connect-wrap h3 {
#tsfem-connect-wrap h3 {
font-size: 1.66em;
color: #057f9c;
font-weight: 400;
Expand All @@ -739,7 +740,7 @@ body.rtl .tsfem-button-loading:after {
/* # Global panes wrap.
/*--------------------------------------*/
/* "margin: .6%" Edge/Firefox inline margins issue */
.tsfem-panes-super-wrap {
#tsfem-panes-super-wrap {
width: 100%;
max-width: 1240px;
margin: 0 auto;
Expand Down
2 changes: 1 addition & 1 deletion lib/css/tsfem-ui.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion the-seo-framework-extension-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: The SEO Framework - Extension Manager
* Plugin URI: https://theseoframework.com/extension-manager/
* Description: Add more powerful SEO features to The SEO Framework. Right from your WordPress dashboard.
* Version: 2.6.0-beta-5
* Version: 2.6.0-RC-1
* Author: The SEO Framework Team
* Author URI: https://theseoframework.com/
* License: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion views/layout/extension/pane.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="tsfem-flex tsfem-flex-row tsfem-flex-nogrow hide-if-no-tsf-js">
<div class=tsfem-pane-inner-pad>
<?php
$f->_form_wrap( 'start', \menu_page_url( static::$settings_page_slug, false ), true );
$f->_form_wrap( 'start', menu_page_url( static::$settings_page_slug, false ), true );
$f->_fields( $settings );
$f->_form_wrap( 'end' );
?>
Expand Down
3 changes: 0 additions & 3 deletions views/layout/general/top.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@

$account = "<div class=tsfem-top-account>$account_link</div>";
$actions = '<div class="tsfem-top-actions tsfem-flex tsfem-flex-row">' . $account . '</div>';
} else {
$info = __( 'Add more powerful SEO features to your website. To get started, use one of the options below.', 'the-seo-framework-extension-manager' );
$about = '<div class="tsfem-top-about tsfem-about-activation tsfem-flex tsfem-flex-row tsfem-flex-nowrap"><div>' . esc_html( $info ) . '</div></div>';
}

?>
Expand Down

0 comments on commit 382ebab

Please sign in to comment.