wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r12930: LJSUP-13388: LJ Shop - Styles

Committer: wisest-owl
LJSUP-13388: LJ Shop - Styles

U   trunk/bin/upgrading/en_LJ.dat
U   trunk/cgi-bin/LJ/Hooks/Customize.pm
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2012-11-21 12:33:25 UTC (rev 12929)
+++ trunk/bin/upgrading/en_LJ.dat	2012-11-21 12:42:51 UTC (rev 12930)
@@ -4986,6 +4986,8 @@
 ljcom.customize.specialoptions.text|staleness=1
 ljcom.customize.specialoptions.text=Upgrade
 
+ljcom.customize.buy_item.text=Buy Theme
+
 ljcom.customizeupgradenotice.basiclayout=Get more layouts by switching to a <a [[aopts]]>Plus account</a> for free.
 
 ljcom.customizeupgradenotice.basictheme=Get more themes by switching to a <a [[aopts]]>Plus account</a> for free.

Modified: trunk/cgi-bin/LJ/Hooks/Customize.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Customize.pm	2012-11-21 12:33:25 UTC (rev 12929)
+++ trunk/cgi-bin/LJ/Hooks/Customize.pm	2012-11-21 12:42:51 UTC (rev 12930)
@@ -279,6 +279,15 @@
     return "<strong><a href='$upgrade_url'>" . LJ::Lang::ml('ljcom.customize.specialoptions.text') . "</a></strong>";
 });
 
+LJ::register_hook("customize_shop_item_options", sub {
+    my $u = shift;
+    my $theme = shift;
+
+    my $buy_url = $LJ::SITEROOT."/shop/theme/?uniq=".$theme->{uniq};
+
+    return "<strong><a href='$buy_url'>" . LJ::Lang::ml('ljcom.customize.buy_item.text') . "</a></strong>";
+});
+
 LJ::register_hook("customize_special_icons", sub {
     my $u = shift;
     my $theme = shift;

Tags: dat, ljcom, pm, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments