-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatible with wordpress version 6 #4
base: master
Are you sure you want to change the base?
Conversation
added search box added date for posts improved the appearance of the search box on mobile removed the rectangular date that hung on the side
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropped some general feedback for you; no tests or anything have been done. I don't currently run a WordPress site any more.
Hoping to see if @andreiluca will chime in.
$comments_nr = lightword_fb_get_comment_type_count('comment'); | ||
$trackbacks_nr = lightword_fb_get_comment_type_count('pings'); | ||
// $comments_nr = lightword_fb_get_comment_type_count('comment'); | ||
// $trackbacks_nr = lightword_fb_get_comment_type_count('pings'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless you're planning to bring these features back, it's better to remove the lines entirely instead of commenting them out.
$oddcomment = 'alt '; | ||
?> | ||
<div id="tabsContainer"> | ||
<a href="#" class="tabs selected"><span><?php _e('Comments','lightword'); ?> (<?php echo $comments_nr; ?>)</span></a> | ||
<a href="#" class="tabs selected"><span><?php _e('Comments','lightword'); ?> (<?php echo get_comments_number($post->ID); ?>)</span></a> | ||
<a href="#" class="tabs"><span><?php _e('Trackbacks','lightword'); ?> (<?php echo $trackbacks_nr; ?>)</span></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $trackbacks_nr
is now undefined after its definition above was commented out.
@@ -21,7 +21,8 @@ | |||
|
|||
// Add a way for the custom header to be styled in the admin panel that controls | |||
// custom headers. See yourtheme_admin_header_style(), below. | |||
add_custom_image_header( '', 'basic_admin_header_style' ); | |||
add_theme_support('custom-header'. 'basic_admin_header_style'); | |||
// add_custom_image_header( '', 'basic_admin_header_style' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as elsewhere: If it's obsolete code, delete, don't comment out.
/* | ||
array( 'name' => __('Cufón settings', 'lightword'), | ||
'desc' => __('Show certain text on your blog (blog title, tagline, post titles, page titles, etc.) using Cufón¹ or the lighter weight, more modern CSS3 <tt>font-face</tt> declaration.<br /><br />If using Cufón, select <em>Extra</em>² (or <em>Disabled</em>) for languages with accents and special characters.','lightword'), | ||
'id' => 'lw_cufon_settings', | ||
'options' => array(__('Enabled','lightword'), __('Disabled','lightword'), __('Extra','lightword'), __('CSS3 Font-face (lightweight)')), | ||
'std' => __('Enabled','lightword'), | ||
'type' => 'select'), | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete, don't comment out.
lightword_fb_update_comment_type_cache($p); | ||
//lightword_fb_update_comment_type_cache($p); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete, don't comment out.
@@ -127,7 +144,7 @@ img.wp-smiley{border:0px;vertical-align:middle;} | |||
/* SIDEBAR */ | |||
.content-sidebar{width:191px;display:inline-block;overflow:hidden;vertical-align:top;} | |||
.content-sidebar input{padding:3px;border:1px solid #E5E2E0;margin-bottom:2px;} | |||
.content-sidebar h3{margin:8px 0 0 0 !important;display:block;background:#FFF url(images/sidebar_h3.png) no-repeat;height:22px;width:181px;font-weight:700;font-size:11px;padding:9px 0 0 10px;} | |||
.content-sidebar h3{margin:8px 0 0 0 !important;display:table;background:#FFF url(images/sidebar_h3.png) no-repeat;height:22px;width:181px;font-weight:700;font-size:11px;padding:9px 0 0 10px;} /* desbest edit */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.content-sidebar h3{margin:8px 0 0 0 !important;display:table;background:#FFF url(images/sidebar_h3.png) no-repeat;height:22px;width:181px;font-weight:700;font-size:11px;padding:9px 0 0 10px;} /* desbest edit */ | |
.content-sidebar h3{margin:8px 0 0 0 !important;display:table;background:#FFF url(images/sidebar_h3.png) no-repeat;height:22px;width:181px;font-weight:700;font-size:11px;padding:9px 0 0 10px;} |
@@ -226,3 +243,99 @@ ol.snap_nav{list-style:none;display:block;} | |||
ol.snap_nav li{display:inline; background-color:#F4F4F4;padding:3px;} | |||
ol.snap_nav .snap_selected{background-color:#DDD;} | |||
.simple_date{background:url(images/date.png) 5px 50% no-repeat;padding:8px 25px;background-color:#EEE;margin-bottom:1em;} | |||
|
|||
/* desbest edit */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as above re: whether this is customization or part of the patch.
box-sizing: border-box !important; | ||
overflow-x: clip; | ||
} | ||
/*.content-sidebar { max-width: 163px; }*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/*.content-sidebar { max-width: 163px; }*/ |
/*max-width: 160px;*/ | ||
background-color: #fcfcfc; | ||
/*background-image: none;*/ | ||
/*border: 1px solid #dcdcdc;*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/*max-width: 160px;*/ | |
background-color: #fcfcfc; | |
/*background-image: none;*/ | |
/*border: 1px solid #dcdcdc;*/ | |
background-color: #fcfcfc; |
.content-sidebar { width: 75%; max-width: unset; } | ||
.content-sidebar h3 { background-size: 100%; } | ||
.content-sidebar #searchform { margin-bottom: 4em; } | ||
#searchform { /* background-image: none !important; */ height: unset; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#searchform { /* background-image: none !important; */ height: unset; } | |
#searchform { height: unset; } |
Empty array needs further examination
I forgot that was even there. And it's not even being used. It was enough to cause a fatal error that stopped the theme from displaying, before I made any edits to it. Whatever that array and line of code is for, I'll look into it, later on. Cufon Fonts and Facebook Sharing
Yes I should remove the Cufon code from the theme instead of commenting it out. The same applies for the facebook sharing code. I forgot to remove it. Yes why is it still in there? PS. Nobody is going to be using facebook widgets like share, comments, likes, to be embedded onto their website because Facebook did a bait and switch back in 2014 by cutting the organic reach of pages and groups, to encourage people to pay to boost their posts, which put a complete end to the era of free organic traffic. The companies that had paid thousands of dollars, for likes on their page for the promise of perpetual free traffic, were heavily scammed. Makeshift customisation features
Back when the theme was made in 2008, there was no standardised way to allow webmasters with zero HTML and CSS knowledge, to customise their theme with commonly requested changes, like changing the background, font, colours and logo. Now there is. I'll look into that line that's been commented out, to see if there is currently a native theme customiser replacement and whether I can be bothered to add a native one in. Mobile user check
The function in question is only 4 lines of code and as evident by the comments I've included besides it, it should be obvious from a cursory glance, exactly what the javascript function is designed to do. Footer credits
Finders keepers, losers weepers! Don't neglect or abuse it, use it or lose it. 😜 I agree with everything you've suggested, except for the things you've commented that I'll be addressing in my third response. |
Pingbacks and trackbacks (and maybe webmentions)
The world of pingbacks and trackbacks is a very different place in 2023 than it was in 2008. I need to find out in retrospect, whether trackbacks managed to sufficently solve the spam problem in a way that the predecessor pingbacks did not. About the trackback issue, I need to do some more research before deciding a good decision to make on this.
Seeing as trackbacks is the spiritual successor of pingbacks, designed to prevent most of the spam that plagued pingbacks, when people have made webmention, that unfortunately attracted much less attention and general knowledge than it did for webmentions, I now need to check whether webmention manages to solve any of the spam issue for pings, that trackback promised to solve, whether it succeeds whether trackbacks failed from bad implementation to a foreseen practical mechanism or if their counter-measure successfully solved the forseen practical adverse scenario as intended but couldn't solve the unforseen one that wasn't predicted. I'll research how spam worthy the trackbacks and webmentions are, later this month. I'll look into it later. |
The readme
I see your point but nobody wants to see a readme that includes a changelog that dates back to 2008 with a huge list of minimal changes that would have no relevance now, as the theme has pretty much matured beyond its numerous incremental changes. It's stable now. Custom theming options
That was a reminder for me to later analyse the built-in theme options, not all the functionality from the makeshift customisation has been moved over to the native customisation. I'll look into it later. Comments for debugging the template tags
This line is there for a reason, as the comments section needs to be improved as it's unfinished. I need to test out and fix the threaded comments feature. I'll look into it later. |
Responsive design
To use your words, I would say that it's part of changes but it has been kept at the bottom of the stylesheet as a new rule instead of being appended to the existing rule, for a reason. I have a code policy for always including all code regarding responsive design, to be put at the bottom of the stylesheet, even if it exists outside a media query (of a 700px small screen width). The design had visual glitches on the smartphones so I added in some new rules so it'll look better on mobile. Sure some of those rules also apply on the desktop as well but I kept it anyway as it made things look nicer. The authorship comments and comments for non-executing code, is also there for a reason
And again....
My response to this is that the comments are there for a reason
It would take a long time for me to sufficiently explain what they are but it's worthy of a blog article. To keep it short, websites do not perfectly look the same in every web browser, sometimes the design falls short of what the designer had intended due to technological limitations and sometimes inserting one element or making a slight tweak to one element can end up disrupting the layout of the page. The comments are designed to help mitigate and solve issues like these, instead of having any future web designer, be spending hours wondering why one small thing doesn't work, spending 8+ hours frustratingly working from trial and error by making endless incremental changes |
That's the end of all my responses to your code review. |
Thank you for making this theme as well.