I copied the code below into the editor
<div class="services_container clearfix">
<a href="it" class="service service-it">
<div class="service_ttl">
IT support
</div>
<span>More</span>
</a>
<a href="legal" class="service service-legal">
<div class="service_ttl">
Legal support
</div>
<span>More</span>
</a>
But if I look in firebug, the code output looks like this
<div class="services_container clearfix">
<a class="service service-it" href="it/index.php">
<p></p>
<div class="service_ttl">IT support</div>
</a>
<p>
<a class="service service-it" href="it/index.php">
<span>More</span>
<br>
</a>
<br>
<a class="service service-legal" href="legal/index.php"></a>
</p>
<a class="service service-legal" href="legal/index.php">
<div class="service_ttl">Legal support</div>
</a>
<p>
<a class="service service-legal" href="legal/index.php">
<span>More</span>
That is tags is repeated two or three times and this breaks the page design.
Obviously I need in the writing settings disable option "WordPress should correct invalidly nested XHTML automatically".
But I don't have this option in the writing settings.
I have found and commented out all calls of force_balance_tags function.
Then I have deleted and recreated page, but it not helped.
I use Worpress 4.7.
Related
I've created a simple extbase/fluid based news extension with a listview showing the latest news. I'm also using indexed_search to search the whole website. The problem is, that the indexed_search not indexing any words of my news.
How can I use indexed_search for my own extension?
I can't find anything helpful on the web for hours. I would be very thankful for every hint or keyword.
Fluid template of the listview of my extension:
<f:for each="{berichts}" as="bericht">
<div class="bericht">
<div class="bericht_titel">
<h1>
<b>[<f:for each="{bericht.kategorien}" as="kategorie" iteration="i">{kategorie.name}<f:if condition="{i.isLast}"><f:then></f:then><f:else>, </f:else></f:if></f:for>]</b> <f:link.action action="show" pageUid="65" format="html" arguments="{bericht: bericht}">{bericht.titel}</f:link.action>
</h1>
<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span></div>
<div class="bericht_text">
<f:if condition="{bericht.bild}">
<f:image image="{bericht.bild}" alt="" />
</f:if>
<f:format.html>{bericht.text}</f:format.html>
<div class="clearfix"></div>
<f:if condition="{bericht.anhaenge}">
<div class="bericht_anhang">
<b>Anhänge:</b><br />
<f:for each="{bericht.anhaenge}" as="anhang">
<div>
<a href="{anhang.originalResource.publicUrl}" target="_blank">
<f:if condition="{anhang.originalResource.title}">
<f:then>
{anhang.originalResource.title}
</f:then>
<f:else>
{anhang.originalResource.originalFile.name}
</f:else>
</f:if>
</a>
</div>
</f:for>
</div>
</f:if>
</div>
</div>
</f:for>
Generated HTML of one "Bericht"
<div class="bericht">
<div class="bericht_titel">
<h1><b>[Allgemeines]</b> Test</h1><span class="glyphicon glyphicon-menu-right" aria-hidden="true" style="transform: rotate(90deg);"></span>
</div>
<div class="bericht_text" style="display: block;">
<p>Dies ist ein Test</p>
<div class="clearfix"></div>
</div>
</div>
Now it's working. There was something incorrect with the page itself, but disable cache wasn't active. So if someone else has the same problem; try inserting the plugin to another page and test it. I had to delete the page and create it again.
I have created a web page to display image, topic and details. Just now i have a static html page this is just a page i have nothing implemented any thing.
<section class="section-02">
<div class="container">
<h3>
<div class="heading-large">Current Best</div>
</h3>
<div class="row">
<div class="col-md-4">
<div class="card"> <img class="img-fluid" src="img/media-1.jpg" alt="">
<div class="card-block">
<div class="news-title"><a href="#">
<h2 class=" title-small">An Alternative Form of Mental Health Care Gains a Foothold</h2>
</a></div>
<p class="card-text"><small class="text-time"><em>3 mins ago</em></small></p>
</div>
</div>
<ul class="news-listing">
<li>Key Republicans sign letter warning against candidate</li>
<li>Obamacare Appears to Be Making People Healthier</li>
<li>Syria war: Why the battle for Aleppo matters</li>
<li>‘S.N.L.’ to Lose Two Longtime Cast Members</li>
</ul>
</div>
<div class="col-md-4">
<div class="card"> <img class="img-fluid" src="img/media-2.jpg" alt="">
<div class="card-block">
<div class="news-title"><a href="#">
<h2 class=" title-small">Delta passengers got pizza delivered to the plane</h2>
</a></div>
<p class="card-text"><small class="text-time"><em>3 mins ago</em></small></p>
</div>
</div>
<ul class="news-listing">
<li>Syria war: Why the battle for Aleppo matters</li>
<li>Key Republicans sign letter warning against candidate</li>
<li>Obamacare Appears to Be Making People Healthier</li>
<li>‘S.N.L.’ to Lose Two Longtime Cast Members</li>
</ul>
</div>
<div class="col-md-4">
<div class="card"> <img class="img-fluid" src="img/media-3.jpg" alt="">
<div class="card-block">
<div class="news-title"><a href="#">
<h2 class=" title-small">Minorities Suffer From Unequal Pain Treatment</h2>
</a></div>
<p class="card-text"><small class="text-time"><em>3 mins ago</em></small></p>
</div>
</div>
<ul class="news-listing">
<li>‘S.N.L.’ to Lose Two Longtime Cast Members</li>
<li>Key Republicans sign letter warning against candidate</li>
<li>Obamacare Appears to Be Making People Healthier</li>
<li>Syria war: Why the battle for Aleppo matters</li>
</ul>
</div>
</div>
</div>
</section>
now i want to store this in mysql database using angular and php
Although it's technically possible to store an image in a BLOB type, I totally discourage you to do it and rather use a could-based filesystem such as S3 or the local filesystem of the server. Just store on the DB the URI of the image.
Storing BLOBS in the DB will make it slower, the backups will take much longer and the queries must be optimized to avoid retrieving the BLOB. A simple SELECT * FROM users; can kill your DB if you have thousands of users.
I am doing a project in codeigniter 3.3(latest version). Is there any method/function that is related to skip while inside the foreach? For example, I have 5 data in my table(ofcourse you need to use foreach in view to get all the data). The 3 images will be display on the top part and the last 2 will be display in the bottom part, is it possible
View
<div class="container-fluid proj-bottom">
<div class="row">
<?php foreach($getContent as $content){ if($content->id=="1"){ skip();}?>
<div class="col-md-4 col-sm-6 fh5co-project animate-box" data-animate-effect="fadeIn">
<?=$content->id?>
<a href="#fly" data-toggle="modal" data-animation="animated zoomInRight" ><img src="<?= base_url() .'uploaded/'. $content->img_path?>" alt="Free HTML5 Website Template by FreeHTML5.co" class="img-responsive">
<h3>Fly</h3>
<span>View</span>
</a>
</div>
<?php } ?>
</div>
</div>
You can use continue:
<div class="container-fluid proj-bottom">
<div class="row">
<?php foreach($getContent as $content){ if($content->id=="1"){ skip();}?>
<div class="col-md-4 col-sm-6 fh5co-project animate-box" data-animate-effect="fadeIn">
<?=$content->id?>
<a href="#fly" data-toggle="modal" data-animation="animated zoomInRight" ><img src="<?= base_url() .'uploaded/'. $content->img_path?>" alt="Free HTML5 Website Template by FreeHTML5.co" class="img-responsive">
<h3>Fly</h3>
<span>View</span>
</a>
</div>
<?php } ?>
</div>
</div>
The continue (Manual reference) will skip the current loop and go for the next record if it exists.
The break (Manual reference) will skip and quit the loop.
I recently inherited a website with a horrible file structure. I need to update some content (text) but I can’t find where it is being defined. The database table does not have the information, so I'm guessing the text is being defined elsewhere. Is there a tool or "trick" in Chrome Dev Tools to find the content source? Your help is much appreciated!
***Snippet from PHP File:
<div id="product_wrapper" class="add-bottom30">
<div class="columns sixteen">
<div class="columns twelve add-bottom60 catalogue">
<!-- Pager -->
<?php include('sql-' . $_SESSION['lang'] . '/promos.php');?>
</div>
<div class="columns four side">
<h5 style="margin-bottom:25px;">FLYERS</h5>
<ul>
<li style="background-color:#0065a4;">
<?php echo flyer_jet_2016; (where the text I need to change lives) ?>
</li>
</ul>
</div>
<div class="clear"><!-- ClearFix --></div>
</div>
</div>
*** Snippet from source code ("View Source" in Chrome):
<div class="columns four side">
<h5 style="margin-bottom:25px;">FLYERS</h5>
<ul>
<li style="background-color:#0065a4;">
<span class="icon" data-icon="(" style="color:#fff;margin-bottom:15px;"></span><br>Tool Storage<br>Solutions 2016
</li>
</ul>
</div>
<div class="clear"><!-- ClearFix --></div>
</div>
I have created a single page Webapp using Bootstrap 3. It looks and feels like the standard IOS contacts app. I am using it for personal data on contacts. The contacts are in a sql table which I am querying. I am trying to pass a the PHP mySql id result to an internal #details id element.
The link is:
name
The div is:
<article id="details">
<div class="container-fluid">
<?php
$therecord = $_GET['page'];
$result = $Con ->query("SELECT * FROM `myTable` WHERE `id` = '$therecord'");
$details_row = $result->fetch_array(MYSQLI_BOTH);
?>
<div class="row">
<a href="#on_duty"><div class="col-xs-1"><span class="glyphicon glyphicon-menu-left floatleft apple_back_chevron appleBlue" aria-hidden="true"></span></div>
<div class="col-xs-6"><p class="apple_back_text appleBlue">On Duty Coordinators</p></div></a>
<a href="#edit_coordinators?page=<?php echo $details_row['id'] ;?>"><div class="col-xs-4"><p class="apple_forward_text appleBlue floatright">Edit</p></div>
<div class="col-xs-1"><p class="glyphicon glyphicon-menu-right floatright apple_forward_chevron appleBlue" aria-hidden="true"></p></div></a>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-xs-3">
<img class="img-circle" src="" alt="photo">
</div>
<div class="col-xs-9">
<h2><?php echo $details_row['name'];?></h2>
</div>
</div>
<div class="row">
<div class="apple_list appleGray">
<div class="col-xs-8">
<p class="appleBlue">station</p>
<p class="appleDGray"><?php echo $details_row['station']; ?></p>
</div>
<div class="col-xs-4">
</div>
</div>
</div>
<div class="row">
<div class="apple_list appleGray">
<div class="col-xs-8">
<p class="appleBlue">mobile</p>
<p class="appleDGray"><?php echo $details_row['mobile']; ?></p>
</div>
<div class="col-xs-2"> <img class="img-responsive apple_Glyph" src="_images/sms.png"></div>
<div class="col-xs-2"> <img class="img-responsive apple_Glyph" src="_images/phone.png"></div>
</div>
</div>
</div> <!-- /container -->
</article>
How do I pass a PHP "?page=$recordNo" internally? The page id is being passed, but not getting picked up by the next PHP
Try:
name
It is also very possible you could write it like so:
name
Basically, ? starts the query string and (if included) is always before the page anchor (fragment) # in a URI. See Uniform Resource Identifier for more info.
You can't do this:
name
Because there's an "hashtag", so it's interpreted by the browser as an in-page navigation, and the request isn't sent to the server, unless you catch it with javascript and then perform some ajax request...
This problem seems completely unrelated to PHP or MySQL.
Just look at the generated mark-up, which will look like this (re-indented to improve readability):
<a href="#edit_coordinators?page=333">
<div class="col-xs-4">
<p class="apple_forward_text appleBlue floatright">Edit</p>
</div>
<div class="col-xs-1">
<p class="glyphicon glyphicon-menu-right floatright apple_forward_chevron appleBlue" aria-hidden="true"></p>
</div>
</a>
There're two obvious issues:
The <a> tag is an inline element. It cannot have a whole bunch of block elements inside.
You inject the page GET parameter in the hash part of the URL, which is client-side only and is never sent to the server. It should be ?page=333#edit_coordinators
Said that, I admit I can't fully understand what you have in mind but it you really have a single-page application it has to be coded in JavaScript and possibly use AJAX. With just server-side technologies you can only
build a conventional web application.