375 lines
11 KiB
Plaintext
Executable File
375 lines
11 KiB
Plaintext
Executable File
_parent=>../../lj-bml-blocks.pl
|
|
|
|
loginboxstyle=>{Ss}background: url(<?imgprefix?>/userinfo.gif) no-repeat; background-color: #fff; background-position: 0px 1px; padding-left: 18px; color: #00C; font-weight: bold;
|
|
commloginboxstyle=>{Ss}background: url(<?imgprefix?>/community.gif) no-repeat; background-color: #fff; background-position: 0px 2px; padding-left: 19px; color: #00C; font-weight: bold;
|
|
|
|
SECURITYPRIVATE=>{Ss}<img src="<?imgprefix?>/icon_private.gif" width=16 height=16 align=absmiddle>
|
|
SECURITYPROTECTED=>{Ss}<img src="<?imgprefix?>/icon_protected.gif" width=14 height=15 align=absmiddle>
|
|
LJUSER=>{DRs}<span class='ljuser' style='white-space:nowrap;'><a href='/userinfo.bml?user=%%data%%'><img src='<?imgprefix?>/userinfo.gif' alt='userinfo' width='17' height='17' style='vertical-align:bottom;border:0;' /></a><a href='/users/%%data%%/'><b>%%data%%</b></a></span>
|
|
LJCOMM=>{DRs}<span class='ljuser' style='white-space:nowrap;'><a href='/userinfo.bml?user=%%data%%'><img src='<?imgprefix?>/community.gif' alt='userinfo' width='16' height='16' style='vertical-align:bottom;border:0;' /></a><a href='/community/%%data%%/'><b>%%data%%</b></a></span>
|
|
LJUSERF=>{DRs}<span class='ljuser' style='white-space:nowrap;'><a href='/userinfo.bml?user=%%data%%&mode=full'><img src='<?imgprefix?>/userinfo.gif' alt='userinfo' width='17' height='17' style='vertical-align:bottom;border:0;' /></a><a href='/users/%%data%%/'><b>%%data%%</b></a></span>
|
|
HELP=>{DR}(<a href="%%data%%"><i>help</i></a>)
|
|
INERR=>{DR}<font color="#ff0000"><b>%%data%%</b></font>
|
|
SOERROR=>{DR}<div><b>%%data%%</b></div>
|
|
EMAILEX=><div style='font-family: courier; border: solid black 1px; padding: 5px;'>%%data%%</div>
|
|
|
|
ENTRYFORMCSS<=
|
|
{Ss}
|
|
<style type="text/css">
|
|
#EntryForm #MetaInfo {
|
|
width: 100%;
|
|
}
|
|
#EntryForm th {
|
|
font-size: 1em;
|
|
}
|
|
#EntryForm #SubmitBar {
|
|
background-color: #dfdfdf;
|
|
padding: 5px;
|
|
text-align: center;
|
|
border: 1px outset #000;
|
|
margin-left: auto; margin-right: auto;
|
|
}
|
|
#MetaInfo tr {
|
|
padding-bottom: 10px;
|
|
}
|
|
#metainfo th {
|
|
text-align: left;
|
|
}
|
|
#mood_preview {
|
|
display: none;
|
|
}
|
|
#datetime_box input, #datetime_box select {
|
|
margin-right: 2px;
|
|
}
|
|
#EntryForm legend {
|
|
font-weight: bold;
|
|
}
|
|
#EntryForm #Options {
|
|
margin-left: 0; margin-right: 0; padding: 0;
|
|
background-color: #dfdfdf;
|
|
border: 1px outset #000;
|
|
}
|
|
#EntryForm #Options th {
|
|
text-align: left;
|
|
}
|
|
#EntryForm #infobox {
|
|
text-align: center;
|
|
}
|
|
#EntryForm #infobox table {
|
|
background-color: #dfdfdf;
|
|
border: 2px solid <?emcolor?>;
|
|
}
|
|
#EntryForm textarea {
|
|
border: 1px inset #000;
|
|
padding: 2px;
|
|
}
|
|
#EntryForm #Security option {
|
|
padding-left: 18px;
|
|
}
|
|
#EntryForm #security_public {
|
|
background-image: url("<?imgprefix?>/userinfo.gif");
|
|
background-repeat: no-repeat;
|
|
}
|
|
#EntryForm #security_private {
|
|
background-image: url("<?imgprefix?>/icon_private.gif");
|
|
background-repeat: no-repeat;
|
|
}
|
|
#EntryForm #security_friends, #EntryForm #security_custom {
|
|
background-image: url("<?imgprefix?>/icon_protected.gif");
|
|
background-repeat: no-repeat;
|
|
}
|
|
#EntryForm #UserpicPreviewImage {
|
|
border: 1px solid #000;
|
|
}
|
|
#EntryForm {
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
<=ENTRYFORMCSS
|
|
|
|
NEEDLOGIN<=
|
|
<?h1 <?_ml bml.needlogin.head _ml?> h1?>
|
|
<?p <?_ml bml.needlogin.body2 _ml?> p?>
|
|
<=NEEDLOGIN
|
|
|
|
BADINPUT<=
|
|
<?h1 <?_ml bml.badinput.head _ml?> h1?>
|
|
<?p <?_ml bml.badinput.body _ml?> p?>
|
|
<=BADINPUT
|
|
|
|
REQUIREPOST=><?_ml bml.requirepost _ml?>
|
|
|
|
LOAD_PAGE_INFO<=
|
|
<?_code
|
|
#line 3
|
|
@sidebar = ({ 'name' => 'Home',
|
|
'uri' => '/',
|
|
'match' => "^/(index\\.bml)?(\\?.*)?\$",
|
|
'children' => [
|
|
{ 'name' => BML::ml('ljrlook.nav.create'),
|
|
'uri' => '/create.bml', },
|
|
{ 'name' => BML::ml('ljrlook.nav.update'),
|
|
'uri' => '/update.bml',
|
|
'children' => [
|
|
{ 'name' => BML::ml('ljrlook.nav.fullupdate'),
|
|
'uri' => '/update.bml?mode=full', }
|
|
],
|
|
},
|
|
# { 'name' => 'Download',
|
|
# 'uri' => '/download/', },
|
|
],
|
|
},
|
|
{ 'name' => BML::ml('ljrlook.nav.site'),
|
|
'children' => [
|
|
{ 'name' => BML::ml('ljrlook.nav.news'),
|
|
'match' => '^/news\\.bml\$',
|
|
'uri' => '/community/ljr_news/', },
|
|
{ 'name' => BML::ml('ljrlook.nav.siteopts'),
|
|
'uri' => '/manage/siteopts.bml', },
|
|
{ 'name' => BML::ml('ljrlook.nav.paidaccounts'),
|
|
'uri' => '/paidaccounts/',
|
|
# 'recursematch' => '^/paidaccounts/',
|
|
# 'children' => [
|
|
# { 'name' => 'Is this safe?',
|
|
# 'uri' => '/paidaccounts/whysafe.bml', },
|
|
# { 'name' => 'Progress',
|
|
# 'uri' => '/paidaccounts/progress.bml', },
|
|
# ],
|
|
},
|
|
{ 'name' => BML::ml('ljrlook.nav.ljfif'),
|
|
'uri' => '/users/ljr_fif/friends', },
|
|
# { 'name' => 'To-Do list',
|
|
# 'uri' => '/todo.bml', },
|
|
# { 'name' => 'Contributors',
|
|
# 'uri' => '/contributors.bml', },
|
|
],
|
|
},
|
|
# { 'name' => 'Find Users',
|
|
# 'children' => [
|
|
# { 'name' => 'Random!',
|
|
# 'uri' => '/random.bml', },
|
|
# { 'name' => 'By Region',
|
|
# 'uri' => '/directory.bml', },
|
|
# { 'name' => 'By Interest',
|
|
# 'uri' => '/interests.bml', },
|
|
# { 'name' => 'Search',
|
|
# 'uri' => '/directorysearch.bml', }
|
|
# ], },
|
|
{ 'name' => BML::ml('ljrlook.nav.edit'),
|
|
'children' => [
|
|
{ 'name' => BML::ml('ljrlook.nav.editinfo'),
|
|
'uri' => '/editinfo.bml', },
|
|
# { 'name' => 'Settings', cont => 1,
|
|
# 'uri' => '/editinfo.bml', },
|
|
{ 'name' => BML::ml('ljrlook.nav.editfriends'),
|
|
'uri' => '/editfriends.bml', },
|
|
{ 'name' => BML::ml('ljrlook.nav.editjournal'),
|
|
'uri' => '/editjournal.bml', },
|
|
{ 'name' => BML::ml('ljrlook.nav.editpics'),
|
|
'uri' => '/editpics.bml', },
|
|
{ 'name' => BML::ml('ljrlook.nav.changepassword'),
|
|
'uri' => '/changepassword.bml', },
|
|
{ 'name' => BML::ml('ljrlook.nav.modify'),
|
|
'uri' => '/modify.bml', },
|
|
],
|
|
},
|
|
{ 'name' => BML::ml('ljrlook.nav.communities.manage'),
|
|
'uri' => '/community/manage.bml'
|
|
},
|
|
# { 'name' => 'Developer Area',
|
|
# 'uri' => '/developer/',
|
|
# 'match' => "^/developer/\$",
|
|
# 'recursematch' => "^/developer/",
|
|
# 'children' => [
|
|
# { 'name' => 'Style System',
|
|
# 'uri' => '/developer/styles.bml',
|
|
# 'children' => [
|
|
# { 'name' => 'View Types',
|
|
# 'uri' => '/developer/views.bml', },
|
|
# { 'name' => 'Variable List',
|
|
# 'uri' => '/developer/varlist.bml', },
|
|
# ],
|
|
# },
|
|
# { 'name' => 'Embedding',
|
|
# 'uri' => '/developer/embedding.bml', },
|
|
# { 'name' => 'Protocol',
|
|
# 'uri' => '/developer/protocol.bml',
|
|
# 'children' => [
|
|
# { 'name' => 'Mode List',
|
|
# 'uri' => '/developer/modelist.bml', }
|
|
# ],
|
|
# },
|
|
# ],
|
|
# },
|
|
{ 'name' => BML::ml('ljrlook.nav.frills'),#Styles,customization
|
|
'children' => [
|
|
{ 'name' => BML::ml('ljrlook.nav.customize'),
|
|
'uri' => '/customize/', },
|
|
{ 'name' => BML::ml('ljrlook.nav.createstyle'),
|
|
'uri' => '/createstyle.bml', },
|
|
{ 'name' => BML::ml('ljrlook.nav.editstyle'),
|
|
'uri' => '/editstyle.bml', },
|
|
],
|
|
},
|
|
{ 'name' => BML::ml('ljrlook.nav.needhelp'),
|
|
'children' => [
|
|
{ 'name' => BML::ml('ljrlook.nav.lostinfo'),
|
|
'uri' => '/lostinfo.bml', },
|
|
{ 'name' => BML::ml('ljrlook.nav.support.faq'),
|
|
'uri' => '/support/faq.bml', },
|
|
# { 'name' => 'Questions',
|
|
# 'uri' => '/support/faq.bml', cont => 1, },
|
|
{ 'name' => BML::ml('ljrlook.nav.support'),
|
|
'uri' => '/support/', },
|
|
],
|
|
},
|
|
);
|
|
|
|
my $remote = LJ::get_remote();
|
|
my $remuser = $remote ? $remote->{'user'} : "";
|
|
my $uri = BML::get_uri();
|
|
if ($remuser ne "" && $uri ne "/logout.bml")
|
|
{
|
|
my $subdomain = $remuser;
|
|
$subdomain =~ s/_/-/g;
|
|
unshift @sidebar, { 'name' => BML::ml('ljrlook.nav.hello').", ".$remuser."!",
|
|
'children' => [
|
|
{ 'name' => BML::ml('ljrlook.nav.yourjournal'),
|
|
'children' => [
|
|
{ 'name' => BML::ml('ljrlook.nav.recent'),
|
|
'uri' => "/users/$remuser/", },
|
|
{ 'name' => BML::ml('ljrlook.nav.calendar'),
|
|
'uri' => "/users/$remuser/calendar", },
|
|
{ 'name' => BML::ml('ljrlook.nav.friends'),
|
|
'uri' => "/users/$remuser/friends",
|
|
'extra' => "/friendsfilter.bml",
|
|
},
|
|
],
|
|
},
|
|
{ 'name' => BML::ml('ljrlook.nav.userinfo'),
|
|
'uri' => "/userinfo.bml?user=$remuser", },
|
|
{ 'name' => BML::ml('ljrlook.nav.memories'),
|
|
'uri' => "/memories.bml?user=$remuser", },
|
|
{ 'name' => BML::ml('ljrlook.nav.logout'),
|
|
'uri' => '/logout.bml', },
|
|
]
|
|
};
|
|
} elsif ($uri ne "/login.bml") {
|
|
unshift @sidebar, { 'name' => BML::ml('ljrlook.nav.login'),,
|
|
'uri' => '/login.bml', }
|
|
}
|
|
|
|
return "";
|
|
_code?>
|
|
<=LOAD_PAGE_INFO
|
|
|
|
AL=>{P}<i><a href="%%data1%%">%%data2%%</a></i> <img src="/img/external_link.gif" width='16' height='11' align='absmiddle' />
|
|
AWAYLINK=>{P}<i><a href="%%data1%%">%%data2%%</a></i> <img src="/img/external_link.gif" width='16' height='11' align='absmiddle' />
|
|
|
|
H1=>{D}<h1>%%data%%</h1>
|
|
H2=>{D}<h2>%%data%%</h2>
|
|
|
|
# Banner Header: search results banner, content desriptor, etc...
|
|
BH=>{D}<p align='center'><font face="Arial,Helvetica" color="#CC0000" size='-1'><b>%%data%%</b></font>
|
|
|
|
GRIN=>{S}<grin>
|
|
HR=>{S}<hr />
|
|
|
|
NEWLINE=>{S}<BR>
|
|
P=>{D}<P>%%data%%</P>
|
|
|
|
STANDOUT<=
|
|
{D}<blockquote>
|
|
<hr />
|
|
%%data%%
|
|
<hr />
|
|
</blockquote>
|
|
<=STANDOUT
|
|
|
|
ERRORBAR<=
|
|
{D}<blockquote>
|
|
<hr />
|
|
%%data%%
|
|
<hr />
|
|
</blockquote>
|
|
<=ERRORBAR
|
|
|
|
WARNINGBAR<=
|
|
{D}<blockquote>
|
|
<hr />
|
|
%%data%%
|
|
<hr />
|
|
</blockquote>
|
|
<=WARNINGBAR
|
|
|
|
BADCONTENT<=
|
|
<?h1 <?_ml Error _ml?> h1?>
|
|
<?p <?_ml bml.badcontent.body _ml?> p?>
|
|
<=BADCONTENT
|
|
|
|
DE<=
|
|
%%data%%
|
|
<=DE
|
|
|
|
EMCOLOR=>{S}#c0c0c0
|
|
HOTCOLOR=>{S}#ff0000
|
|
EMCOLORLITE=>{S}#e2e2e2
|
|
ALTCOLOR1=>{S}#eeeeee
|
|
ALTCOLOR2=>{S}#dddddd
|
|
screenedbarcolor=>{S}#d0d0d0
|
|
|
|
CHOICE=>{P}<dt><a href="%%data2%%"><font size="+1"><tt><b>%%data1%%</b></tt></font></a><dd><font size="2">%%data3%%</font>
|
|
|
|
CHOICES<=
|
|
{F}<table width="100%" cellpadding="2" cellspacing="5">
|
|
<tr>
|
|
<td valign='top' width="50%">
|
|
<dl>
|
|
%%items%%
|
|
</dl>
|
|
</td>
|
|
<td valign='top' width="50%">
|
|
<dl>
|
|
%%itemsb%%
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<=CHOICES
|
|
|
|
PAGE<=
|
|
{Fp}<html>
|
|
<head><title>%%title%%</title>%%head%%</head>
|
|
<body %%bodyopts%%>
|
|
%%body%%
|
|
</body>
|
|
</html>
|
|
<=PAGE
|
|
|
|
BREADCRUMBS<=
|
|
{Fp}<?_code
|
|
# where are we
|
|
my @crumbs = LJ::get_crumb_path();
|
|
return unless @crumbs;
|
|
my @ret;
|
|
my $count = 0;
|
|
foreach my $crumb (@crumbs) {
|
|
# put crumbs together
|
|
next unless $crumb->[3]; # no blank crumbs
|
|
if ($crumb->[3] eq 'dynamic') {
|
|
# dynamic
|
|
unshift @ret, "<b>$crumb->[0]</b>";
|
|
$count++;
|
|
} else {
|
|
# non-dynamic
|
|
unshift @ret, $count++ == 0 ?
|
|
"<b>$ML{'crumb.'.$crumb->[3]}</b>" :
|
|
$crumb->[1] ne '' ?
|
|
"<a href=\"$crumb->[1]\">$ML{'crumb.'.$crumb->[3]}</a>" :
|
|
"$ML{'crumb.'.$crumb->[3]}";
|
|
}
|
|
}
|
|
return "<div id='ljbreadcrumbs'>" . join(" : ", @ret) . "</div>";
|
|
_code?>
|
|
<=BREADCRUMBS
|